diff --git a/generation_config.yaml b/generation_config.yaml index d3a24edc1489..78ee80ce9447 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.47.0 -googleapis_commitish: 8692273ae7e0ef95d264e1bb8bcb900fa950674f -libraries_bom_version: 26.48.0 +gapic_generator_version: 2.49.0 +googleapis_commitish: 48d30c4966ef9ea31b897e13f75d8f94070cc8e9 +libraries_bom_version: 26.49.0 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 3e54da1068f6..35a889132323 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/resources/META-INF/native-image/com.google.cloud.accessapproval.v1/reflect-config.json b/java-accessapproval/google-cloud-accessapproval/src/main/resources/META-INF/native-image/com.google.cloud.accessapproval.v1/reflect-config.json index a217ef5eb7e7..e831b3f12d17 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/resources/META-INF/native-image/com.google.cloud.accessapproval.v1/reflect-config.json +++ b/java-accessapproval/google-cloud-accessapproval/src/main/resources/META-INF/native-image/com.google.cloud.accessapproval.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount", "queryAllDeclaredConstructors": true, diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateSetCredentialsProvider1.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cf7418d60882..000000000000 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.accessapproval.v1.samples; - -// [START accessapproval_v1_generated_AccessApproval_Create_SetCredentialsProvider1_sync] -import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient; -import com.google.cloud.accessapproval.v1.AccessApprovalAdminSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccessApprovalAdminSettings accessApprovalAdminSettings = - AccessApprovalAdminSettings.newHttpJsonBuilder().build(); - AccessApprovalAdminClient accessApprovalAdminClient = - AccessApprovalAdminClient.create(accessApprovalAdminSettings); - } -} -// [END accessapproval_v1_generated_AccessApproval_Create_SetCredentialsProvider1_sync] diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateUseHttpJsonTransport.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9760fb25e96a --- /dev/null +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapproval/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.accessapproval.v1.samples; + +// [START accessapproval_v1_generated_AccessApproval_Create_UseHttpJsonTransport_sync] +import com.google.cloud.accessapproval.v1.AccessApprovalAdminClient; +import com.google.cloud.accessapproval.v1.AccessApprovalAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccessApprovalAdminSettings accessApprovalAdminSettings = + AccessApprovalAdminSettings.newHttpJsonBuilder().build(); + AccessApprovalAdminClient accessApprovalAdminClient = + AccessApprovalAdminClient.create(accessApprovalAdminSettings); + } +} +// [END accessapproval_v1_generated_AccessApproval_Create_UseHttpJsonTransport_sync] diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 8d7a7052f129..ff00a31af89a 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/resources/META-INF/native-image/com.google.identity.accesscontextmanager.v1/reflect-config.json b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/resources/META-INF/native-image/com.google.identity.accesscontextmanager.v1/reflect-config.json index 48807145acc2..b9e58b43a0ce 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/resources/META-INF/native-image/com.google.identity.accesscontextmanager.v1/reflect-config.json +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/resources/META-INF/native-image/com.google.identity.accesscontextmanager.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, diff --git a/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateSetCredentialsProvider1.java b/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2f947cbe6d55..000000000000 --- a/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.identity.accesscontextmanager.v1.samples; - -// [START accesscontextmanager_v1_generated_AccessContextManager_Create_SetCredentialsProvider1_sync] -import com.google.identity.accesscontextmanager.v1.AccessContextManagerClient; -import com.google.identity.accesscontextmanager.v1.AccessContextManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccessContextManagerSettings accessContextManagerSettings = - AccessContextManagerSettings.newHttpJsonBuilder().build(); - AccessContextManagerClient accessContextManagerClient = - AccessContextManagerClient.create(accessContextManagerSettings); - } -} -// [END accesscontextmanager_v1_generated_AccessContextManager_Create_SetCredentialsProvider1_sync] diff --git a/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateUseHttpJsonTransport.java b/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dedc0d69ada6 --- /dev/null +++ b/java-accesscontextmanager/samples/snippets/generated/com/google/identity/accesscontextmanager/v1/accesscontextmanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.identity.accesscontextmanager.v1.samples; + +// [START accesscontextmanager_v1_generated_AccessContextManager_Create_UseHttpJsonTransport_sync] +import com.google.identity.accesscontextmanager.v1.AccessContextManagerClient; +import com.google.identity.accesscontextmanager.v1.AccessContextManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccessContextManagerSettings accessContextManagerSettings = + AccessContextManagerSettings.newHttpJsonBuilder().build(); + AccessContextManagerClient accessContextManagerClient = + AccessContextManagerClient.create(accessContextManagerSettings); + } +} +// [END accesscontextmanager_v1_generated_AccessContextManager_Create_UseHttpJsonTransport_sync] diff --git a/java-admanager/README.md b/java-admanager/README.md index 9e2274d6ea0c..ee0317e8886f 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.11.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json index ad032f8798a4..e48c10fcb47a 100644 --- a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json +++ b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json @@ -2816,6 +2816,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdManagerErrorProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdManagerErrorProto.java index be4ffffa7e60..11351edd089b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdManagerErrorProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdManagerErrorProto.java @@ -47,11 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\nerror_code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\022\n\nf" + "ield_path\030\003 \001(\t\022\017\n\007trigger\030\004 \001(\t\022\023\n\013stac" + "k_trace\030\005 \001(\t\022%\n\007details\030\006 \003(\0132\024.google." - + "protobuf.AnyB\252\001\n\033com.google.ads.admanage" + + "protobuf.AnyB\307\001\n\033com.google.ads.admanage" + "r.v1B\023AdManagerErrorProtoP\001Z@google.gola" + "ng.org/genproto/googleapis/ads/admanager" + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" - + "\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads:" + + ":AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitEnumsProto.java index c233374a2aa0..239757d5aed2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitEnumsProto.java @@ -58,11 +58,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ECIFIED\020\000\022\010\n\004NONE\020\001\022\020\n\014SMART_BANNER\020\002\022\020\n" + "\014DYNAMIC_SIZE\020\003\"U\n\020TargetWindowEnum\"A\n\014T" + "argetWindow\022\035\n\031TARGET_WINDOW_UNSPECIFIED" - + "\020\000\022\007\n\003TOP\020\001\022\t\n\005BLANK\020\002B\247\001\n\033com.google.ad" + + "\020\000\022\007\n\003TOP\020\001\022\t\n\005BLANK\020\002B\304\001\n\033com.google.ad" + "s.admanager.v1B\020AdUnitEnumsProtoP\001Z@goog" + "le.golang.org/genproto/googleapis/ads/ad" + "manager/v1;admanager\252\002\027Google.Ads.AdMana" - + "ger.V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "ger.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Googl" + + "e::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java index 6ad395a40245..82faee55628b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java @@ -114,11 +114,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\021LabelFrequencyCap\0225\n\005label\030\001 \001(\tB&\340A\002\372" + "A \n\036admanager.googleapis.com/Label\022<\n\rfr" + "equency_cap\030\002 \001(\0132%.google.ads.admanager" - + ".v1.FrequencyCapB\252\001\n\033com.google.ads.adma" + + ".v1.FrequencyCapB\307\001\n\033com.google.ads.adma" + "nager.v1B\023AdUnitMessagesProtoP\001Z@google." + "golang.org/genproto/googleapis/ads/adman" + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java index 0e8166917b67..7f248f443a16 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java @@ -93,12 +93,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "itSizesRequest\0320.google.ads.admanager.v1" + ".ListAdUnitSizesResponse\"4\332A\006parent\202\323\344\223\002" + "%\022#/v1/{parent=networks/*}/adUnitSizes\032\033" - + "\312A\030admanager.googleapis.comB\251\001\n\033com.goog" + + "\312A\030admanager.googleapis.comB\306\001\n\033com.goog" + "le.ads.admanager.v1B\022AdUnitServiceProtoP" + "\001Z@google.golang.org/genproto/googleapis" + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1b" - + "\006proto3" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AppliedLabelProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AppliedLabelProto.java index 8d1fedbce5ea..85f76547ae86 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AppliedLabelProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AppliedLabelProto.java @@ -46,11 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\"V\n\014AppliedLabel\0225\n\005label\030\001 \001(" + "\tB&\340A\002\372A \n\036admanager.googleapis.com/Labe" - + "l\022\017\n\007negated\030\002 \001(\010B\250\001\n\033com.google.ads.ad" + + "l\022\017\n\007negated\030\002 \001(\010B\305\001\n\033com.google.ads.ad" + "manager.v1B\021AppliedLabelProtoP\001Z@google." + "golang.org/genproto/googleapis/ads/adman" + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java index f467916df7d5..5c182f3fdac9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java @@ -46,12 +46,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1\"\225\001\n\027CompanyCreditStatusEnum\"z\n\023Compa" + "nyCreditStatus\022%\n!COMPANY_CREDIT_STATUS_" + "UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022" - + "\013\n\007ON_HOLD\020\003\022\010\n\004STOP\020\004\022\013\n\007BLOCKED\020\005B\263\001\n\033" + + "\013\n\007ON_HOLD\020\003\022\010\n\004STOP\020\004\022\013\n\007BLOCKED\020\005B\320\001\n\033" + "com.google.ads.admanager.v1B\034CompanyCred" + "itStatusEnumProtoP\001Z@google.golang.org/g" + "enproto/googleapis/ads/admanager/v1;adma" + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" - + "\\Ads\\AdManager\\V1b\006proto3" + + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManag" + + "er::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java index 0c1e9202dc73..daf0736e1dc7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java @@ -68,12 +68,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "third_party_company_id\030\020 \001(\003B\003\340A\001:f\352Ac\n " + "admanager.googleapis.com/Company\022+networ" + "ks/{network_code}/companies/{company}*\tc" - + "ompanies2\007companyB\022\n\020_primary_contactB\253\001" + + "ompanies2\007companyB\022\n\020_primary_contactB\310\001" + "\n\033com.google.ads.admanager.v1B\024CompanyMe" + "ssagesProtoP\001Z@google.golang.org/genprot" + "o/googleapis/ads/admanager/v1;admanager\252" + "\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\A" - + "dManager\\V1b\006proto3" + + "dManager\\V1\352\002\032Google::Ads::AdManager::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java index df486e221ab2..f196ee9e960d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java @@ -73,12 +73,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tCompaniesRequest\032..google.ads.admanager" + ".v1.ListCompaniesResponse\"2\332A\006parent\202\323\344\223" + "\002#\022!/v1/{parent=networks/*}/companies\032\033\312" - + "A\030admanager.googleapis.comB\252\001\n\033com.googl" + + "A\030admanager.googleapis.comB\307\001\n\033com.googl" + "e.ads.admanager.v1B\023CompanyServiceProtoP" + "\001Z@google.golang.org/genproto/googleapis" + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1b" - + "\006proto3" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java index e19caea006d5..4377ad147c1c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java @@ -46,12 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ompanyTypeEnum\"\177\n\013CompanyType\022\034\n\030COMPANY" + "_TYPE_UNSPECIFIED\020\000\022\016\n\nADVERTISER\020\001\022\024\n\020H" + "OUSE_ADVERTISER\020\002\022\n\n\006AGENCY\020\003\022\020\n\014HOUSE_A" - + "GENCY\020\004\022\016\n\nAD_NETWORK\020\005B\253\001\n\033com.google.a" + + "GENCY\020\004\022\016\n\nAD_NETWORK\020\005B\310\001\n\033com.google.a" + "ds.admanager.v1B\024CompanyTypeEnumProtoP\001Z" + "@google.golang.org/genproto/googleapis/a" + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" - + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1b\006p" - + "roto3" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java index b0b996af885c..47004d58cfde 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java @@ -48,11 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003\340A\010\022\027\n\ncontact_id\030\002 \001(\003B\003\340A\003:d\352Aa\n adma" + "nager.googleapis.com/Contact\022*networks/{" + "network_code}/contacts/{contact}*\010contac" - + "ts2\007contactB\253\001\n\033com.google.ads.admanager" + + "ts2\007contactB\310\001\n\033com.google.ads.admanager" + ".v1B\024ContactMessagesProtoP\001Z@google.gola" + "ng.org/genproto/googleapis/ads/admanager" + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" - + "\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads:" + + ":AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldEnumsProto.java index ec9f22a2a8ca..ee6ceb44f38d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldEnumsProto.java @@ -69,11 +69,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sibilityEnum\"i\n\025CustomFieldVisibility\022\'\n" + "#CUSTOM_FIELD_VISIBILITY_UNSPECIFIED\020\000\022\n" + "\n\006HIDDEN\020\001\022\r\n\tREAD_ONLY\020\002\022\014\n\010EDITABLE\020\003B" - + "\254\001\n\033com.google.ads.admanager.v1B\025CustomF" + + "\311\001\n\033com.google.ads.admanager.v1B\025CustomF" + "ieldEnumsProtoP\001Z@google.golang.org/genp" + "roto/googleapis/ads/admanager/v1;admanag" + "er\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ad" - + "s\\AdManager\\V1b\006proto3" + + "s\\AdManager\\V1\352\002\032Google::Ads::AdManager:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java index 069db8b23e87..1fabeefb0d9c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java @@ -69,11 +69,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m_field}*\014customFields2\013customField\"S\n\021C" + "ustomFieldOption\022#\n\026custom_field_option_" + "id\030\001 \001(\003B\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" - + "B\257\001\n\033com.google.ads.admanager.v1B\030Custom" + + "B\314\001\n\033com.google.ads.admanager.v1B\030Custom" + "FieldMessagesProtoP\001Z@google.golang.org/" + "genproto/googleapis/ads/admanager/v1;adm" + "anager\252\002\027Google.Ads.AdManager.V1\312\002\027Googl" - + "e\\Ads\\AdManager\\V1b\006proto3" + + "e\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMana" + + "ger::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java index 1d4fd4958286..b50e62dc8554 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java @@ -75,11 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.ads.admanager.v1.ListCustomFieldsRe" + "sponse\"5\332A\006parent\202\323\344\223\002&\022$/v1/{parent=net" + "works/*}/customFields\032\033\312A\030admanager.goog" - + "leapis.comB\256\001\n\033com.google.ads.admanager." + + "leapis.comB\313\001\n\033com.google.ads.admanager." + "v1B\027CustomFieldServiceProtoP\001Z@google.go" + "lang.org/genproto/googleapis/ads/admanag" + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" - + "1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValueProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValueProto.java index e7b3fc5c6ec2..592e9cd903ba 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValueProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValueProto.java @@ -55,12 +55,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ue.ValueB\003\340A\002H\000\210\001\001\032r\n\005Value\022\030\n\016dropdown_" + "value\030\001 \001(\003H\000\022\026\n\014string_value\030\002 \001(\tH\000\022\026\n" + "\014number_value\030\003 \001(\001H\000\022\026\n\014toggle_value\030\004 " - + "\001(\010H\000B\007\n\005valueB\010\n\006_valueB\254\001\n\033com.google." + + "\001(\010H\000B\007\n\005valueB\010\n\006_valueB\311\001\n\033com.google." + "ads.admanager.v1B\025CustomFieldValueProtoP" + "\001Z@google.golang.org/genproto/googleapis" + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1b" - + "\006proto3" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyEnumsProto.java index 72608ffdd38d..478747701912 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyEnumsProto.java @@ -61,12 +61,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tingKeyReportableTypeEnum\"\177\n CustomTarge" + "tingKeyReportableType\0224\n0CUSTOM_TARGETIN" + "G_KEY_REPORTABLE_TYPE_UNSPECIFIED\020\000\022\007\n\003O" - + "FF\020\001\022\006\n\002ON\020\002\022\024\n\020CUSTOM_DIMENSION\020\003B\263\001\n\033c" + + "FF\020\001\022\006\n\002ON\020\002\022\024\n\020CUSTOM_DIMENSION\020\003B\320\001\n\033c" + "om.google.ads.admanager.v1B\034CustomTarget" + "ingKeyEnumsProtoP\001Z@google.golang.org/ge" + "nproto/googleapis/ads/admanager/v1;adman" + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" - + "Ads\\AdManager\\V1b\006proto3" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java index bdd3a9f71114..a5d81c68fd29 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java @@ -61,12 +61,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogleapis.com/CustomTargetingKey\022Bnetwork" + "s/{network_code}/customTargetingKeys/{cu" + "stom_targeting_key}*\023customTargetingKeys" - + "2\022customTargetingKeyB\266\001\n\033com.google.ads." + + "2\022customTargetingKeyB\323\001\n\033com.google.ads." + "admanager.v1B\037CustomTargetingKeyMessages" + "ProtoP\001Z@google.golang.org/genproto/goog" + "leapis/ads/admanager/v1;admanager\252\002\027Goog" + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" - + "er\\V1b\006proto3" + + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java index 7840d7aaf47c..52ebae7e9921 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java @@ -78,12 +78,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "anager.v1.ListCustomTargetingKeysRespons" + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=networks" + "/*}/customTargetingKeys\032\033\312A\030admanager.go" - + "ogleapis.comB\265\001\n\033com.google.ads.admanage" + + "ogleapis.comB\322\001\n\033com.google.ads.admanage" + "r.v1B\036CustomTargetingKeyServiceProtoP\001Z@" + "google.golang.org/genproto/googleapis/ad" + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" - + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1b\006pr" - + "oto3" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueEnumsProto.java index 94d905e4255f..b60c3474280e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueEnumsProto.java @@ -55,12 +55,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gValueMatchType\0221\n-CUSTOM_TARGETING_VALU" + "E_MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\t\n" + "\005BROAD\020\002\022\n\n\006PREFIX\020\003\022\020\n\014BROAD_PREFIX\020\004\022\n" - + "\n\006SUFFIX\020\005\022\014\n\010CONTAINS\020\006B\265\001\n\033com.google." + + "\n\006SUFFIX\020\005\022\014\n\010CONTAINS\020\006B\322\001\n\033com.google." + "ads.admanager.v1B\036CustomTargetingValueEn" + "umsProtoP\001Z@google.golang.org/genproto/g" + "oogleapis/ads/admanager/v1;admanager\252\002\027G" + "oogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMa" - + "nager\\V1b\006proto3" + + "nager\\V1\352\002\032Google::Ads::AdManager::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java index d866ed0a8cf3..64d85d440e9f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java @@ -59,12 +59,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "k_code}/customTargetingKeys/{custom_targ" + "eting_key}/customTargetingValues/{custom" + "_targeting_value}*\025customTargetingValues" - + "2\024customTargetingValueB\270\001\n\033com.google.ad" + + "2\024customTargetingValueB\325\001\n\033com.google.ad" + "s.admanager.v1B!CustomTargetingValueMess" + "agesProtoP\001Z@google.golang.org/genproto/" + "googleapis/ads/admanager/v1;admanager\252\002\027" + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" - + "anager\\V1b\006proto3" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java index 9f6d9043a52e..d08f10723c9e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java @@ -80,12 +80,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tomTargetingValuesResponse\"T\332A\006parent\202\323\344" + "\223\002E\022C/v1/{parent=networks/*/customTarget" + "ingKeys/*}/customTargetingValues\032\033\312A\030adm" - + "anager.googleapis.comB\267\001\n\033com.google.ads" + + "anager.googleapis.comB\324\001\n\033com.google.ads" + ".admanager.v1B CustomTargetingValueServi" + "ceProtoP\001Z@google.golang.org/genproto/go" + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" - + "ager\\V1b\006proto3" + + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java index 24b59593f360..68cd2eb3ca94 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java @@ -54,12 +54,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntitySignalsMapping\022Fnetworks/{network_c" + "ode}/entitySignalsMappings/{entity_signa" + "ls_mapping}*\025entitySignalsMappings2\024enti" - + "tySignalsMappingB\010\n\006entityB\270\001\n\033com.googl" + + "tySignalsMappingB\010\n\006entityB\325\001\n\033com.googl" + "e.ads.admanager.v1B!EntitySignalsMapping" + "MessagesProtoP\001Z@google.golang.org/genpr" + "oto/googleapis/ads/admanager/v1;admanage" + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" - + "\\AdManager\\V1b\006proto3" + + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java index fe42a1c31763..ed20d94629cc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java @@ -155,12 +155,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alsMappingsResponse\"V\332A\017parent,requests\202" + "\323\344\223\002>\"9/v1/{parent=networks/*}/entitySig" + "nalsMappings:batchUpdate:\001*\032\033\312A\030admanage" - + "r.googleapis.comB\267\001\n\033com.google.ads.adma" + + "r.googleapis.comB\324\001\n\033com.google.ads.adma" + "nager.v1B EntitySignalsMappingServicePro" + "toP\001Z@google.golang.org/genproto/googlea" + "pis/ads/admanager/v1;admanager\252\002\027Google." + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1b\006proto3" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EnvironmentTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EnvironmentTypeEnumProto.java index b113bc99caed..8c0279233a5b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EnvironmentTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EnvironmentTypeEnumProto.java @@ -45,12 +45,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pe_enum.proto\022\027google.ads.admanager.v1\"i" + "\n\023EnvironmentTypeEnum\"R\n\017EnvironmentType" + "\022 \n\034ENVIRONMENT_TYPE_UNSPECIFIED\020\000\022\013\n\007BR" - + "OWSER\020\001\022\020\n\014VIDEO_PLAYER\020\002B\257\001\n\033com.google" + + "OWSER\020\001\022\020\n\014VIDEO_PLAYER\020\002B\314\001\n\033com.google" + ".ads.admanager.v1B\030EnvironmentTypeEnumPr" + "otoP\001Z@google.golang.org/genproto/google" + "apis/ads/admanager/v1;admanager\252\002\027Google" + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" - + "\\V1b\006proto3" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FrequencyCapProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FrequencyCapProto.java index 57c11af79e46..c711b96d7d7f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FrequencyCapProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FrequencyCapProto.java @@ -48,12 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\030\n\013time_amount\030\002 \001(\003H\001\210\001\001\022F\n\ttime_un" + "it\030\003 \001(\0162..google.ads.admanager.v1.TimeU" + "nitEnum.TimeUnitH\002\210\001\001B\022\n\020_max_impression" - + "sB\016\n\014_time_amountB\014\n\n_time_unitB\250\001\n\033com." + + "sB\016\n\014_time_amountB\014\n\n_time_unitB\305\001\n\033com." + "google.ads.admanager.v1B\021FrequencyCapPro" + "toP\001Z@google.golang.org/genproto/googlea" + "pis/ads/admanager/v1;admanager\252\002\027Google." + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1b\006proto3" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelMessagesProto.java index fd34be0a8edb..35261b28083e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelMessagesProto.java @@ -47,11 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ource.proto\"v\n\005Label\022\021\n\004name\030\001 \001(\tB\003\340A\010:" + "Z\352AW\n\036admanager.googleapis.com/Label\022&ne" + "tworks/{network_code}/labels/{label}*\006la" - + "bels2\005labelB\251\001\n\033com.google.ads.admanager" + + "bels2\005labelB\306\001\n\033com.google.ads.admanager" + ".v1B\022LabelMessagesProtoP\001Z@google.golang" + ".org/genproto/googleapis/ads/admanager/v" + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" - + "Google\\Ads\\AdManager\\V1b\006proto3" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::A" + + "dManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java index af3208d93cd1..e8b8f0304b5a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java @@ -54,12 +54,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "com/AdUnit\022\031\n\014test_network\030\n \001(\010B\003\340A\003\022\027\n" + "\nnetwork_id\030\013 \001(\003B\003\340A\003:Q\352AN\n admanager.g" + "oogleapis.com/Network\022\027networks/{network" - + "_code}*\010networks2\007networkB\253\001\n\033com.google" + + "_code}*\010networks2\007networkB\310\001\n\033com.google" + ".ads.admanager.v1B\024NetworkMessagesProtoP" + "\001Z@google.golang.org/genproto/googleapis" + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1b" - + "\006proto3" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java index 28f01fcd9e7a..4942f37288a5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java @@ -67,11 +67,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.v1.ListNetworksRequest\032-.google.ads.ad" + "manager.v1.ListNetworksResponse\"\024\202\323\344\223\002\016\022" + "\014/v1/networks\032\033\312A\030admanager.googleapis.c" - + "omB\252\001\n\033com.google.ads.admanager.v1B\023Netw" + + "omB\307\001\n\033com.google.ads.admanager.v1B\023Netw" + "orkServiceProtoP\001Z@google.golang.org/gen" + "proto/googleapis/ads/admanager/v1;admana" + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" - + "ds\\AdManager\\V1b\006proto3" + + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderEnumsProto.java index ed3f2d3f1216..e46116758d6f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderEnumsProto.java @@ -46,12 +46,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atusEnum\"\222\001\n\013OrderStatus\022\034\n\030ORDER_STATUS" + "_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\002\022\024\n\020PENDING_APP" + "ROVAL\020\003\022\014\n\010APPROVED\020\004\022\017\n\013DISAPPROVED\020\005\022\n" - + "\n\006PAUSED\020\006\022\014\n\010CANCELED\020\007\022\013\n\007DELETED\020\010B\246\001" + + "\n\006PAUSED\020\006\022\014\n\010CANCELED\020\007\022\013\n\007DELETED\020\010B\303\001" + "\n\033com.google.ads.admanager.v1B\017OrderEnum" + "sProtoP\001Z@google.golang.org/genproto/goo" + "gleapis/ads/admanager/v1;admanager\252\002\027Goo" + "gle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMana" - + "ger\\V1b\006proto3" + + "ger\\V1\352\002\032Google::Ads::AdManager::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java index de00edfc1abc..5671b5be8995 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java @@ -87,11 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.ads.admanager.v1.CustomFieldValueB" + "\003\340A\001:Z\352AW\n\036admanager.googleapis.com/Orde" + "r\022&networks/{network_code}/orders/{order" - + "}*\006orders2\005orderB\251\001\n\033com.google.ads.adma" + + "}*\006orders2\005orderB\306\001\n\033com.google.ads.adma" + "nager.v1B\022OrderMessagesProtoP\001Z@google.g" + "olang.org/genproto/googleapis/ads/admana" + "ger/v1;admanager\252\002\027Google.Ads.AdManager." - + "V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" + + "ds::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java index 9254cdee50d8..2be984941d49 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java @@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.ListOrdersRequest\032+.google.ads.adman" + "ager.v1.ListOrdersResponse\"/\332A\006parent\202\323\344" + "\223\002 \022\036/v1/{parent=networks/*}/orders\032\033\312A\030" - + "admanager.googleapis.comB\250\001\n\033com.google." + + "admanager.googleapis.comB\305\001\n\033com.google." + "ads.admanager.v1B\021OrderServiceProtoP\001Z@g" + "oogle.golang.org/genproto/googleapis/ads" + "/admanager/v1;admanager\252\002\027Google.Ads.AdM" - + "anager.V1\312\002\027Google\\Ads\\AdManager\\V1b\006pro" - + "to3" + + "anager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Go" + + "ogle::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementEnumsProto.java index 7c53bda3f261..9201e0b19402 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementEnumsProto.java @@ -45,12 +45,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\022\027google.ads.admanager.v1\"r\n\023Plac" + "ementStatusEnum\"[\n\017PlacementStatus\022 \n\034PL" + "ACEMENT_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" - + "\022\014\n\010INACTIVE\020\002\022\014\n\010ARCHIVED\020\003B\252\001\n\033com.goo" + + "\022\014\n\010INACTIVE\020\002\022\014\n\010ARCHIVED\020\003B\307\001\n\033com.goo" + "gle.ads.admanager.v1B\023PlacementEnumsProt" + "oP\001Z@google.golang.org/genproto/googleap" + "is/ads/admanager/v1;admanager\252\002\027Google.A" + "ds.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V" - + "1b\006proto3" + + "1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java index 6e3193ae2c41..d43c504536c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java @@ -57,12 +57,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" + "A\003:n\352Ak\n\"admanager.googleapis.com/Placem" + "ent\022.networks/{network_code}/placements/" - + "{placement}*\nplacements2\tplacementB\255\001\n\033c" + + "{placement}*\nplacements2\tplacementB\312\001\n\033c" + "om.google.ads.admanager.v1B\026PlacementMes" + "sagesProtoP\001Z@google.golang.org/genproto" + "/googleapis/ads/admanager/v1;admanager\252\002" + "\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\Ad" - + "Manager\\V1b\006proto3" + + "Manager\\V1\352\002\032Google::Ads::AdManager::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java index 765a2e6b831d..dd07aadd069e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java @@ -74,11 +74,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t\032/.google.ads.admanager.v1.ListPlacemen" + "tsResponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent" + "=networks/*}/placements\032\033\312A\030admanager.go" - + "ogleapis.comB\254\001\n\033com.google.ads.admanage" + + "ogleapis.comB\311\001\n\033com.google.ads.admanage" + "r.v1B\025PlacementServiceProtoP\001Z@google.go" + "lang.org/genproto/googleapis/ads/admanag" + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" - + "1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java index 73c7b35719e8..667506f97591 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java @@ -1004,12 +1004,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t\0326.google.ads.admanager.v1.FetchReportR" + "esultRowsResponse\"B\332A\004name\202\323\344\223\0025\0223/v1/{n" + "ame=networks/*/reports/*/results/*}:fetc" - + "hRows\032\033\312A\030admanager.googleapis.comB\251\001\n\033c" + + "hRows\032\033\312A\030admanager.googleapis.comB\306\001\n\033c" + "om.google.ads.admanager.v1B\022ReportServic" + "eProtoP\001Z@google.golang.org/genproto/goo" + "gleapis/ads/admanager/v1;admanager\252\002\027Goo" + "gle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMana" - + "ger\\V1b\006proto3" + + "ger\\V1\352\002\032Google::Ads::AdManager::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleEnumsProto.java index 1f75dc608bfe..96f041e5396b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleEnumsProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleEnumsProto.java @@ -44,12 +44,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/ads/admanager/v1/role_enums.pro" + "to\022\027google.ads.admanager.v1\"U\n\016RoleStatu" + "sEnum\"C\n\nRoleStatus\022\033\n\027ROLE_STATUS_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\245\001\n\033c" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\302\001\n\033c" + "om.google.ads.admanager.v1B\016RoleEnumsPro" + "toP\001Z@google.golang.org/genproto/googlea" + "pis/ads/admanager/v1;admanager\252\002\027Google." + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1b\006proto3" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java index 4dc7d060eabc..e8afce28e716 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java @@ -52,11 +52,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.ads.admanager.v1.RoleStatusEnum.Role" + "StatusB\003\340A\003:U\352AR\n\035admanager.googleapis.c" + "om/Role\022$networks/{network_code}/roles/{" - + "role}*\005roles2\004roleB\250\001\n\033com.google.ads.ad" + + "role}*\005roles2\004roleB\305\001\n\033com.google.ads.ad" + "manager.v1B\021RoleMessagesProtoP\001Z@google." + "golang.org/genproto/googleapis/ads/adman" + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java index 71f92f709cf9..63cf2f3faa38 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java @@ -72,11 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "quest\032*.google.ads.admanager.v1.ListRole" + "sResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=" + "networks/*}/roles\032\033\312A\030admanager.googleap" - + "is.comB\247\001\n\033com.google.ads.admanager.v1B\020" + + "is.comB\304\001\n\033com.google.ads.admanager.v1B\020" + "RoleServiceProtoP\001Z@google.golang.org/ge" + "nproto/googleapis/ads/admanager/v1;adman" + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" - + "Ads\\AdManager\\V1b\006proto3" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeProto.java index fb96441c7986..a24c73658730 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeProto.java @@ -47,11 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "field_behavior.proto\"w\n\004Size\022\022\n\005width\030\001 " + "\001(\005B\003\340A\002\022\023\n\006height\030\002 \001(\005B\003\340A\002\022F\n\tsize_ty" + "pe\030\003 \001(\0162..google.ads.admanager.v1.SizeT" - + "ypeEnum.SizeTypeB\003\340A\002B\240\001\n\033com.google.ads" + + "ypeEnum.SizeTypeB\003\340A\002B\275\001\n\033com.google.ads" + ".admanager.v1B\tSizeProtoP\001Z@google.golan" + "g.org/genproto/googleapis/ads/admanager/" + "v1;admanager\252\002\027Google.Ads.AdManager.V1\312\002" - + "\027Google\\Ads\\AdManager\\V1b\006proto3" + + "\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::" + + "AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeTypeEnumProto.java index 37f010435b4e..2b6efcd71da2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeTypeEnumProto.java @@ -46,12 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TypeEnum\"\203\001\n\010SizeType\022\031\n\025SIZE_TYPE_UNSPE" + "CIFIED\020\000\022\t\n\005PIXEL\020\001\022\020\n\014ASPECT_RATIO\020\002\022\020\n" + "\014INTERSTITIAL\020\003\022\013\n\007IGNORED\020\004\022\n\n\006NATIVE\020\005" - + "\022\t\n\005FLUID\020\006\022\t\n\005AUDIO\020\007B\250\001\n\033com.google.ad" + + "\022\t\n\005FLUID\020\006\022\t\n\005AUDIO\020\007B\305\001\n\033com.google.ad" + "s.admanager.v1B\021SizeTypeEnumProtoP\001Z@goo" + "gle.golang.org/genproto/googleapis/ads/a" + "dmanager/v1;admanager\252\002\027Google.Ads.AdMan" - + "ager.V1\312\002\027Google\\Ads\\AdManager\\V1b\006proto" - + "3" + + "ager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Goog" + + "le::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java index d52b552eaf08..e926ec1337c9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java @@ -57,12 +57,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\003:\225\001\352A\221\001\n)admanager.googleapis.com/Tax" + "onomyCategory\022>networks/{network_code}/t" + "axonomyCategories/{taxonomy_category}*\022t" - + "axonomyCategories2\020taxonomyCategoryB\264\001\n\033" + + "axonomyCategories2\020taxonomyCategoryB\321\001\n\033" + "com.google.ads.admanager.v1B\035TaxonomyCat" + "egoryMessagesProtoP\001Z@google.golang.org/" + "genproto/googleapis/ads/admanager/v1;adm" + "anager\252\002\027Google.Ads.AdManager.V1\312\002\027Googl" - + "e\\Ads\\AdManager\\V1b\006proto3" + + "e\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMana" + + "ger::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java index 2516a54bf85f..fbbfa3da86a8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java @@ -77,12 +77,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.ads.admanager.v1.ListTaxonomyCateg" + "oriesResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{par" + "ent=networks/*}/taxonomyCategories\032\033\312A\030a" - + "dmanager.googleapis.comB\263\001\n\033com.google.a" + + "dmanager.googleapis.comB\320\001\n\033com.google.a" + "ds.admanager.v1B\034TaxonomyCategoryService" + "ProtoP\001Z@google.golang.org/genproto/goog" + "leapis/ads/admanager/v1;admanager\252\002\027Goog" + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" - + "er\\V1b\006proto3" + + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java index 3b145ae58af6..0f22cdc094fc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java @@ -48,12 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_AUDIENCE_1_1\020\003\022\034\n\030TAXONOMY_IAB_CONTENT_" + "2_1\020\004\022\034\n\030TAXONOMY_IAB_CONTENT_2_2\020\006\022\034\n\030T" + "AXONOMY_IAB_CONTENT_3_0\020\005\022(\n$TAXONOMY_GO" - + "OGLE_STRUCTURED_VIDEO_1_0\020\007B\254\001\n\033com.goog" + + "OGLE_STRUCTURED_VIDEO_1_0\020\007B\311\001\n\033com.goog" + "le.ads.admanager.v1B\025TaxonomyTypeEnumPro" + "toP\001Z@google.golang.org/genproto/googlea" + "pis/ads/admanager/v1;admanager\252\002\027Google." + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1b\006proto3" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java index 0bb662ccf02a..84bd5facc8cd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java @@ -47,12 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce.proto\"\206\001\n\004Team\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\024" + "\n\007team_id\030\002 \001(\003B\003\340A\003:U\352AR\n\035admanager.goo" + "gleapis.com/Team\022$networks/{network_code" - + "}/teams/{team}*\005teams2\004teamB\250\001\n\033com.goog" + + "}/teams/{team}*\005teams2\004teamB\305\001\n\033com.goog" + "le.ads.admanager.v1B\021TeamMessagesProtoP\001" + "Z@google.golang.org/genproto/googleapis/" + "ads/admanager/v1;admanager\252\002\027Google.Ads." - + "AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1b\006" - + "proto3" + + "AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002" + + "\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TimeUnitEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TimeUnitEnumProto.java index ef7336f8bc31..43bb49bb50a0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TimeUnitEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TimeUnitEnumProto.java @@ -46,11 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UnitEnum\"|\n\010TimeUnit\022\031\n\025TIME_UNIT_UNSPEC" + "IFIED\020\000\022\n\n\006MINUTE\020\001\022\010\n\004HOUR\020\002\022\007\n\003DAY\020\003\022\010" + "\n\004WEEK\020\004\022\t\n\005MONTH\020\005\022\014\n\010LIFETIME\020\006\022\007\n\003POD" - + "\020\007\022\n\n\006STREAM\020\010B\250\001\n\033com.google.ads.admana" + + "\020\007\022\n\n\006STREAM\020\010B\305\001\n\033com.google.ads.admana" + "ger.v1B\021TimeUnitEnumProtoP\001Z@google.gola" + "ng.org/genproto/googleapis/ads/admanager" + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" - + "\002\027Google\\Ads\\AdManager\\V1b\006proto3" + + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads:" + + ":AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java index b9fede772eb2..2234eda89322 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java @@ -53,11 +53,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031orders_ui_local_time_zone\030\t \001(\tB\003\340A\001:U\352" + "AR\n\035admanager.googleapis.com/User\022$netwo" + "rks/{network_code}/users/{user}*\005users2\004" - + "userB\250\001\n\033com.google.ads.admanager.v1B\021Us" + + "userB\305\001\n\033com.google.ads.admanager.v1B\021Us" + "erMessagesProtoP\001Z@google.golang.org/gen" + "proto/googleapis/ads/admanager/v1;admana" + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" - + "ds\\AdManager\\V1b\006proto3" + + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java index cc2e65255ba6..15142f277b2b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java @@ -52,12 +52,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GetUser\022\'.google.ads.admanager.v1.GetUse" + "rRequest\032\035.google.ads.admanager.v1.User\"" + ",\332A\004name\202\323\344\223\002\037\022\035/v1/{name=networks/*/use" - + "rs/*}\032\033\312A\030admanager.googleapis.comB\247\001\n\033c" + + "rs/*}\032\033\312A\030admanager.googleapis.comB\304\001\n\033c" + "om.google.ads.admanager.v1B\020UserServiceP" + "rotoP\001Z@google.golang.org/genproto/googl" + "eapis/ads/admanager/v1;admanager\252\002\027Googl" + "e.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManage" - + "r\\V1b\006proto3" + + "r\\V1\352\002\032Google::Ads::AdManager::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto index 2cacba173145..e1ca03f32895 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "AdUnitEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [AdUnitStatus][google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto index a9351ed445cb..2cc23bb6b8ee 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto @@ -32,6 +32,7 @@ option java_multiple_files = true; option java_outer_classname = "AdUnitMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The AdUnit resource. message AdUnit { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto index 123a994fbc12..3ca9867235a0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "AdUnitServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling AdUnit objects. service AdUnitService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto index c1ac79d3705d..ebaffa6c24a1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto @@ -24,6 +24,7 @@ option java_multiple_files = true; option java_outer_classname = "AdManagerErrorProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // / AdManagerError contains all the information required for processing a // / particular error thrown by the AdManager API. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto index 4ddb95b584f4..62d6186aae47 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "AppliedLabelProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Represents a Label that can be applied to an entity. message AppliedLabel { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto index b721e91260ce..968ec930fa39 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "CompanyCreditStatusEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [CompanyCreditStatus][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto index faa844b1daf8..fb6a5a32fce7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto @@ -29,6 +29,7 @@ option java_multiple_files = true; option java_outer_classname = "CompanyMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `Company` resource. message Company { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto index 1ad7e0b6035a..fdb39a78cca1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "CompanyServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Company` objects. service CompanyService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto index b406ac8ed6dd..ea73831a3f92 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "CompanyTypeEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [CompanyType][google.ads.admanager.v1.CompanyTypeEnum.CompanyType] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto index 9ad8a1910698..1220cc448dad 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "ContactMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // A contact represents a person who is affiliated with a single company. A // contact can have a variety of contact information associated to it, and can diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto index 6baa2ce9f1e0..e47ca39eabb4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomFieldEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [CustomFieldDataType][google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto index 94b39f733c3e..20992473ce9a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomFieldMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // An additional, user-created field on an entity. message CustomField { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto index 6e365360808e..e120761aca2a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomFieldServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomField` objects. service CustomFieldService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto index 5466c694250f..5647dd4cb818 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomFieldValueProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // A value for a CustomField on a resource. message CustomFieldValue { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto index bf12d187c7c0..b271b5fa6304 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingKeyEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [CustomTargetingKeyStatus][google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto index ade55f6d01db..ad739eac5ef0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingKeyMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `CustomTargetingKey` resource. message CustomTargetingKey { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto index 75e44f78e875..f3cc2cee42bf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingKeyServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomTargetingKey` objects. service CustomTargetingKeyService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto index baa0e69e28b9..9bf5ae56e08e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingValueEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [CustomTargetingValueStatus][google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto index e0cc55994e35..b26fb80dbbf2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingValueMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `CustomTargetingValue` resource. message CustomTargetingValue { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto index 19def4c0c4d3..d7241b8a3dfe 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "CustomTargetingValueServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomTargetingValue` objects. service CustomTargetingValueService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto index 4bba22cac25e..df36b466b0f7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "EntitySignalsMappingMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `EntitySignalsMapping` resource. message EntitySignalsMapping { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto index 90523a7f0cf5..aedbb82e49d4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto @@ -29,6 +29,7 @@ option java_multiple_files = true; option java_outer_classname = "EntitySignalsMappingServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `EntitySignalsMapping` objects. service EntitySignalsMappingService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto index acb30d3d90f9..7180c8ae7c27 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "EnvironmentTypeEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [EnvironmentType][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto index 7b6216a39244..0b999800a2e6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto @@ -24,6 +24,7 @@ option java_multiple_files = true; option java_outer_classname = "FrequencyCapProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Represents a Frequency Cap that can be applied to an entity. message FrequencyCap { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto index 827a2c980a66..a8fdfbd1f675 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "LabelMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // A Label is additional information that can be added to an entity. message Label { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto index 617ef2b619b7..8468264ee7ef 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "NetworkMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The Network resource. message Network { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto index b35a8afd40c6..afc526a96bf2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "NetworkServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling Network objects. service NetworkService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto index fead5dd7584a..fe86328c911a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "OrderEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [OrderStatus][google.ads.admanager.v1.OrderStatusEnum.OrderStatus]. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto index 37e2e1602bd9..7a4df9d3dd59 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto @@ -29,6 +29,7 @@ option java_multiple_files = true; option java_outer_classname = "OrderMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `Order` resource. message Order { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto index 8556397a8ced..455017423144 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "OrderServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Order` objects. service OrderService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto index 75e8213d7d76..5619d71aaf6c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "PlacementEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [PlacementStatus][google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto index 8b305c89c0e8..e02b8cce5e61 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto @@ -27,6 +27,7 @@ option java_multiple_files = true; option java_outer_classname = "PlacementMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `Placement` resource. message Placement { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto index 647db495d049..2bc2b5f98308 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "PlacementServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Placement` objects. service PlacementService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto index dcc86e938b71..6a0cde0189ec 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto @@ -33,6 +33,7 @@ option java_multiple_files = true; option java_outer_classname = "ReportServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for interacting with reports. service ReportService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto index b22c38705b0f..710fb1720611 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "RoleEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [RoleStatus][google.ads.admanager.v1.RoleStatusEnum.RoleStatus] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto index 39fda5d5608c..ae016a13824c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "RoleMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `Role` resource. message Role { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto index f19dbf371ea8..b01b420ba270 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "RoleServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Role` objects. service RoleService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto index 05c39c5cf2d8..47d1eda4a68a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "SizeProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Represents the dimensions of an AdUnit, LineItem, or Creative. message Size { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto index 922bdc1c682e..87066762eab4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "SizeTypeEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for // [SizeType][google.ads.admanager.v1.SizeTypeEnum.SizeType]. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto index aedcecbbbbf1..060594f1e90c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "TaxonomyCategoryMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The `TaxonomyCategory` resource. message TaxonomyCategory { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto index 041b68538875..203fa498f65c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "TaxonomyCategoryServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `TaxonomyCategory` objects. service TaxonomyCategoryService { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto index 2b9b8d76997e..1a8e642c3fb3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "TaxonomyTypeEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper for // [TaxonomyType][google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType] diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto index 2ff0ae4e7907..84d958fa7745 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "TeamMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // A Team defines a grouping of users and what entities they have access to. message Team { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto index 235f421365e4..a453934a2aec 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto @@ -22,6 +22,7 @@ option java_multiple_files = true; option java_outer_classname = "TimeUnitEnumProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for TimeUnit. message TimeUnitEnum { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto index 9df13f4b9988..6922280c4539 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "UserMessagesProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // The User resource. message User { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto index de56e255fc5a..8ff6209679c5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto @@ -28,6 +28,7 @@ option java_multiple_files = true; option java_outer_classname = "UserServiceProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling User objects. service UserService { diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 626dbe1eb0f4..30136637f686 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.41.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json index cd02cea37018..964e6692ca15 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.advisorynotifications.v1.Attachment", "queryAllDeclaredConstructors": true, diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 99470502a925..000000000000 --- a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.advisorynotifications.v1.samples; - -// [START advisorynotifications_v1_generated_AdvisoryNotificationsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient; -import com.google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AdvisoryNotificationsServiceSettings advisoryNotificationsServiceSettings = - AdvisoryNotificationsServiceSettings.newHttpJsonBuilder().build(); - AdvisoryNotificationsServiceClient advisoryNotificationsServiceClient = - AdvisoryNotificationsServiceClient.create(advisoryNotificationsServiceSettings); - } -} -// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_Create_SetCredentialsProvider1_sync] diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateUseHttpJsonTransport.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..46f1877553e4 --- /dev/null +++ b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.advisorynotifications.v1.samples; + +// [START advisorynotifications_v1_generated_AdvisoryNotificationsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient; +import com.google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AdvisoryNotificationsServiceSettings advisoryNotificationsServiceSettings = + AdvisoryNotificationsServiceSettings.newHttpJsonBuilder().build(); + AdvisoryNotificationsServiceClient advisoryNotificationsServiceClient = + AdvisoryNotificationsServiceClient.create(advisoryNotificationsServiceSettings); + } +} +// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_Create_UseHttpJsonTransport_sync] diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 1ad5e18025af..69b4ab724599 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index f2da9daa29df..504698a30794 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.AcceleratorType", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index baa7cb300580..1534a559ad06 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AcceleratorType", "queryAllDeclaredConstructors": true, @@ -14669,6 +14687,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$DefaultRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$DefaultRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$InputArtifact", "queryAllDeclaredConstructors": true, @@ -14687,6 +14723,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$PersistentResourceRuntimeDetail", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$PersistentResourceRuntimeDetail$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PipelineJob$RuntimeConfig$PersistentResourceRuntimeDetail$TaskResourceUnavailableTimeoutBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PipelineJobDetail", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java index 5f7506156c07..de07e9523c74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java @@ -259,44 +259,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.aiplatform.v1.LogprobsResult.Candid" + "ate\"g\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022" + "\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003" - + " \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\302\002\n\016Groundi" + + " \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\336\002\n\016Groundi" + "ngChunk\022=\n\003web\030\001 \001(\0132..google.cloud.aipl" + "atform.v1.GroundingChunk.WebH\000\022X\n\021retrie" + "ved_context\030\002 \001(\0132;.google.cloud.aiplatf" + "orm.v1.GroundingChunk.RetrievedContextH\000" + "\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\t" - + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032J\n\020RetrievedCont" + + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020RetrievedCont" + "ext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001" - + "\001B\006\n\004_uriB\010\n\006_titleB\014\n\nchunk_type\"\225\001\n\020Gr" - + "oundingSupport\0229\n\007segment\030\001 \001(\0132#.google" - + ".cloud.aiplatform.v1.SegmentH\000\210\001\001\022\037\n\027gro" - + "unding_chunk_indices\030\002 \003(\005\022\031\n\021confidence" - + "_scores\030\003 \003(\002B\n\n\010_segment\"\243\003\n\021GroundingM" - + "etadata\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001" - + "\022R\n\022search_entry_point\030\004 \001(\0132,.google.cl" - + "oud.aiplatform.v1.SearchEntryPointB\003\340A\001H" - + "\000\210\001\001\022D\n\020grounding_chunks\030\005 \003(\0132*.google." - + "cloud.aiplatform.v1.GroundingChunk\022M\n\022gr" - + "ounding_supports\030\006 \003(\0132,.google.cloud.ai" - + "platform.v1.GroundingSupportB\003\340A\001\022V\n\022ret" - + "rieval_metadata\030\007 \001(\0132-.google.cloud.aip" - + "latform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001" - + "\001B\025\n\023_search_entry_pointB\025\n\023_retrieval_m" - + "etadata\"H\n\020SearchEntryPoint\022\035\n\020rendered_" - + "content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A" - + "\001\"G\n\021RetrievalMetadata\0222\n%google_search_" - + "dynamic_retrieval_score\030\002 \001(\002B\003\340A\001*\327\001\n\014H" - + "armCategory\022\035\n\031HARM_CATEGORY_UNSPECIFIED" - + "\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HAR" - + "M_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_C" - + "ATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SE" - + "XUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_CIVIC" - + "_INTEGRITY\020\005B\312\001\n\036com.google.cloud.aiplat" - + "form.v1B\014ContentProtoP\001Z>cloud.google.co" - + "m/go/aiplatform/apiv1/aiplatformpb;aipla" - + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "\001\022\021\n\004text\030\003 \001(\tH\002\210\001\001B\006\n\004_uriB\010\n\006_titleB\007" + + "\n\005_textB\014\n\nchunk_type\"\225\001\n\020GroundingSuppo" + + "rt\0229\n\007segment\030\001 \001(\0132#.google.cloud.aipla" + + "tform.v1.SegmentH\000\210\001\001\022\037\n\027grounding_chunk" + + "_indices\030\002 \003(\005\022\031\n\021confidence_scores\030\003 \003(" + + "\002B\n\n\010_segment\"\243\003\n\021GroundingMetadata\022\037\n\022w" + + "eb_search_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_e" + + "ntry_point\030\004 \001(\0132,.google.cloud.aiplatfo" + + "rm.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n\020grou" + + "nding_chunks\030\005 \003(\0132*.google.cloud.aiplat" + + "form.v1.GroundingChunk\022M\n\022grounding_supp" + + "orts\030\006 \003(\0132,.google.cloud.aiplatform.v1." + + "GroundingSupportB\003\340A\001\022V\n\022retrieval_metad" + + "ata\030\007 \001(\0132-.google.cloud.aiplatform.v1.R" + + "etrievalMetadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_search" + + "_entry_pointB\025\n\023_retrieval_metadata\"H\n\020S" + + "earchEntryPoint\022\035\n\020rendered_content\030\001 \001(" + + "\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001\"G\n\021Retriev" + + "alMetadata\0222\n%google_search_dynamic_retr" + + "ieval_score\030\002 \001(\002B\003\340A\001*\327\001\n\014HarmCategory\022" + + "\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_C" + + "ATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGORY_D" + + "ANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_HARA" + + "SSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_EXPLI" + + "CIT\020\004\022!\n\035HARM_CATEGORY_CIVIC_INTEGRITY\020\005" + + "B\312\001\n\036com.google.cloud.aiplatform.v1B\014Con" + + "tentProtoP\001Z>cloud.google.com/go/aiplatf" + + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go" + + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" + + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" + + "m::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -517,7 +518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor, new java.lang.String[] { - "Uri", "Title", + "Uri", "Title", "Text", }); internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java index d7f4e4e3879c..e7972ef41523 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java @@ -1084,6 +1084,43 @@ public interface RetrievedContextOrBuilder * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); } /** * @@ -1107,6 +1144,7 @@ private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder build private RetrievedContext() { uri_ = ""; title_ = ""; + text_ = ""; } @java.lang.Override @@ -1263,6 +1301,72 @@ public com.google.protobuf.ByteString getTitleBytes() { } } + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + 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(); + text_ = s; + return s; + } + } + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1283,6 +1387,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); + } getUnknownFields().writeTo(output); } @@ -1298,6 +1405,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1322,6 +1432,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTitle()) { if (!getTitle().equals(other.getTitle())) return false; } + if (hasText() != other.hasText()) return false; + if (hasText()) { + if (!getText().equals(other.getText())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1341,6 +1455,10 @@ public int hashCode() { hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); } + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1485,6 +1603,7 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; title_ = ""; + text_ = ""; return this; } @@ -1532,6 +1651,10 @@ private void buildPartial0( result.title_ = title_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1595,6 +1718,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.hasText()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1633,6 +1761,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1892,6 +2026,126 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object text_ = ""; + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java index eff4c5bcff3e..caaaf627639c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java @@ -67,11 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Score indicating how likely information from google search could
+   * Optional. Score indicating how likely information from Google Search could
    * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
    * least likely and 1 is the most likely. This score is only populated when
-   * google search grounding and dynamic retrieval is enabled. It will be
-   * compared to the threshold to determine whether to trigger google search.
+   * Google Search grounding and dynamic retrieval is enabled. It will be
+   * compared to the threshold to determine whether to trigger Google Search.
    * 
* * @@ -434,11 +434,11 @@ public Builder mergeFrom( * * *
-     * Optional. Score indicating how likely information from google search could
+     * Optional. Score indicating how likely information from Google Search could
      * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * @@ -455,11 +455,11 @@ public float getGoogleSearchDynamicRetrievalScore() { * * *
-     * Optional. Score indicating how likely information from google search could
+     * Optional. Score indicating how likely information from Google Search could
      * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * @@ -480,11 +480,11 @@ public Builder setGoogleSearchDynamicRetrievalScore(float value) { * * *
-     * Optional. Score indicating how likely information from google search could
+     * Optional. Score indicating how likely information from Google Search could
      * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java index ad77d2d57520..c5ea36bc57b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java @@ -28,11 +28,11 @@ public interface RetrievalMetadataOrBuilder * * *
-   * Optional. Score indicating how likely information from google search could
+   * Optional. Score indicating how likely information from Google Search could
    * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
    * least likely and 1 is the most likely. This score is only populated when
-   * google search grounding and dynamic retrieval is enabled. It will be
-   * compared to the threshold to determine whether to trigger google search.
+   * Google Search grounding and dynamic retrieval is enabled. It will be
+   * compared to the threshold to determine whether to trigger Google Search.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java index 3c37a39234d3..b80580702130 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java @@ -24,7 +24,7 @@ * *
  * Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch} @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -97,7 +97,7 @@ public java.lang.String getDatastore() { * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -283,7 +283,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Retrieve from Vertex AI Search datastore for grounding.
-   * See https://cloud.google.com/vertex-ai-search-and-conversation
+   * See https://cloud.google.com/products/agent-builder
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch} @@ -466,7 +466,7 @@ public Builder mergeFrom( * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -490,7 +490,7 @@ public java.lang.String getDatastore() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -514,7 +514,7 @@ public com.google.protobuf.ByteString getDatastoreBytes() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -537,7 +537,7 @@ public Builder setDatastore(java.lang.String value) { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -556,7 +556,7 @@ public Builder clearDatastore() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java index 010fb78f345f..95a8cfe45896 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java @@ -28,7 +28,7 @@ public interface VertexAISearchOrBuilder * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -42,7 +42,7 @@ public interface VertexAISearchOrBuilder * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index 07c605aef872..f7f4273b06af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -515,6 +515,9 @@ message GroundingChunk { // Title of the attribution. optional string title = 2; + + // Text of the attribution. + optional string text = 3; } // Chunk type. @@ -581,11 +584,11 @@ message SearchEntryPoint { // Metadata related to retrieval in the grounding flow. message RetrievalMetadata { - // Optional. Score indicating how likely information from google search could + // Optional. Score indicating how likely information from Google Search could // help answer the prompt. The score is in the range `[0, 1]`, where 0 is the // least likely and 1 is the most likely. This score is only populated when - // google search grounding and dynamic retrieval is enabled. It will be - // compared to the threshold to determine whether to trigger google search. + // Google Search grounding and dynamic retrieval is enabled. It will be + // compared to the threshold to determine whether to trigger Google Search. float google_search_dynamic_retrieval_score = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index 6c6538916882..3f25c21a804d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -133,9 +133,9 @@ message Retrieval { } // Retrieve from Vertex AI Search datastore for grounding. -// See https://cloud.google.com/vertex-ai-search-and-conversation +// See https://cloud.google.com/products/agent-builder message VertexAISearch { - // Required. Fully-qualified Vertex AI Search's datastore resource ID. + // Required. Fully-qualified Vertex AI Search data store resource ID. // Format: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` string datastore = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java index a32151f31752..c5aaf3de7b75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java @@ -162,7 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014start_offset\030" + "\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n" + "\nend_offset\030\002 \001(\0132\031.google.protobuf.Dura" - + "tionB\003\340A\001\"\332\n\n\020GenerationConfig\022\035\n\013temper" + + "tionB\003\340A\001\"\221\013\n\020GenerationConfig\022\035\n\013temper" + "ature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A" + "\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candi" + "date_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021max_output" @@ -176,133 +176,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n" + "\210\001\001\022a\n\016routing_config\030\021 \001(\0132?.google.clo" + "ud.aiplatform.v1beta1.GenerationConfig.R" - + "outingConfigB\003\340A\001H\013\210\001\001\032\321\004\n\rRoutingConfig" - + "\022d\n\tauto_mode\030\001 \001(\0132O.google.cloud.aipla" - + "tform.v1beta1.GenerationConfig.RoutingCo" - + "nfig.AutoRoutingModeH\000\022h\n\013manual_mode\030\002 " - + "\001(\0132Q.google.cloud.aiplatform.v1beta1.Ge" - + "nerationConfig.RoutingConfig.ManualRouti" - + "ngModeH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n\030model_r" - + "outing_preference\030\001 \001(\0162f.google.cloud.a" - + "iplatform.v1beta1.GenerationConfig.Routi" - + "ngConfig.AutoRoutingMode.ModelRoutingPre" - + "ferenceH\000\210\001\001\"`\n\026ModelRoutingPreference\022\013" - + "\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010B" - + "ALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model" - + "_routing_preference\032;\n\021ManualRoutingMode" - + "\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_name" - + "B\020\n\016routing_configB\016\n\014_temperatureB\010\n\006_t" - + "op_pB\010\n\006_top_kB\022\n\020_candidate_countB\024\n\022_m" - + "ax_output_tokensB\024\n\022_response_logprobsB\013" - + "\n\t_logprobsB\023\n\021_presence_penaltyB\024\n\022_fre" - + "quency_penaltyB\007\n\005_seedB\022\n\020_response_sch" - + "emaB\021\n\017_routing_config\"\372\003\n\rSafetySetting" - + "\022D\n\010category\030\001 \001(\0162-.google.cloud.aiplat" - + "form.v1beta1.HarmCategoryB\003\340A\002\022Y\n\tthresh" - + "old\030\002 \001(\0162A.google.cloud.aiplatform.v1be" - + "ta1.SafetySetting.HarmBlockThresholdB\003\340A" - + "\002\022S\n\006method\030\004 \001(\0162>.google.cloud.aiplatf" - + "orm.v1beta1.SafetySetting.HarmBlockMetho" - + "dB\003\340A\001\"\235\001\n\022HarmBlockThreshold\022$\n HARM_BL" - + "OCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW" - + "_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002" - + "\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n" - + "\003OFF\020\005\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_" - + "METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PR" - + "OBABILITY\020\002\"\316\004\n\014SafetyRating\022D\n\010category" - + "\030\001 \001(\0162-.google.cloud.aiplatform.v1beta1" - + ".HarmCategoryB\003\340A\003\022W\n\013probability\030\002 \001(\0162" - + "=.google.cloud.aiplatform.v1beta1.Safety" - + "Rating.HarmProbabilityB\003\340A\003\022\036\n\021probabili" - + "ty_score\030\005 \001(\002B\003\340A\003\022Q\n\010severity\030\006 \001(\0162:." - + "google.cloud.aiplatform.v1beta1.SafetyRa" - + "ting.HarmSeverityB\003\340A\003\022\033\n\016severity_score" - + "\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 \001(\010B\003\340A\003\"b\n\017Har" - + "mProbability\022 \n\034HARM_PROBABILITY_UNSPECI" - + "FIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIU" - + "M\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_S" - + "EVERITY_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY_N" - + "EGLIGIBLE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024HA" - + "RM_SEVERITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_HI" - + "GH\020\004\"U\n\020CitationMetadata\022A\n\tcitations\030\001 " - + "\003(\0132).google.cloud.aiplatform.v1beta1.Ci" - + "tationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start_index\030" - + "\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003\340A\003\022\020\n\003ur" - + "i\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007lice" - + "nse\030\005 \001(\tB\003\340A\003\0220\n\020publication_date\030\006 \001(\013" - + "2\021.google.type.DateB\003\340A\003\"\206\006\n\tCandidate\022\022" - + "\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007content\030\002 \001(\0132(.go" - + "ogle.cloud.aiplatform.v1beta1.ContentB\003\340" - + "A\003\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n\017logprob" - + "s_result\030\n \001(\0132/.google.cloud.aiplatform" - + ".v1beta1.LogprobsResultB\003\340A\003\022S\n\rfinish_r" - + "eason\030\003 \001(\01627.google.cloud.aiplatform.v1" - + "beta1.Candidate.FinishReasonB\003\340A\003\022J\n\016saf" - + "ety_ratings\030\004 \003(\0132-.google.cloud.aiplatf" - + "orm.v1beta1.SafetyRatingB\003\340A\003\022 \n\016finish_" - + "message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_meta" - + "data\030\006 \001(\01321.google.cloud.aiplatform.v1b" - + "eta1.CitationMetadataB\003\340A\003\022S\n\022grounding_" - + "metadata\030\007 \001(\01322.google.cloud.aiplatform" - + ".v1beta1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fini" - + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022" - + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n" - + "\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022" - + "\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MAL" - + "FORMED_FUNCTION_CALL\020\tB\021\n\017_finish_messag" - + "e\"\236\003\n\016LogprobsResult\022U\n\016top_candidates\030\001" - + " \003(\0132=.google.cloud.aiplatform.v1beta1.L" - + "ogprobsResult.TopCandidates\022T\n\021chosen_ca" - + "ndidates\030\002 \003(\01329.google.cloud.aiplatform" - + ".v1beta1.LogprobsResult.Candidate\032\177\n\tCan" - + "didate\022\022\n\005token\030\001 \001(\tH\000\210\001\001\022\025\n\010token_id\030\003" - + " \001(\005H\001\210\001\001\022\034\n\017log_probability\030\002 \001(\002H\002\210\001\001B" - + "\010\n\006_tokenB\013\n\t_token_idB\022\n\020_log_probabili" - + "ty\032^\n\rTopCandidates\022M\n\ncandidates\030\001 \003(\0132" - + "9.google.cloud.aiplatform.v1beta1.Logpro" - + "bsResult.Candidate\"g\n\007Segment\022\027\n\npart_in" - + "dex\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003" - + "\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003" - + "\340A\003\"\314\002\n\016GroundingChunk\022B\n\003web\030\001 \001(\01323.go" - + "ogle.cloud.aiplatform.v1beta1.GroundingC" - + "hunk.WebH\000\022]\n\021retrieved_context\030\002 \001(\0132@." - + "google.cloud.aiplatform.v1beta1.Groundin" - + "gChunk.RetrievedContextH\000\032=\n\003Web\022\020\n\003uri\030" - + "\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010" - + "\n\006_title\032J\n\020RetrievedContext\022\020\n\003uri\030\001 \001(" - + "\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_t" - + "itleB\014\n\nchunk_type\"\232\001\n\020GroundingSupport\022" - + ">\n\007segment\030\001 \001(\0132(.google.cloud.aiplatfo" - + "rm.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding_chu" - + "nk_indices\030\002 \003(\005\022\031\n\021confidence_scores\030\003 " - + "\003(\002B\n\n\010_segment\"\327\003\n\021GroundingMetadata\022\037\n" - + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n\022search" - + "_entry_point\030\004 \001(\01321.google.cloud.aiplat" - + "form.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022" - + "\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020groun" - + "ding_chunks\030\005 \003(\0132/.google.cloud.aiplatf" - + "orm.v1beta1.GroundingChunk\022R\n\022grounding_" - + "supports\030\006 \003(\01321.google.cloud.aiplatform" - + ".v1beta1.GroundingSupportB\003\340A\001\022[\n\022retrie" - + "val_metadata\030\007 \001(\01322.google.cloud.aiplat" - + "form.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001" - + "\210\001\001B\025\n\023_search_entry_pointB\025\n\023_retrieval" - + "_metadata\"H\n\020SearchEntryPoint\022\035\n\020rendere" - + "d_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003" - + "\340A\001\"G\n\021RetrievalMetadata\0222\n%google_searc" - + "h_dynamic_retrieval_score\030\002 \001(\002B\003\340A\001*\327\001\n" - + "\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPECIFI" - + "ED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037H" - + "ARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM" - + "_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_" - + "SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_CIV" - + "IC_INTEGRITY\020\005B\343\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\014ContentProtoP\001ZCcloud.go" - + "ogle.com/go/aiplatform/apiv1beta1/aiplat" - + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "outingConfigB\003\340A\001H\013\210\001\001\022!\n\017audio_timestam" + + "p\030\024 \001(\010B\003\340A\001H\014\210\001\001\032\321\004\n\rRoutingConfig\022d\n\ta" + + "uto_mode\030\001 \001(\0132O.google.cloud.aiplatform" + + ".v1beta1.GenerationConfig.RoutingConfig." + + "AutoRoutingModeH\000\022h\n\013manual_mode\030\002 \001(\0132Q" + + ".google.cloud.aiplatform.v1beta1.Generat" + + "ionConfig.RoutingConfig.ManualRoutingMod" + + "eH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n\030model_routin" + + "g_preference\030\001 \001(\0162f.google.cloud.aiplat" + + "form.v1beta1.GenerationConfig.RoutingCon" + + "fig.AutoRoutingMode.ModelRoutingPreferen" + + "ceH\000\210\001\001\"`\n\026ModelRoutingPreference\022\013\n\007UNK" + + "NOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010BALANC" + + "ED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model_rout" + + "ing_preference\032;\n\021ManualRoutingMode\022\027\n\nm" + + "odel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_nameB\020\n\016r" + + "outing_configB\016\n\014_temperatureB\010\n\006_top_pB" + + "\010\n\006_top_kB\022\n\020_candidate_countB\024\n\022_max_ou" + + "tput_tokensB\024\n\022_response_logprobsB\013\n\t_lo" + + "gprobsB\023\n\021_presence_penaltyB\024\n\022_frequenc" + + "y_penaltyB\007\n\005_seedB\022\n\020_response_schemaB\021" + + "\n\017_routing_configB\022\n\020_audio_timestamp\"\372\003" + + "\n\rSafetySetting\022D\n\010category\030\001 \001(\0162-.goog" + + "le.cloud.aiplatform.v1beta1.HarmCategory" + + "B\003\340A\002\022Y\n\tthreshold\030\002 \001(\0162A.google.cloud." + + "aiplatform.v1beta1.SafetySetting.HarmBlo" + + "ckThresholdB\003\340A\002\022S\n\006method\030\004 \001(\0162>.googl" + + "e.cloud.aiplatform.v1beta1.SafetySetting" + + ".HarmBlockMethodB\003\340A\001\"\235\001\n\022HarmBlockThres" + + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED" + + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED" + + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" + + "BLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockMethod" + + "\022!\n\035HARM_BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010S" + + "EVERITY\020\001\022\017\n\013PROBABILITY\020\002\"\316\004\n\014SafetyRat" + + "ing\022D\n\010category\030\001 \001(\0162-.google.cloud.aip" + + "latform.v1beta1.HarmCategoryB\003\340A\003\022W\n\013pro" + + "bability\030\002 \001(\0162=.google.cloud.aiplatform" + + ".v1beta1.SafetyRating.HarmProbabilityB\003\340" + + "A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022Q\n\010se" + + "verity\030\006 \001(\0162:.google.cloud.aiplatform.v" + + "1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + + "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 " + + "\001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PROB" + + "ABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n" + + "\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSev" + + "erity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n\030" + + "HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVER" + + "ITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022H" + + "ARM_SEVERITY_HIGH\020\004\"U\n\020CitationMetadata\022" + + "A\n\tcitations\030\001 \003(\0132).google.cloud.aiplat" + + "form.v1beta1.CitationB\003\340A\003\"\252\001\n\010Citation\022" + + "\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002" + + " \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001" + + "(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publica" + + "tion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"" + + "\206\006\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007con" + + "tent\030\002 \001(\0132(.google.cloud.aiplatform.v1b" + + "eta1.ContentB\003\340A\003\022\031\n\014avg_logprobs\030\t \001(\001B" + + "\003\340A\003\022M\n\017logprobs_result\030\n \001(\0132/.google.c" + + "loud.aiplatform.v1beta1.LogprobsResultB\003" + + "\340A\003\022S\n\rfinish_reason\030\003 \001(\01627.google.clou" + + "d.aiplatform.v1beta1.Candidate.FinishRea" + + "sonB\003\340A\003\022J\n\016safety_ratings\030\004 \003(\0132-.googl" + + "e.cloud.aiplatform.v1beta1.SafetyRatingB" + + "\003\340A\003\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q" + + "\n\021citation_metadata\030\006 \001(\01321.google.cloud" + + ".aiplatform.v1beta1.CitationMetadataB\003\340A" + + "\003\022S\n\022grounding_metadata\030\007 \001(\01322.google.c" + + "loud.aiplatform.v1beta1.GroundingMetadat" + + "aB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINISH_REASON" + + "_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002" + + "\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005\022" + + "\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010" + + "\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTION_CALL\020\tB\021\n" + + "\017_finish_message\"\236\003\n\016LogprobsResult\022U\n\016t" + + "op_candidates\030\001 \003(\0132=.google.cloud.aipla" + + "tform.v1beta1.LogprobsResult.TopCandidat" + + "es\022T\n\021chosen_candidates\030\002 \003(\01329.google.c" + + "loud.aiplatform.v1beta1.LogprobsResult.C" + + "andidate\032\177\n\tCandidate\022\022\n\005token\030\001 \001(\tH\000\210\001" + + "\001\022\025\n\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n\017log_probabil" + + "ity\030\002 \001(\002H\002\210\001\001B\010\n\006_tokenB\013\n\t_token_idB\022\n" + + "\020_log_probability\032^\n\rTopCandidates\022M\n\nca" + + "ndidates\030\001 \003(\01329.google.cloud.aiplatform" + + ".v1beta1.LogprobsResult.Candidate\"g\n\007Seg" + + "ment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013start_i" + + "ndex\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022" + + "\021\n\004text\030\004 \001(\tB\003\340A\003\"\350\002\n\016GroundingChunk\022B\n" + + "\003web\030\001 \001(\01323.google.cloud.aiplatform.v1b" + + "eta1.GroundingChunk.WebH\000\022]\n\021retrieved_c" + + "ontext\030\002 \001(\0132@.google.cloud.aiplatform.v" + + "1beta1.GroundingChunk.RetrievedContextH\000" + + "\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\t" + + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020RetrievedCont" + + "ext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001" + + "\001\022\021\n\004text\030\003 \001(\tH\002\210\001\001B\006\n\004_uriB\010\n\006_titleB\007" + + "\n\005_textB\014\n\nchunk_type\"\232\001\n\020GroundingSuppo" + + "rt\022>\n\007segment\030\001 \001(\0132(.google.cloud.aipla" + + "tform.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding_" + + "chunk_indices\030\002 \003(\005\022\031\n\021confidence_scores" + + "\030\003 \003(\002B\n\n\010_segment\"\327\003\n\021GroundingMetadata" + + "\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n\022sea" + + "rch_entry_point\030\004 \001(\01321.google.cloud.aip" + + "latform.v1beta1.SearchEntryPointB\003\340A\001H\000\210" + + "\001\001\022\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020gr" + + "ounding_chunks\030\005 \003(\0132/.google.cloud.aipl" + + "atform.v1beta1.GroundingChunk\022R\n\022groundi" + + "ng_supports\030\006 \003(\01321.google.cloud.aiplatf" + + "orm.v1beta1.GroundingSupportB\003\340A\001\022[\n\022ret" + + "rieval_metadata\030\007 \001(\01322.google.cloud.aip" + + "latform.v1beta1.RetrievalMetadataB\006\340A\001\340A" + + "\003H\001\210\001\001B\025\n\023_search_entry_pointB\025\n\023_retrie" + + "val_metadata\"H\n\020SearchEntryPoint\022\035\n\020rend" + + "ered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(" + + "\014B\003\340A\001\"G\n\021RetrievalMetadata\0222\n%google_se" + + "arch_dynamic_retrieval_score\030\002 \001(\002B\003\340A\001*" + + "\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPEC" + + "IFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#" + + "\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030H" + + "ARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGO" + + "RY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_" + + "CIVIC_INTEGRITY\020\005B\343\001\n#com.google.cloud.a" + + "iplatform.v1beta1B\014ContentProtoP\001ZCcloud" + + ".google.com/go/aiplatform/apiv1beta1/aip" + + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI" + + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" + + "V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -381,6 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResponseMimeType", "ResponseSchema", "RoutingConfig", + "AudioTimestamp", }); internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_RoutingConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor @@ -522,7 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor, new java.lang.String[] { - "Uri", "Title", + "Uri", "Title", "Text", }); internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index 5e394765568c..16002b464d6f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -78,87 +78,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032(google/cloud/aiplatform/v1beta1/i" + "o.proto\032/google/cloud/aiplatform/v1beta1" + "/job_state.proto\0327google/cloud/aiplatfor" - + "m/v1beta1/machine_resources.proto\032\036googl" - + "e/protobuf/duration.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\"\262\007\n\tCustomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014" - + "display_name\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(" - + "\0132..google.cloud.aiplatform.v1beta1.Cust" - + "omJobSpecB\003\340A\002\022=\n\005state\030\005 \001(\0162).google.c" - + "loud.aiplatform.v1beta1.JobStateB\003\340A\003\0224\n" - + "\013create_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\t \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022&\n\005error\030\n \001(\0132\022.google.rpc.St" - + "atusB\003\340A\003\022F\n\006labels\030\013 \003(\01326.google.cloud" - + ".aiplatform.v1beta1.CustomJob.LabelsEntr" - + "y\022H\n\017encryption_spec\030\014 \001(\0132/.google.clou" - + "d.aiplatform.v1beta1.EncryptionSpec\022[\n\017w" - + "eb_access_uris\030\020 \003(\0132=.google.cloud.aipl" - + "atform.v1beta1.CustomJob.WebAccessUrisEn" - + "tryB\003\340A\003\022\032\n\rsatisfies_pzs\030\022 \001(\010B\003\340A\003\022\032\n\r" - + "satisfies_pzi\030\023 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022WebAc" - + "cessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:i\352Af\n#aiplatform.googleapis.com/Cu" - + "stomJob\022?projects/{project}/locations/{l" - + "ocation}/customJobs/{custom_job}\"\247\006\n\rCus" - + "tomJobSpec\022T\n\026persistent_resource_id\030\016 \001" - + "(\tB4\340A\001\372A.\n,aiplatform.googleapis.com/Pe" - + "rsistentResource\022O\n\021worker_pool_specs\030\001 " - + "\003(\0132/.google.cloud.aiplatform.v1beta1.Wo" - + "rkerPoolSpecB\003\340A\002\022?\n\nscheduling\030\003 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.Scheduli" - + "ng\022\027\n\017service_account\030\004 \001(\t\0227\n\007network\030\005" - + " \001(\tB&\340A\001\372A \n\036compute.googleapis.com/Net" - + "work\022\037\n\022reserved_ip_ranges\030\r \003(\tB\003\340A\001\022N\n" - + "\025base_output_directory\030\006 \001(\0132/.google.cl" - + "oud.aiplatform.v1beta1.GcsDestination\022&\n" - + "\036protected_artifact_location_id\030\023 \001(\t\022B\n" - + "\013tensorboard\030\007 \001(\tB-\340A\001\372A\'\n%aiplatform.g" - + "oogleapis.com/Tensorboard\022\036\n\021enable_web_" - + "access\030\n \001(\010B\003\340A\001\022$\n\027enable_dashboard_ac" - + "cess\030\020 \001(\010B\003\340A\001\022=\n\nexperiment\030\021 \001(\tB)\340A\001" - + "\372A#\n!aiplatform.googleapis.com/Context\022A" - + "\n\016experiment_run\030\022 \001(\tB)\340A\001\372A#\n!aiplatfo" - + "rm.googleapis.com/Context\0227\n\006models\030\024 \003(" - + "\tB\'\340A\001\372A!\n\037aiplatform.googleapis.com/Mod" - + "el\"\237\003\n\016WorkerPoolSpec\022H\n\016container_spec\030" - + "\006 \001(\0132..google.cloud.aiplatform.v1beta1." - + "ContainerSpecH\000\022Q\n\023python_package_spec\030\007" - + " \001(\01322.google.cloud.aiplatform.v1beta1.P" - + "ythonPackageSpecH\000\022J\n\014machine_spec\030\001 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.Machi" - + "neSpecB\006\340A\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340" - + "A\001\022B\n\nnfs_mounts\030\004 \003(\0132).google.cloud.ai" - + "platform.v1beta1.NfsMountB\003\340A\001\022<\n\tdisk_s" - + "pec\030\005 \001(\0132).google.cloud.aiplatform.v1be" - + "ta1.DiskSpecB\006\n\004task\"|\n\rContainerSpec\022\026\n" - + "\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014" - + "\n\004args\030\003 \003(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud" - + ".aiplatform.v1beta1.EnvVar\"\257\001\n\021PythonPac" - + "kageSpec\022\037\n\022executor_image_uri\030\001 \001(\tB\003\340A" - + "\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_m" - + "odule\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 " - + "\003(\0132\'.google.cloud.aiplatform.v1beta1.En" - + "vVar\"\370\002\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\022%\n\035restart_job_o" - + "n_worker_restart\030\003 \001(\010\022K\n\010strategy\030\004 \001(\016" - + "24.google.cloud.aiplatform.v1beta1.Sched" - + "uling.StrategyB\003\340A\001\022\034\n\017disable_retries\030\005" - + " \001(\010B\003\340A\001\0229\n\021max_wait_duration\030\006 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001\"q\n\010Strategy" - + "\022\030\n\024STRATEGY_UNSPECIFIED\020\000\022\021\n\tON_DEMAND\020" - + "\001\032\002\010\001\022\020\n\010LOW_COST\020\002\032\002\010\001\022\014\n\010STANDARD\020\003\022\010\n" - + "\004SPOT\020\004\022\016\n\nFLEX_START\020\006B\345\001\n#com.google.c" - + "loud.aiplatform.v1beta1B\016CustomJobProtoP" - + "\001ZCcloud.google.com/go/aiplatform/apiv1b" - + "eta1/aiplatformpb;aiplatformpb\252\002\037Google." - + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" - + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" - + "atform::V1beta1b\006proto3" + + "m/v1beta1/machine_resources.proto\0328googl" + + "e/cloud/aiplatform/v1beta1/service_netwo" + + "rking.proto\032\036google/protobuf/duration.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\027go" + + "ogle/rpc/status.proto\"\262\007\n\tCustomJob\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A" + + "\002\022E\n\010job_spec\030\004 \001(\0132..google.cloud.aipla" + + "tform.v1beta1.CustomJobSpecB\003\340A\002\022=\n\005stat" + + "e\030\005 \001(\0162).google.cloud.aiplatform.v1beta" + + "1.JobStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0223\n\nstart_t" + + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0221\n\010end_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022&\n\005error\030\n \001" + + "(\0132\022.google.rpc.StatusB\003\340A\003\022F\n\006labels\030\013 " + + "\003(\01326.google.cloud.aiplatform.v1beta1.Cu" + + "stomJob.LabelsEntry\022H\n\017encryption_spec\030\014" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.E" + + "ncryptionSpec\022[\n\017web_access_uris\030\020 \003(\0132=" + + ".google.cloud.aiplatform.v1beta1.CustomJ" + + "ob.WebAccessUrisEntryB\003\340A\003\022\032\n\rsatisfies_" + + "pzs\030\022 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\023 \001(\010B\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform" + + ".googleapis.com/CustomJob\022?projects/{pro" + + "ject}/locations/{location}/customJobs/{c" + + "ustom_job}\"\377\006\n\rCustomJobSpec\022T\n\026persiste" + + "nt_resource_id\030\016 \001(\tB4\340A\001\372A.\n,aiplatform" + + ".googleapis.com/PersistentResource\022O\n\021wo" + + "rker_pool_specs\030\001 \003(\0132/.google.cloud.aip" + + "latform.v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\ns" + + "cheduling\030\003 \001(\0132+.google.cloud.aiplatfor" + + "m.v1beta1.Scheduling\022\027\n\017service_account\030" + + "\004 \001(\t\0227\n\007network\030\005 \001(\tB&\340A\001\372A \n\036compute." + + "googleapis.com/Network\022\037\n\022reserved_ip_ra" + + "nges\030\r \003(\tB\003\340A\001\022V\n\024psc_interface_config\030" + + "\025 \001(\01323.google.cloud.aiplatform.v1beta1." + + "PscInterfaceConfigB\003\340A\001\022N\n\025base_output_d" + + "irectory\030\006 \001(\0132/.google.cloud.aiplatform" + + ".v1beta1.GcsDestination\022&\n\036protected_art" + + "ifact_location_id\030\023 \001(\t\022B\n\013tensorboard\030\007" + + " \001(\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/" + + "Tensorboard\022\036\n\021enable_web_access\030\n \001(\010B\003" + + "\340A\001\022$\n\027enable_dashboard_access\030\020 \001(\010B\003\340A" + + "\001\022=\n\nexperiment\030\021 \001(\tB)\340A\001\372A#\n!aiplatfor" + + "m.googleapis.com/Context\022A\n\016experiment_r" + + "un\030\022 \001(\tB)\340A\001\372A#\n!aiplatform.googleapis." + + "com/Context\0227\n\006models\030\024 \003(\tB\'\340A\001\372A!\n\037aip" + + "latform.googleapis.com/Model\"\237\003\n\016WorkerP" + + "oolSpec\022H\n\016container_spec\030\006 \001(\0132..google" + + ".cloud.aiplatform.v1beta1.ContainerSpecH" + + "\000\022Q\n\023python_package_spec\030\007 \001(\01322.google." + + "cloud.aiplatform.v1beta1.PythonPackageSp" + + "ecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google.clou" + + "d.aiplatform.v1beta1.MachineSpecB\006\340A\001\340A\005" + + "\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_moun" + + "ts\030\004 \003(\0132).google.cloud.aiplatform.v1bet" + + "a1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132).go" + + "ogle.cloud.aiplatform.v1beta1.DiskSpecB\006" + + "\n\004task\"|\n\rContainerSpec\022\026\n\timage_uri\030\001 \001" + + "(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\0224" + + "\n\003env\030\004 \003(\0132\'.google.cloud.aiplatform.v1" + + "beta1.EnvVar\"\257\001\n\021PythonPackageSpec\022\037\n\022ex" + + "ecutor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_u" + + "ris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(\tB\003\340" + + "A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.google.c" + + "loud.aiplatform.v1beta1.EnvVar\"\370\002\n\nSched" + + "uling\022*\n\007timeout\030\001 \001(\0132\031.google.protobuf" + + ".Duration\022%\n\035restart_job_on_worker_resta" + + "rt\030\003 \001(\010\022K\n\010strategy\030\004 \001(\01624.google.clou" + + "d.aiplatform.v1beta1.Scheduling.Strategy" + + "B\003\340A\001\022\034\n\017disable_retries\030\005 \001(\010B\003\340A\001\0229\n\021m" + + "ax_wait_duration\030\006 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\"q\n\010Strategy\022\030\n\024STRATEGY_U" + + "NSPECIFIED\020\000\022\021\n\tON_DEMAND\020\001\032\002\010\001\022\020\n\010LOW_C" + + "OST\020\002\032\002\010\001\022\014\n\010STANDARD\020\003\022\010\n\004SPOT\020\004\022\016\n\nFLE" + + "X_START\020\006B\345\001\n#com.google.cloud.aiplatfor" + + "m.v1beta1B\016CustomJobProtoP\001ZCcloud.googl" + + "e.com/go/aiplatform/apiv1beta1/aiplatfor" + + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -171,6 +175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -228,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccount", "Network", "ReservedIpRanges", + "PscInterfaceConfig", "BaseOutputDirectory", "ProtectedArtifactLocationId", "Tensorboard", @@ -293,6 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java index 9a558db464f1..3152f3c33965 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java @@ -513,6 +513,63 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { return reservedIpRanges_.getByteString(index); } + public static final int PSC_INTERFACE_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_; + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + @java.lang.Override + public boolean hasPscInterfaceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder + getPscInterfaceConfigOrBuilder() { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + public static final int BASE_OUTPUT_DIRECTORY_FIELD_NUMBER = 6; private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_; /** @@ -548,7 +605,7 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { */ @java.lang.Override public boolean hasBaseOutputDirectory() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1061,7 +1118,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getBaseOutputDirectory()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) { @@ -1091,6 +1148,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < models_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, models_.getRaw(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(21, getPscInterfaceConfig()); + } getUnknownFields().writeTo(output); } @@ -1112,7 +1172,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBaseOutputDirectory()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) { @@ -1154,6 +1214,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getModelsList().size(); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPscInterfaceConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1179,6 +1242,10 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNetwork().equals(other.getNetwork())) return false; if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false; + if (hasPscInterfaceConfig() != other.hasPscInterfaceConfig()) return false; + if (hasPscInterfaceConfig()) { + if (!getPscInterfaceConfig().equals(other.getPscInterfaceConfig())) return false; + } if (hasBaseOutputDirectory() != other.hasBaseOutputDirectory()) return false; if (hasBaseOutputDirectory()) { if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false; @@ -1220,6 +1287,10 @@ public int hashCode() { hash = (37 * hash) + RESERVED_IP_RANGES_FIELD_NUMBER; hash = (53 * hash) + getReservedIpRangesList().hashCode(); } + if (hasPscInterfaceConfig()) { + hash = (37 * hash) + PSC_INTERFACE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfig().hashCode(); + } if (hasBaseOutputDirectory()) { hash = (37 * hash) + BASE_OUTPUT_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getBaseOutputDirectory().hashCode(); @@ -1382,6 +1453,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWorkerPoolSpecsFieldBuilder(); getSchedulingFieldBuilder(); + getPscInterfaceConfigFieldBuilder(); getBaseOutputDirectoryFieldBuilder(); } } @@ -1406,6 +1478,11 @@ public Builder clear() { serviceAccount_ = ""; network_ = ""; reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscInterfaceConfig_ = null; + if (pscInterfaceConfigBuilder_ != null) { + pscInterfaceConfigBuilder_.dispose(); + pscInterfaceConfigBuilder_ = null; + } baseOutputDirectory_ = null; if (baseOutputDirectoryBuilder_ != null) { baseOutputDirectoryBuilder_.dispose(); @@ -1487,31 +1564,38 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomJobSpec res result.reservedIpRanges_ = reservedIpRanges_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscInterfaceConfig_ = + pscInterfaceConfigBuilder_ == null + ? pscInterfaceConfig_ + : pscInterfaceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.baseOutputDirectory_ = baseOutputDirectoryBuilder_ == null ? baseOutputDirectory_ : baseOutputDirectoryBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.protectedArtifactLocationId_ = protectedArtifactLocationId_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.tensorboard_ = tensorboard_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.enableWebAccess_ = enableWebAccess_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.enableDashboardAccess_ = enableDashboardAccess_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.experiment_ = experiment_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.experimentRun_ = experimentRun_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { models_.makeImmutable(); result.models_ = models_; } @@ -1619,17 +1703,20 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other } onChanged(); } + if (other.hasPscInterfaceConfig()) { + mergePscInterfaceConfig(other.getPscInterfaceConfig()); + } if (other.hasBaseOutputDirectory()) { mergeBaseOutputDirectory(other.getBaseOutputDirectory()); } if (!other.getProtectedArtifactLocationId().isEmpty()) { protectedArtifactLocationId_ = other.protectedArtifactLocationId_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.getEnableWebAccess() != false) { @@ -1640,18 +1727,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other } if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.getExperimentRun().isEmpty()) { experimentRun_ = other.experimentRun_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.models_.isEmpty()) { if (models_.isEmpty()) { models_ = other.models_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } else { ensureModelsIsMutable(); models_.addAll(other.models_); @@ -1720,19 +1807,19 @@ public Builder mergeFrom( { input.readMessage( getBaseOutputDirectoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: { tensorboard_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 80: { enableWebAccess_ = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 80 case 106: @@ -1751,25 +1838,25 @@ public Builder mergeFrom( case 128: { enableDashboardAccess_ = input.readBool(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 128 case 138: { experiment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 138 case 146: { experimentRun_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 146 case 154: { protectedArtifactLocationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 154 case 162: @@ -1779,6 +1866,13 @@ public Builder mergeFrom( models_.add(s); break; } // case 162 + case 170: + { + input.readMessage( + getPscInterfaceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3112,6 +3206,215 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder> + pscInterfaceConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + public boolean hasPscInterfaceConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() { + if (pscInterfaceConfigBuilder_ == null) { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } else { + return pscInterfaceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) { + if (pscInterfaceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInterfaceConfig_ = value; + } else { + pscInterfaceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigBuilder_ == null) { + pscInterfaceConfig_ = builderForValue.build(); + } else { + pscInterfaceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) { + if (pscInterfaceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && pscInterfaceConfig_ != null + && pscInterfaceConfig_ + != com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()) { + getPscInterfaceConfigBuilder().mergeFrom(value); + } else { + pscInterfaceConfig_ = value; + } + } else { + pscInterfaceConfigBuilder_.mergeFrom(value); + } + if (pscInterfaceConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscInterfaceConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + pscInterfaceConfig_ = null; + if (pscInterfaceConfigBuilder_ != null) { + pscInterfaceConfigBuilder_.dispose(); + pscInterfaceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder + getPscInterfaceConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getPscInterfaceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder + getPscInterfaceConfigOrBuilder() { + if (pscInterfaceConfigBuilder_ != null) { + return pscInterfaceConfigBuilder_.getMessageOrBuilder(); + } else { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for CustomJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigFieldBuilder() { + if (pscInterfaceConfigBuilder_ == null) { + pscInterfaceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder>( + getPscInterfaceConfig(), getParentForChildren(), isClean()); + pscInterfaceConfig_ = null; + } + return pscInterfaceConfigBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, @@ -3150,7 +3453,7 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { * @return Whether the baseOutputDirectory field is set. */ public boolean hasBaseOutputDirectory() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3231,7 +3534,7 @@ public Builder setBaseOutputDirectory( } else { baseOutputDirectoryBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3271,7 +3574,7 @@ public Builder setBaseOutputDirectory( } else { baseOutputDirectoryBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3307,7 +3610,7 @@ public Builder setBaseOutputDirectory( public Builder mergeBaseOutputDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (baseOutputDirectoryBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && baseOutputDirectory_ != null && baseOutputDirectory_ != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { @@ -3319,7 +3622,7 @@ public Builder mergeBaseOutputDirectory( baseOutputDirectoryBuilder_.mergeFrom(value); } if (baseOutputDirectory_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3354,7 +3657,7 @@ public Builder mergeBaseOutputDirectory( * .google.cloud.aiplatform.v1beta1.GcsDestination base_output_directory = 6; */ public Builder clearBaseOutputDirectory() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); baseOutputDirectory_ = null; if (baseOutputDirectoryBuilder_ != null) { baseOutputDirectoryBuilder_.dispose(); @@ -3394,7 +3697,7 @@ public Builder clearBaseOutputDirectory() { */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getBaseOutputDirectoryBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getBaseOutputDirectoryFieldBuilder().getBuilder(); } @@ -3554,7 +3857,7 @@ public Builder setProtectedArtifactLocationId(java.lang.String value) { throw new NullPointerException(); } protectedArtifactLocationId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3574,7 +3877,7 @@ public Builder setProtectedArtifactLocationId(java.lang.String value) { */ public Builder clearProtectedArtifactLocationId() { protectedArtifactLocationId_ = getDefaultInstance().getProtectedArtifactLocationId(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3599,7 +3902,7 @@ public Builder setProtectedArtifactLocationIdBytes(com.google.protobuf.ByteStrin } checkByteStringIsUtf8(value); protectedArtifactLocationId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3681,7 +3984,7 @@ public Builder setTensorboard(java.lang.String value) { throw new NullPointerException(); } tensorboard_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3703,7 +4006,7 @@ public Builder setTensorboard(java.lang.String value) { */ public Builder clearTensorboard() { tensorboard_ = getDefaultInstance().getTensorboard(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3730,7 +4033,7 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tensorboard_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3786,7 +4089,7 @@ public boolean getEnableWebAccess() { public Builder setEnableWebAccess(boolean value) { enableWebAccess_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3812,7 +4115,7 @@ public Builder setEnableWebAccess(boolean value) { * @return This builder for chaining. */ public Builder clearEnableWebAccess() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); enableWebAccess_ = false; onChanged(); return this; @@ -3867,7 +4170,7 @@ public boolean getEnableDashboardAccess() { public Builder setEnableDashboardAccess(boolean value) { enableDashboardAccess_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3892,7 +4195,7 @@ public Builder setEnableDashboardAccess(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDashboardAccess() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); enableDashboardAccess_ = false; onChanged(); return this; @@ -3972,7 +4275,7 @@ public Builder setExperiment(java.lang.String value) { throw new NullPointerException(); } experiment_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3993,7 +4296,7 @@ public Builder setExperiment(java.lang.String value) { */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4019,7 +4322,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experiment_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4098,7 +4401,7 @@ public Builder setExperimentRun(java.lang.String value) { throw new NullPointerException(); } experimentRun_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4119,7 +4422,7 @@ public Builder setExperimentRun(java.lang.String value) { */ public Builder clearExperimentRun() { experimentRun_ = getDefaultInstance().getExperimentRun(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4145,7 +4448,7 @@ public Builder setExperimentRunBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experimentRun_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4157,7 +4460,7 @@ private void ensureModelsIsMutable() { if (!models_.isModifiable()) { models_ = new com.google.protobuf.LazyStringArrayList(models_); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } /** * @@ -4307,7 +4610,7 @@ public Builder setModels(int index, java.lang.String value) { } ensureModelsIsMutable(); models_.set(index, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4343,7 +4646,7 @@ public Builder addModels(java.lang.String value) { } ensureModelsIsMutable(); models_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4376,7 +4679,7 @@ public Builder addModels(java.lang.String value) { public Builder addAllModels(java.lang.Iterable values) { ensureModelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, models_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4407,7 +4710,7 @@ public Builder addAllModels(java.lang.Iterable values) { */ public Builder clearModels() { models_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); ; onChanged(); return this; @@ -4445,7 +4748,7 @@ public Builder addModelsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureModelsIsMutable(); models_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java index feae7ceb1e39..7507e66422e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java @@ -338,6 +338,47 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr */ com.google.protobuf.ByteString getReservedIpRangesBytes(int index); + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + boolean hasPscInterfaceConfig(); + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig(); + /** + * + * + *
+   * Optional. Configuration for PSC-I for CustomJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder getPscInterfaceConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java index d5da9004aa5a..61c9d5755fb4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java @@ -3711,6 +3711,41 @@ public com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig getRou : routingConfig_; } + public static final int AUDIO_TIMESTAMP_FIELD_NUMBER = 20; + private boolean audioTimestamp_ = false; + /** + * + * + *
+   * Optional. If enabled, audio timestamp will be included in the request to
+   * the model.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+   * Optional. If enabled, audio timestamp will be included in the request to
+   * the model.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3767,6 +3802,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(18, responseLogprobs_); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeBool(20, audioTimestamp_); + } getUnknownFields().writeTo(output); } @@ -3823,6 +3861,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_); } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3894,6 +3935,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRoutingConfig()) { if (!getRoutingConfig().equals(other.getRoutingConfig())) return false; } + if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false; + if (hasAudioTimestamp()) { + if (getAudioTimestamp() != other.getAudioTimestamp()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3959,6 +4004,10 @@ public int hashCode() { hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRoutingConfig().hashCode(); } + if (hasAudioTimestamp()) { + hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4130,6 +4179,7 @@ public Builder clear() { routingConfigBuilder_.dispose(); routingConfigBuilder_ = null; } + audioTimestamp_ = false; return this; } @@ -4224,6 +4274,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.audioTimestamp_ = audioTimestamp_; + to_bitField0_ |= 0x00001000; + } result.bitField0_ |= to_bitField0_; } @@ -4324,6 +4378,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot if (other.hasRoutingConfig()) { mergeRoutingConfig(other.getRoutingConfig()); } + if (other.hasAudioTimestamp()) { + setAudioTimestamp(other.getAudioTimestamp()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4435,6 +4492,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 144 + case 160: + { + audioTimestamp_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5915,6 +5978,78 @@ public Builder clearRoutingConfig() { return routingConfigBuilder_; } + private boolean audioTimestamp_; + /** + * + * + *
+     * Optional. If enabled, audio timestamp will be included in the request to
+     * the model.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Optional. If enabled, audio timestamp will be included in the request to
+     * the model.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + /** + * + * + *
+     * Optional. If enabled, audio timestamp will be included in the request to
+     * the model.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audioTimestamp to set. + * @return This builder for chaining. + */ + public Builder setAudioTimestamp(boolean value) { + + audioTimestamp_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If enabled, audio timestamp will be included in the request to
+     * the model.
+     * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudioTimestamp() { + bitField0_ = (bitField0_ & ~0x00004000); + audioTimestamp_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java index 03594a4b9b5f..d0ca0215e1ac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java @@ -462,4 +462,31 @@ public interface GenerationConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder(); + + /** + * + * + *
+   * Optional. If enabled, audio timestamp will be included in the request to
+   * the model.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + boolean hasAudioTimestamp(); + /** + * + * + *
+   * Optional. If enabled, audio timestamp will be included in the request to
+   * the model.
+   * 
+ * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + boolean getAudioTimestamp(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java index 14b5c8fcbbcc..506099c80c59 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java @@ -1085,6 +1085,43 @@ public interface RetrievedContextOrBuilder * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); } /** * @@ -1108,6 +1145,7 @@ private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder build private RetrievedContext() { uri_ = ""; title_ = ""; + text_ = ""; } @java.lang.Override @@ -1264,6 +1302,72 @@ public com.google.protobuf.ByteString getTitleBytes() { } } + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + 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(); + text_ = s; + return s; + } + } + /** + * + * + *
+     * Text of the attribution.
+     * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1284,6 +1388,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); + } getUnknownFields().writeTo(output); } @@ -1299,6 +1406,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1323,6 +1433,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTitle()) { if (!getTitle().equals(other.getTitle())) return false; } + if (hasText() != other.hasText()) return false; + if (hasText()) { + if (!getText().equals(other.getText())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1342,6 +1456,10 @@ public int hashCode() { hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); } + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1488,6 +1606,7 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; title_ = ""; + text_ = ""; return this; } @@ -1536,6 +1655,10 @@ private void buildPartial0( result.title_ = title_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1600,6 +1723,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.hasText()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1638,6 +1766,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1897,6 +2031,126 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object text_ = ""; + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Text of the attribution.
+       * 
+ * + * optional string text = 3; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index a7f0f71955a2..c3600bf21640 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -40,6 +40,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -142,7 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "line_spec.proto\032+google/cloud/aiplatform" + "/v1beta1/value.proto\032\034google/protobuf/st" + "ruct.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\027google/rpc/status.proto\"\313\021\n\013Pipelin" + + "oto\032\027google/rpc/status.proto\"\240\027\n\013Pipelin" + "eJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030" + "\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.google.prot" + "obuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132" @@ -175,7 +183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "al_pipeline_job_id\030\035 \001(\003B\003\340A\001\022b\n\033pipelin" + "e_task_rerun_configs\030\036 \003(\01328.google.clou" + "d.aiplatform.v1beta1.PipelineTaskRerunCo" - + "nfigB\003\340A\001\032\226\006\n\rRuntimeConfig\022b\n\nparameter" + + "nfigB\003\340A\001\032\353\013\n\rRuntimeConfig\022b\n\nparameter" + "s\030\001 \003(\0132J.google.cloud.aiplatform.v1beta" + "1.PipelineJob.RuntimeConfig.ParametersEn" + "tryB\002\030\001\022!\n\024gcs_output_directory\030\002 \001(\tB\003\340" @@ -186,106 +194,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1beta1.PipelineFailurePolicy\022g\n\017input_a" + "rtifacts\030\005 \003(\0132N.google.cloud.aiplatform" + ".v1beta1.PipelineJob.RuntimeConfig.Input" - + "ArtifactsEntry\032.\n\rInputArtifact\022\025\n\013artif" - + "act_id\030\001 \001(\tH\000B\006\n\004kind\032Y\n\017ParametersEntr" - + "y\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.c" - + "loud.aiplatform.v1beta1.Value:\0028\001\032N\n\024Par" - + "ameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030" - + "\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177\n\023Inp" - + "utArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005value\030\002" - + " \001(\0132H.google.cloud.aiplatform.v1beta1.P" - + "ipelineJob.RuntimeConfig.InputArtifact:\002" - + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleapis.co" - + "m/PipelineJob\022Cprojects/{project}/locati" - + "ons/{location}/pipelineJobs/{pipeline_jo" - + "b}\"+\n\030PipelineTemplateMetadata\022\017\n\007versio" - + "n\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pipelin" - + "e_context\030\001 \001(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_run_c" - + "ontext\030\002 \001(\0132(.google.cloud.aiplatform.v" - + "1beta1.ContextB\003\340A\003\022N\n\014task_details\030\003 \003(" - + "\01323.google.cloud.aiplatform.v1beta1.Pipe" - + "lineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTaskDeta" - + "il\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_" - + "id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y\n\017e" - + "xecutor_detail\030\006 \001(\0132;.google.cloud.aipl" - + "atform.v1beta1.PipelineTaskExecutorDetai" - + "lB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cloud.aip" - + "latform.v1beta1.PipelineTaskDetail.State" - + "B\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.cloud." - + "aiplatform.v1beta1.ExecutionB\003\340A\003\022&\n\005err" - + "or\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i\n\024pip" - + "eline_task_status\030\r \003(\0132F.google.cloud.a" - + "iplatform.v1beta1.PipelineTaskDetail.Pip" - + "elineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(\0132?.g" - + "oogle.cloud.aiplatform.v1beta1.PipelineT" - + "askDetail.InputsEntryB\003\340A\003\022V\n\007outputs\030\013 " - + "\003(\0132@.google.cloud.aiplatform.v1beta1.Pi" - + "pelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001\n\022P" - + "ipelineTaskStatus\0224\n\013update_time\030\001 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022M\n\005state" - + "\030\002 \001(\01629.google.cloud.aiplatform.v1beta1" - + ".PipelineTaskDetail.StateB\003\340A\003\022&\n\005error\030" - + "\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014Artifa" - + "ctList\022A\n\tartifacts\030\001 \003(\0132).google.cloud" - + ".aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n\013Inp" - + "utsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.g" - + "oogle.cloud.aiplatform.v1beta1.PipelineT" - + "askDetail.ArtifactList:\0028\001\032p\n\014OutputsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.google." - + "cloud.aiplatform.v1beta1.PipelineTaskDet" - + "ail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" - + "\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCA" - + "NCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n" - + "\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032Pipeli" - + "neTaskExecutorDetail\022l\n\020container_detail" - + "\030\001 \001(\0132K.google.cloud.aiplatform.v1beta1" - + ".PipelineTaskExecutorDetail.ContainerDet" - + "ailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001(\0132K." - + "google.cloud.aiplatform.v1beta1.Pipeline" - + "TaskExecutorDetail.CustomJobDetailB\003\340A\003H" - + "\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001 \001(\tB" - + "+\340A\003\372A%\n#aiplatform.googleapis.com/Custo" - + "mJob\022J\n\025pre_caching_check_job\030\002 \001(\tB+\340A\003" - + "\372A%\n#aiplatform.googleapis.com/CustomJob" - + "\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035faile" - + "d_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003\032e\n\017C" - + "ustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aip" - + "latform.googleapis.com/CustomJob\022\030\n\013fail" - + "ed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007details\"\344\005\n\027Pipeli" - + "neTaskRerunConfig\022\024\n\007task_id\030\001 \001(\003B\003\340A\001\022" - + "\026\n\ttask_name\030\002 \001(\tB\003\340A\001\022T\n\006inputs\030\003 \001(\0132" - + "?.google.cloud.aiplatform.v1beta1.Pipeli" - + "neTaskRerunConfig.InputsB\003\340A\001\022\026\n\tskip_ta" - + "sk\030\004 \001(\010B\003\340A\001\022\"\n\025skip_downstream_tasks\030\005" - + " \001(\010B\003\340A\001\032X\n\014ArtifactList\022H\n\tartifacts\030\001" - + " \003(\01320.google.cloud.aiplatform.v1beta1.R" - + "untimeArtifactB\003\340A\001\032\256\003\n\006Inputs\022f\n\tartifa" - + "cts\030\001 \003(\0132N.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskRerunConfig.Inputs.Artif" - + "actsEntryB\003\340A\001\022s\n\020parameter_values\030\002 \003(\013" - + "2T.google.cloud.aiplatform.v1beta1.Pipel" - + "ineTaskRerunConfig.Inputs.ParameterValue" - + "sEntryB\003\340A\001\032w\n\016ArtifactsEntry\022\013\n\003key\030\001 \001" - + "(\t\022T\n\005value\030\002 \001(\0132E.google.cloud.aiplatf" - + "orm.v1beta1.PipelineTaskRerunConfig.Arti" - + "factList:\0028\001\032N\n\024ParameterValuesEntry\022\013\n\003" - + "key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protob" - + "uf.Value:\0028\001B\260\002\n#com.google.cloud.aiplat" - + "form.v1beta1B\010PipelineP\001ZCcloud.google.c" - + "om/go/aiplatform/apiv1beta1/aiplatformpb" - + ";aiplatformpb\252\002\037Google.Cloud.AIPlatform." - + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" - + "1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A" - + "N\n\036compute.googleapis.com/Network\022,proje" - + "cts/{project}/global/networks/{network}b" - + "\006proto3" + + "ArtifactsEntry\022g\n\017default_runtime\030\006 \001(\0132" + + "I.google.cloud.aiplatform.v1beta1.Pipeli" + + "neJob.RuntimeConfig.DefaultRuntimeB\003\340A\001\032" + + ".\n\rInputArtifact\022\025\n\013artifact_id\030\001 \001(\tH\000B" + + "\006\n\004kind\032\271\003\n\037PersistentResourceRuntimeDet" + + "ail\022 \n\030persistent_resource_name\030\001 \001(\t\022.\n" + + "&task_resource_unavailable_wait_time_ms\030" + + "\002 \001(\003\022\266\001\n*task_resource_unavailable_time" + + "out_behavior\030\003 \001(\0162\201\001.google.cloud.aipla" + + "tform.v1beta1.PipelineJob.RuntimeConfig." + + "PersistentResourceRuntimeDetail.TaskReso" + + "urceUnavailableTimeoutBehavior\"\212\001\n&TaskR" + + "esourceUnavailableTimeoutBehavior\022:\n6TAS" + + "K_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\010\n\004FAIL\020\001\022\032\n\026FALL_BACK_TO_" + + "ON_DEMAND\020\002\032\255\001\n\016DefaultRuntime\022\210\001\n\"persi" + + "stent_resource_runtime_detail\030\001 \001(\0132Z.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineJo" + + "b.RuntimeConfig.PersistentResourceRuntim" + + "eDetailH\000B\020\n\016runtime_detail\032Y\n\017Parameter" + + "sEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.goo" + + "gle.cloud.aiplatform.v1beta1.Value:\0028\001\032N" + + "\n\024ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005v" + + "alue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177" + + "\n\023InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005va" + + "lue\030\002 \001(\0132H.google.cloud.aiplatform.v1be" + + "ta1.PipelineJob.RuntimeConfig.InputArtif" + + "act:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleap" + + "is.com/PipelineJob\022Cprojects/{project}/l" + + "ocations/{location}/pipelineJobs/{pipeli" + + "ne_job}\"+\n\030PipelineTemplateMetadata\022\017\n\007v" + + "ersion\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pi" + + "peline_context\030\001 \001(\0132(.google.cloud.aipl" + + "atform.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_" + + "run_context\030\002 \001(\0132(.google.cloud.aiplatf" + + "orm.v1beta1.ContextB\003\340A\003\022N\n\014task_details" + + "\030\003 \003(\01323.google.cloud.aiplatform.v1beta1" + + ".PipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTas" + + "kDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_" + + "task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340" + + "A\003\0224\n\013create_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022Y\n\017executor_detail\030\006 \001(\0132;.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskExecutor" + + "DetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.clou" + + "d.aiplatform.v1beta1.PipelineTaskDetail." + + "StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.c" + + "loud.aiplatform.v1beta1.ExecutionB\003\340A\003\022&" + + "\n\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i" + + "\n\024pipeline_task_status\030\r \003(\0132F.google.cl" + + "oud.aiplatform.v1beta1.PipelineTaskDetai" + + "l.PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(" + + "\0132?.google.cloud.aiplatform.v1beta1.Pipe" + + "lineTaskDetail.InputsEntryB\003\340A\003\022V\n\007outpu" + + "ts\030\013 \003(\0132@.google.cloud.aiplatform.v1bet" + + "a1.PipelineTaskDetail.OutputsEntryB\003\340A\003\032" + + "\301\001\n\022PipelineTaskStatus\0224\n\013update_time\030\001 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\005" + + "state\030\002 \001(\01629.google.cloud.aiplatform.v1" + + "beta1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005e" + + "rror\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014A" + + "rtifactList\022A\n\tartifacts\030\001 \003(\0132).google." + + "cloud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o" + + "\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(" + + "\0132@.google.cloud.aiplatform.v1beta1.Pipe" + + "lineTaskDetail.ArtifactList:\0028\001\032p\n\014Outpu" + + "tsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineTa" + + "skDetail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022" + + "\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED" + + "\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032P" + + "ipelineTaskExecutorDetail\022l\n\020container_d" + + "etail\030\001 \001(\0132K.google.cloud.aiplatform.v1" + + "beta1.PipelineTaskExecutorDetail.Contain" + + "erDetailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001" + + "(\0132K.google.cloud.aiplatform.v1beta1.Pip" + + "elineTaskExecutorDetail.CustomJobDetailB" + + "\003\340A\003H\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001" + + " \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/" + + "CustomJob\022J\n\025pre_caching_check_job\030\002 \001(\t" + + "B+\340A\003\372A%\n#aiplatform.googleapis.com/Cust" + + "omJob\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035" + + "failed_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003" + + "\032e\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%" + + "\n#aiplatform.googleapis.com/CustomJob\022\030\n" + + "\013failed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007details\"\344\005\n\027P" + + "ipelineTaskRerunConfig\022\024\n\007task_id\030\001 \001(\003B" + + "\003\340A\001\022\026\n\ttask_name\030\002 \001(\tB\003\340A\001\022T\n\006inputs\030\003" + + " \001(\0132?.google.cloud.aiplatform.v1beta1.P" + + "ipelineTaskRerunConfig.InputsB\003\340A\001\022\026\n\tsk" + + "ip_task\030\004 \001(\010B\003\340A\001\022\"\n\025skip_downstream_ta" + + "sks\030\005 \001(\010B\003\340A\001\032X\n\014ArtifactList\022H\n\tartifa" + + "cts\030\001 \003(\01320.google.cloud.aiplatform.v1be" + + "ta1.RuntimeArtifactB\003\340A\001\032\256\003\n\006Inputs\022f\n\ta" + + "rtifacts\030\001 \003(\0132N.google.cloud.aiplatform" + + ".v1beta1.PipelineTaskRerunConfig.Inputs." + + "ArtifactsEntryB\003\340A\001\022s\n\020parameter_values\030" + + "\002 \003(\0132T.google.cloud.aiplatform.v1beta1." + + "PipelineTaskRerunConfig.Inputs.Parameter" + + "ValuesEntryB\003\340A\001\032w\n\016ArtifactsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022T\n\005value\030\002 \001(\0132E.google.cloud.ai" + + "platform.v1beta1.PipelineTaskRerunConfig" + + ".ArtifactList:\0028\001\032N\n\024ParameterValuesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p" + + "rotobuf.Value:\0028\001B\260\002\n#com.google.cloud.a" + + "iplatform.v1beta1B\010PipelineP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1\352AN\n\036compute.googleapis.com/Network\022," + + "projects/{project}/global/networks/{netw" + + "ork}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -351,6 +377,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ParameterValues", "FailurePolicy", "InputArtifacts", + "DefaultRuntime", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor @@ -362,10 +389,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ArtifactId", "Kind", }); - internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor, + new java.lang.String[] { + "PersistentResourceName", + "TaskResourceUnavailableWaitTimeMs", + "TaskResourceUnavailableTimeoutBehavior", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor, + new java.lang.String[] { + "PersistentResourceRuntimeDetail", "RuntimeDetail", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor, @@ -375,7 +424,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor .getNestedTypes() - .get(2); + .get(4); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_descriptor, @@ -385,7 +434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor .getNestedTypes() - .get(3); + .get(5); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index d392b2412aac..793be1c65a84 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -436,6 +436,58 @@ com.google.protobuf.Value getParameterValuesOrDefault( */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact getInputArtifactsOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultRuntime field is set. + */ + boolean hasDefaultRuntime(); + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultRuntime. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + getDefaultRuntime(); + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder + getDefaultRuntimeOrBuilder(); } /** * @@ -1216,84 +1268,2312 @@ public com.google.protobuf.ByteString getArtifactIdBytes() { if (kindCase_ == 1) { kind_ = b; } - return b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Artifact resource id from MLMD. Which is the last portion of an
+         * artifact resource name:
+         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+         * The artifact must stay within the same project, location and default
+         * metadatastore as the pipeline.
+         * 
+ * + * string artifact_id = 1; + * + * @param value The artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kindCase_ = 1; + kind_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Artifact resource id from MLMD. Which is the last portion of an
+         * artifact resource name:
+         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+         * The artifact must stay within the same project, location and default
+         * metadatastore as the pipeline.
+         * 
+ * + * string artifact_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearArtifactId() { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Artifact resource id from MLMD. Which is the last portion of an
+         * artifact resource name:
+         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+         * The artifact must stay within the same project, location and default
+         * metadatastore as the pipeline.
+         * 
+ * + * string artifact_id = 1; + * + * @param value The bytes for artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kindCase_ = 1; + kind_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .InputArtifact + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputArtifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PersistentResourceRuntimeDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Persistent resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+       * 
+ * + * string persistent_resource_name = 1; + * + * @return The persistentResourceName. + */ + java.lang.String getPersistentResourceName(); + /** + * + * + *
+       * Persistent resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+       * 
+ * + * string persistent_resource_name = 1; + * + * @return The bytes for persistentResourceName. + */ + com.google.protobuf.ByteString getPersistentResourceNameBytes(); + + /** + * + * + *
+       * The max time a pipeline task waits for the required CPU, memory, or
+       * accelerator resource to become available from the specified persistent
+       * resource. Default wait time is 0.
+       * 
+ * + * int64 task_resource_unavailable_wait_time_ms = 2; + * + * @return The taskResourceUnavailableWaitTimeMs. + */ + long getTaskResourceUnavailableWaitTimeMs(); + + /** + * + * + *
+       * Specifies the behavior to take if the timeout is reached.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior. + */ + int getTaskResourceUnavailableTimeoutBehaviorValue(); + /** + * + * + *
+       * Specifies the behavior to take if the timeout is reached.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The taskResourceUnavailableTimeoutBehavior. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail + .TaskResourceUnavailableTimeoutBehavior + getTaskResourceUnavailableTimeoutBehavior(); + } + /** + * + * + *
+     * Persistent resource based runtime detail. For more information, refer to
+     * https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail} + */ + public static final class PersistentResourceRuntimeDetail + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail) + PersistentResourceRuntimeDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersistentResourceRuntimeDetail.newBuilder() to construct. + private PersistentResourceRuntimeDetail( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersistentResourceRuntimeDetail() { + persistentResourceName_ = ""; + taskResourceUnavailableTimeoutBehavior_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersistentResourceRuntimeDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder.class); + } + + /** + * + * + *
+       * An enum that specifies the behavior to take if the timeout is reached.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior} + */ + public enum TaskResourceUnavailableTimeoutBehavior + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified. Behavior is same as `FAIL`.
+         * 
+ * + * TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0; + */ + TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
+         * Fail the task if the timeout is reached.
+         * 
+ * + * FAIL = 1; + */ + FAIL(1), + /** + * + * + *
+         * Fall back to on-demand execution if the timeout is reached.
+         * 
+ * + * FALL_BACK_TO_ON_DEMAND = 2; + */ + FALL_BACK_TO_ON_DEMAND(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Unspecified. Behavior is same as `FAIL`.
+         * 
+ * + * TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Fail the task if the timeout is reached.
+         * 
+ * + * FAIL = 1; + */ + public static final int FAIL_VALUE = 1; + /** + * + * + *
+         * Fall back to on-demand execution if the timeout is reached.
+         * 
+ * + * FALL_BACK_TO_ON_DEMAND = 2; + */ + public static final int FALL_BACK_TO_ON_DEMAND_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 TaskResourceUnavailableTimeoutBehavior 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 TaskResourceUnavailableTimeoutBehavior forNumber(int value) { + switch (value) { + case 0: + return TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED; + case 1: + return FAIL; + case 2: + return FALL_BACK_TO_ON_DEMAND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap< + TaskResourceUnavailableTimeoutBehavior> + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + TaskResourceUnavailableTimeoutBehavior> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap< + TaskResourceUnavailableTimeoutBehavior>() { + public TaskResourceUnavailableTimeoutBehavior findValueByNumber(int number) { + return TaskResourceUnavailableTimeoutBehavior.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TaskResourceUnavailableTimeoutBehavior[] VALUES = values(); + + public static TaskResourceUnavailableTimeoutBehavior 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 TaskResourceUnavailableTimeoutBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior) + } + + public static final int PERSISTENT_RESOURCE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object persistentResourceName_ = ""; + /** + * + * + *
+       * Persistent resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+       * 
+ * + * string persistent_resource_name = 1; + * + * @return The persistentResourceName. + */ + @java.lang.Override + public java.lang.String getPersistentResourceName() { + java.lang.Object ref = persistentResourceName_; + 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(); + persistentResourceName_ = s; + return s; + } + } + /** + * + * + *
+       * Persistent resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+       * 
+ * + * string persistent_resource_name = 1; + * + * @return The bytes for persistentResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPersistentResourceNameBytes() { + java.lang.Object ref = persistentResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + persistentResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_RESOURCE_UNAVAILABLE_WAIT_TIME_MS_FIELD_NUMBER = 2; + private long taskResourceUnavailableWaitTimeMs_ = 0L; + /** + * + * + *
+       * The max time a pipeline task waits for the required CPU, memory, or
+       * accelerator resource to become available from the specified persistent
+       * resource. Default wait time is 0.
+       * 
+ * + * int64 task_resource_unavailable_wait_time_ms = 2; + * + * @return The taskResourceUnavailableWaitTimeMs. + */ + @java.lang.Override + public long getTaskResourceUnavailableWaitTimeMs() { + return taskResourceUnavailableWaitTimeMs_; + } + + public static final int TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER = 3; + private int taskResourceUnavailableTimeoutBehavior_ = 0; + /** + * + * + *
+       * Specifies the behavior to take if the timeout is reached.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior. + */ + @java.lang.Override + public int getTaskResourceUnavailableTimeoutBehaviorValue() { + return taskResourceUnavailableTimeoutBehavior_; + } + /** + * + * + *
+       * Specifies the behavior to take if the timeout is reached.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The taskResourceUnavailableTimeoutBehavior. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + getTaskResourceUnavailableTimeoutBehavior() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + result = + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + .forNumber(taskResourceUnavailableTimeoutBehavior_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistentResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, persistentResourceName_); + } + if (taskResourceUnavailableWaitTimeMs_ != 0L) { + output.writeInt64(2, taskResourceUnavailableWaitTimeMs_); + } + if (taskResourceUnavailableTimeoutBehavior_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + .TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, taskResourceUnavailableTimeoutBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistentResourceName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, persistentResourceName_); + } + if (taskResourceUnavailableWaitTimeMs_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, taskResourceUnavailableWaitTimeMs_); + } + if (taskResourceUnavailableTimeoutBehavior_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + .TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, taskResourceUnavailableTimeoutBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + other = + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + obj; + + if (!getPersistentResourceName().equals(other.getPersistentResourceName())) return false; + if (getTaskResourceUnavailableWaitTimeMs() != other.getTaskResourceUnavailableWaitTimeMs()) + return false; + if (taskResourceUnavailableTimeoutBehavior_ + != other.taskResourceUnavailableTimeoutBehavior_) 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) + PERSISTENT_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPersistentResourceName().hashCode(); + hash = (37 * hash) + TASK_RESOURCE_UNAVAILABLE_WAIT_TIME_MS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(getTaskResourceUnavailableWaitTimeMs()); + hash = (37 * hash) + TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + taskResourceUnavailableTimeoutBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Persistent resource based runtime detail. For more information, refer to
+       * https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail) + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + persistentResourceName_ = ""; + taskResourceUnavailableWaitTimeMs_ = 0L; + taskResourceUnavailableTimeoutBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + build() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + result = + new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.persistentResourceName_ = persistentResourceName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.taskResourceUnavailableWaitTimeMs_ = taskResourceUnavailableWaitTimeMs_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.taskResourceUnavailableTimeoutBehavior_ = + taskResourceUnavailableTimeoutBehavior_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance()) return this; + if (!other.getPersistentResourceName().isEmpty()) { + persistentResourceName_ = other.persistentResourceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTaskResourceUnavailableWaitTimeMs() != 0L) { + setTaskResourceUnavailableWaitTimeMs(other.getTaskResourceUnavailableWaitTimeMs()); + } + if (other.taskResourceUnavailableTimeoutBehavior_ != 0) { + setTaskResourceUnavailableTimeoutBehaviorValue( + other.getTaskResourceUnavailableTimeoutBehaviorValue()); + } + 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: + { + persistentResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + taskResourceUnavailableWaitTimeMs_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + taskResourceUnavailableTimeoutBehavior_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object persistentResourceName_ = ""; + /** + * + * + *
+         * Persistent resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+         * 
+ * + * string persistent_resource_name = 1; + * + * @return The persistentResourceName. + */ + public java.lang.String getPersistentResourceName() { + java.lang.Object ref = persistentResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + persistentResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Persistent resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+         * 
+ * + * string persistent_resource_name = 1; + * + * @return The bytes for persistentResourceName. + */ + public com.google.protobuf.ByteString getPersistentResourceNameBytes() { + java.lang.Object ref = persistentResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + persistentResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Persistent resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+         * 
+ * + * string persistent_resource_name = 1; + * + * @param value The persistentResourceName to set. + * @return This builder for chaining. + */ + public Builder setPersistentResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + persistentResourceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Persistent resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+         * 
+ * + * string persistent_resource_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearPersistentResourceName() { + persistentResourceName_ = getDefaultInstance().getPersistentResourceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Persistent resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+         * 
+ * + * string persistent_resource_name = 1; + * + * @param value The bytes for persistentResourceName to set. + * @return This builder for chaining. + */ + public Builder setPersistentResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + persistentResourceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long taskResourceUnavailableWaitTimeMs_; + /** + * + * + *
+         * The max time a pipeline task waits for the required CPU, memory, or
+         * accelerator resource to become available from the specified persistent
+         * resource. Default wait time is 0.
+         * 
+ * + * int64 task_resource_unavailable_wait_time_ms = 2; + * + * @return The taskResourceUnavailableWaitTimeMs. + */ + @java.lang.Override + public long getTaskResourceUnavailableWaitTimeMs() { + return taskResourceUnavailableWaitTimeMs_; + } + /** + * + * + *
+         * The max time a pipeline task waits for the required CPU, memory, or
+         * accelerator resource to become available from the specified persistent
+         * resource. Default wait time is 0.
+         * 
+ * + * int64 task_resource_unavailable_wait_time_ms = 2; + * + * @param value The taskResourceUnavailableWaitTimeMs to set. + * @return This builder for chaining. + */ + public Builder setTaskResourceUnavailableWaitTimeMs(long value) { + + taskResourceUnavailableWaitTimeMs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The max time a pipeline task waits for the required CPU, memory, or
+         * accelerator resource to become available from the specified persistent
+         * resource. Default wait time is 0.
+         * 
+ * + * int64 task_resource_unavailable_wait_time_ms = 2; + * + * @return This builder for chaining. + */ + public Builder clearTaskResourceUnavailableWaitTimeMs() { + bitField0_ = (bitField0_ & ~0x00000002); + taskResourceUnavailableWaitTimeMs_ = 0L; + onChanged(); + return this; + } + + private int taskResourceUnavailableTimeoutBehavior_ = 0; + /** + * + * + *
+         * Specifies the behavior to take if the timeout is reached.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior. + */ + @java.lang.Override + public int getTaskResourceUnavailableTimeoutBehaviorValue() { + return taskResourceUnavailableTimeoutBehavior_; + } + /** + * + * + *
+         * Specifies the behavior to take if the timeout is reached.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @param value The enum numeric value on the wire for + * taskResourceUnavailableTimeoutBehavior to set. + * @return This builder for chaining. + */ + public Builder setTaskResourceUnavailableTimeoutBehaviorValue(int value) { + taskResourceUnavailableTimeoutBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Specifies the behavior to take if the timeout is reached.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return The taskResourceUnavailableTimeoutBehavior. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + getTaskResourceUnavailableTimeoutBehavior() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + result = + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + .forNumber(taskResourceUnavailableTimeoutBehavior_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + .UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Specifies the behavior to take if the timeout is reached.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @param value The taskResourceUnavailableTimeoutBehavior to set. + * @return This builder for chaining. + */ + public Builder setTaskResourceUnavailableTimeoutBehavior( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + taskResourceUnavailableTimeoutBehavior_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Specifies the behavior to take if the timeout is reached.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearTaskResourceUnavailableTimeoutBehavior() { + bitField0_ = (bitField0_ & ~0x00000004); + taskResourceUnavailableTimeoutBehavior_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail) + private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail(); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentResourceRuntimeDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DefaultRuntimeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return Whether the persistentResourceRuntimeDetail field is set. + */ + boolean hasPersistentResourceRuntimeDetail(); + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return The persistentResourceRuntimeDetail. + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail + getPersistentResourceRuntimeDetail(); + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder + getPersistentResourceRuntimeDetailOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.RuntimeDetailCase + getRuntimeDetailCase(); + } + /** + * + * + *
+     * The default runtime for the PipelineJob.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime} + */ + public static final class DefaultRuntime extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) + DefaultRuntimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultRuntime.newBuilder() to construct. + private DefaultRuntime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultRuntime() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultRuntime(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder + .class); + } + + private int runtimeDetailCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object runtimeDetail_; + + public enum RuntimeDetailCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PERSISTENT_RESOURCE_RUNTIME_DETAIL(1), + RUNTIMEDETAIL_NOT_SET(0); + private final int value; + + private RuntimeDetailCase(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 RuntimeDetailCase valueOf(int value) { + return forNumber(value); + } + + public static RuntimeDetailCase forNumber(int value) { + switch (value) { + case 1: + return PERSISTENT_RESOURCE_RUNTIME_DETAIL; + case 0: + return RUNTIMEDETAIL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuntimeDetailCase getRuntimeDetailCase() { + return RuntimeDetailCase.forNumber(runtimeDetailCase_); + } + + public static final int PERSISTENT_RESOURCE_RUNTIME_DETAIL_FIELD_NUMBER = 1; + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return Whether the persistentResourceRuntimeDetail field is set. + */ + @java.lang.Override + public boolean hasPersistentResourceRuntimeDetail() { + return runtimeDetailCase_ == 1; + } + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return The persistentResourceRuntimeDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + getPersistentResourceRuntimeDetail() { + if (runtimeDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } + /** + * + * + *
+       * Persistent resource based runtime detail.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder + getPersistentResourceRuntimeDetailOrBuilder() { + if (runtimeDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (runtimeDetailCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runtimeDetailCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime other = + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) obj; + + if (!getRuntimeDetailCase().equals(other.getRuntimeDetailCase())) return false; + switch (runtimeDetailCase_) { + case 1: + if (!getPersistentResourceRuntimeDetail() + .equals(other.getPersistentResourceRuntimeDetail())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (runtimeDetailCase_) { + case 1: + hash = (37 * hash) + PERSISTENT_RESOURCE_RUNTIME_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getPersistentResourceRuntimeDetail().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * The default runtime for the PipelineJob.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .class, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (persistentResourceRuntimeDetailBuilder_ != null) { + persistentResourceRuntimeDetailBuilder_.clear(); + } + runtimeDetailCase_ = 0; + runtimeDetail_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + build() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result = + new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result) { + result.runtimeDetailCase_ = runtimeDetailCase_; + result.runtimeDetail_ = this.runtimeDetail_; + if (runtimeDetailCase_ == 1 && persistentResourceRuntimeDetailBuilder_ != null) { + result.runtimeDetail_ = persistentResourceRuntimeDetailBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance()) return this; + switch (other.getRuntimeDetailCase()) { + case PERSISTENT_RESOURCE_RUNTIME_DETAIL: + { + mergePersistentResourceRuntimeDetail(other.getPersistentResourceRuntimeDetail()); + break; + } + case RUNTIMEDETAIL_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPersistentResourceRuntimeDetailFieldBuilder().getBuilder(), + extensionRegistry); + runtimeDetailCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int runtimeDetailCase_ = 0; + private java.lang.Object runtimeDetail_; + + public RuntimeDetailCase getRuntimeDetailCase() { + return RuntimeDetailCase.forNumber(runtimeDetailCase_); + } + + public Builder clearRuntimeDetail() { + runtimeDetailCase_ = 0; + runtimeDetail_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder> + persistentResourceRuntimeDetailBuilder_; + /** + * + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return Whether the persistentResourceRuntimeDetail field is set. + */ + @java.lang.Override + public boolean hasPersistentResourceRuntimeDetail() { + return runtimeDetailCase_ == 1; + } + /** + * + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + * + * @return The persistentResourceRuntimeDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + getPersistentResourceRuntimeDetail() { + if (persistentResourceRuntimeDetailBuilder_ == null) { + if (runtimeDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } else { + if (runtimeDetailCase_ == 1) { + return persistentResourceRuntimeDetailBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } + } + /** + * + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + public Builder setPersistentResourceRuntimeDetail( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + value) { + if (persistentResourceRuntimeDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeDetail_ = value; + onChanged(); + } else { + persistentResourceRuntimeDetailBuilder_.setMessage(value); + } + runtimeDetailCase_ = 1; + return this; + } + /** + * + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + public Builder setPersistentResourceRuntimeDetail( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder + builderForValue) { + if (persistentResourceRuntimeDetailBuilder_ == null) { + runtimeDetail_ = builderForValue.build(); + onChanged(); + } else { + persistentResourceRuntimeDetailBuilder_.setMessage(builderForValue.build()); + } + runtimeDetailCase_ = 1; + return this; + } + /** + * + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + public Builder mergePersistentResourceRuntimeDetail( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail + value) { + if (persistentResourceRuntimeDetailBuilder_ == null) { + if (runtimeDetailCase_ == 1 + && runtimeDetail_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance()) { + runtimeDetail_ = + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeDetail_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + if (runtimeDetailCase_ == 1) { + persistentResourceRuntimeDetailBuilder_.mergeFrom(value); + } else { + persistentResourceRuntimeDetailBuilder_.setMessage(value); + } } + runtimeDetailCase_ = 1; + return this; } /** * * *
-         * Artifact resource id from MLMD. Which is the last portion of an
-         * artifact resource name:
-         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
-         * The artifact must stay within the same project, location and default
-         * metadatastore as the pipeline.
+         * Persistent resource based runtime detail.
          * 
* - * string artifact_id = 1; - * - * @param value The artifactId to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * */ - public Builder setArtifactId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearPersistentResourceRuntimeDetail() { + if (persistentResourceRuntimeDetailBuilder_ == null) { + if (runtimeDetailCase_ == 1) { + runtimeDetailCase_ = 0; + runtimeDetail_ = null; + onChanged(); + } + } else { + if (runtimeDetailCase_ == 1) { + runtimeDetailCase_ = 0; + runtimeDetail_ = null; + } + persistentResourceRuntimeDetailBuilder_.clear(); } - kindCase_ = 1; - kind_ = value; - onChanged(); return this; } /** * * *
-         * Artifact resource id from MLMD. Which is the last portion of an
-         * artifact resource name:
-         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
-         * The artifact must stay within the same project, location and default
-         * metadatastore as the pipeline.
+         * Persistent resource based runtime detail.
          * 
* - * string artifact_id = 1; + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder + getPersistentResourceRuntimeDetailBuilder() { + return getPersistentResourceRuntimeDetailFieldBuilder().getBuilder(); + } + /** * - * @return This builder for chaining. + * + *
+         * Persistent resource based runtime detail.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * */ - public Builder clearArtifactId() { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - onChanged(); + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder + getPersistentResourceRuntimeDetailOrBuilder() { + if ((runtimeDetailCase_ == 1) && (persistentResourceRuntimeDetailBuilder_ != null)) { + return persistentResourceRuntimeDetailBuilder_.getMessageOrBuilder(); + } else { + if (runtimeDetailCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_; + } + return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); } - return this; } /** * * *
-         * Artifact resource id from MLMD. Which is the last portion of an
-         * artifact resource name:
-         * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
-         * The artifact must stay within the same project, location and default
-         * metadatastore as the pipeline.
+         * Persistent resource based runtime detail.
          * 
* - * string artifact_id = 1; - * - * @param value The bytes for artifactId to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + * */ - public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder> + getPersistentResourceRuntimeDetailFieldBuilder() { + if (persistentResourceRuntimeDetailBuilder_ == null) { + if (!(runtimeDetailCase_ == 1)) { + runtimeDetail_ = + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.getDefaultInstance(); + } + persistentResourceRuntimeDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetailOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .PersistentResourceRuntimeDetail) + runtimeDetail_, + getParentForChildren(), + isClean()); + runtimeDetail_ = null; } - checkByteStringIsUtf8(value); - kindCase_ = 1; - kind_ = value; + runtimeDetailCase_ = 1; onChanged(); - return this; + return persistentResourceRuntimeDetailBuilder_; } @java.lang.Override @@ -1308,28 +3588,28 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) } - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact) + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - .InputArtifact + .DefaultRuntime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(); + new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime(); } - public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime 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 InputArtifact parsePartialFrom( + public DefaultRuntime parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1349,22 +3629,23 @@ public InputArtifact 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.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } + private int bitField0_; public static final int PARAMETERS_FIELD_NUMBER = 1; private static final class ParametersDefaultEntryHolder { @@ -1907,6 +4188,76 @@ public boolean containsInputArtifacts(java.lang.String key) { return map.get(key); } + public static final int DEFAULT_RUNTIME_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + defaultRuntime_; + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultRuntime field is set. + */ + @java.lang.Override + public boolean hasDefaultRuntime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultRuntime. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + getDefaultRuntime() { + return defaultRuntime_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance() + : defaultRuntime_; + } + /** + * + * + *
+     * Optional. The default runtime for the PipelineJob. If not provided,
+     * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+     * Job, please refer to
+     * https://cloud.google.com/vertex-ai/docs/training/overview.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder + getDefaultRuntimeOrBuilder() { + return defaultRuntime_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance() + : defaultRuntime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1936,6 +4287,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetInputArtifacts(), InputArtifactsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDefaultRuntime()); + } getUnknownFields().writeTo(output); } @@ -1991,6 +4345,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputArtifacts__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDefaultRuntime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2012,6 +4369,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetParameterValues().equals(other.internalGetParameterValues())) return false; if (failurePolicy_ != other.failurePolicy_) return false; if (!internalGetInputArtifacts().equals(other.internalGetInputArtifacts())) return false; + if (hasDefaultRuntime() != other.hasDefaultRuntime()) return false; + if (hasDefaultRuntime()) { + if (!getDefaultRuntime().equals(other.getDefaultRuntime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2039,6 +4400,10 @@ public int hashCode() { hash = (37 * hash) + INPUT_ARTIFACTS_FIELD_NUMBER; hash = (53 * hash) + internalGetInputArtifacts().hashCode(); } + if (hasDefaultRuntime()) { + hash = (37 * hash) + DEFAULT_RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getDefaultRuntime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2201,10 +4566,19 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } // Construct using com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDefaultRuntimeFieldBuilder(); + } } @java.lang.Override @@ -2216,6 +4590,11 @@ public Builder clear() { internalGetMutableParameterValues().clear(); failurePolicy_ = 0; internalGetMutableInputArtifacts().clear(); + defaultRuntime_ = null; + if (defaultRuntimeBuilder_ != null) { + defaultRuntimeBuilder_.dispose(); + defaultRuntimeBuilder_ = null; + } return this; } @@ -2272,6 +4651,13 @@ private void buildPartial0( result.inputArtifacts_ = internalGetInputArtifacts().build(InputArtifactsDefaultEntryHolder.defaultEntry); } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultRuntime_ = + defaultRuntimeBuilder_ == null ? defaultRuntime_ : defaultRuntimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2338,6 +4724,9 @@ public Builder mergeFrom( } internalGetMutableInputArtifacts().mergeFrom(other.internalGetInputArtifacts()); bitField0_ |= 0x00000010; + if (other.hasDefaultRuntime()) { + mergeDefaultRuntime(other.getDefaultRuntime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2419,6 +4808,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + input.readMessage( + getDefaultRuntimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3589,6 +5985,250 @@ public Builder putAllInputArtifacts( entry; } + private com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + defaultRuntime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder> + defaultRuntimeBuilder_; + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultRuntime field is set. + */ + public boolean hasDefaultRuntime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultRuntime. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + getDefaultRuntime() { + if (defaultRuntimeBuilder_ == null) { + return defaultRuntime_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance() + : defaultRuntime_; + } else { + return defaultRuntimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultRuntime( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime value) { + if (defaultRuntimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultRuntime_ = value; + } else { + defaultRuntimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultRuntime( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder + builderForValue) { + if (defaultRuntimeBuilder_ == null) { + defaultRuntime_ = builderForValue.build(); + } else { + defaultRuntimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultRuntime( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime value) { + if (defaultRuntimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && defaultRuntime_ != null + && defaultRuntime_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance()) { + getDefaultRuntimeBuilder().mergeFrom(value); + } else { + defaultRuntime_ = value; + } + } else { + defaultRuntimeBuilder_.mergeFrom(value); + } + if (defaultRuntime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultRuntime() { + bitField0_ = (bitField0_ & ~0x00000020); + defaultRuntime_ = null; + if (defaultRuntimeBuilder_ != null) { + defaultRuntimeBuilder_.dispose(); + defaultRuntimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder + getDefaultRuntimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDefaultRuntimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder + getDefaultRuntimeOrBuilder() { + if (defaultRuntimeBuilder_ != null) { + return defaultRuntimeBuilder_.getMessageOrBuilder(); + } else { + return defaultRuntime_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .getDefaultInstance() + : defaultRuntime_; + } + } + /** + * + * + *
+       * Optional. The default runtime for the PipelineJob. If not provided,
+       * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+       * Job, please refer to
+       * https://cloud.google.com/vertex-ai/docs/training/overview.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder> + getDefaultRuntimeFieldBuilder() { + if (defaultRuntimeBuilder_ == null) { + defaultRuntimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime + .Builder, + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .DefaultRuntimeOrBuilder>( + getDefaultRuntime(), getParentForChildren(), isClean()); + defaultRuntime_ = null; + } + return defaultRuntimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java index 0f8a74c3641f..f5e2c770cbae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java @@ -67,11 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Score indicating how likely information from google search could
-   * help answer the prompt. The score is in the range [0, 1], where 0 is the
+   * Optional. Score indicating how likely information from Google Search could
+   * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
    * least likely and 1 is the most likely. This score is only populated when
-   * google search grounding and dynamic retrieval is enabled. It will be
-   * compared to the threshold to determine whether to trigger google search.
+   * Google Search grounding and dynamic retrieval is enabled. It will be
+   * compared to the threshold to determine whether to trigger Google Search.
    * 
* * @@ -435,11 +435,11 @@ public Builder mergeFrom( * * *
-     * Optional. Score indicating how likely information from google search could
-     * help answer the prompt. The score is in the range [0, 1], where 0 is the
+     * Optional. Score indicating how likely information from Google Search could
+     * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * @@ -456,11 +456,11 @@ public float getGoogleSearchDynamicRetrievalScore() { * * *
-     * Optional. Score indicating how likely information from google search could
-     * help answer the prompt. The score is in the range [0, 1], where 0 is the
+     * Optional. Score indicating how likely information from Google Search could
+     * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * @@ -481,11 +481,11 @@ public Builder setGoogleSearchDynamicRetrievalScore(float value) { * * *
-     * Optional. Score indicating how likely information from google search could
-     * help answer the prompt. The score is in the range [0, 1], where 0 is the
+     * Optional. Score indicating how likely information from Google Search could
+     * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
      * least likely and 1 is the most likely. This score is only populated when
-     * google search grounding and dynamic retrieval is enabled. It will be
-     * compared to the threshold to determine whether to trigger google search.
+     * Google Search grounding and dynamic retrieval is enabled. It will be
+     * compared to the threshold to determine whether to trigger Google Search.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java index 3c39b40232c1..ca9480f8adea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java @@ -28,11 +28,11 @@ public interface RetrievalMetadataOrBuilder * * *
-   * Optional. Score indicating how likely information from google search could
-   * help answer the prompt. The score is in the range [0, 1], where 0 is the
+   * Optional. Score indicating how likely information from Google Search could
+   * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
    * least likely and 1 is the most likely. This score is only populated when
-   * google search grounding and dynamic retrieval is enabled. It will be
-   * compared to the threshold to determine whether to trigger google search.
+   * Google Search grounding and dynamic retrieval is enabled. It will be
+   * compared to the threshold to determine whether to trigger Google Search.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java index 7370ac12a710..3ce54f98df02 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java @@ -358,7 +358,7 @@ public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec( * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -374,7 +374,7 @@ public boolean hasPartnerModelTuningSpec() { * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -393,7 +393,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -2878,7 +2878,7 @@ public Builder clearDistillationSpec() { * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -2894,7 +2894,7 @@ public boolean hasPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -2920,7 +2920,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -2944,7 +2944,7 @@ public Builder setPartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -2965,7 +2965,7 @@ public Builder setPartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3001,7 +3001,7 @@ public Builder mergePartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3027,7 +3027,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3041,7 +3041,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3063,7 +3063,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party Partner models.
+     * Tuning Spec for open sourced and third party partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java index 01b4863d2dec..435879f5a7fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java @@ -136,7 +136,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -149,7 +149,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -162,7 +162,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party Partner models.
+   * Tuning Spec for open sourced and third party partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java index f93cd352cd09..8b56594eadbc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java @@ -24,7 +24,7 @@ * *
  * Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAISearch} @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -97,7 +97,7 @@ public java.lang.String getDatastore() { * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -283,7 +283,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Retrieve from Vertex AI Search datastore for grounding.
-   * See https://cloud.google.com/vertex-ai-search-and-conversation
+   * See https://cloud.google.com/products/agent-builder
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAISearch} @@ -467,7 +467,7 @@ public Builder mergeFrom( * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -491,7 +491,7 @@ public java.lang.String getDatastore() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -515,7 +515,7 @@ public com.google.protobuf.ByteString getDatastoreBytes() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -538,7 +538,7 @@ public Builder setDatastore(java.lang.String value) { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
@@ -557,7 +557,7 @@ public Builder clearDatastore() { * * *
-     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Required. Fully-qualified Vertex AI Search data store resource ID.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java index ff606f07f646..92ef8ee017f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java @@ -28,7 +28,7 @@ public interface VertexAISearchOrBuilder * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
@@ -42,7 +42,7 @@ public interface VertexAISearchOrBuilder * * *
-   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Required. Fully-qualified Vertex AI Search data store resource ID.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto index e170972e2b1c..757ca4cb526a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto @@ -236,6 +236,10 @@ message GenerationConfig { // Optional. Routing configuration. optional RoutingConfig routing_config = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If enabled, audio timestamp will be included in the request to + // the model. + optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -512,6 +516,9 @@ message GroundingChunk { // Title of the attribution. optional string title = 2; + + // Text of the attribution. + optional string text = 3; } // Chunk type. @@ -582,11 +589,11 @@ message SearchEntryPoint { // Metadata related to retrieval in the grounding flow. message RetrievalMetadata { - // Optional. Score indicating how likely information from google search could - // help answer the prompt. The score is in the range [0, 1], where 0 is the + // Optional. Score indicating how likely information from Google Search could + // help answer the prompt. The score is in the range `[0, 1]`, where 0 is the // least likely and 1 is the most likely. This score is only populated when - // google search grounding and dynamic retrieval is enabled. It will be - // compared to the threshold to determine whether to trigger google search. + // Google Search grounding and dynamic retrieval is enabled. It will be + // compared to the threshold to determine whether to trigger Google Search. float google_search_dynamic_retrieval_score = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index ac58e11302e1..c5d069b4d8e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/service_networking.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -178,6 +179,10 @@ message CustomJobSpec { repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for PSC-I for CustomJob. + PscInterfaceConfig psc_interface_config = 21 + [(google.api.field_behavior) = OPTIONAL]; + // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 42209c6e5f9a..310c0c8a6201 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -64,6 +64,44 @@ message PipelineJob { } } + // Persistent resource based runtime detail. For more information, refer to + // https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview + message PersistentResourceRuntimeDetail { + // An enum that specifies the behavior to take if the timeout is reached. + enum TaskResourceUnavailableTimeoutBehavior { + // Unspecified. Behavior is same as `FAIL`. + TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0; + + // Fail the task if the timeout is reached. + FAIL = 1; + + // Fall back to on-demand execution if the timeout is reached. + FALL_BACK_TO_ON_DEMAND = 2; + } + + // Persistent resource name. + // Format: + // `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + string persistent_resource_name = 1; + + // The max time a pipeline task waits for the required CPU, memory, or + // accelerator resource to become available from the specified persistent + // resource. Default wait time is 0. + int64 task_resource_unavailable_wait_time_ms = 2; + + // Specifies the behavior to take if the timeout is reached. + TaskResourceUnavailableTimeoutBehavior + task_resource_unavailable_timeout_behavior = 3; + } + + // The default runtime for the PipelineJob. + message DefaultRuntime { + oneof runtime_detail { + // Persistent resource based runtime detail. + PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1; + } + } + // Deprecated. Use // [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values] // instead. The runtime parameters of the PipelineJob. The parameters will @@ -103,6 +141,12 @@ message PipelineJob { // The runtime artifacts of the PipelineJob. The key will be the input // artifact name and the value would be one of the InputArtifact. map input_artifacts = 5; + + // Optional. The default runtime for the PipelineJob. If not provided, + // Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom + // Job, please refer to + // https://cloud.google.com/vertex-ai/docs/training/overview. + DefaultRuntime default_runtime = 6 [(google.api.field_behavior) = OPTIONAL]; } // Output only. The resource name of the PipelineJob. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index b88b75ce4ca8..0212389575ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -224,9 +224,9 @@ message VertexRagStore { } // Retrieve from Vertex AI Search datastore for grounding. -// See https://cloud.google.com/vertex-ai-search-and-conversation +// See https://cloud.google.com/products/agent-builder message VertexAISearch { - // Required. Fully-qualified Vertex AI Search's datastore resource ID. + // Required. Fully-qualified Vertex AI Search data store resource ID. // Format: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` string datastore = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto index c0dc6a85ef92..a42e468fb97d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -54,7 +54,7 @@ message TuningJob { // Tuning Spec for Distillation. DistillationSpec distillation_spec = 17; - // Tuning Spec for open sourced and third party Partner models. + // Tuning Spec for open sourced and third party partner models. PartnerModelTuningSpec partner_model_tuning_spec = 21; } diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 2b31824f360b..942f3a5964f9 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.30.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index d30aadc8185d..99c2548956b4 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.41.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java index 9dd660c5454a..d26efc33492d 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java @@ -191,6 +191,26 @@ * * * + *

SwitchoverCluster + *

Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster. + * + *

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

+ *
    + *
  • switchoverClusterAsync(SwitchoverClusterRequest request) + *

+ *

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

+ *
    + *
  • switchoverClusterAsync(ClusterName name) + *

  • switchoverClusterAsync(String name) + *

+ *

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

+ *
    + *
  • switchoverClusterOperationCallable() + *

  • switchoverClusterCallable() + *

+ * + * + * *

RestoreCluster *

Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster. * @@ -419,6 +439,25 @@ * * * + *

ExecuteSql + *

Executes a SQL statement in a database inside an AlloyDB instance. + * + *

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

+ *
    + *
  • executeSql(ExecuteSqlRequest request) + *

+ *

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

+ *
    + *
  • executeSql(InstanceName instance, String database, String user, String sqlStatement, String password) + *

  • executeSql(String instance, String database, String user, String sqlStatement, String password) + *

+ *

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

+ *
    + *
  • executeSqlCallable() + *

+ * + * + * *

ListBackups *

Lists Backups in a given project and location. * @@ -670,6 +709,26 @@ * * * + *

ListDatabases + *

Lists Databases in a given project and location. + * + *

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

+ *
    + *
  • listDatabases(ListDatabasesRequest request) + *

+ *

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

+ *
    + *
  • listDatabases(ClusterName parent) + *

  • listDatabases(String parent) + *

+ *

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

+ *
    + *
  • listDatabasesPagedCallable() + *

  • listDatabasesCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1719,6 +1778,166 @@ public final UnaryCallable promoteClusterCalla return stub.promoteClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the + * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this + * newly promoted cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the resource. For the required format, see the comment on the + * Cluster.name field + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture switchoverClusterAsync( + ClusterName name) { + SwitchoverClusterRequest request = + SwitchoverClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return switchoverClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the + * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this + * newly promoted cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the resource. For the required format, see the comment on the + * Cluster.name field + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture switchoverClusterAsync(String name) { + SwitchoverClusterRequest request = SwitchoverClusterRequest.newBuilder().setName(name).build(); + return switchoverClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the + * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this + * newly promoted cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   SwitchoverClusterRequest request =
+   *       SwitchoverClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Cluster response = alloyDBAdminClient.switchoverClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture switchoverClusterAsync( + SwitchoverClusterRequest request) { + return switchoverClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the + * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this + * newly promoted cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   SwitchoverClusterRequest request =
+   *       SwitchoverClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.switchoverClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + switchoverClusterOperationCallable() { + return stub.switchoverClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the + * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this + * newly promoted cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   SwitchoverClusterRequest request =
+   *       SwitchoverClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBAdminClient.switchoverClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable switchoverClusterCallable() { + return stub.switchoverClusterCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new Cluster in a given project and location, with a volume restored from the provided @@ -3427,6 +3646,7 @@ public final OperationFuture restartInstanceAsync(S * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") * .setValidateOnly(true) + * .addAllNodeIds(new ArrayList()) * .build(); * Instance response = alloyDBAdminClient.restartInstanceAsync(request).get(); * } @@ -3459,6 +3679,7 @@ public final OperationFuture restartInstanceAsync( * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") * .setValidateOnly(true) + * .addAllNodeIds(new ArrayList()) * .build(); * OperationFuture future = * alloyDBAdminClient.restartInstanceOperationCallable().futureCall(request); @@ -3491,6 +3712,7 @@ public final OperationFuture restartInstanceAsync( * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") * .setValidateOnly(true) + * .addAllNodeIds(new ArrayList()) * .build(); * ApiFuture future = * alloyDBAdminClient.restartInstanceCallable().futureCall(request); @@ -3503,6 +3725,167 @@ public final UnaryCallable restartInstanceCal return stub.restartInstanceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes a SQL statement in a database inside an AlloyDB instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]");
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   String sqlStatement = "sqlStatement937767745";
+   *   String password = "password1216985755";
+   *   ExecuteSqlResponse response =
+   *       alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password);
+   * }
+   * }
+ * + * @param instance Required. The instance where the SQL will be executed. For the required format, + * see the comment on the Instance.name field. + * @param database Required. Name of the database where the query will be executed. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Required. Database user to be used for executing the SQL. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @param sqlStatement Required. SQL statement to execute on database. Any valid statement is + * permitted, including DDL, DML, DQL statements. + * @param password Optional. The database native user’s password. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteSqlResponse executeSql( + InstanceName instance, String database, String user, String sqlStatement, String password) { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .setDatabase(database) + .setUser(user) + .setSqlStatement(sqlStatement) + .setPassword(password) + .build(); + return executeSql(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes a SQL statement in a database inside an AlloyDB instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String instance =
+   *       InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString();
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   String sqlStatement = "sqlStatement937767745";
+   *   String password = "password1216985755";
+   *   ExecuteSqlResponse response =
+   *       alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password);
+   * }
+   * }
+ * + * @param instance Required. The instance where the SQL will be executed. For the required format, + * see the comment on the Instance.name field. + * @param database Required. Name of the database where the query will be executed. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Required. Database user to be used for executing the SQL. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @param sqlStatement Required. SQL statement to execute on database. Any valid statement is + * permitted, including DDL, DML, DQL statements. + * @param password Optional. The database native user’s password. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteSqlResponse executeSql( + String instance, String database, String user, String sqlStatement, String password) { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setInstance(instance) + .setDatabase(database) + .setUser(user) + .setSqlStatement(sqlStatement) + .setPassword(password) + .build(); + return executeSql(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes a SQL statement in a database inside an AlloyDB instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExecuteSqlRequest request =
+   *       ExecuteSqlRequest.newBuilder()
+   *           .setInstance(
+   *               InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .setSqlStatement("sqlStatement937767745")
+   *           .build();
+   *   ExecuteSqlResponse response = alloyDBAdminClient.executeSql(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteSqlResponse executeSql(ExecuteSqlRequest request) { + return executeSqlCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes a SQL statement in a database inside an AlloyDB instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExecuteSqlRequest request =
+   *       ExecuteSqlRequest.newBuilder()
+   *           .setInstance(
+   *               InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .setSqlStatement("sqlStatement937767745")
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBAdminClient.executeSqlCallable().futureCall(request);
+   *   // Do something.
+   *   ExecuteSqlResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable executeSqlCallable() { + return stub.executeSqlCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Backups in a given project and location. @@ -5275,6 +5658,171 @@ public final UnaryCallable deleteUserCallable() { return stub.deleteUserCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListDatabasesRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatabasesPagedResponse listDatabases(ClusterName parent) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListDatabasesRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatabasesPagedResponse listDatabases(String parent) { + ListDatabasesRequest request = ListDatabasesRequest.newBuilder().setParent(parent).build(); + return listDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ListDatabasesRequest request =
+   *       ListDatabasesRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Database element : alloyDBAdminClient.listDatabases(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatabasesPagedResponse listDatabases(ListDatabasesRequest request) { + return listDatabasesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ListDatabasesRequest request =
+   *       ListDatabasesRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBAdminClient.listDatabasesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Database element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDatabasesPagedCallable() { + return stub.listDatabasesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ListDatabasesRequest request =
+   *       ListDatabasesRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListDatabasesResponse response = alloyDBAdminClient.listDatabasesCallable().call(request);
+   *     for (Database element : response.getDatabasesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listDatabasesCallable() { + return stub.listDatabasesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -5845,6 +6393,82 @@ protected ListUsersFixedSizeCollection createCollection( } } + public static class ListDatabasesPagedResponse + extends AbstractPagedListResponse< + ListDatabasesRequest, + ListDatabasesResponse, + Database, + ListDatabasesPage, + ListDatabasesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDatabasesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDatabasesPagedResponse(ListDatabasesPage page) { + super(page, ListDatabasesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDatabasesPage + extends AbstractPage< + ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { + + private ListDatabasesPage( + PageContext context, + ListDatabasesResponse response) { + super(context, response); + } + + private static ListDatabasesPage createEmptyPage() { + return new ListDatabasesPage(null, null); + } + + @Override + protected ListDatabasesPage createPage( + PageContext context, + ListDatabasesResponse response) { + return new ListDatabasesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDatabasesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDatabasesRequest, + ListDatabasesResponse, + Database, + ListDatabasesPage, + ListDatabasesFixedSizeCollection> { + + private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDatabasesFixedSizeCollection createEmptyCollection() { + return new ListDatabasesFixedSizeCollection(null, 0); + } + + @Override + protected ListDatabasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDatabasesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java index 9164217fc131..de4b906088c8 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -179,6 +180,17 @@ public UnaryCallSettings promoteClusterSetting return ((AlloyDBAdminStubSettings) getStubSettings()).promoteClusterOperationSettings(); } + /** Returns the object with the settings used for calls to switchoverCluster. */ + public UnaryCallSettings switchoverClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).switchoverClusterSettings(); + } + + /** Returns the object with the settings used for calls to switchoverCluster. */ + public OperationCallSettings + switchoverClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).switchoverClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to restoreCluster. */ public UnaryCallSettings restoreClusterSettings() { return ((AlloyDBAdminStubSettings) getStubSettings()).restoreClusterSettings(); @@ -304,6 +316,11 @@ public UnaryCallSettings restartInstanceSetti return ((AlloyDBAdminStubSettings) getStubSettings()).restartInstanceOperationSettings(); } + /** Returns the object with the settings used for calls to executeSql. */ + public UnaryCallSettings executeSqlSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).executeSqlSettings(); + } + /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { @@ -394,6 +411,12 @@ public UnaryCallSettings deleteUserSettings() { return ((AlloyDBAdminStubSettings) getStubSettings()).deleteUserSettings(); } + /** Returns the object with the settings used for calls to listDatabases. */ + public PagedCallSettings + listDatabasesSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).listDatabasesSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -573,6 +596,18 @@ public UnaryCallSettings.Builder promoteCluste return getStubSettingsBuilder().promoteClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to switchoverCluster. */ + public UnaryCallSettings.Builder + switchoverClusterSettings() { + return getStubSettingsBuilder().switchoverClusterSettings(); + } + + /** Returns the builder for the settings used for calls to switchoverCluster. */ + public OperationCallSettings.Builder + switchoverClusterOperationSettings() { + return getStubSettingsBuilder().switchoverClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to restoreCluster. */ public UnaryCallSettings.Builder restoreClusterSettings() { return getStubSettingsBuilder().restoreClusterSettings(); @@ -701,6 +736,11 @@ public UnaryCallSettings.Builder restartInsta return getStubSettingsBuilder().restartInstanceOperationSettings(); } + /** Returns the builder for the settings used for calls to executeSql. */ + public UnaryCallSettings.Builder executeSqlSettings() { + return getStubSettingsBuilder().executeSqlSettings(); + } + /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> @@ -794,6 +834,13 @@ public UnaryCallSettings.Builder deleteUserSettings() return getStubSettingsBuilder().deleteUserSettings(); } + /** Returns the builder for the settings used for calls to listDatabases. */ + public PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings() { + return getStubSettingsBuilder().listDatabasesSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json index 553a23636d95..506253f1e827 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json @@ -43,6 +43,9 @@ "DeleteUser": { "methods": ["deleteUser", "deleteUser", "deleteUser", "deleteUserCallable"] }, + "ExecuteSql": { + "methods": ["executeSql", "executeSql", "executeSql", "executeSqlCallable"] + }, "FailoverInstance": { "methods": ["failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceOperationCallable", "failoverInstanceCallable"] }, @@ -76,6 +79,9 @@ "ListClusters": { "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] }, + "ListDatabases": { + "methods": ["listDatabases", "listDatabases", "listDatabases", "listDatabasesPagedCallable", "listDatabasesCallable"] + }, "ListInstances": { "methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] }, @@ -97,6 +103,9 @@ "RestoreCluster": { "methods": ["restoreClusterAsync", "restoreClusterOperationCallable", "restoreClusterCallable"] }, + "SwitchoverCluster": { + "methods": ["switchoverClusterAsync", "switchoverClusterAsync", "switchoverClusterAsync", "switchoverClusterOperationCallable", "switchoverClusterCallable"] + }, "UpdateBackup": { "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] }, diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java index 3201589d5f2a..fdf6cef05714 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -41,6 +42,8 @@ import com.google.cloud.alloydb.v1.DeleteClusterRequest; import com.google.cloud.alloydb.v1.DeleteInstanceRequest; import com.google.cloud.alloydb.v1.DeleteUserRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -55,6 +58,8 @@ import com.google.cloud.alloydb.v1.ListBackupsResponse; import com.google.cloud.alloydb.v1.ListClustersRequest; import com.google.cloud.alloydb.v1.ListClustersResponse; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; +import com.google.cloud.alloydb.v1.ListDatabasesResponse; import com.google.cloud.alloydb.v1.ListInstancesRequest; import com.google.cloud.alloydb.v1.ListInstancesResponse; import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest; @@ -65,6 +70,7 @@ import com.google.cloud.alloydb.v1.PromoteClusterRequest; import com.google.cloud.alloydb.v1.RestartInstanceRequest; import com.google.cloud.alloydb.v1.RestoreClusterRequest; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; import com.google.cloud.alloydb.v1.UpdateBackupRequest; import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; @@ -144,6 +150,16 @@ public UnaryCallable promoteClusterCallable() throw new UnsupportedOperationException("Not implemented: promoteClusterCallable()"); } + public OperationCallable + switchoverClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: switchoverClusterOperationCallable()"); + } + + public UnaryCallable switchoverClusterCallable() { + throw new UnsupportedOperationException("Not implemented: switchoverClusterCallable()"); + } + public OperationCallable restoreClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: restoreClusterOperationCallable()"); @@ -252,6 +268,10 @@ public UnaryCallable restartInstanceCallable( throw new UnsupportedOperationException("Not implemented: restartInstanceCallable()"); } + public UnaryCallable executeSqlCallable() { + throw new UnsupportedOperationException("Not implemented: executeSqlCallable()"); + } + public UnaryCallable listBackupsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()"); } @@ -336,6 +356,15 @@ public UnaryCallable deleteUserCallable() { throw new UnsupportedOperationException("Not implemented: deleteUserCallable()"); } + public UnaryCallable + listDatabasesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()"); + } + + public UnaryCallable listDatabasesCallable() { + throw new UnsupportedOperationException("Not implemented: listDatabasesCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java index 923a33a09b36..b5efb8b734b1 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -64,10 +65,13 @@ import com.google.cloud.alloydb.v1.CreateSecondaryClusterRequest; import com.google.cloud.alloydb.v1.CreateSecondaryInstanceRequest; import com.google.cloud.alloydb.v1.CreateUserRequest; +import com.google.cloud.alloydb.v1.Database; import com.google.cloud.alloydb.v1.DeleteBackupRequest; import com.google.cloud.alloydb.v1.DeleteClusterRequest; import com.google.cloud.alloydb.v1.DeleteInstanceRequest; import com.google.cloud.alloydb.v1.DeleteUserRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -82,6 +86,8 @@ import com.google.cloud.alloydb.v1.ListBackupsResponse; import com.google.cloud.alloydb.v1.ListClustersRequest; import com.google.cloud.alloydb.v1.ListClustersResponse; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; +import com.google.cloud.alloydb.v1.ListDatabasesResponse; import com.google.cloud.alloydb.v1.ListInstancesRequest; import com.google.cloud.alloydb.v1.ListInstancesResponse; import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest; @@ -93,6 +99,7 @@ import com.google.cloud.alloydb.v1.RestartInstanceRequest; import com.google.cloud.alloydb.v1.RestoreClusterRequest; import com.google.cloud.alloydb.v1.SupportedDatabaseFlag; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; import com.google.cloud.alloydb.v1.UpdateBackupRequest; import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; @@ -211,6 +218,9 @@ public class AlloyDBAdminStubSettings extends StubSettings promoteClusterSettings; private final OperationCallSettings promoteClusterOperationSettings; + private final UnaryCallSettings switchoverClusterSettings; + private final OperationCallSettings + switchoverClusterOperationSettings; private final UnaryCallSettings restoreClusterSettings; private final OperationCallSettings restoreClusterOperationSettings; @@ -249,6 +259,7 @@ public class AlloyDBAdminStubSettings extends StubSettings restartInstanceSettings; private final OperationCallSettings restartInstanceOperationSettings; + private final UnaryCallSettings executeSqlSettings; private final PagedCallSettings listBackupsSettings; private final UnaryCallSettings getBackupSettings; @@ -277,6 +288,9 @@ public class AlloyDBAdminStubSettings extends StubSettings createUserSettings; private final UnaryCallSettings updateUserSettings; private final UnaryCallSettings deleteUserSettings; + private final PagedCallSettings< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -465,6 +479,40 @@ public Iterable extractResources(ListUsersResponse payload) { } }; + private static final PagedListDescriptor + LIST_DATABASES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDatabasesRequest injectToken(ListDatabasesRequest payload, String token) { + return ListDatabasesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDatabasesRequest injectPageSize(ListDatabasesRequest payload, int pageSize) { + return ListDatabasesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDatabasesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDatabasesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDatabasesResponse payload) { + return payload.getDatabasesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -595,6 +643,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + LIST_DATABASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDatabasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DATABASES_PAGE_STR_DESC, request, context); + return ListDatabasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -667,6 +732,17 @@ public UnaryCallSettings promoteClusterSetting return promoteClusterOperationSettings; } + /** Returns the object with the settings used for calls to switchoverCluster. */ + public UnaryCallSettings switchoverClusterSettings() { + return switchoverClusterSettings; + } + + /** Returns the object with the settings used for calls to switchoverCluster. */ + public OperationCallSettings + switchoverClusterOperationSettings() { + return switchoverClusterOperationSettings; + } + /** Returns the object with the settings used for calls to restoreCluster. */ public UnaryCallSettings restoreClusterSettings() { return restoreClusterSettings; @@ -791,6 +867,11 @@ public UnaryCallSettings restartInstanceSetti return restartInstanceOperationSettings; } + /** Returns the object with the settings used for calls to executeSql. */ + public UnaryCallSettings executeSqlSettings() { + return executeSqlSettings; + } + /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { @@ -881,6 +962,12 @@ public UnaryCallSettings deleteUserSettings() { return deleteUserSettings; } + /** Returns the object with the settings used for calls to listDatabases. */ + public PagedCallSettings + listDatabasesSettings() { + return listDatabasesSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1013,6 +1100,9 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); promoteClusterSettings = settingsBuilder.promoteClusterSettings().build(); promoteClusterOperationSettings = settingsBuilder.promoteClusterOperationSettings().build(); + switchoverClusterSettings = settingsBuilder.switchoverClusterSettings().build(); + switchoverClusterOperationSettings = + settingsBuilder.switchoverClusterOperationSettings().build(); restoreClusterSettings = settingsBuilder.restoreClusterSettings().build(); restoreClusterOperationSettings = settingsBuilder.restoreClusterOperationSettings().build(); createSecondaryClusterSettings = settingsBuilder.createSecondaryClusterSettings().build(); @@ -1038,6 +1128,7 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { injectFaultOperationSettings = settingsBuilder.injectFaultOperationSettings().build(); restartInstanceSettings = settingsBuilder.restartInstanceSettings().build(); restartInstanceOperationSettings = settingsBuilder.restartInstanceOperationSettings().build(); + executeSqlSettings = settingsBuilder.executeSqlSettings().build(); listBackupsSettings = settingsBuilder.listBackupsSettings().build(); getBackupSettings = settingsBuilder.getBackupSettings().build(); createBackupSettings = settingsBuilder.createBackupSettings().build(); @@ -1055,6 +1146,7 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { createUserSettings = settingsBuilder.createUserSettings().build(); updateUserSettings = settingsBuilder.updateUserSettings().build(); deleteUserSettings = settingsBuilder.deleteUserSettings().build(); + listDatabasesSettings = settingsBuilder.listDatabasesSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1079,6 +1171,11 @@ public static class Builder extends StubSettings.Builder promoteClusterOperationSettings; + private final UnaryCallSettings.Builder + switchoverClusterSettings; + private final OperationCallSettings.Builder< + SwitchoverClusterRequest, Cluster, OperationMetadata> + switchoverClusterOperationSettings; private final UnaryCallSettings.Builder restoreClusterSettings; private final OperationCallSettings.Builder @@ -1126,6 +1223,8 @@ public static class Builder extends StubSettings.Builder restartInstanceOperationSettings; + private final UnaryCallSettings.Builder + executeSqlSettings; private final PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings; @@ -1156,6 +1255,9 @@ public static class Builder extends StubSettings.Builder createUserSettings; private final UnaryCallSettings.Builder updateUserSettings; private final UnaryCallSettings.Builder deleteUserSettings; + private final PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1218,6 +1320,8 @@ protected Builder(ClientContext clientContext) { deleteClusterOperationSettings = OperationCallSettings.newBuilder(); promoteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); promoteClusterOperationSettings = OperationCallSettings.newBuilder(); + switchoverClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + switchoverClusterOperationSettings = OperationCallSettings.newBuilder(); restoreClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreClusterOperationSettings = OperationCallSettings.newBuilder(); createSecondaryClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1240,6 +1344,7 @@ protected Builder(ClientContext clientContext) { injectFaultOperationSettings = OperationCallSettings.newBuilder(); restartInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restartInstanceOperationSettings = OperationCallSettings.newBuilder(); + executeSqlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1257,6 +1362,7 @@ protected Builder(ClientContext clientContext) { createUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDatabasesSettings = PagedCallSettings.newBuilder(LIST_DATABASES_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1268,6 +1374,7 @@ protected Builder(ClientContext clientContext) { updateClusterSettings, deleteClusterSettings, promoteClusterSettings, + switchoverClusterSettings, restoreClusterSettings, createSecondaryClusterSettings, listInstancesSettings, @@ -1280,6 +1387,7 @@ protected Builder(ClientContext clientContext) { failoverInstanceSettings, injectFaultSettings, restartInstanceSettings, + executeSqlSettings, listBackupsSettings, getBackupSettings, createBackupSettings, @@ -1293,6 +1401,7 @@ protected Builder(ClientContext clientContext) { createUserSettings, updateUserSettings, deleteUserSettings, + listDatabasesSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1311,6 +1420,8 @@ protected Builder(AlloyDBAdminStubSettings settings) { deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); promoteClusterSettings = settings.promoteClusterSettings.toBuilder(); promoteClusterOperationSettings = settings.promoteClusterOperationSettings.toBuilder(); + switchoverClusterSettings = settings.switchoverClusterSettings.toBuilder(); + switchoverClusterOperationSettings = settings.switchoverClusterOperationSettings.toBuilder(); restoreClusterSettings = settings.restoreClusterSettings.toBuilder(); restoreClusterOperationSettings = settings.restoreClusterOperationSettings.toBuilder(); createSecondaryClusterSettings = settings.createSecondaryClusterSettings.toBuilder(); @@ -1336,6 +1447,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { injectFaultOperationSettings = settings.injectFaultOperationSettings.toBuilder(); restartInstanceSettings = settings.restartInstanceSettings.toBuilder(); restartInstanceOperationSettings = settings.restartInstanceOperationSettings.toBuilder(); + executeSqlSettings = settings.executeSqlSettings.toBuilder(); listBackupsSettings = settings.listBackupsSettings.toBuilder(); getBackupSettings = settings.getBackupSettings.toBuilder(); createBackupSettings = settings.createBackupSettings.toBuilder(); @@ -1352,6 +1464,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { createUserSettings = settings.createUserSettings.toBuilder(); updateUserSettings = settings.updateUserSettings.toBuilder(); deleteUserSettings = settings.deleteUserSettings.toBuilder(); + listDatabasesSettings = settings.listDatabasesSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1363,6 +1476,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { updateClusterSettings, deleteClusterSettings, promoteClusterSettings, + switchoverClusterSettings, restoreClusterSettings, createSecondaryClusterSettings, listInstancesSettings, @@ -1375,6 +1489,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { failoverInstanceSettings, injectFaultSettings, restartInstanceSettings, + executeSqlSettings, listBackupsSettings, getBackupSettings, createBackupSettings, @@ -1388,6 +1503,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { createUserSettings, updateUserSettings, deleteUserSettings, + listDatabasesSettings, listLocationsSettings, getLocationSettings); } @@ -1447,6 +1563,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .switchoverClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .restoreClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1507,6 +1628,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .executeSqlSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .listBackupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1572,6 +1698,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listDatabasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1678,6 +1809,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .switchoverClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .restoreClusterOperationSettings() .setInitialCallSettings( @@ -2064,6 +2219,18 @@ public UnaryCallSettings.Builder promoteCluste return promoteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to switchoverCluster. */ + public UnaryCallSettings.Builder + switchoverClusterSettings() { + return switchoverClusterSettings; + } + + /** Returns the builder for the settings used for calls to switchoverCluster. */ + public OperationCallSettings.Builder + switchoverClusterOperationSettings() { + return switchoverClusterOperationSettings; + } + /** Returns the builder for the settings used for calls to restoreCluster. */ public UnaryCallSettings.Builder restoreClusterSettings() { return restoreClusterSettings; @@ -2192,6 +2359,11 @@ public UnaryCallSettings.Builder restartInsta return restartInstanceOperationSettings; } + /** Returns the builder for the settings used for calls to executeSql. */ + public UnaryCallSettings.Builder executeSqlSettings() { + return executeSqlSettings; + } + /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> @@ -2285,6 +2457,13 @@ public UnaryCallSettings.Builder deleteUserSettings() return deleteUserSettings; } + /** Returns the builder for the settings used for calls to listDatabases. */ + public PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings() { + return listDatabasesSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java index 0280a77c2902..9ee21a1c019f 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -46,6 +47,8 @@ import com.google.cloud.alloydb.v1.DeleteClusterRequest; import com.google.cloud.alloydb.v1.DeleteInstanceRequest; import com.google.cloud.alloydb.v1.DeleteUserRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -60,6 +63,8 @@ import com.google.cloud.alloydb.v1.ListBackupsResponse; import com.google.cloud.alloydb.v1.ListClustersRequest; import com.google.cloud.alloydb.v1.ListClustersResponse; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; +import com.google.cloud.alloydb.v1.ListDatabasesResponse; import com.google.cloud.alloydb.v1.ListInstancesRequest; import com.google.cloud.alloydb.v1.ListInstancesResponse; import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest; @@ -70,6 +75,7 @@ import com.google.cloud.alloydb.v1.PromoteClusterRequest; import com.google.cloud.alloydb.v1.RestartInstanceRequest; import com.google.cloud.alloydb.v1.RestoreClusterRequest; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; import com.google.cloud.alloydb.v1.UpdateBackupRequest; import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; @@ -154,6 +160,16 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + switchoverClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/SwitchoverCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(SwitchoverClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor restoreClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -271,6 +287,15 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + executeSqlMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExecuteSql") + .setRequestMarshaller(ProtoUtils.marshaller(ExecuteSqlRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExecuteSqlResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listBackupsMethodDescriptor = MethodDescriptor.newBuilder() @@ -393,6 +418,17 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + listDatabasesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ListDatabases") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDatabasesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDatabasesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -428,6 +464,9 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable promoteClusterCallable; private final OperationCallable promoteClusterOperationCallable; + private final UnaryCallable switchoverClusterCallable; + private final OperationCallable + switchoverClusterOperationCallable; private final UnaryCallable restoreClusterCallable; private final OperationCallable restoreClusterOperationCallable; @@ -465,6 +504,7 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable restartInstanceCallable; private final OperationCallable restartInstanceOperationCallable; + private final UnaryCallable executeSqlCallable; private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; @@ -492,6 +532,9 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable createUserCallable; private final UnaryCallable updateUserCallable; private final UnaryCallable deleteUserCallable; + private final UnaryCallable listDatabasesCallable; + private final UnaryCallable + listDatabasesPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -599,6 +642,16 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings switchoverClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(switchoverClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings restoreClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(restoreClusterMethodDescriptor) @@ -721,6 +774,16 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings executeSqlTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(executeSqlMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .build(); GrpcCallSettings listBackupsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBackupsMethodDescriptor) @@ -855,6 +918,16 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings listDatabasesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDatabasesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -921,6 +994,17 @@ protected GrpcAlloyDBAdminStub( settings.promoteClusterOperationSettings(), clientContext, operationsStub); + this.switchoverClusterCallable = + callableFactory.createUnaryCallable( + switchoverClusterTransportSettings, + settings.switchoverClusterSettings(), + clientContext); + this.switchoverClusterOperationCallable = + callableFactory.createOperationCallable( + switchoverClusterTransportSettings, + settings.switchoverClusterOperationSettings(), + clientContext, + operationsStub); this.restoreClusterCallable = callableFactory.createUnaryCallable( restoreClusterTransportSettings, settings.restoreClusterSettings(), clientContext); @@ -1026,6 +1110,9 @@ protected GrpcAlloyDBAdminStub( settings.restartInstanceOperationSettings(), clientContext, operationsStub); + this.executeSqlCallable = + callableFactory.createUnaryCallable( + executeSqlTransportSettings, settings.executeSqlSettings(), clientContext); this.listBackupsCallable = callableFactory.createUnaryCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); @@ -1100,6 +1187,12 @@ protected GrpcAlloyDBAdminStub( this.deleteUserCallable = callableFactory.createUnaryCallable( deleteUserTransportSettings, settings.deleteUserSettings(), clientContext); + this.listDatabasesCallable = + callableFactory.createUnaryCallable( + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.listDatabasesPagedCallable = + callableFactory.createPagedCallable( + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1177,6 +1270,17 @@ public UnaryCallable promoteClusterCallable() return promoteClusterOperationCallable; } + @Override + public UnaryCallable switchoverClusterCallable() { + return switchoverClusterCallable; + } + + @Override + public OperationCallable + switchoverClusterOperationCallable() { + return switchoverClusterOperationCallable; + } + @Override public UnaryCallable restoreClusterCallable() { return restoreClusterCallable; @@ -1305,6 +1409,11 @@ public UnaryCallable restartInstanceCallable( return restartInstanceOperationCallable; } + @Override + public UnaryCallable executeSqlCallable() { + return executeSqlCallable; + } + @Override public UnaryCallable listBackupsCallable() { return listBackupsCallable; @@ -1406,6 +1515,17 @@ public UnaryCallable deleteUserCallable() { return deleteUserCallable; } + @Override + public UnaryCallable listDatabasesCallable() { + return listDatabasesCallable; + } + + @Override + public UnaryCallable + listDatabasesPagedCallable() { + return listDatabasesPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java index e08107a8de44..503650a9edd0 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -54,6 +55,8 @@ import com.google.cloud.alloydb.v1.DeleteClusterRequest; import com.google.cloud.alloydb.v1.DeleteInstanceRequest; import com.google.cloud.alloydb.v1.DeleteUserRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -68,6 +71,8 @@ import com.google.cloud.alloydb.v1.ListBackupsResponse; import com.google.cloud.alloydb.v1.ListClustersRequest; import com.google.cloud.alloydb.v1.ListClustersResponse; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; +import com.google.cloud.alloydb.v1.ListDatabasesResponse; import com.google.cloud.alloydb.v1.ListInstancesRequest; import com.google.cloud.alloydb.v1.ListInstancesResponse; import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest; @@ -78,6 +83,7 @@ import com.google.cloud.alloydb.v1.PromoteClusterRequest; import com.google.cloud.alloydb.v1.RestartInstanceRequest; import com.google.cloud.alloydb.v1.RestoreClusterRequest; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; import com.google.cloud.alloydb.v1.UpdateBackupRequest; import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; @@ -362,6 +368,46 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + switchoverClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/SwitchoverCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:switchover", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SwitchoverClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor restoreClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -856,6 +902,43 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + executeSqlMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExecuteSql") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{instance=projects/*/locations/*/clusters/*/instances/*}:executeSql", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "instance", request.getInstance()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearInstance().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExecuteSqlResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listBackupsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1354,6 +1437,43 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { .build()) .build(); + private static final ApiMethodDescriptor + listDatabasesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ListDatabases") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*}/databases", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDatabasesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1438,6 +1558,9 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable promoteClusterCallable; private final OperationCallable promoteClusterOperationCallable; + private final UnaryCallable switchoverClusterCallable; + private final OperationCallable + switchoverClusterOperationCallable; private final UnaryCallable restoreClusterCallable; private final OperationCallable restoreClusterOperationCallable; @@ -1475,6 +1598,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable restartInstanceCallable; private final OperationCallable restartInstanceOperationCallable; + private final UnaryCallable executeSqlCallable; private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; @@ -1502,6 +1626,9 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable createUserCallable; private final UnaryCallable updateUserCallable; private final UnaryCallable deleteUserCallable; + private final UnaryCallable listDatabasesCallable; + private final UnaryCallable + listDatabasesPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1643,6 +1770,17 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings switchoverClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(switchoverClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings restoreClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(restoreClusterMethodDescriptor) @@ -1779,6 +1917,17 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings executeSqlTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(executeSqlMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listBackupsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listBackupsMethodDescriptor) @@ -1927,6 +2076,18 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listDatabasesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDatabasesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1996,6 +2157,17 @@ protected HttpJsonAlloyDBAdminStub( settings.promoteClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.switchoverClusterCallable = + callableFactory.createUnaryCallable( + switchoverClusterTransportSettings, + settings.switchoverClusterSettings(), + clientContext); + this.switchoverClusterOperationCallable = + callableFactory.createOperationCallable( + switchoverClusterTransportSettings, + settings.switchoverClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); this.restoreClusterCallable = callableFactory.createUnaryCallable( restoreClusterTransportSettings, settings.restoreClusterSettings(), clientContext); @@ -2101,6 +2273,9 @@ protected HttpJsonAlloyDBAdminStub( settings.restartInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.executeSqlCallable = + callableFactory.createUnaryCallable( + executeSqlTransportSettings, settings.executeSqlSettings(), clientContext); this.listBackupsCallable = callableFactory.createUnaryCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); @@ -2175,6 +2350,12 @@ protected HttpJsonAlloyDBAdminStub( this.deleteUserCallable = callableFactory.createUnaryCallable( deleteUserTransportSettings, settings.deleteUserSettings(), clientContext); + this.listDatabasesCallable = + callableFactory.createUnaryCallable( + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.listDatabasesPagedCallable = + callableFactory.createPagedCallable( + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2198,6 +2379,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(promoteClusterMethodDescriptor); + methodDescriptors.add(switchoverClusterMethodDescriptor); methodDescriptors.add(restoreClusterMethodDescriptor); methodDescriptors.add(createSecondaryClusterMethodDescriptor); methodDescriptors.add(listInstancesMethodDescriptor); @@ -2210,6 +2392,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(failoverInstanceMethodDescriptor); methodDescriptors.add(injectFaultMethodDescriptor); methodDescriptors.add(restartInstanceMethodDescriptor); + methodDescriptors.add(executeSqlMethodDescriptor); methodDescriptors.add(listBackupsMethodDescriptor); methodDescriptors.add(getBackupMethodDescriptor); methodDescriptors.add(createBackupMethodDescriptor); @@ -2223,6 +2406,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createUserMethodDescriptor); methodDescriptors.add(updateUserMethodDescriptor); methodDescriptors.add(deleteUserMethodDescriptor); + methodDescriptors.add(listDatabasesMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2291,6 +2475,17 @@ public UnaryCallable promoteClusterCallable() return promoteClusterOperationCallable; } + @Override + public UnaryCallable switchoverClusterCallable() { + return switchoverClusterCallable; + } + + @Override + public OperationCallable + switchoverClusterOperationCallable() { + return switchoverClusterOperationCallable; + } + @Override public UnaryCallable restoreClusterCallable() { return restoreClusterCallable; @@ -2419,6 +2614,11 @@ public UnaryCallable restartInstanceCallable( return restartInstanceOperationCallable; } + @Override + public UnaryCallable executeSqlCallable() { + return executeSqlCallable; + } + @Override public UnaryCallable listBackupsCallable() { return listBackupsCallable; @@ -2520,6 +2720,17 @@ public UnaryCallable deleteUserCallable() { return deleteUserCallable; } + @Override + public UnaryCallable listDatabasesCallable() { + return listDatabasesCallable; + } + + @Override + public UnaryCallable + listDatabasesPagedCallable() { + return listDatabasesPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json index b0bc87009a5c..bc6efe3e50ce 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -395,6 +422,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.AutomatedBackupPolicy", "queryAllDeclaredConstructors": true, @@ -683,6 +746,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Cluster$PscConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Cluster$PscConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Cluster$SecondaryConfig", "queryAllDeclaredConstructors": true, @@ -710,6 +791,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Cluster$TrialMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Cluster$TrialMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.ClusterView", "queryAllDeclaredConstructors": true, @@ -917,6 +1016,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Database", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Database$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.DatabaseVersion", "queryAllDeclaredConstructors": true, @@ -1043,6 +1160,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlMetadata$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExecuteSqlResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.FailoverInstanceRequest", "queryAllDeclaredConstructors": true, @@ -1259,6 +1439,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$InstanceNetworkConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$InstanceNetworkConfig$AuthorizedNetwork", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$InstanceNetworkConfig$AuthorizedNetwork$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$InstanceNetworkConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$InstanceType", "queryAllDeclaredConstructors": true, @@ -1304,6 +1520,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscInstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscInstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1430,6 +1664,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.ListDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ListDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ListDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ListDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.ListInstancesRequest", "queryAllDeclaredConstructors": true, @@ -1538,6 +1808,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceSchedule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceSchedule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy$MaintenanceWindow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy$MaintenanceWindow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.MigrationSource", "queryAllDeclaredConstructors": true, @@ -1637,6 +1961,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.SqlResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultColumn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultColumn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultRow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultRow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SqlResultValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.SslConfig", "queryAllDeclaredConstructors": true, @@ -1673,6 +2069,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.SubscriptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.SupportedDatabaseFlag", "queryAllDeclaredConstructors": true, @@ -1736,6 +2141,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.SwitchoverClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.SwitchoverClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.UpdateBackupRequest", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json index b82cedfefc6d..f230511543a2 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 @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "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 544bc2b31d4f..627a4414f429 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 @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java index a818751888e2..7203a31dbc49 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -218,6 +219,13 @@ public void getClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -283,6 +291,13 @@ public void getClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -348,6 +363,13 @@ public void createClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -422,6 +444,13 @@ public void createClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -496,6 +525,13 @@ public void updateClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -529,6 +565,13 @@ public void updateClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -582,6 +625,13 @@ public void updateClusterExceptionTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -706,6 +756,13 @@ public void promoteClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -776,6 +833,13 @@ public void promoteClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -820,6 +884,160 @@ public void promoteClusterExceptionTest2() throws Exception { } } + @Test + public void switchoverClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + Cluster actualResponse = client.switchoverClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void switchoverClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.switchoverClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void switchoverClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Cluster actualResponse = client.switchoverClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void switchoverClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.switchoverClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void restoreClusterTest() throws Exception { Cluster expectedResponse = @@ -846,6 +1064,13 @@ public void restoreClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -930,6 +1155,13 @@ public void createSecondaryClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1004,6 +1236,13 @@ public void createSecondaryClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1172,10 +1411,15 @@ public void getInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1235,10 +1479,15 @@ public void getInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1300,10 +1549,15 @@ public void createInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1372,10 +1626,15 @@ public void createInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1444,10 +1703,15 @@ public void createSecondaryInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1517,10 +1781,15 @@ public void createSecondaryInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1649,10 +1918,15 @@ public void updateInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1680,10 +1954,15 @@ public void updateInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1731,10 +2010,15 @@ public void updateInstanceExceptionTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, updateMask).get(); @@ -1855,10 +2139,15 @@ public void failoverInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1923,10 +2212,15 @@ public void failoverInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1993,10 +2287,15 @@ public void injectFaultTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2063,10 +2362,15 @@ public void injectFaultTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2135,10 +2439,15 @@ public void restartInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2203,10 +2512,15 @@ public void restartInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2253,6 +2567,116 @@ public void restartInstanceExceptionTest2() throws Exception { } } + @Test + public void executeSqlTest() throws Exception { + ExecuteSqlResponse expectedResponse = + ExecuteSqlResponse.newBuilder() + .addAllSqlResults(new ArrayList()) + .setMetadata(ExecuteSqlMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]"); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + + ExecuteSqlResponse actualResponse = + client.executeSql(instance, database, user, sqlStatement, password); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeSqlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]"); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + client.executeSql(instance, database, user, sqlStatement, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeSqlTest2() throws Exception { + ExecuteSqlResponse expectedResponse = + ExecuteSqlResponse.newBuilder() + .addAllSqlResults(new ArrayList()) + .setMetadata(ExecuteSqlMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String instance = + "projects/project-4969/locations/location-4969/clusters/cluster-4969/instances/instance-4969"; + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + + ExecuteSqlResponse actualResponse = + client.executeSql(instance, database, user, sqlStatement, password); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeSqlExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = + "projects/project-4969/locations/location-4969/clusters/cluster-4969/instances/instance-4969"; + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + client.executeSql(instance, database, user, sqlStatement, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listBackupsTest() throws Exception { Backup responsesElement = Backup.newBuilder().build(); @@ -2375,7 +2799,9 @@ public void getBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2437,7 +2863,9 @@ public void getBackupTest2() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2499,7 +2927,9 @@ public void createBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2570,7 +3000,9 @@ public void createBackupTest2() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2641,7 +3073,9 @@ public void updateBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2671,7 +3105,9 @@ public void updateBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2721,7 +3157,9 @@ public void updateBackupExceptionTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupAsync(backup, updateMask).get(); @@ -3018,6 +3456,7 @@ public void getConnectionInfoTest() throws Exception { ConnectionInfo.newBuilder() .setName("name3373707") .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setInstanceUid("instanceUid-2102004869") .build(); mockService.addResponse(expectedResponse); @@ -3064,6 +3503,7 @@ public void getConnectionInfoTest2() throws Exception { ConnectionInfo.newBuilder() .setName("name3373707") .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setInstanceUid("instanceUid-2102004869") .build(); mockService.addResponse(expectedResponse); @@ -3213,6 +3653,7 @@ public void getUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockService.addResponse(expectedResponse); @@ -3259,6 +3700,7 @@ public void getUserTest2() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockService.addResponse(expectedResponse); @@ -3307,6 +3749,7 @@ public void createUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockService.addResponse(expectedResponse); @@ -3357,6 +3800,7 @@ public void createUserTest2() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockService.addResponse(expectedResponse); @@ -3407,6 +3851,7 @@ public void updateUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockService.addResponse(expectedResponse); @@ -3415,6 +3860,7 @@ public void updateUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3449,6 +3895,7 @@ public void updateUserExceptionTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateUser(user, updateMask); @@ -3540,6 +3987,106 @@ public void deleteUserExceptionTest2() throws Exception { } } + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabasesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabasesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java index aa7d7940115d..13236394930d 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse; +import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse; import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse; @@ -215,6 +216,13 @@ public void getClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -274,6 +282,13 @@ public void getClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -333,6 +348,13 @@ public void createClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -406,6 +428,13 @@ public void createClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -479,6 +508,13 @@ public void updateClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -633,6 +669,13 @@ public void promoteClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -700,6 +743,13 @@ public void promoteClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -741,6 +791,154 @@ public void promoteClusterExceptionTest2() throws Exception { } } + @Test + public void switchoverClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + Cluster actualResponse = client.switchoverClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverClusterRequest actualRequest = ((SwitchoverClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.switchoverClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void switchoverClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + + Cluster actualResponse = client.switchoverClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverClusterRequest actualRequest = ((SwitchoverClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + client.switchoverClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void restoreClusterTest() throws Exception { Cluster expectedResponse = @@ -767,6 +965,13 @@ public void restoreClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -855,6 +1060,13 @@ public void createSecondaryClusterTest() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -929,6 +1141,13 @@ public void createSecondaryClusterTest2() throws Exception { .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1085,10 +1304,15 @@ public void getInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1142,10 +1366,15 @@ public void getInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1199,10 +1428,15 @@ public void createInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1270,10 +1504,15 @@ public void createInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1341,10 +1580,15 @@ public void createSecondaryInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1414,10 +1658,15 @@ public void createSecondaryInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1546,10 +1795,15 @@ public void updateInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1698,10 +1952,15 @@ public void failoverInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1763,10 +2022,15 @@ public void failoverInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1828,10 +2092,15 @@ public void injectFaultTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1896,10 +2165,15 @@ public void injectFaultTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1964,10 +2238,15 @@ public void restartInstanceTest() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2029,10 +2308,15 @@ public void restartInstanceTest2() throws Exception { .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setReconciling(true) .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) + .addAllOutboundPublicIpAddresses(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2074,6 +2358,110 @@ public void restartInstanceExceptionTest2() throws Exception { } } + @Test + public void executeSqlTest() throws Exception { + ExecuteSqlResponse expectedResponse = + ExecuteSqlResponse.newBuilder() + .addAllSqlResults(new ArrayList()) + .setMetadata(ExecuteSqlMetadata.newBuilder().build()) + .build(); + mockAlloyDBAdmin.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]"); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + + ExecuteSqlResponse actualResponse = + client.executeSql(instance, database, user, sqlStatement, password); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteSqlRequest actualRequest = ((ExecuteSqlRequest) actualRequests.get(0)); + + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertEquals(sqlStatement, actualRequest.getSqlStatement()); + Assert.assertEquals(password, actualRequest.getPassword()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeSqlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]"); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + client.executeSql(instance, database, user, sqlStatement, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeSqlTest2() throws Exception { + ExecuteSqlResponse expectedResponse = + ExecuteSqlResponse.newBuilder() + .addAllSqlResults(new ArrayList()) + .setMetadata(ExecuteSqlMetadata.newBuilder().build()) + .build(); + mockAlloyDBAdmin.addResponse(expectedResponse); + + String instance = "instance555127957"; + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + + ExecuteSqlResponse actualResponse = + client.executeSql(instance, database, user, sqlStatement, password); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteSqlRequest actualRequest = ((ExecuteSqlRequest) actualRequests.get(0)); + + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertEquals(sqlStatement, actualRequest.getSqlStatement()); + Assert.assertEquals(password, actualRequest.getPassword()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeSqlExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String instance = "instance555127957"; + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + client.executeSql(instance, database, user, sqlStatement, password); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listBackupsTest() throws Exception { Backup responsesElement = Backup.newBuilder().build(); @@ -2184,7 +2572,9 @@ public void getBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2240,7 +2630,9 @@ public void getBackupTest2() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2296,7 +2688,9 @@ public void createBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2366,7 +2760,9 @@ public void createBackupTest2() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2436,7 +2832,9 @@ public void updateBackupTest() throws Exception { .setSizeBytes(-1796325715) .setExpiryTime(Timestamp.newBuilder().build()) .setExpiryQuantity(Backup.QuantityBasedExpiry.newBuilder().build()) + .setSatisfiesPzs(true) .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .putAllTags(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2743,6 +3141,7 @@ public void getConnectionInfoTest() throws Exception { ConnectionInfo.newBuilder() .setName("name3373707") .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setInstanceUid("instanceUid-2102004869") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2783,6 +3182,7 @@ public void getConnectionInfoTest2() throws Exception { ConnectionInfo.newBuilder() .setName("name3373707") .setIpAddress("ipAddress1634032845") + .setPublicIpAddress("publicIpAddress2055303268") .setInstanceUid("instanceUid-2102004869") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2912,6 +3312,7 @@ public void getUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2952,6 +3353,7 @@ public void getUserTest2() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -2992,6 +3394,7 @@ public void createUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3038,6 +3441,7 @@ public void createUserTest2() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3084,6 +3488,7 @@ public void updateUserTest() throws Exception { .setName(UserName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[USER]").toString()) .setPassword("password1216985755") .addAllDatabaseRoles(new ArrayList()) + .setKeepExtraRoles(true) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3188,6 +3593,94 @@ public void deleteUserExceptionTest2() throws Exception { } } + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockAlloyDBAdmin.addResponse(expectedResponse); + + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockAlloyDBAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java index 827fd99dbcaa..1fb30f525843 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java @@ -185,6 +185,27 @@ public void promoteCluster( } } + @Override + public void switchoverCluster( + SwitchoverClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SwitchoverCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void restoreCluster( RestoreClusterRequest request, StreamObserver responseObserver) { @@ -435,6 +456,27 @@ public void restartInstance( } } + @Override + public void executeSql( + ExecuteSqlRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExecuteSqlResponse) { + requests.add(request); + responseObserver.onNext(((ExecuteSqlResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteSql, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExecuteSqlResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listBackups( ListBackupsRequest request, StreamObserver responseObserver) { @@ -704,4 +746,25 @@ public void deleteUser(DeleteUserRequest request, StreamObserver response Exception.class.getName()))); } } + + @Override + public void listDatabases( + ListDatabasesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabasesResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabasesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatabases, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabasesResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java index 9afc3d22e2d5..db111c850094 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java @@ -293,6 +293,49 @@ private AlloyDBAdminGrpc() {} return getPromoteClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.SwitchoverClusterRequest, com.google.longrunning.Operation> + getSwitchoverClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SwitchoverCluster", + requestType = com.google.cloud.alloydb.v1.SwitchoverClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.SwitchoverClusterRequest, com.google.longrunning.Operation> + getSwitchoverClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.SwitchoverClusterRequest, com.google.longrunning.Operation> + getSwitchoverClusterMethod; + if ((getSwitchoverClusterMethod = AlloyDBAdminGrpc.getSwitchoverClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getSwitchoverClusterMethod = AlloyDBAdminGrpc.getSwitchoverClusterMethod) == null) { + AlloyDBAdminGrpc.getSwitchoverClusterMethod = + getSwitchoverClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SwitchoverCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("SwitchoverCluster")) + .build(); + } + } + } + return getSwitchoverClusterMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.alloydb.v1.RestoreClusterRequest, com.google.longrunning.Operation> getRestoreClusterMethod; @@ -824,6 +867,50 @@ private AlloyDBAdminGrpc() {} return getRestartInstanceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExecuteSqlRequest, + com.google.cloud.alloydb.v1.ExecuteSqlResponse> + getExecuteSqlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExecuteSql", + requestType = com.google.cloud.alloydb.v1.ExecuteSqlRequest.class, + responseType = com.google.cloud.alloydb.v1.ExecuteSqlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExecuteSqlRequest, + com.google.cloud.alloydb.v1.ExecuteSqlResponse> + getExecuteSqlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExecuteSqlRequest, + com.google.cloud.alloydb.v1.ExecuteSqlResponse> + getExecuteSqlMethod; + if ((getExecuteSqlMethod = AlloyDBAdminGrpc.getExecuteSqlMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getExecuteSqlMethod = AlloyDBAdminGrpc.getExecuteSqlMethod) == null) { + AlloyDBAdminGrpc.getExecuteSqlMethod = + getExecuteSqlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteSql")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ExecuteSqlRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ExecuteSqlResponse.getDefaultInstance())) + .setSchemaDescriptor(new AlloyDBAdminMethodDescriptorSupplier("ExecuteSql")) + .build(); + } + } + } + return getExecuteSqlMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.alloydb.v1.ListBackupsRequest, com.google.cloud.alloydb.v1.ListBackupsResponse> @@ -1387,6 +1474,53 @@ private AlloyDBAdminGrpc() {} return getDeleteUserMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ListDatabasesRequest, + com.google.cloud.alloydb.v1.ListDatabasesResponse> + getListDatabasesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatabases", + requestType = com.google.cloud.alloydb.v1.ListDatabasesRequest.class, + responseType = com.google.cloud.alloydb.v1.ListDatabasesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ListDatabasesRequest, + com.google.cloud.alloydb.v1.ListDatabasesResponse> + getListDatabasesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ListDatabasesRequest, + com.google.cloud.alloydb.v1.ListDatabasesResponse> + getListDatabasesMethod; + if ((getListDatabasesMethod = AlloyDBAdminGrpc.getListDatabasesMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getListDatabasesMethod = AlloyDBAdminGrpc.getListDatabasesMethod) == null) { + AlloyDBAdminGrpc.getListDatabasesMethod = + getListDatabasesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ListDatabasesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ListDatabasesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ListDatabases")) + .build(); + } + } + } + return getListDatabasesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AlloyDBAdminStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1524,6 +1658,22 @@ default void promoteCluster( getPromoteClusterMethod(), responseObserver); } + /** + * + * + *
+     * Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
+     * This promotes the SECONDARY cluster to PRIMARY and sets up the original
+     * PRIMARY cluster to replicate from this newly promoted cluster.
+     * 
+ */ + default void switchoverCluster( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSwitchoverClusterMethod(), responseObserver); + } + /** * * @@ -1709,6 +1859,20 @@ default void restartInstance( getRestartInstanceMethod(), responseObserver); } + /** + * + * + *
+     * Executes a SQL statement in a database inside an AlloyDB instance.
+     * 
+ */ + default void executeSql( + com.google.cloud.alloydb.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteSqlMethod(), responseObserver); + } + /** * * @@ -1892,6 +2056,21 @@ default void deleteUser( io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver); } + + /** + * + * + *
+     * Lists Databases in a given project and location.
+     * 
+ */ + default void listDatabases( + com.google.cloud.alloydb.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatabasesMethod(), responseObserver); + } } /** @@ -2026,6 +2205,24 @@ public void promoteCluster( responseObserver); } + /** + * + * + *
+     * Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
+     * This promotes the SECONDARY cluster to PRIMARY and sets up the original
+     * PRIMARY cluster to replicate from this newly promoted cluster.
+     * 
+ */ + public void switchoverCluster( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSwitchoverClusterMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2235,6 +2432,21 @@ public void restartInstance( responseObserver); } + /** + * + * + *
+     * Executes a SQL statement in a database inside an AlloyDB instance.
+     * 
+ */ + public void executeSql( + com.google.cloud.alloydb.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteSqlMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2438,6 +2650,23 @@ public void deleteUser( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Lists Databases in a given project and location.
+     * 
+ */ + public void listDatabases( + com.google.cloud.alloydb.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatabasesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2540,6 +2769,21 @@ public com.google.longrunning.Operation promoteCluster( getChannel(), getPromoteClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
+     * This promotes the SECONDARY cluster to PRIMARY and sets up the original
+     * PRIMARY cluster to replicate from this newly promoted cluster.
+     * 
+ */ + public com.google.longrunning.Operation switchoverCluster( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSwitchoverClusterMethod(), getCallOptions(), request); + } + /** * * @@ -2712,6 +2956,19 @@ public com.google.longrunning.Operation restartInstance( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Executes a SQL statement in a database inside an AlloyDB instance.
+     * 
+ */ + public com.google.cloud.alloydb.v1.ExecuteSqlResponse executeSql( + com.google.cloud.alloydb.v1.ExecuteSqlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteSqlMethod(), getCallOptions(), request); + } + /** * * @@ -2885,6 +3142,19 @@ public com.google.protobuf.Empty deleteUser( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists Databases in a given project and location.
+     * 
+ */ + public com.google.cloud.alloydb.v1.ListDatabasesResponse listDatabases( + com.google.cloud.alloydb.v1.ListDatabasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatabasesMethod(), getCallOptions(), request); + } } /** @@ -2988,6 +3258,21 @@ protected AlloyDBAdminFutureStub build( getChannel().newCall(getPromoteClusterMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
+     * This promotes the SECONDARY cluster to PRIMARY and sets up the original
+     * PRIMARY cluster to replicate from this newly promoted cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + switchoverCluster(com.google.cloud.alloydb.v1.SwitchoverClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSwitchoverClusterMethod(), getCallOptions()), request); + } + /** * * @@ -3162,6 +3447,20 @@ protected AlloyDBAdminFutureStub build( getChannel().newCall(getRestartInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Executes a SQL statement in a database inside an AlloyDB instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.alloydb.v1.ExecuteSqlResponse> + executeSql(com.google.cloud.alloydb.v1.ExecuteSqlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteSqlMethod(), getCallOptions()), request); + } + /** * * @@ -3341,6 +3640,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists Databases in a given project and location. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.alloydb.v1.ListDatabasesResponse> + listDatabases(com.google.cloud.alloydb.v1.ListDatabasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatabasesMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -3349,31 +3662,34 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3423,6 +3739,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1.PromoteClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SWITCHOVER_CLUSTER: + serviceImpl.switchoverCluster( + (com.google.cloud.alloydb.v1.SwitchoverClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_RESTORE_CLUSTER: serviceImpl.restoreCluster( (com.google.cloud.alloydb.v1.RestoreClusterRequest) request, @@ -3484,6 +3805,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1.RestartInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXECUTE_SQL: + serviceImpl.executeSql( + (com.google.cloud.alloydb.v1.ExecuteSqlRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_BACKUPS: serviceImpl.listBackups( (com.google.cloud.alloydb.v1.ListBackupsRequest) request, @@ -3556,6 +3883,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1.DeleteUserRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_DATABASES: + serviceImpl.listDatabases( + (com.google.cloud.alloydb.v1.ListDatabasesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -3611,6 +3944,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1.PromoteClusterRequest, com.google.longrunning.Operation>(service, METHODID_PROMOTE_CLUSTER))) + .addMethod( + getSwitchoverClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.SwitchoverClusterRequest, + com.google.longrunning.Operation>(service, METHODID_SWITCHOVER_CLUSTER))) .addMethod( getRestoreClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3684,6 +4023,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1.RestartInstanceRequest, com.google.longrunning.Operation>(service, METHODID_RESTART_INSTANCE))) + .addMethod( + getExecuteSqlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.ExecuteSqlRequest, + com.google.cloud.alloydb.v1.ExecuteSqlResponse>(service, METHODID_EXECUTE_SQL))) .addMethod( getListBackupsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3766,6 +4111,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1.DeleteUserRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_USER))) + .addMethod( + getListDatabasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.ListDatabasesRequest, + com.google.cloud.alloydb.v1.ListDatabasesResponse>( + service, METHODID_LIST_DATABASES))) .build(); } @@ -3823,6 +4175,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getPromoteClusterMethod()) + .addMethod(getSwitchoverClusterMethod()) .addMethod(getRestoreClusterMethod()) .addMethod(getCreateSecondaryClusterMethod()) .addMethod(getListInstancesMethod()) @@ -3835,6 +4188,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getFailoverInstanceMethod()) .addMethod(getInjectFaultMethod()) .addMethod(getRestartInstanceMethod()) + .addMethod(getExecuteSqlMethod()) .addMethod(getListBackupsMethod()) .addMethod(getGetBackupMethod()) .addMethod(getCreateBackupMethod()) @@ -3848,6 +4202,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateUserMethod()) .addMethod(getUpdateUserMethod()) .addMethod(getDeleteUserMethod()) + .addMethod(getListDatabasesMethod()) .build(); } } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Backup.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Backup.java index 581ac62c6ac5..f286e8d3b801 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Backup.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Backup.java @@ -71,6 +71,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl return internalGetLabels(); case 16: return internalGetAnnotations(); + case 25: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2251,6 +2253,24 @@ public com.google.cloud.alloydb.v1.Backup.QuantityBasedExpiry getExpiryQuantity( : expiryQuantity_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 21; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + public static final int DATABASE_VERSION_FIELD_NUMBER = 22; private int databaseVersion_ = 0; /** @@ -2294,6 +2314,136 @@ public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; } + public static final int TAGS_FIELD_NUMBER = 25; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2366,10 +2516,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(20, getExpiryQuantity()); } + if (satisfiesPzs_ != false) { + output.writeBool(21, satisfiesPzs_); + } if (databaseVersion_ != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(22, databaseVersion_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 25); getUnknownFields().writeTo(output); } @@ -2453,10 +2608,23 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getExpiryQuantity()); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, satisfiesPzs_); + } if (databaseVersion_ != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, databaseVersion_); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2513,7 +2681,9 @@ public boolean equals(final java.lang.Object obj) { if (hasExpiryQuantity()) { if (!getExpiryQuantity().equals(other.getExpiryQuantity())) return false; } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (databaseVersion_ != other.databaseVersion_) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2583,8 +2753,14 @@ public int hashCode() { hash = (37 * hash) + EXPIRY_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + getExpiryQuantity().hashCode(); } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER; hash = (53 * hash) + databaseVersion_; + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2710,6 +2886,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl return internalGetLabels(); case 16: return internalGetAnnotations(); + case 25: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2723,6 +2901,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi return internalGetMutableLabels(); case 16: return internalGetMutableAnnotations(); + case 25: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2812,7 +2992,9 @@ public Builder clear() { expiryQuantityBuilder_.dispose(); expiryQuantityBuilder_ = null; } + satisfiesPzs_ = false; databaseVersion_ = 0; + internalGetMutableTags().clear(); return this; } @@ -2922,8 +3104,15 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Backup result) { to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00100000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { result.databaseVersion_ = databaseVersion_; } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -3044,9 +3233,14 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Backup other) { if (other.hasExpiryQuantity()) { mergeExpiryQuantity(other.getExpiryQuantity()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } if (other.databaseVersion_ != 0) { setDatabaseVersionValue(other.getDatabaseVersionValue()); } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00400000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3206,12 +3400,27 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 162 + case 168: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00100000; + break; + } // case 168 case 176: { databaseVersion_ = input.readEnum(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 176 + case 202: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00400000; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6178,6 +6387,59 @@ public Builder clearExpiryQuantity() { return expiryQuantityBuilder_; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00100000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + private int databaseVersion_ = 0; /** * @@ -6216,7 +6478,7 @@ public int getDatabaseVersionValue() { */ public Builder setDatabaseVersionValue(int value) { databaseVersion_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6261,7 +6523,7 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; databaseVersion_ = value.getNumber(); onChanged(); return this; @@ -6282,12 +6544,224 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion va * @return This builder for chaining. */ public Builder clearDatabaseVersion() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); databaseVersion_ = 0; onChanged(); return this; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00400000; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00400000); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00400000; + return internalGetMutableTags().getMutableMap(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00400000; + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
+     * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00400000; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupOrBuilder.java index 8f7fa3e57884..5d910fe99f24 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupOrBuilder.java @@ -730,6 +730,19 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.alloydb.v1.Backup.QuantityBasedExpiryOrBuilder getExpiryQuantityOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + /** * * @@ -762,4 +775,97 @@ java.lang.String getAnnotationsOrDefault( * @return The databaseVersion. */ com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstanceStatus.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstanceStatus.java index 7c0b6f585e94..6bf1dc123438 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstanceStatus.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstanceStatus.java @@ -106,7 +106,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Instance is pending creation and has not yet been picked up for
-     * processsing in the backend.
+     * processing in the backend.
      * 
* * PENDING_CREATE = 1; @@ -182,7 +182,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Instance is pending creation and has not yet been picked up for
-     * processsing in the backend.
+     * processing in the backend.
      * 
* * PENDING_CREATE = 1; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequest.java index 490fa0b36a53..57f1e2ee382a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequest.java @@ -185,14 +185,14 @@ public com.google.cloud.alloydb.v1.CreateInstanceRequestsOrBuilder getRequestsOr * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -220,14 +220,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -988,14 +988,14 @@ public com.google.cloud.alloydb.v1.CreateInstanceRequestsOrBuilder getRequestsOr
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1022,14 +1022,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1056,14 +1056,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1089,14 +1089,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1118,14 +1118,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequestOrBuilder.java
index b68b7637a58a..9652b65c0acd 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BatchCreateInstancesRequestOrBuilder.java
@@ -99,14 +99,14 @@ public interface BatchCreateInstancesRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -123,14 +123,14 @@ public interface BatchCreateInstancesRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
index 2172efd42eeb..ce555c60fb61 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java
@@ -49,6 +49,7 @@ private Cluster() {
     databaseVersion_ = 0;
     network_ = "";
     etag_ = "";
+    subscriptionType_ = 0;
   }
 
   @java.lang.Override
@@ -71,6 +72,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         return internalGetLabels();
       case 12:
         return internalGetAnnotations();
+      case 41:
+        return internalGetTags();
       default:
         throw new RuntimeException("Invalid map field number: " + number);
     }
@@ -581,16 +584,16 @@ public interface NetworkConfigOrBuilder
      *
      *
      * 
-     * Required. The resource link for the VPC network in which cluster
+     * Optional. The resource link for the VPC network in which cluster
      * resources are created and from which they are accessible via Private IP.
      * The network must belong to the same project as the cluster. It is
      * specified in the form:
-     * "projects/{project_number}/global/networks/{network_id}". This is
+     * `projects/{project_number}/global/networks/{network_id}`. This is
      * required to create a cluster.
      * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The network. @@ -600,16 +603,16 @@ public interface NetworkConfigOrBuilder * * *
-     * Required. The resource link for the VPC network in which cluster
+     * Optional. The resource link for the VPC network in which cluster
      * resources are created and from which they are accessible via Private IP.
      * The network must belong to the same project as the cluster. It is
      * specified in the form:
-     * "projects/{project_number}/global/networks/{network_id}". This is
+     * `projects/{project_number}/global/networks/{network_id}`. This is
      * required to create a cluster.
      * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. @@ -706,16 +709,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. The resource link for the VPC network in which cluster
+     * Optional. The resource link for the VPC network in which cluster
      * resources are created and from which they are accessible via Private IP.
      * The network must belong to the same project as the cluster. It is
      * specified in the form:
-     * "projects/{project_number}/global/networks/{network_id}". This is
+     * `projects/{project_number}/global/networks/{network_id}`. This is
      * required to create a cluster.
      * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The network. @@ -736,16 +739,16 @@ public java.lang.String getNetwork() { * * *
-     * Required. The resource link for the VPC network in which cluster
+     * Optional. The resource link for the VPC network in which cluster
      * resources are created and from which they are accessible via Private IP.
      * The network must belong to the same project as the cluster. It is
      * specified in the form:
-     * "projects/{project_number}/global/networks/{network_id}". This is
+     * `projects/{project_number}/global/networks/{network_id}`. This is
      * required to create a cluster.
      * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. @@ -1201,16 +1204,16 @@ public Builder mergeFrom( * * *
-       * Required. The resource link for the VPC network in which cluster
+       * Optional. The resource link for the VPC network in which cluster
        * resources are created and from which they are accessible via Private IP.
        * The network must belong to the same project as the cluster. It is
        * specified in the form:
-       * "projects/{project_number}/global/networks/{network_id}". This is
+       * `projects/{project_number}/global/networks/{network_id}`. This is
        * required to create a cluster.
        * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The network. @@ -1230,16 +1233,16 @@ public java.lang.String getNetwork() { * * *
-       * Required. The resource link for the VPC network in which cluster
+       * Optional. The resource link for the VPC network in which cluster
        * resources are created and from which they are accessible via Private IP.
        * The network must belong to the same project as the cluster. It is
        * specified in the form:
-       * "projects/{project_number}/global/networks/{network_id}". This is
+       * `projects/{project_number}/global/networks/{network_id}`. This is
        * required to create a cluster.
        * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. @@ -1259,16 +1262,16 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-       * Required. The resource link for the VPC network in which cluster
+       * Optional. The resource link for the VPC network in which cluster
        * resources are created and from which they are accessible via Private IP.
        * The network must belong to the same project as the cluster. It is
        * specified in the form:
-       * "projects/{project_number}/global/networks/{network_id}". This is
+       * `projects/{project_number}/global/networks/{network_id}`. This is
        * required to create a cluster.
        * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The network to set. @@ -1287,16 +1290,16 @@ public Builder setNetwork(java.lang.String value) { * * *
-       * Required. The resource link for the VPC network in which cluster
+       * Optional. The resource link for the VPC network in which cluster
        * resources are created and from which they are accessible via Private IP.
        * The network must belong to the same project as the cluster. It is
        * specified in the form:
-       * "projects/{project_number}/global/networks/{network_id}". This is
+       * `projects/{project_number}/global/networks/{network_id}`. This is
        * required to create a cluster.
        * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1311,16 +1314,16 @@ public Builder clearNetwork() { * * *
-       * Required. The resource link for the VPC network in which cluster
+       * Optional. The resource link for the VPC network in which cluster
        * resources are created and from which they are accessible via Private IP.
        * The network must belong to the same project as the cluster. It is
        * specified in the form:
-       * "projects/{project_number}/global/networks/{network_id}". This is
+       * `projects/{project_number}/global/networks/{network_id}`. This is
        * required to create a cluster.
        * 
* * - * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for network to set. @@ -3010,3254 +3013,7221 @@ public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig getDefaultInstanceForTy } } - private int bitField0_; - private int sourceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object source_; - - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BACKUP_SOURCE(15), - MIGRATION_SOURCE(16), - SOURCE_NOT_SET(0); - private final int value; + public interface PscConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Cluster.PscConfig) + com.google.protobuf.MessageOrBuilder { - private SourceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. Create an instance that allows connections from Private Service
+     * Connect endpoints to the instance.
+     * 
+ * + * bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pscEnabled. */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 15: - return BACKUP_SOURCE; - case 16: - return MIGRATION_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public static final int BACKUP_SOURCE_FIELD_NUMBER = 15; - /** - * - * - *
-   * Output only. Cluster created from backup.
-   * 
- * - * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the backupSource field is set. - */ - @java.lang.Override - public boolean hasBackupSource() { - return sourceCase_ == 15; - } - /** - * - * - *
-   * Output only. Cluster created from backup.
-   * 
- * - * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The backupSource. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.BackupSource getBackupSource() { - if (sourceCase_ == 15) { - return (com.google.cloud.alloydb.v1.BackupSource) source_; - } - return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + boolean getPscEnabled(); } /** * * *
-   * Output only. Cluster created from backup.
+   * PscConfig contains PSC related configuration at a cluster level.
    * 
* - * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Protobuf type {@code google.cloud.alloydb.v1.Cluster.PscConfig} */ - @java.lang.Override - public com.google.cloud.alloydb.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { - if (sourceCase_ == 15) { - return (com.google.cloud.alloydb.v1.BackupSource) source_; + public static final class PscConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Cluster.PscConfig) + PscConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscConfig.newBuilder() to construct. + private PscConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); - } - public static final int MIGRATION_SOURCE_FIELD_NUMBER = 16; - /** - * - * - *
-   * Output only. Cluster created via DMS migration.
-   * 
- * - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the migrationSource field is set. - */ - @java.lang.Override - public boolean hasMigrationSource() { - return sourceCase_ == 16; - } - /** - * - * - *
-   * Output only. Cluster created via DMS migration.
-   * 
- * - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The migrationSource. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.MigrationSource getMigrationSource() { - if (sourceCase_ == 16) { - return (com.google.cloud.alloydb.v1.MigrationSource) source_; + private PscConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscConfig(); } - return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } - /** - * - * - *
-   * Output only. Cluster created via DMS migration.
-   * 
- * - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOrBuilder() { - if (sourceCase_ == 16) { - return (com.google.cloud.alloydb.v1.MigrationSource) source_; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor; } - return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } - public static final int NAME_FIELD_NUMBER = 1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Cluster.PscConfig.class, + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder.class); + } - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The name of the cluster resource with the format:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-   * where the cluster ID segment should satisfy the regex expression
-   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-   * The prefix of the cluster resource name is the name of the parent resource:
-   *  * projects/{project}/locations/{region}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public static final int PSC_ENABLED_FIELD_NUMBER = 1; + private boolean pscEnabled_ = false; + /** + * + * + *
+     * Optional. Create an instance that allows connections from Private Service
+     * Connect endpoints to the instance.
+     * 
+ * + * bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pscEnabled. + */ + @java.lang.Override + public boolean getPscEnabled() { + return pscEnabled_; } - } - /** - * - * - *
-   * Output only. The name of the cluster resource with the format:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-   * where the cluster ID segment should satisfy the regex expression
-   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-   * The prefix of the cluster resource name is the name of the parent resource:
-   *  * projects/{project}/locations/{region}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pscEnabled_ != false) { + output.writeBool(1, pscEnabled_); + } + getUnknownFields().writeTo(output); + } - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - * - * - *
-   * User-settable and human-readable display name for the Cluster.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pscEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, pscEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - } - /** - * - * - *
-   * User-settable and human-readable display name for the Cluster.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Cluster.PscConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Cluster.PscConfig other = + (com.google.cloud.alloydb.v1.Cluster.PscConfig) obj; + + if (getPscEnabled() != other.getPscEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - public static final int UID_FIELD_NUMBER = 3; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PSC_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPscEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; - /** - * - * - *
-   * Output only. The system-generated UID of the resource. The UID is assigned
-   * when the resource is created, and it is retained until it is deleted.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - 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(); - uid_ = s; - return s; + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - /** - * - * - *
-   * Output only. The system-generated UID of the resource. The UID is assigned
-   * when the resource is created, and it is retained until it is deleted.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DELETE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp deleteTime_; - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteTime field is set. - */ - @java.lang.Override - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeleteTime() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int LABELS_FIELD_NUMBER = 7; + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.alloydb.v1.Cluster.PscConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - return map.get(key); - } - public static final int STATE_FIELD_NUMBER = 8; - private int state_ = 0; - /** - * - * - *
-   * Output only. The current serving state of the cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The current serving state of the cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.State getState() { - com.google.cloud.alloydb.v1.Cluster.State result = - com.google.cloud.alloydb.v1.Cluster.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1.Cluster.State.UNRECOGNIZED : result; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int CLUSTER_TYPE_FIELD_NUMBER = 24; - private int clusterType_ = 0; - /** - * - * - *
-   * Output only. The type of the cluster. This is an output-only field and it's
-   * populated at the Cluster creation time or the Cluster promotion
-   * time. The cluster type is determined by which RPC was used to create
-   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterType. - */ - @java.lang.Override - public int getClusterTypeValue() { - return clusterType_; - } - /** - * - * - *
-   * Output only. The type of the cluster. This is an output-only field and it's
-   * populated at the Cluster creation time or the Cluster promotion
-   * time. The cluster type is determined by which RPC was used to create
-   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterType. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { - com.google.cloud.alloydb.v1.Cluster.ClusterType result = - com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); - return result == null ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED : result; - } + public static Builder newBuilder(com.google.cloud.alloydb.v1.Cluster.PscConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int DATABASE_VERSION_FIELD_NUMBER = 9; - private int databaseVersion_ = 0; - /** - * - * - *
-   * Optional. The database engine major version. This is an optional field and
-   * it is populated at the Cluster creation time. If a database version is not
-   * supplied at cluster creation time, then a default database version will
-   * be used.
-   * 
- * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for databaseVersion. - */ - @java.lang.Override - public int getDatabaseVersionValue() { - return databaseVersion_; - } - /** - * - * - *
-   * Optional. The database engine major version. This is an optional field and
-   * it is populated at the Cluster creation time. If a database version is not
-   * supplied at cluster creation time, then a default database version will
-   * be used.
-   * 
- * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The databaseVersion. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { - com.google.cloud.alloydb.v1.DatabaseVersion result = - com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); - return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; - } - - public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; - private com.google.cloud.alloydb.v1.Cluster.NetworkConfig networkConfig_; - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The networkConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.NetworkConfig getNetworkConfig() { - return networkConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return networkConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - - public static final int NETWORK_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Required. The resource link for the VPC network in which cluster resources
-   * are created and from which they are accessible via Private IP. The network
-   * must belong to the same project as the cluster. It is specified in the
-   * form: "projects/{project}/global/networks/{network_id}". This is required
-   * to create a cluster. Deprecated, use network_config.network instead.
-   * 
- * - * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @return The network. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - 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(); - network_ = s; - return s; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * - * - *
-   * Required. The resource link for the VPC network in which cluster resources
-   * are created and from which they are accessible via Private IP. The network
-   * must belong to the same project as the cluster. It is specified in the
-   * form: "projects/{project}/global/networks/{network_id}". This is required
-   * to create a cluster. Deprecated, use network_config.network instead.
-   * 
- * - * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @return The bytes for network. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - } + /** + * + * + *
+     * PscConfig contains PSC related configuration at a cluster level.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Cluster.PscConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Cluster.PscConfig) + com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor; + } - public static final int ETAG_FIELD_NUMBER = 11; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Cluster.PscConfig.class, + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder.class); + } - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * For Resource freshness validation (https://google.aip.dev/154)
-   * 
- * - * string etag = 11; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * For Resource freshness validation (https://google.aip.dev/154)
-   * 
- * - * string etag = 11; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using com.google.cloud.alloydb.v1.Cluster.PscConfig.newBuilder() + private Builder() {} - public static final int ANNOTATIONS_FIELD_NUMBER = 12; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pscEnabled_ = false; + return this; + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor; + } - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance(); + } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 12; - */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetAnnotations().getMap().containsKey(key); - } - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 12; - */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 12; - */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 12; - */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfig build() { + com.google.cloud.alloydb.v1.Cluster.PscConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int RECONCILING_FIELD_NUMBER = 13; - private boolean reconciling_ = false; - /** - * - * - *
-   * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-   * Set to true if the current state of Cluster does not match the user's
-   * intended state, and the service is actively updating the resource to
-   * reconcile them. This can happen due to user-triggered updates or
-   * system actions like failover or maintenance.
-   * 
- * - * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The reconciling. - */ - @java.lang.Override - public boolean getReconciling() { - return reconciling_; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfig buildPartial() { + com.google.cloud.alloydb.v1.Cluster.PscConfig result = + new com.google.cloud.alloydb.v1.Cluster.PscConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static final int INITIAL_USER_FIELD_NUMBER = 14; - private com.google.cloud.alloydb.v1.UserPassword initialUser_; - /** - * - * - *
-   * Input only. Initial user to setup during cluster creation. Required.
-   * If used in `RestoreCluster` this is ignored.
-   * 
- * - * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * - * @return Whether the initialUser field is set. - */ - @java.lang.Override - public boolean hasInitialUser() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Input only. Initial user to setup during cluster creation. Required.
-   * If used in `RestoreCluster` this is ignored.
-   * 
- * - * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * - * @return The initialUser. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { - return initialUser_ == null - ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() - : initialUser_; - } - /** - * - * - *
-   * Input only. Initial user to setup during cluster creation. Required.
-   * If used in `RestoreCluster` this is ignored.
-   * 
- * - * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder() { - return initialUser_ == null - ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() - : initialUser_; - } + private void buildPartial0(com.google.cloud.alloydb.v1.Cluster.PscConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pscEnabled_ = pscEnabled_; + } + } - public static final int AUTOMATED_BACKUP_POLICY_FIELD_NUMBER = 17; - private com.google.cloud.alloydb.v1.AutomatedBackupPolicy automatedBackupPolicy_; - /** - * - * - *
-   * The automated backup policy for this cluster.
-   *
-   * If no policy is provided then the default policy will be used. If backups
-   * are supported for the cluster, the default policy takes one backup a day,
-   * has a backup window of 1 hour, and retains backups for 14 days.
-   * For more information on the defaults, consult the
-   * documentation for the message type.
-   * 
- * - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - * - * @return Whether the automatedBackupPolicy field is set. - */ - @java.lang.Override - public boolean hasAutomatedBackupPolicy() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * The automated backup policy for this cluster.
-   *
-   * If no policy is provided then the default policy will be used. If backups
-   * are supported for the cluster, the default policy takes one backup a day,
-   * has a backup window of 1 hour, and retains backups for 14 days.
-   * For more information on the defaults, consult the
-   * documentation for the message type.
-   * 
- * - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - * - * @return The automatedBackupPolicy. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolicy() { - return automatedBackupPolicy_ == null - ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() - : automatedBackupPolicy_; - } - /** - * - * - *
-   * The automated backup policy for this cluster.
-   *
-   * If no policy is provided then the default policy will be used. If backups
-   * are supported for the cluster, the default policy takes one backup a day,
-   * has a backup window of 1 hour, and retains backups for 14 days.
-   * For more information on the defaults, consult the
-   * documentation for the message type.
-   * 
- * - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder - getAutomatedBackupPolicyOrBuilder() { - return automatedBackupPolicy_ == null - ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() - : automatedBackupPolicy_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static final int SSL_CONFIG_FIELD_NUMBER = 18; - private com.google.cloud.alloydb.v1.SslConfig sslConfig_; - /** - * - * - *
-   * SSL configuration for this AlloyDB cluster.
-   * 
- * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - * - * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 - * @return Whether the sslConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasSslConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * SSL configuration for this AlloyDB cluster.
-   * 
- * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - * - * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 - * @return The sslConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } - /** - * - * - *
-   * SSL configuration for this AlloyDB cluster.
-   * 
- * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 19; - private com.google.cloud.alloydb.v1.EncryptionConfig encryptionConfig_; - /** - * - * - *
-   * Optional. The encryption config can be specified to encrypt the data disks
-   * and other persistent data resources of a cluster with a
-   * customer-managed encryption key (CMEK). When this field is not
-   * specified, the cluster will then use default encryption scheme to
-   * protect the user data.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - @java.lang.Override - public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Optional. The encryption config can be specified to encrypt the data disks
-   * and other persistent data resources of a cluster with a
-   * customer-managed encryption key (CMEK). When this field is not
-   * specified, the cluster will then use default encryption scheme to
-   * protect the user data.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } - /** - * - * - *
-   * Optional. The encryption config can be specified to encrypt the data disks
-   * and other persistent data resources of a cluster with a
-   * customer-managed encryption key (CMEK). When this field is not
-   * specified, the cluster will then use default encryption scheme to
-   * protect the user data.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { - return encryptionConfig_ == null - ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int ENCRYPTION_INFO_FIELD_NUMBER = 20; - private com.google.cloud.alloydb.v1.EncryptionInfo encryptionInfo_; - /** - * - * - *
-   * Output only. The encryption information for the cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the encryptionInfo field is set. - */ - @java.lang.Override - public boolean hasEncryptionInfo() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Output only. The encryption information for the cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The encryptionInfo. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.EncryptionInfo getEncryptionInfo() { - return encryptionInfo_ == null - ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; - } - /** - * - * - *
-   * Output only. The encryption information for the cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { - return encryptionInfo_ == null - ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER = 27; - private com.google.cloud.alloydb.v1.ContinuousBackupConfig continuousBackupConfig_; - /** - * - * - *
-   * Optional. Continuous backup configuration for this cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the continuousBackupConfig field is set. - */ - @java.lang.Override - public boolean hasContinuousBackupConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Optional. Continuous backup configuration for this cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The continuousBackupConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.ContinuousBackupConfig getContinuousBackupConfig() { - return continuousBackupConfig_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() - : continuousBackupConfig_; - } - /** - * - * - *
-   * Optional. Continuous backup configuration for this cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder - getContinuousBackupConfigOrBuilder() { - return continuousBackupConfig_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() - : continuousBackupConfig_; - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static final int CONTINUOUS_BACKUP_INFO_FIELD_NUMBER = 28; - private com.google.cloud.alloydb.v1.ContinuousBackupInfo continuousBackupInfo_; - /** - * - * - *
-   * Output only. Continuous backup properties for this cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the continuousBackupInfo field is set. - */ - @java.lang.Override - public boolean hasContinuousBackupInfo() { - return ((bitField0_ & 0x00000400) != 0); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Cluster.PscConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Cluster.PscConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster.PscConfig other) { + if (other == com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance()) + return this; + if (other.getPscEnabled() != false) { + setPscEnabled(other.getPscEnabled()); + } + 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: + { + pscEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean pscEnabled_; + /** + * + * + *
+       * Optional. Create an instance that allows connections from Private Service
+       * Connect endpoints to the instance.
+       * 
+ * + * bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pscEnabled. + */ + @java.lang.Override + public boolean getPscEnabled() { + return pscEnabled_; + } + /** + * + * + *
+       * Optional. Create an instance that allows connections from Private Service
+       * Connect endpoints to the instance.
+       * 
+ * + * bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pscEnabled to set. + * @return This builder for chaining. + */ + public Builder setPscEnabled(boolean value) { + + pscEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Create an instance that allows connections from Private Service
+       * Connect endpoints to the instance.
+       * 
+ * + * bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPscEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + pscEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Cluster.PscConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Cluster.PscConfig) + private static final com.google.cloud.alloydb.v1.Cluster.PscConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Cluster.PscConfig(); + } + + public static com.google.cloud.alloydb.v1.Cluster.PscConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TrialMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Cluster.TrialMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return Whether the upgradeTime field is set. + */ + boolean hasUpgradeTime(); + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return The upgradeTime. + */ + com.google.protobuf.Timestamp getUpgradeTime(); + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder(); + + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return Whether the graceEndTime field is set. + */ + boolean hasGraceEndTime(); + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return The graceEndTime. + */ + com.google.protobuf.Timestamp getGraceEndTime(); + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getGraceEndTimeOrBuilder(); } /** * * *
-   * Output only. Continuous backup properties for this cluster.
+   * Contains information and all metadata related to TRIAL clusters.
    * 
* - * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The continuousBackupInfo. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.ContinuousBackupInfo getContinuousBackupInfo() { - return continuousBackupInfo_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() - : continuousBackupInfo_; - } - /** - * - * - *
-   * Output only. Continuous backup properties for this cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder - getContinuousBackupInfoOrBuilder() { - return continuousBackupInfo_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() - : continuousBackupInfo_; - } - - public static final int SECONDARY_CONFIG_FIELD_NUMBER = 22; - private com.google.cloud.alloydb.v1.Cluster.SecondaryConfig secondaryConfig_; - /** - * - * - *
-   * Cross Region replication config specific to SECONDARY cluster.
-   * 
- * - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - * - * @return Whether the secondaryConfig field is set. - */ - @java.lang.Override - public boolean hasSecondaryConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Cross Region replication config specific to SECONDARY cluster.
-   * 
- * - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - * - * @return The secondaryConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig getSecondaryConfig() { - return secondaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() - : secondaryConfig_; - } - /** - * - * - *
-   * Cross Region replication config specific to SECONDARY cluster.
-   * 
- * - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder - getSecondaryConfigOrBuilder() { - return secondaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() - : secondaryConfig_; - } - - public static final int PRIMARY_CONFIG_FIELD_NUMBER = 23; - private com.google.cloud.alloydb.v1.Cluster.PrimaryConfig primaryConfig_; - /** - * - * - *
-   * Output only. Cross Region replication config specific to PRIMARY cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the primaryConfig field is set. - */ - @java.lang.Override - public boolean hasPrimaryConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Output only. Cross Region replication config specific to PRIMARY cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The primaryConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig getPrimaryConfig() { - return primaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() - : primaryConfig_; - } - /** - * - * - *
-   * Output only. Cross Region replication config specific to PRIMARY cluster.
-   * 
- * - * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Protobuf type {@code google.cloud.alloydb.v1.Cluster.TrialMetadata} */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder() { - return primaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() - : primaryConfig_; - } + public static final class TrialMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Cluster.TrialMetadata) + TrialMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrialMetadata.newBuilder() to construct. + private TrialMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; + private TrialMetadata() {} - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrialMetadata(); + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.class, + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder.class); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCreateTime()); + /** + * + * + *
+     * start time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getUpdateTime()); + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getDeleteTime()); + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - if (state_ != com.google.cloud.alloydb.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(8, state_); + /** + * + * + *
+     * End time of the trial cluster.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } - if (databaseVersion_ - != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { - output.writeEnum(9, databaseVersion_); + + public static final int UPGRADE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp upgradeTime_; + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return Whether the upgradeTime field is set. + */ + @java.lang.Override + public boolean hasUpgradeTime() { + return ((bitField0_ & 0x00000004) != 0); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, network_); + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return The upgradeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpgradeTime() { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 12); - if (reconciling_ != false) { - output.writeBool(13, reconciling_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(14, getInitialUser()); - } - if (sourceCase_ == 15) { - output.writeMessage(15, (com.google.cloud.alloydb.v1.BackupSource) source_); - } - if (sourceCase_ == 16) { - output.writeMessage(16, (com.google.cloud.alloydb.v1.MigrationSource) source_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(17, getAutomatedBackupPolicy()); + /** + * + * + *
+     * Upgrade time of trial cluster to Standard cluster.
+     * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder() { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(18, getSslConfig()); + + public static final int GRACE_END_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp graceEndTime_; + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return Whether the graceEndTime field is set. + */ + @java.lang.Override + public boolean hasGraceEndTime() { + return ((bitField0_ & 0x00000008) != 0); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(19, getEncryptionConfig()); + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return The graceEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getGraceEndTime() { + return graceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : graceEndTime_; } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(20, getEncryptionInfo()); + /** + * + * + *
+     * grace end time of the cluster.
+     * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getGraceEndTimeOrBuilder() { + return graceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : graceEndTime_; } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(22, getSecondaryConfig()); + + 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; } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(23, getPrimaryConfig()); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getUpgradeTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getGraceEndTime()); + } + getUnknownFields().writeTo(output); } - if (clusterType_ - != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(24, clusterType_); + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraceEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(27, getContinuousBackupConfig()); + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Cluster.TrialMetadata)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Cluster.TrialMetadata other = + (com.google.cloud.alloydb.v1.Cluster.TrialMetadata) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasUpgradeTime() != other.hasUpgradeTime()) return false; + if (hasUpgradeTime()) { + if (!getUpgradeTime().equals(other.getUpgradeTime())) return false; + } + if (hasGraceEndTime() != other.hasGraceEndTime()) return false; + if (hasGraceEndTime()) { + if (!getGraceEndTime().equals(other.getGraceEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(28, getContinuousBackupInfo()); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasUpgradeTime()) { + hash = (37 * hash) + UPGRADE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeTime().hashCode(); + } + if (hasGraceEndTime()) { + hash = (37 * hash) + GRACE_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getGraceEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(29, getNetworkConfig()); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteTime()); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - if (state_ != com.google.cloud.alloydb.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - if (databaseVersion_ - != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, databaseVersion_); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, network_); + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, annotations__); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); + + public static Builder newBuilder(com.google.cloud.alloydb.v1.Cluster.TrialMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInitialUser()); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (sourceCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.alloydb.v1.BackupSource) source_); + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - if (sourceCase_ == 16) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, (com.google.cloud.alloydb.v1.MigrationSource) source_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutomatedBackupPolicy()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSslConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEncryptionConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryptionInfo()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getSecondaryConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPrimaryConfig()); - } - if (clusterType_ - != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, clusterType_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(27, getContinuousBackupConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(28, getContinuousBackupInfo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
+     * Contains information and all metadata related to TRIAL clusters.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Cluster.TrialMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Cluster.TrialMetadata) + com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.alloydb.v1.Cluster)) { - return super.equals(obj); - } - com.google.cloud.alloydb.v1.Cluster other = (com.google.cloud.alloydb.v1.Cluster) obj; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.class, + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder.class); + } - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (state_ != other.state_) return false; - if (clusterType_ != other.clusterType_) return false; - if (databaseVersion_ != other.databaseVersion_) return false; - if (hasNetworkConfig() != other.hasNetworkConfig()) return false; - if (hasNetworkConfig()) { - if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; - } - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (hasInitialUser() != other.hasInitialUser()) return false; - if (hasInitialUser()) { - if (!getInitialUser().equals(other.getInitialUser())) return false; - } - if (hasAutomatedBackupPolicy() != other.hasAutomatedBackupPolicy()) return false; - if (hasAutomatedBackupPolicy()) { - if (!getAutomatedBackupPolicy().equals(other.getAutomatedBackupPolicy())) return false; - } - if (hasSslConfig() != other.hasSslConfig()) return false; - if (hasSslConfig()) { - if (!getSslConfig().equals(other.getSslConfig())) return false; - } - if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; - if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; - } - if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; - if (hasEncryptionInfo()) { - if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; - } - if (hasContinuousBackupConfig() != other.hasContinuousBackupConfig()) return false; - if (hasContinuousBackupConfig()) { - if (!getContinuousBackupConfig().equals(other.getContinuousBackupConfig())) return false; - } - if (hasContinuousBackupInfo() != other.hasContinuousBackupInfo()) return false; - if (hasContinuousBackupInfo()) { - if (!getContinuousBackupInfo().equals(other.getContinuousBackupInfo())) return false; - } - if (hasSecondaryConfig() != other.hasSecondaryConfig()) return false; - if (hasSecondaryConfig()) { - if (!getSecondaryConfig().equals(other.getSecondaryConfig())) return false; - } - if (hasPrimaryConfig() != other.hasPrimaryConfig()) return false; - if (hasPrimaryConfig()) { - if (!getPrimaryConfig().equals(other.getPrimaryConfig())) return false; - } - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 15: - if (!getBackupSource().equals(other.getBackupSource())) return false; - break; - case 16: - if (!getMigrationSource().equals(other.getMigrationSource())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // Construct using com.google.cloud.alloydb.v1.Cluster.TrialMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + clusterType_; - hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + databaseVersion_; - if (hasNetworkConfig()) { - hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkConfig().hashCode(); - } - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); - if (hasInitialUser()) { - hash = (37 * hash) + INITIAL_USER_FIELD_NUMBER; - hash = (53 * hash) + getInitialUser().hashCode(); - } - if (hasAutomatedBackupPolicy()) { - hash = (37 * hash) + AUTOMATED_BACKUP_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getAutomatedBackupPolicy().hashCode(); - } - if (hasSslConfig()) { - hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSslConfig().hashCode(); - } - if (hasEncryptionConfig()) { - hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEncryptionConfig().hashCode(); - } - if (hasEncryptionInfo()) { - hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getEncryptionInfo().hashCode(); - } - if (hasContinuousBackupConfig()) { - hash = (37 * hash) + CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getContinuousBackupConfig().hashCode(); - } - if (hasContinuousBackupInfo()) { - hash = (37 * hash) + CONTINUOUS_BACKUP_INFO_FIELD_NUMBER; - hash = (53 * hash) + getContinuousBackupInfo().hashCode(); - } - if (hasSecondaryConfig()) { - hash = (37 * hash) + SECONDARY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryConfig().hashCode(); - } - if (hasPrimaryConfig()) { - hash = (37 * hash) + PRIMARY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryConfig().hashCode(); - } - switch (sourceCase_) { - case 15: - hash = (37 * hash) + BACKUP_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getBackupSource().hashCode(); - break; - case 16: - hash = (37 * hash) + MIGRATION_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getMigrationSource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getUpgradeTimeFieldBuilder(); + getGraceEndTimeFieldBuilder(); + } + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + upgradeTime_ = null; + if (upgradeTimeBuilder_ != null) { + upgradeTimeBuilder_.dispose(); + upgradeTimeBuilder_ = null; + } + graceEndTime_ = null; + if (graceEndTimeBuilder_ != null) { + graceEndTimeBuilder_.dispose(); + graceEndTimeBuilder_ = null; + } + return this; + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor; + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance(); + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata build() { + com.google.cloud.alloydb.v1.Cluster.TrialMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata buildPartial() { + com.google.cloud.alloydb.v1.Cluster.TrialMetadata result = + new com.google.cloud.alloydb.v1.Cluster.TrialMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private void buildPartial0(com.google.cloud.alloydb.v1.Cluster.TrialMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upgradeTime_ = + upgradeTimeBuilder_ == null ? upgradeTime_ : upgradeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.graceEndTime_ = + graceEndTimeBuilder_ == null ? graceEndTime_ : graceEndTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static com.google.cloud.alloydb.v1.Cluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - public static com.google.cloud.alloydb.v1.Cluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static com.google.cloud.alloydb.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Cluster.TrialMetadata) { + return mergeFrom((com.google.cloud.alloydb.v1.Cluster.TrialMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder(com.google.cloud.alloydb.v1.Cluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster.TrialMetadata other) { + if (other == com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasUpgradeTime()) { + mergeUpgradeTime(other.getUpgradeTime()); + } + if (other.hasGraceEndTime()) { + mergeGraceEndTime(other.getGraceEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A cluster is a collection of regional AlloyDB resources. It can include a
-   * primary instance and one or more read pool instances.
-   * All cluster resources share a storage layer, which scales as needed.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Cluster) - com.google.cloud.alloydb.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Cluster_descriptor; + @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(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpgradeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGraceEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+       * start time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+       * End time of the trial cluster.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.Timestamp upgradeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + upgradeTimeBuilder_; + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return Whether the upgradeTime field is set. + */ + public boolean hasUpgradeTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + * + * @return The upgradeTime. + */ + public com.google.protobuf.Timestamp getUpgradeTime() { + if (upgradeTimeBuilder_ == null) { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; + } else { + return upgradeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public Builder setUpgradeTime(com.google.protobuf.Timestamp value) { + if (upgradeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeTime_ = value; + } else { + upgradeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public Builder setUpgradeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (upgradeTimeBuilder_ == null) { + upgradeTime_ = builderForValue.build(); + } else { + upgradeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public Builder mergeUpgradeTime(com.google.protobuf.Timestamp value) { + if (upgradeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && upgradeTime_ != null + && upgradeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpgradeTimeBuilder().mergeFrom(value); + } else { + upgradeTime_ = value; + } + } else { + upgradeTimeBuilder_.mergeFrom(value); + } + if (upgradeTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public Builder clearUpgradeTime() { + bitField0_ = (bitField0_ & ~0x00000004); + upgradeTime_ = null; + if (upgradeTimeBuilder_ != null) { + upgradeTimeBuilder_.dispose(); + upgradeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getUpgradeTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpgradeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder() { + if (upgradeTimeBuilder_ != null) { + return upgradeTimeBuilder_.getMessageOrBuilder(); + } else { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; + } + } + /** + * + * + *
+       * Upgrade time of trial cluster to Standard cluster.
+       * 
+ * + * .google.protobuf.Timestamp upgrade_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpgradeTimeFieldBuilder() { + if (upgradeTimeBuilder_ == null) { + upgradeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpgradeTime(), getParentForChildren(), isClean()); + upgradeTime_ = null; + } + return upgradeTimeBuilder_; + } + + private com.google.protobuf.Timestamp graceEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + graceEndTimeBuilder_; + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return Whether the graceEndTime field is set. + */ + public boolean hasGraceEndTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + * + * @return The graceEndTime. + */ + public com.google.protobuf.Timestamp getGraceEndTime() { + if (graceEndTimeBuilder_ == null) { + return graceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : graceEndTime_; + } else { + return graceEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public Builder setGraceEndTime(com.google.protobuf.Timestamp value) { + if (graceEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + graceEndTime_ = value; + } else { + graceEndTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public Builder setGraceEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (graceEndTimeBuilder_ == null) { + graceEndTime_ = builderForValue.build(); + } else { + graceEndTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public Builder mergeGraceEndTime(com.google.protobuf.Timestamp value) { + if (graceEndTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && graceEndTime_ != null + && graceEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getGraceEndTimeBuilder().mergeFrom(value); + } else { + graceEndTime_ = value; + } + } else { + graceEndTimeBuilder_.mergeFrom(value); + } + if (graceEndTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public Builder clearGraceEndTime() { + bitField0_ = (bitField0_ & ~0x00000008); + graceEndTime_ = null; + if (graceEndTimeBuilder_ != null) { + graceEndTimeBuilder_.dispose(); + graceEndTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getGraceEndTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGraceEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getGraceEndTimeOrBuilder() { + if (graceEndTimeBuilder_ != null) { + return graceEndTimeBuilder_.getMessageOrBuilder(); + } else { + return graceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : graceEndTime_; + } + } + /** + * + * + *
+       * grace end time of the cluster.
+       * 
+ * + * .google.protobuf.Timestamp grace_end_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getGraceEndTimeFieldBuilder() { + if (graceEndTimeBuilder_ == null) { + graceEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getGraceEndTime(), getParentForChildren(), isClean()); + graceEndTime_ = null; + } + return graceEndTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Cluster.TrialMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Cluster.TrialMetadata) + private static final com.google.cloud.alloydb.v1.Cluster.TrialMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Cluster.TrialMetadata(); + } + + public static com.google.cloud.alloydb.v1.Cluster.TrialMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrialMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BACKUP_SOURCE(15), + MIGRATION_SOURCE(16), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 15: + return BACKUP_SOURCE; + case 16: + return MIGRATION_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int BACKUP_SOURCE_FIELD_NUMBER = 15; + /** + * + * + *
+   * Output only. Cluster created from backup.
+   * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the backupSource field is set. + */ + @java.lang.Override + public boolean hasBackupSource() { + return sourceCase_ == 15; + } + /** + * + * + *
+   * Output only. Cluster created from backup.
+   * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.BackupSource getBackupSource() { + if (sourceCase_ == 15) { + return (com.google.cloud.alloydb.v1.BackupSource) source_; + } + return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Cluster created from backup.
+   * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { + if (sourceCase_ == 15) { + return (com.google.cloud.alloydb.v1.BackupSource) source_; + } + return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } + + public static final int MIGRATION_SOURCE_FIELD_NUMBER = 16; + /** + * + * + *
+   * Output only. Cluster created via DMS migration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the migrationSource field is set. + */ + @java.lang.Override + public boolean hasMigrationSource() { + return sourceCase_ == 16; + } + /** + * + * + *
+   * Output only. Cluster created via DMS migration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The migrationSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MigrationSource getMigrationSource() { + if (sourceCase_ == 16) { + return (com.google.cloud.alloydb.v1.MigrationSource) source_; + } + return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Cluster created via DMS migration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOrBuilder() { + if (sourceCase_ == 16) { + return (com.google.cloud.alloydb.v1.MigrationSource) source_; + } + return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The name of the cluster resource with the format:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+   * where the cluster ID segment should satisfy the regex expression
+   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+   * The prefix of the cluster resource name is the name of the parent resource:
+   *  * projects/{project}/locations/{region}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the cluster resource with the format:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+   * where the cluster ID segment should satisfy the regex expression
+   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+   * The prefix of the cluster resource name is the name of the parent resource:
+   *  * projects/{project}/locations/{region}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * User-settable and human-readable display name for the Cluster.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * User-settable and human-readable display name for the Cluster.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. The system-generated UID of the resource. The UID is assigned
+   * when the resource is created, and it is retained until it is deleted.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The system-generated UID of the resource. The UID is assigned
+   * when the resource is created, and it is retained until it is deleted.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current serving state of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The current serving state of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.State getState() { + com.google.cloud.alloydb.v1.Cluster.State result = + com.google.cloud.alloydb.v1.Cluster.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1.Cluster.State.UNRECOGNIZED : result; + } + + public static final int CLUSTER_TYPE_FIELD_NUMBER = 24; + private int clusterType_ = 0; + /** + * + * + *
+   * Output only. The type of the cluster. This is an output-only field and it's
+   * populated at the Cluster creation time or the Cluster promotion
+   * time. The cluster type is determined by which RPC was used to create
+   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + /** + * + * + *
+   * Output only. The type of the cluster. This is an output-only field and it's
+   * populated at the Cluster creation time or the Cluster promotion
+   * time. The cluster type is determined by which RPC was used to create
+   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { + com.google.cloud.alloydb.v1.Cluster.ClusterType result = + com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); + return result == null ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED : result; + } + + public static final int DATABASE_VERSION_FIELD_NUMBER = 9; + private int databaseVersion_ = 0; + /** + * + * + *
+   * Optional. The database engine major version. This is an optional field and
+   * it is populated at the Cluster creation time. If a database version is not
+   * supplied at cluster creation time, then a default database version will
+   * be used.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for databaseVersion. + */ + @java.lang.Override + public int getDatabaseVersionValue() { + return databaseVersion_; + } + /** + * + * + *
+   * Optional. The database engine major version. This is an optional field and
+   * it is populated at the Cluster creation time. If a database version is not
+   * supplied at cluster creation time, then a default database version will
+   * be used.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The databaseVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.alloydb.v1.Cluster.NetworkConfig networkConfig_; + /** + * + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + + public static final int NETWORK_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: `projects/{project}/global/networks/{network_id}`. This is required
+   * to create a cluster. Deprecated, use network_config.network instead.
+   * 
+ * + * + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @return The network. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: `projects/{project}/global/networks/{network_id}`. This is required
+   * to create a cluster. Deprecated, use network_config.network instead.
+   * 
+ * + * + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @return The bytes for network. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * For Resource freshness validation (https://google.aip.dev/154)
+   * 
+ * + * string etag = 11; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * For Resource freshness validation (https://google.aip.dev/154)
+   * 
+ * + * string etag = 11; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 12; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 12; + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 12; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 12; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 12; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RECONCILING_FIELD_NUMBER = 13; + private boolean reconciling_ = false; + /** + * + * + *
+   * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+   * Set to true if the current state of Cluster does not match the user's
+   * intended state, and the service is actively updating the resource to
+   * reconcile them. This can happen due to user-triggered updates or
+   * system actions like failover or maintenance.
+   * 
+ * + * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int INITIAL_USER_FIELD_NUMBER = 14; + private com.google.cloud.alloydb.v1.UserPassword initialUser_; + /** + * + * + *
+   * Input only. Initial user to setup during cluster creation. Required.
+   * If used in `RestoreCluster` this is ignored.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialUser field is set. + */ + @java.lang.Override + public boolean hasInitialUser() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Input only. Initial user to setup during cluster creation. Required.
+   * If used in `RestoreCluster` this is ignored.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialUser. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { + return initialUser_ == null + ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() + : initialUser_; + } + /** + * + * + *
+   * Input only. Initial user to setup during cluster creation. Required.
+   * If used in `RestoreCluster` this is ignored.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder() { + return initialUser_ == null + ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() + : initialUser_; + } + + public static final int AUTOMATED_BACKUP_POLICY_FIELD_NUMBER = 17; + private com.google.cloud.alloydb.v1.AutomatedBackupPolicy automatedBackupPolicy_; + /** + * + * + *
+   * The automated backup policy for this cluster.
+   *
+   * If no policy is provided then the default policy will be used. If backups
+   * are supported for the cluster, the default policy takes one backup a day,
+   * has a backup window of 1 hour, and retains backups for 14 days.
+   * For more information on the defaults, consult the
+   * documentation for the message type.
+   * 
+ * + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * @return Whether the automatedBackupPolicy field is set. + */ + @java.lang.Override + public boolean hasAutomatedBackupPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * The automated backup policy for this cluster.
+   *
+   * If no policy is provided then the default policy will be used. If backups
+   * are supported for the cluster, the default policy takes one backup a day,
+   * has a backup window of 1 hour, and retains backups for 14 days.
+   * For more information on the defaults, consult the
+   * documentation for the message type.
+   * 
+ * + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * @return The automatedBackupPolicy. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolicy() { + return automatedBackupPolicy_ == null + ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() + : automatedBackupPolicy_; + } + /** + * + * + *
+   * The automated backup policy for this cluster.
+   *
+   * If no policy is provided then the default policy will be used. If backups
+   * are supported for the cluster, the default policy takes one backup a day,
+   * has a backup window of 1 hour, and retains backups for 14 days.
+   * For more information on the defaults, consult the
+   * documentation for the message type.
+   * 
+ * + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder + getAutomatedBackupPolicyOrBuilder() { + return automatedBackupPolicy_ == null + ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() + : automatedBackupPolicy_; + } + + public static final int SSL_CONFIG_FIELD_NUMBER = 18; + private com.google.cloud.alloydb.v1.SslConfig sslConfig_; + /** + * + * + *
+   * SSL configuration for this AlloyDB cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * + * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=651 + * @return Whether the sslConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * SSL configuration for this AlloyDB cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * + * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=651 + * @return The sslConfig. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } + /** + * + * + *
+   * SSL configuration for this AlloyDB cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } + + public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.alloydb.v1.EncryptionConfig encryptionConfig_; + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + @java.lang.Override + public boolean hasEncryptionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { + return encryptionConfig_ == null + ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null + ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 20; + private com.google.cloud.alloydb.v1.EncryptionInfo encryptionInfo_; + /** + * + * + *
+   * Output only. The encryption information for the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. The encryption information for the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + /** + * + * + *
+   * Output only. The encryption information for the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + public static final int CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.alloydb.v1.ContinuousBackupConfig continuousBackupConfig_; + /** + * + * + *
+   * Optional. Continuous backup configuration for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the continuousBackupConfig field is set. + */ + @java.lang.Override + public boolean hasContinuousBackupConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+   * Optional. Continuous backup configuration for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The continuousBackupConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ContinuousBackupConfig getContinuousBackupConfig() { + return continuousBackupConfig_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() + : continuousBackupConfig_; + } + /** + * + * + *
+   * Optional. Continuous backup configuration for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder + getContinuousBackupConfigOrBuilder() { + return continuousBackupConfig_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() + : continuousBackupConfig_; + } + + public static final int CONTINUOUS_BACKUP_INFO_FIELD_NUMBER = 28; + private com.google.cloud.alloydb.v1.ContinuousBackupInfo continuousBackupInfo_; + /** + * + * + *
+   * Output only. Continuous backup properties for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the continuousBackupInfo field is set. + */ + @java.lang.Override + public boolean hasContinuousBackupInfo() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+   * Output only. Continuous backup properties for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The continuousBackupInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ContinuousBackupInfo getContinuousBackupInfo() { + return continuousBackupInfo_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() + : continuousBackupInfo_; + } + /** + * + * + *
+   * Output only. Continuous backup properties for this cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder + getContinuousBackupInfoOrBuilder() { + return continuousBackupInfo_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() + : continuousBackupInfo_; + } + + public static final int SECONDARY_CONFIG_FIELD_NUMBER = 22; + private com.google.cloud.alloydb.v1.Cluster.SecondaryConfig secondaryConfig_; + /** + * + * + *
+   * Cross Region replication config specific to SECONDARY cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * @return Whether the secondaryConfig field is set. + */ + @java.lang.Override + public boolean hasSecondaryConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
+   * Cross Region replication config specific to SECONDARY cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * @return The secondaryConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig getSecondaryConfig() { + return secondaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() + : secondaryConfig_; + } + /** + * + * + *
+   * Cross Region replication config specific to SECONDARY cluster.
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder + getSecondaryConfigOrBuilder() { + return secondaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() + : secondaryConfig_; + } + + public static final int PRIMARY_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.alloydb.v1.Cluster.PrimaryConfig primaryConfig_; + /** + * + * + *
+   * Output only. Cross Region replication config specific to PRIMARY cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryConfig field is set. + */ + @java.lang.Override + public boolean hasPrimaryConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+   * Output only. Cross Region replication config specific to PRIMARY cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig getPrimaryConfig() { + return primaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() + : primaryConfig_; + } + /** + * + * + *
+   * Output only. Cross Region replication config specific to PRIMARY cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder() { + return primaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() + : primaryConfig_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 30; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int PSC_CONFIG_FIELD_NUMBER = 31; + private com.google.cloud.alloydb.v1.Cluster.PscConfig pscConfig_; + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscConfig field is set. + */ + @java.lang.Override + public boolean hasPscConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfig getPscConfig() { + return pscConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance() + : pscConfig_; + } + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder getPscConfigOrBuilder() { + return pscConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance() + : pscConfig_; + } + + public static final int MAINTENANCE_UPDATE_POLICY_FIELD_NUMBER = 32; + private com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenanceUpdatePolicy_; + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenanceUpdatePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenanceUpdatePolicy() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceUpdatePolicy. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getMaintenanceUpdatePolicy() { + return maintenanceUpdatePolicy_ == null + ? com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance() + : maintenanceUpdatePolicy_; + } + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder + getMaintenanceUpdatePolicyOrBuilder() { + return maintenanceUpdatePolicy_ == null + ? com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance() + : maintenanceUpdatePolicy_; + } + + public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 37; + private com.google.cloud.alloydb.v1.MaintenanceSchedule maintenanceSchedule_; + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + @java.lang.Override + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceSchedule getMaintenanceSchedule() { + return maintenanceSchedule_ == null + ? com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + return maintenanceSchedule_ == null + ? com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + + public static final int SUBSCRIPTION_TYPE_FIELD_NUMBER = 38; + private int subscriptionType_ = 0; + /** + * + * + *
+   * Optional. Subscription type of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for subscriptionType. + */ + @java.lang.Override + public int getSubscriptionTypeValue() { + return subscriptionType_; + } + /** + * + * + *
+   * Optional. Subscription type of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subscriptionType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SubscriptionType getSubscriptionType() { + com.google.cloud.alloydb.v1.SubscriptionType result = + com.google.cloud.alloydb.v1.SubscriptionType.forNumber(subscriptionType_); + return result == null ? com.google.cloud.alloydb.v1.SubscriptionType.UNRECOGNIZED : result; + } + + public static final int TRIAL_METADATA_FIELD_NUMBER = 39; + private com.google.cloud.alloydb.v1.Cluster.TrialMetadata trialMetadata_; + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trialMetadata field is set. + */ + @java.lang.Override + public boolean hasTrialMetadata() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trialMetadata. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata getTrialMetadata() { + return trialMetadata_ == null + ? com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance() + : trialMetadata_; + } + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder getTrialMetadataOrBuilder() { + return trialMetadata_ == null + ? com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance() + : trialMetadata_; + } + + public static final int TAGS_FIELD_NUMBER = 41; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getDeleteTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (state_ != com.google.cloud.alloydb.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (databaseVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(9, databaseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 12); + if (reconciling_ != false) { + output.writeBool(13, reconciling_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(14, getInitialUser()); + } + if (sourceCase_ == 15) { + output.writeMessage(15, (com.google.cloud.alloydb.v1.BackupSource) source_); + } + if (sourceCase_ == 16) { + output.writeMessage(16, (com.google.cloud.alloydb.v1.MigrationSource) source_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(17, getAutomatedBackupPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(18, getSslConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(19, getEncryptionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(20, getEncryptionInfo()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(22, getSecondaryConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(23, getPrimaryConfig()); + } + if (clusterType_ + != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(24, clusterType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(27, getContinuousBackupConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(28, getContinuousBackupInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(29, getNetworkConfig()); + } + if (satisfiesPzs_ != false) { + output.writeBool(30, satisfiesPzs_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(31, getPscConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(32, getMaintenanceUpdatePolicy()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(37, getMaintenanceSchedule()); + } + if (subscriptionType_ + != com.google.cloud.alloydb.v1.SubscriptionType.SUBSCRIPTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(38, subscriptionType_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(39, getTrialMetadata()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 41); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (state_ != com.google.cloud.alloydb.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (databaseVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, databaseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, annotations__); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInitialUser()); + } + if (sourceCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.alloydb.v1.BackupSource) source_); + } + if (sourceCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.alloydb.v1.MigrationSource) source_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutomatedBackupPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSslConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEncryptionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryptionInfo()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getSecondaryConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPrimaryConfig()); + } + if (clusterType_ + != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, clusterType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getContinuousBackupConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getContinuousBackupInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzs_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getPscConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, getMaintenanceUpdatePolicy()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(37, getMaintenanceSchedule()); + } + if (subscriptionType_ + != com.google.cloud.alloydb.v1.SubscriptionType.SUBSCRIPTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, subscriptionType_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, getTrialMetadata()); + } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, tags__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Cluster)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Cluster other = (com.google.cloud.alloydb.v1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (clusterType_ != other.clusterType_) return false; + if (databaseVersion_ != other.databaseVersion_) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (hasInitialUser() != other.hasInitialUser()) return false; + if (hasInitialUser()) { + if (!getInitialUser().equals(other.getInitialUser())) return false; + } + if (hasAutomatedBackupPolicy() != other.hasAutomatedBackupPolicy()) return false; + if (hasAutomatedBackupPolicy()) { + if (!getAutomatedBackupPolicy().equals(other.getAutomatedBackupPolicy())) return false; + } + if (hasSslConfig() != other.hasSslConfig()) return false; + if (hasSslConfig()) { + if (!getSslConfig().equals(other.getSslConfig())) return false; + } + if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; + if (hasEncryptionConfig()) { + if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + } + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + } + if (hasContinuousBackupConfig() != other.hasContinuousBackupConfig()) return false; + if (hasContinuousBackupConfig()) { + if (!getContinuousBackupConfig().equals(other.getContinuousBackupConfig())) return false; + } + if (hasContinuousBackupInfo() != other.hasContinuousBackupInfo()) return false; + if (hasContinuousBackupInfo()) { + if (!getContinuousBackupInfo().equals(other.getContinuousBackupInfo())) return false; + } + if (hasSecondaryConfig() != other.hasSecondaryConfig()) return false; + if (hasSecondaryConfig()) { + if (!getSecondaryConfig().equals(other.getSecondaryConfig())) return false; + } + if (hasPrimaryConfig() != other.hasPrimaryConfig()) return false; + if (hasPrimaryConfig()) { + if (!getPrimaryConfig().equals(other.getPrimaryConfig())) return false; + } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (hasPscConfig() != other.hasPscConfig()) return false; + if (hasPscConfig()) { + if (!getPscConfig().equals(other.getPscConfig())) return false; + } + if (hasMaintenanceUpdatePolicy() != other.hasMaintenanceUpdatePolicy()) return false; + if (hasMaintenanceUpdatePolicy()) { + if (!getMaintenanceUpdatePolicy().equals(other.getMaintenanceUpdatePolicy())) return false; + } + if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; + if (hasMaintenanceSchedule()) { + if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; + } + if (subscriptionType_ != other.subscriptionType_) return false; + if (hasTrialMetadata() != other.hasTrialMetadata()) return false; + if (hasTrialMetadata()) { + if (!getTrialMetadata().equals(other.getTrialMetadata())) return false; + } + if (!internalGetTags().equals(other.internalGetTags())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 15: + if (!getBackupSource().equals(other.getBackupSource())) return false; + break; + case 16: + if (!getMigrationSource().equals(other.getMigrationSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clusterType_; + hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + databaseVersion_; + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + if (hasInitialUser()) { + hash = (37 * hash) + INITIAL_USER_FIELD_NUMBER; + hash = (53 * hash) + getInitialUser().hashCode(); + } + if (hasAutomatedBackupPolicy()) { + hash = (37 * hash) + AUTOMATED_BACKUP_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAutomatedBackupPolicy().hashCode(); + } + if (hasSslConfig()) { + hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSslConfig().hashCode(); + } + if (hasEncryptionConfig()) { + hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionConfig().hashCode(); + } + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().hashCode(); + } + if (hasContinuousBackupConfig()) { + hash = (37 * hash) + CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getContinuousBackupConfig().hashCode(); + } + if (hasContinuousBackupInfo()) { + hash = (37 * hash) + CONTINUOUS_BACKUP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getContinuousBackupInfo().hashCode(); + } + if (hasSecondaryConfig()) { + hash = (37 * hash) + SECONDARY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryConfig().hashCode(); + } + if (hasPrimaryConfig()) { + hash = (37 * hash) + PRIMARY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryConfig().hashCode(); + } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + if (hasPscConfig()) { + hash = (37 * hash) + PSC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPscConfig().hashCode(); + } + if (hasMaintenanceUpdatePolicy()) { + hash = (37 * hash) + MAINTENANCE_UPDATE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceUpdatePolicy().hashCode(); + } + if (hasMaintenanceSchedule()) { + hash = (37 * hash) + MAINTENANCE_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceSchedule().hashCode(); + } + hash = (37 * hash) + SUBSCRIPTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + subscriptionType_; + if (hasTrialMetadata()) { + hash = (37 * hash) + TRIAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTrialMetadata().hashCode(); + } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + switch (sourceCase_) { + case 15: + hash = (37 * hash) + BACKUP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBackupSource().hashCode(); + break; + case 16: + hash = (37 * hash) + MIGRATION_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getMigrationSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Cluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.Cluster 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A cluster is a collection of regional AlloyDB resources. It can include a
+   * primary instance and one or more read pool instances.
+   * All cluster resources share a storage layer, which scales as needed.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Cluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Cluster) + com.google.cloud.alloydb.v1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + case 12: + return internalGetAnnotations(); + case 41: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + case 12: + return internalGetMutableAnnotations(); + case 41: + return internalGetMutableTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Cluster.class, + com.google.cloud.alloydb.v1.Cluster.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Cluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getNetworkConfigFieldBuilder(); + getInitialUserFieldBuilder(); + getAutomatedBackupPolicyFieldBuilder(); + getSslConfigFieldBuilder(); + getEncryptionConfigFieldBuilder(); + getEncryptionInfoFieldBuilder(); + getContinuousBackupConfigFieldBuilder(); + getContinuousBackupInfoFieldBuilder(); + getSecondaryConfigFieldBuilder(); + getPrimaryConfigFieldBuilder(); + getPscConfigFieldBuilder(); + getMaintenanceUpdatePolicyFieldBuilder(); + getMaintenanceScheduleFieldBuilder(); + getTrialMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + if (backupSourceBuilder_ != null) { + backupSourceBuilder_.clear(); + } + if (migrationSourceBuilder_ != null) { + migrationSourceBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + clusterType_ = 0; + databaseVersion_ = 0; + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + network_ = ""; + etag_ = ""; + internalGetMutableAnnotations().clear(); + reconciling_ = false; + initialUser_ = null; + if (initialUserBuilder_ != null) { + initialUserBuilder_.dispose(); + initialUserBuilder_ = null; + } + automatedBackupPolicy_ = null; + if (automatedBackupPolicyBuilder_ != null) { + automatedBackupPolicyBuilder_.dispose(); + automatedBackupPolicyBuilder_ = null; + } + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; + } + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + continuousBackupConfig_ = null; + if (continuousBackupConfigBuilder_ != null) { + continuousBackupConfigBuilder_.dispose(); + continuousBackupConfigBuilder_ = null; + } + continuousBackupInfo_ = null; + if (continuousBackupInfoBuilder_ != null) { + continuousBackupInfoBuilder_.dispose(); + continuousBackupInfoBuilder_ = null; + } + secondaryConfig_ = null; + if (secondaryConfigBuilder_ != null) { + secondaryConfigBuilder_.dispose(); + secondaryConfigBuilder_ = null; + } + primaryConfig_ = null; + if (primaryConfigBuilder_ != null) { + primaryConfigBuilder_.dispose(); + primaryConfigBuilder_ = null; + } + satisfiesPzs_ = false; + pscConfig_ = null; + if (pscConfigBuilder_ != null) { + pscConfigBuilder_.dispose(); + pscConfigBuilder_ = null; + } + maintenanceUpdatePolicy_ = null; + if (maintenanceUpdatePolicyBuilder_ != null) { + maintenanceUpdatePolicyBuilder_.dispose(); + maintenanceUpdatePolicyBuilder_ = null; + } + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; + } + subscriptionType_ = 0; + trialMetadata_ = null; + if (trialMetadataBuilder_ != null) { + trialMetadataBuilder_.dispose(); + trialMetadataBuilder_ = null; + } + internalGetMutableTags().clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster build() { + com.google.cloud.alloydb.v1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster buildPartial() { + com.google.cloud.alloydb.v1.Cluster result = new com.google.cloud.alloydb.v1.Cluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Cluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.clusterType_ = clusterType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.databaseVersion_ = databaseVersion_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.initialUser_ = + initialUserBuilder_ == null ? initialUser_ : initialUserBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.automatedBackupPolicy_ = + automatedBackupPolicyBuilder_ == null + ? automatedBackupPolicy_ + : automatedBackupPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.encryptionConfig_ = + encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.continuousBackupConfig_ = + continuousBackupConfigBuilder_ == null + ? continuousBackupConfig_ + : continuousBackupConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.continuousBackupInfo_ = + continuousBackupInfoBuilder_ == null + ? continuousBackupInfo_ + : continuousBackupInfoBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.secondaryConfig_ = + secondaryConfigBuilder_ == null ? secondaryConfig_ : secondaryConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.primaryConfig_ = + primaryConfigBuilder_ == null ? primaryConfig_ : primaryConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.pscConfig_ = pscConfigBuilder_ == null ? pscConfig_ : pscConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.maintenanceUpdatePolicy_ = + maintenanceUpdatePolicyBuilder_ == null + ? maintenanceUpdatePolicy_ + : maintenanceUpdatePolicyBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.maintenanceSchedule_ = + maintenanceScheduleBuilder_ == null + ? maintenanceSchedule_ + : maintenanceScheduleBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.subscriptionType_ = subscriptionType_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.trialMetadata_ = + trialMetadataBuilder_ == null ? trialMetadata_ : trialMetadataBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.cloud.alloydb.v1.Cluster result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.Cluster result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 15 && backupSourceBuilder_ != null) { + result.source_ = backupSourceBuilder_.build(); + } + if (sourceCase_ == 16 && migrationSourceBuilder_ != null) { + result.source_ = migrationSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Cluster) { + return mergeFrom((com.google.cloud.alloydb.v1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { + if (other == com.google.cloud.alloydb.v1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.clusterType_ != 0) { + setClusterTypeValue(other.getClusterTypeValue()); + } + if (other.databaseVersion_ != 0) { + setDatabaseVersionValue(other.getDatabaseVersionValue()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00004000; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00008000; + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (other.hasInitialUser()) { + mergeInitialUser(other.getInitialUser()); + } + if (other.hasAutomatedBackupPolicy()) { + mergeAutomatedBackupPolicy(other.getAutomatedBackupPolicy()); + } + if (other.hasSslConfig()) { + mergeSslConfig(other.getSslConfig()); + } + if (other.hasEncryptionConfig()) { + mergeEncryptionConfig(other.getEncryptionConfig()); + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + if (other.hasContinuousBackupConfig()) { + mergeContinuousBackupConfig(other.getContinuousBackupConfig()); + } + if (other.hasContinuousBackupInfo()) { + mergeContinuousBackupInfo(other.getContinuousBackupInfo()); + } + if (other.hasSecondaryConfig()) { + mergeSecondaryConfig(other.getSecondaryConfig()); + } + if (other.hasPrimaryConfig()) { + mergePrimaryConfig(other.getPrimaryConfig()); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasPscConfig()) { + mergePscConfig(other.getPscConfig()); + } + if (other.hasMaintenanceUpdatePolicy()) { + mergeMaintenanceUpdatePolicy(other.getMaintenanceUpdatePolicy()); + } + if (other.hasMaintenanceSchedule()) { + mergeMaintenanceSchedule(other.getMaintenanceSchedule()); + } + if (other.subscriptionType_ != 0) { + setSubscriptionTypeValue(other.getSubscriptionTypeValue()); + } + if (other.hasTrialMetadata()) { + mergeTrialMetadata(other.getTrialMetadata()); + } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField1_ |= 0x00000001; + switch (other.getSourceCase()) { + case BACKUP_SOURCE: + { + mergeBackupSource(other.getBackupSource()); + break; + } + case MIGRATION_SOURCE: + { + mergeMigrationSource(other.getMigrationSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 64 + case 72: + { + databaseVersion_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 72 + case 82: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 90 + case 98: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 98 + case 104: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 104 + case 114: + { + input.readMessage(getInitialUserFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 114 + case 122: + { + input.readMessage(getBackupSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage(getMigrationSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 16; + break; + } // case 130 + case 138: + { + input.readMessage( + getAutomatedBackupPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 138 + case 146: + { + input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 146 + case 154: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 162: + { + input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 162 + case 178: + { + input.readMessage(getSecondaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 178 + case 186: + { + input.readMessage(getPrimaryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 186 + case 192: + { + clusterType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 192 + case 218: + { + input.readMessage( + getContinuousBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 218 + case 226: + { + input.readMessage( + getContinuousBackupInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 226 + case 234: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 234 + case 240: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 240 + case 250: + { + input.readMessage(getPscConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 250 + case 258: + { + input.readMessage( + getMaintenanceUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 258 + case 298: + { + input.readMessage( + getMaintenanceScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 298 + case 304: + { + subscriptionType_ = input.readEnum(); + bitField0_ |= 0x40000000; + break; + } // case 304 + case 314: + { + input.readMessage(getTrialMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 314 + case 330: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField1_ |= 0x00000001; + break; + } // case 330 + 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; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 7: - return internalGetLabels(); - case 12: - return internalGetAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 7: - return internalGetMutableLabels(); - case 12: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } + private int bitField0_; + private int bitField1_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.BackupSource, + com.google.cloud.alloydb.v1.BackupSource.Builder, + com.google.cloud.alloydb.v1.BackupSourceOrBuilder> + backupSourceBuilder_; + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the backupSource field is set. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Cluster.class, - com.google.cloud.alloydb.v1.Cluster.Builder.class); + public boolean hasBackupSource() { + return sourceCase_ == 15; } - - // Construct using com.google.cloud.alloydb.v1.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.BackupSource getBackupSource() { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 15) { + return (com.google.cloud.alloydb.v1.BackupSource) source_; + } + return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } else { + if (sourceCase_ == 15) { + return backupSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupSource(com.google.cloud.alloydb.v1.BackupSource value) { + if (backupSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + backupSourceBuilder_.setMessage(value); + } + sourceCase_ = 15; + return this; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getDeleteTimeFieldBuilder(); - getNetworkConfigFieldBuilder(); - getInitialUserFieldBuilder(); - getAutomatedBackupPolicyFieldBuilder(); - getSslConfigFieldBuilder(); - getEncryptionConfigFieldBuilder(); - getEncryptionInfoFieldBuilder(); - getContinuousBackupConfigFieldBuilder(); - getContinuousBackupInfoFieldBuilder(); - getSecondaryConfigFieldBuilder(); - getPrimaryConfigFieldBuilder(); + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupSource( + com.google.cloud.alloydb.v1.BackupSource.Builder builderForValue) { + if (backupSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + backupSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 15; + return this; + } + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBackupSource(com.google.cloud.alloydb.v1.BackupSource value) { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 15 + && source_ != com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1.BackupSource.newBuilder( + (com.google.cloud.alloydb.v1.BackupSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 15) { + backupSourceBuilder_.mergeFrom(value); + } else { + backupSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 15; + return this; + } + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBackupSource() { + if (backupSourceBuilder_ == null) { + if (sourceCase_ == 15) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 15) { + sourceCase_ = 0; + source_ = null; + } + backupSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.BackupSource.Builder getBackupSourceBuilder() { + return getBackupSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { + if ((sourceCase_ == 15) && (backupSourceBuilder_ != null)) { + return backupSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 15) { + return (com.google.cloud.alloydb.v1.BackupSource) source_; + } + return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Cluster created from backup.
+     * 
+ * + * + * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.BackupSource, + com.google.cloud.alloydb.v1.BackupSource.Builder, + com.google.cloud.alloydb.v1.BackupSourceOrBuilder> + getBackupSourceFieldBuilder() { + if (backupSourceBuilder_ == null) { + if (!(sourceCase_ == 15)) { + source_ = com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + } + backupSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.BackupSource, + com.google.cloud.alloydb.v1.BackupSource.Builder, + com.google.cloud.alloydb.v1.BackupSourceOrBuilder>( + (com.google.cloud.alloydb.v1.BackupSource) source_, + getParentForChildren(), + isClean()); + source_ = null; } + sourceCase_ = 15; + onChanged(); + return backupSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.MigrationSource, + com.google.cloud.alloydb.v1.MigrationSource.Builder, + com.google.cloud.alloydb.v1.MigrationSourceOrBuilder> + migrationSourceBuilder_; + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the migrationSource field is set. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (backupSourceBuilder_ != null) { - backupSourceBuilder_.clear(); - } - if (migrationSourceBuilder_ != null) { - migrationSourceBuilder_.clear(); - } - name_ = ""; - displayName_ = ""; - uid_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - state_ = 0; - clusterType_ = 0; - databaseVersion_ = 0; - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - network_ = ""; - etag_ = ""; - internalGetMutableAnnotations().clear(); - reconciling_ = false; - initialUser_ = null; - if (initialUserBuilder_ != null) { - initialUserBuilder_.dispose(); - initialUserBuilder_ = null; - } - automatedBackupPolicy_ = null; - if (automatedBackupPolicyBuilder_ != null) { - automatedBackupPolicyBuilder_.dispose(); - automatedBackupPolicyBuilder_ = null; - } - sslConfig_ = null; - if (sslConfigBuilder_ != null) { - sslConfigBuilder_.dispose(); - sslConfigBuilder_ = null; - } - encryptionConfig_ = null; - if (encryptionConfigBuilder_ != null) { - encryptionConfigBuilder_.dispose(); - encryptionConfigBuilder_ = null; - } - encryptionInfo_ = null; - if (encryptionInfoBuilder_ != null) { - encryptionInfoBuilder_.dispose(); - encryptionInfoBuilder_ = null; + public boolean hasMigrationSource() { + return sourceCase_ == 16; + } + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The migrationSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MigrationSource getMigrationSource() { + if (migrationSourceBuilder_ == null) { + if (sourceCase_ == 16) { + return (com.google.cloud.alloydb.v1.MigrationSource) source_; + } + return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); + } else { + if (sourceCase_ == 16) { + return migrationSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); } - continuousBackupConfig_ = null; - if (continuousBackupConfigBuilder_ != null) { - continuousBackupConfigBuilder_.dispose(); - continuousBackupConfigBuilder_ = null; + } + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMigrationSource(com.google.cloud.alloydb.v1.MigrationSource value) { + if (migrationSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + migrationSourceBuilder_.setMessage(value); } - continuousBackupInfo_ = null; - if (continuousBackupInfoBuilder_ != null) { - continuousBackupInfoBuilder_.dispose(); - continuousBackupInfoBuilder_ = null; + sourceCase_ = 16; + return this; + } + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMigrationSource( + com.google.cloud.alloydb.v1.MigrationSource.Builder builderForValue) { + if (migrationSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + migrationSourceBuilder_.setMessage(builderForValue.build()); } - secondaryConfig_ = null; - if (secondaryConfigBuilder_ != null) { - secondaryConfigBuilder_.dispose(); - secondaryConfigBuilder_ = null; + sourceCase_ = 16; + return this; + } + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMigrationSource(com.google.cloud.alloydb.v1.MigrationSource value) { + if (migrationSourceBuilder_ == null) { + if (sourceCase_ == 16 + && source_ != com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1.MigrationSource.newBuilder( + (com.google.cloud.alloydb.v1.MigrationSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 16) { + migrationSourceBuilder_.mergeFrom(value); + } else { + migrationSourceBuilder_.setMessage(value); + } } - primaryConfig_ = null; - if (primaryConfigBuilder_ != null) { - primaryConfigBuilder_.dispose(); - primaryConfigBuilder_ = null; + sourceCase_ = 16; + return this; + } + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMigrationSource() { + if (migrationSourceBuilder_ == null) { + if (sourceCase_ == 16) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 16) { + sourceCase_ = 0; + source_ = null; + } + migrationSourceBuilder_.clear(); } - sourceCase_ = 0; - source_ = null; return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Cluster.getDefaultInstance(); + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.MigrationSource.Builder getMigrationSourceBuilder() { + return getMigrationSourceFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster build() { - com.google.cloud.alloydb.v1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOrBuilder() { + if ((sourceCase_ == 16) && (migrationSourceBuilder_ != null)) { + return migrationSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 16) { + return (com.google.cloud.alloydb.v1.MigrationSource) source_; + } + return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster buildPartial() { - com.google.cloud.alloydb.v1.Cluster result = new com.google.cloud.alloydb.v1.Cluster(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Output only. Cluster created via DMS migration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.MigrationSource, + com.google.cloud.alloydb.v1.MigrationSource.Builder, + com.google.cloud.alloydb.v1.MigrationSourceOrBuilder> + getMigrationSourceFieldBuilder() { + if (migrationSourceBuilder_ == null) { + if (!(sourceCase_ == 16)) { + source_ = com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); + } + migrationSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.MigrationSource, + com.google.cloud.alloydb.v1.MigrationSource.Builder, + com.google.cloud.alloydb.v1.MigrationSourceOrBuilder>( + (com.google.cloud.alloydb.v1.MigrationSource) source_, + getParentForChildren(), + isClean()); + source_ = null; } - buildPartialOneofs(result); - onBuilt(); - return result; + sourceCase_ = 16; + onChanged(); + return migrationSourceBuilder_; } - private void buildPartial0(com.google.cloud.alloydb.v1.Cluster result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.uid_ = uid_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.clusterType_ = clusterType_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.databaseVersion_ = databaseVersion_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.reconciling_ = reconciling_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.initialUser_ = - initialUserBuilder_ == null ? initialUser_ : initialUserBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.automatedBackupPolicy_ = - automatedBackupPolicyBuilder_ == null - ? automatedBackupPolicy_ - : automatedBackupPolicyBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryptionInfo_ = - encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.continuousBackupConfig_ = - continuousBackupConfigBuilder_ == null - ? continuousBackupConfig_ - : continuousBackupConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The name of the cluster resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * where the cluster ID segment should satisfy the regex expression
+     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+     * The prefix of the cluster resource name is the name of the parent resource:
+     *  * projects/{project}/locations/{region}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.continuousBackupInfo_ = - continuousBackupInfoBuilder_ == null - ? continuousBackupInfo_ - : continuousBackupInfoBuilder_.build(); - to_bitField0_ |= 0x00000400; + } + /** + * + * + *
+     * Output only. The name of the cluster resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * where the cluster ID segment should satisfy the regex expression
+     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+     * The prefix of the cluster resource name is the name of the parent resource:
+     *  * projects/{project}/locations/{region}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.secondaryConfig_ = - secondaryConfigBuilder_ == null ? secondaryConfig_ : secondaryConfigBuilder_.build(); - to_bitField0_ |= 0x00000800; + } + /** + * + * + *
+     * Output only. The name of the cluster resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * where the cluster ID segment should satisfy the regex expression
+     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+     * The prefix of the cluster resource name is the name of the parent resource:
+     *  * projects/{project}/locations/{region}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.primaryConfig_ = - primaryConfigBuilder_ == null ? primaryConfig_ : primaryConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the cluster resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * where the cluster ID segment should satisfy the regex expression
+     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+     * The prefix of the cluster resource name is the name of the parent resource:
+     *  * projects/{project}/locations/{region}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the cluster resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * where the cluster ID segment should satisfy the regex expression
+     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
+     * The prefix of the cluster resource name is the name of the parent resource:
+     *  * projects/{project}/locations/{region}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - private void buildPartialOneofs(com.google.cloud.alloydb.v1.Cluster result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 15 && backupSourceBuilder_ != null) { - result.source_ = backupSourceBuilder_.build(); + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * User-settable and human-readable display name for the Cluster.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; } - if (sourceCase_ == 16 && migrationSourceBuilder_ != null) { - result.source_ = migrationSourceBuilder_.build(); + } + /** + * + * + *
+     * User-settable and human-readable display name for the Cluster.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * User-settable and human-readable display name for the Cluster.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * User-settable and human-readable display name for the Cluster.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * User-settable and human-readable display name for the Cluster.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1.Cluster) { - return mergeFrom((com.google.cloud.alloydb.v1.Cluster) other); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { - super.mergeFrom(other); - return this; + return createTimeBuilder_.getMessage(); } } - - public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { - if (other == com.google.cloud.alloydb.v1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.clusterType_ != 0) { - setClusterTypeValue(other.getClusterTypeValue()); - } - if (other.databaseVersion_ != 0) { - setDatabaseVersionValue(other.getDatabaseVersionValue()); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00004000; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00008000; - if (other.getReconciling() != false) { - setReconciling(other.getReconciling()); - } - if (other.hasInitialUser()) { - mergeInitialUser(other.getInitialUser()); - } - if (other.hasAutomatedBackupPolicy()) { - mergeAutomatedBackupPolicy(other.getAutomatedBackupPolicy()); - } - if (other.hasSslConfig()) { - mergeSslConfig(other.getSslConfig()); - } - if (other.hasEncryptionConfig()) { - mergeEncryptionConfig(other.getEncryptionConfig()); - } - if (other.hasEncryptionInfo()) { - mergeEncryptionInfo(other.getEncryptionInfo()); - } - if (other.hasContinuousBackupConfig()) { - mergeContinuousBackupConfig(other.getContinuousBackupConfig()); - } - if (other.hasContinuousBackupInfo()) { - mergeContinuousBackupInfo(other.getContinuousBackupInfo()); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } - if (other.hasSecondaryConfig()) { - mergeSecondaryConfig(other.getSecondaryConfig()); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - if (other.hasPrimaryConfig()) { - mergePrimaryConfig(other.getPrimaryConfig()); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); } - switch (other.getSourceCase()) { - case BACKUP_SOURCE: - { - mergeBackupSource(other.getBackupSource()); - break; - } - case MIGRATION_SOURCE: - { - mergeMigrationSource(other.getMigrationSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + 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(); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 64 - case 72: - { - databaseVersion_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 72 - case 82: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 82 - case 90: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 90 - case 98: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00008000; - break; - } // case 98 - case 104: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00010000; - break; - } // case 104 - case 114: - { - input.readMessage(getInitialUserFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 114 - case 122: - { - input.readMessage(getBackupSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 15; - break; - } // case 122 - case 130: - { - input.readMessage(getMigrationSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 16; - break; - } // case 130 - case 138: - { - input.readMessage( - getAutomatedBackupPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 138 - case 146: - { - input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 146 - case 154: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 154 - case 162: - { - input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 162 - case 178: - { - input.readMessage(getSecondaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 178 - case 186: - { - input.readMessage(getPrimaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 186 - case 192: - { - clusterType_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 192 - case 218: - { - input.readMessage( - getContinuousBackupConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 218 - case 226: - { - input.readMessage( - getContinuousBackupInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 226 - case 234: - { - input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 234 - 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 + onChanged(); return this; } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; onChanged(); return this; } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } - private int bitField0_; - + private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.BackupSource, - com.google.cloud.alloydb.v1.BackupSource.Builder, - com.google.cloud.alloydb.v1.BackupSourceOrBuilder> - backupSourceBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the backupSource field is set. + * @return Whether the deleteTime field is set. */ - @java.lang.Override - public boolean hasBackupSource() { - return sourceCase_ == 15; + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The backupSource. + * @return The deleteTime. */ - @java.lang.Override - public com.google.cloud.alloydb.v1.BackupSource getBackupSource() { - if (backupSourceBuilder_ == null) { - if (sourceCase_ == 15) { - return (com.google.cloud.alloydb.v1.BackupSource) source_; - } - return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { - if (sourceCase_ == 15) { - return backupSourceBuilder_.getMessage(); - } - return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + return deleteTimeBuilder_.getMessage(); } } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setBackupSource(com.google.cloud.alloydb.v1.BackupSource value) { - if (backupSourceBuilder_ == null) { + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - source_ = value; - onChanged(); + deleteTime_ = value; } else { - backupSourceBuilder_.setMessage(value); + deleteTimeBuilder_.setMessage(value); } - sourceCase_ = 15; + bitField0_ |= 0x00000080; + onChanged(); return this; } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setBackupSource( - com.google.cloud.alloydb.v1.BackupSource.Builder builderForValue) { - if (backupSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); } else { - backupSourceBuilder_.setMessage(builderForValue.build()); + deleteTimeBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 15; + bitField0_ |= 0x00000080; + onChanged(); return this; } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeBackupSource(com.google.cloud.alloydb.v1.BackupSource value) { - if (backupSourceBuilder_ == null) { - if (sourceCase_ == 15 - && source_ != com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance()) { - source_ = - com.google.cloud.alloydb.v1.BackupSource.newBuilder( - (com.google.cloud.alloydb.v1.BackupSource) source_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); } else { - source_ = value; + deleteTime_ = value; } - onChanged(); } else { - if (sourceCase_ == 15) { - backupSourceBuilder_.mergeFrom(value); - } else { - backupSourceBuilder_.setMessage(value); - } + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); } - sourceCase_ = 15; return this; } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearBackupSource() { - if (backupSourceBuilder_ == null) { - if (sourceCase_ == 15) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 15) { - sourceCase_ = 0; - source_ = null; - } - backupSourceBuilder_.clear(); + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000080); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1.BackupSource.Builder getBackupSourceBuilder() { - return getBackupSourceFieldBuilder().getBuilder(); + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.alloydb.v1.BackupSourceOrBuilder getBackupSourceOrBuilder() { - if ((sourceCase_ == 15) && (backupSourceBuilder_ != null)) { - return backupSourceBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 15) { - return (com.google.cloud.alloydb.v1.BackupSource) source_; - } - return com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** * * *
-     * Output only. Cluster created from backup.
+     * Output only. Delete time stamp
      * 
* * - * .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.BackupSource, - com.google.cloud.alloydb.v1.BackupSource.Builder, - com.google.cloud.alloydb.v1.BackupSourceOrBuilder> - getBackupSourceFieldBuilder() { - if (backupSourceBuilder_ == null) { - if (!(sourceCase_ == 15)) { - source_ = com.google.cloud.alloydb.v1.BackupSource.getDefaultInstance(); - } - backupSourceBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.BackupSource, - com.google.cloud.alloydb.v1.BackupSource.Builder, - com.google.cloud.alloydb.v1.BackupSourceOrBuilder>( - (com.google.cloud.alloydb.v1.BackupSource) source_, - getParentForChildren(), - isClean()); - source_ = null; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; } - sourceCase_ = 15; + return deleteTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000100; onChanged(); - return backupSourceBuilder_; + return labels_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.MigrationSource, - com.google.cloud.alloydb.v1.MigrationSource.Builder, - com.google.cloud.alloydb.v1.MigrationSourceOrBuilder> - migrationSourceBuilder_; + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the migrationSource field is set. + * map<string, string> labels = 7; */ @java.lang.Override - public boolean hasMigrationSource() { - return sourceCase_ == 16; + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The migrationSource. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.MigrationSource getMigrationSource() { - if (migrationSourceBuilder_ == null) { - if (sourceCase_ == 16) { - return (com.google.cloud.alloydb.v1.MigrationSource) source_; - } - return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } else { - if (sourceCase_ == 16) { - return migrationSourceBuilder_.getMessage(); - } - return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public Builder setMigrationSource(com.google.cloud.alloydb.v1.MigrationSource value) { - if (migrationSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - migrationSourceBuilder_.setMessage(value); + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - sourceCase_ = 16; - return this; + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public Builder setMigrationSource( - com.google.cloud.alloydb.v1.MigrationSource.Builder builderForValue) { - if (migrationSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - migrationSourceBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - sourceCase_ = 16; + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public Builder mergeMigrationSource(com.google.cloud.alloydb.v1.MigrationSource value) { - if (migrationSourceBuilder_ == null) { - if (sourceCase_ == 16 - && source_ != com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance()) { - source_ = - com.google.cloud.alloydb.v1.MigrationSource.newBuilder( - (com.google.cloud.alloydb.v1.MigrationSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 16) { - migrationSourceBuilder_.mergeFrom(value); - } else { - migrationSourceBuilder_.setMessage(value); - } + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - sourceCase_ = 16; + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public Builder clearMigrationSource() { - if (migrationSourceBuilder_ == null) { - if (sourceCase_ == 16) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 16) { - sourceCase_ = 0; - source_ = null; - } - migrationSourceBuilder_.clear(); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Labels as key value pairs
      * 
* - * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 7; */ - public com.google.cloud.alloydb.v1.MigrationSource.Builder getMigrationSourceBuilder() { - return getMigrationSourceFieldBuilder().getBuilder(); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; } + + private int state_ = 0; /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Output only. The current serving state of the cluster.
      * 
* * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for state. */ @java.lang.Override - public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOrBuilder() { - if ((sourceCase_ == 16) && (migrationSourceBuilder_ != null)) { - return migrationSourceBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 16) { - return (com.google.cloud.alloydb.v1.MigrationSource) source_; - } - return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } + public int getStateValue() { + return state_; } /** * * *
-     * Output only. Cluster created via DMS migration.
+     * Output only. The current serving state of the cluster.
      * 
* * - * .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.MigrationSource, - com.google.cloud.alloydb.v1.MigrationSource.Builder, - com.google.cloud.alloydb.v1.MigrationSourceOrBuilder> - getMigrationSourceFieldBuilder() { - if (migrationSourceBuilder_ == null) { - if (!(sourceCase_ == 16)) { - source_ = com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); - } - migrationSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.MigrationSource, - com.google.cloud.alloydb.v1.MigrationSource.Builder, - com.google.cloud.alloydb.v1.MigrationSourceOrBuilder>( - (com.google.cloud.alloydb.v1.MigrationSource) source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 16; - onChanged(); - return migrationSourceBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The name of the cluster resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-     * where the cluster ID segment should satisfy the regex expression
-     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-     * The prefix of the cluster resource name is the name of the parent resource:
-     *  * projects/{project}/locations/{region}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The name. + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. The name of the cluster resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-     * where the cluster ID segment should satisfy the regex expression
-     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-     * The prefix of the cluster resource name is the name of the parent resource:
-     *  * projects/{project}/locations/{region}
+     * Output only. The current serving state of the cluster.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for name. + * @return The state. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.State getState() { + com.google.cloud.alloydb.v1.Cluster.State result = + com.google.cloud.alloydb.v1.Cluster.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1.Cluster.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. The name of the cluster resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-     * where the cluster ID segment should satisfy the regex expression
-     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-     * The prefix of the cluster resource name is the name of the parent resource:
-     *  * projects/{project}/locations/{region}
+     * Output only. The current serving state of the cluster.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The name to set. + * @param value The state to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setState(com.google.cloud.alloydb.v1.Cluster.State value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; + state_ = value.getNumber(); onChanged(); return this; } @@ -6265,115 +10235,111 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The name of the cluster resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-     * where the cluster ID segment should satisfy the regex expression
-     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-     * The prefix of the cluster resource name is the name of the parent resource:
-     *  * projects/{project}/locations/{region}
+     * Output only. The current serving state of the cluster.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000200); + state_ = 0; onChanged(); return this; } + + private int clusterType_ = 0; /** * * *
-     * Output only. The name of the cluster resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-     * where the cluster ID segment should satisfy the regex expression
-     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
-     * The prefix of the cluster resource name is the name of the parent resource:
-     *  * projects/{project}/locations/{region}
+     * Output only. The type of the cluster. This is an output-only field and it's
+     * populated at the Cluster creation time or the Cluster promotion
+     * time. The cluster type is determined by which RPC was used to create
+     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes for name to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for clusterType. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; } - - private java.lang.Object displayName_ = ""; /** * * *
-     * User-settable and human-readable display name for the Cluster.
+     * Output only. The type of the cluster. This is an output-only field and it's
+     * populated at the Cluster creation time or the Cluster promotion
+     * time. The cluster type is determined by which RPC was used to create
+     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
      * 
* - * string display_name = 2; + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The displayName. + * @param value The enum numeric value on the wire for clusterType to set. + * @return This builder for chaining. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder setClusterTypeValue(int value) { + clusterType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
-     * User-settable and human-readable display name for the Cluster.
+     * Output only. The type of the cluster. This is an output-only field and it's
+     * populated at the Cluster creation time or the Cluster promotion
+     * time. The cluster type is determined by which RPC was used to create
+     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
      * 
* - * string display_name = 2; + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for displayName. + * @return The clusterType. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { + com.google.cloud.alloydb.v1.Cluster.ClusterType result = + com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); + return result == null ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED : result; } /** * * *
-     * User-settable and human-readable display name for the Cluster.
+     * Output only. The type of the cluster. This is an output-only field and it's
+     * populated at the Cluster creation time or the Cluster promotion
+     * time. The cluster type is determined by which RPC was used to create
+     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
      * 
* - * string display_name = 2; + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The displayName to set. + * @param value The clusterType to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000400; + clusterType_ = value.getNumber(); onChanged(); return this; } @@ -6381,126 +10347,114 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * User-settable and human-readable display name for the Cluster.
+     * Output only. The type of the cluster. This is an output-only field and it's
+     * populated at the Cluster creation time or the Cluster promotion
+     * time. The cluster type is determined by which RPC was used to create
+     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
      * 
* - * string display_name = 2; + * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearClusterType() { + bitField0_ = (bitField0_ & ~0x00000400); + clusterType_ = 0; onChanged(); return this; } + + private int databaseVersion_ = 0; /** * * *
-     * User-settable and human-readable display name for the Cluster.
+     * Optional. The database engine major version. This is an optional field and
+     * it is populated at the Cluster creation time. If a database version is not
+     * supplied at cluster creation time, then a default database version will
+     * be used.
      * 
* - * string display_name = 2; + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for databaseVersion. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public int getDatabaseVersionValue() { + return databaseVersion_; } - - private java.lang.Object uid_ = ""; /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Optional. The database engine major version. This is an optional field and
+     * it is populated at the Cluster creation time. If a database version is not
+     * supplied at cluster creation time, then a default database version will
+     * be used.
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The uid. + * @param value The enum numeric value on the wire for databaseVersion to set. + * @return This builder for chaining. */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder setDatabaseVersionValue(int value) { + databaseVersion_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Optional. The database engine major version. This is an optional field and
+     * it is populated at the Cluster creation time. If a database version is not
+     * supplied at cluster creation time, then a default database version will
+     * be used.
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for uid. + * @return The databaseVersion. */ - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; } /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Optional. The database engine major version. This is an optional field and
+     * it is populated at the Cluster creation time. If a database version is not
+     * supplied at cluster creation time, then a default database version will
+     * be used.
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The uid to set. + * @param value The databaseVersion to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { if (value == null) { throw new NullPointerException(); } - uid_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000800; + databaseVersion_ = value.getNumber(); onChanged(); return this; } @@ -6508,294 +10462,266 @@ public Builder clearUid() { * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Optional. The database engine major version. This is an optional field and
+     * it is populated at the Cluster creation time. If a database version is not
+     * supplied at cluster creation time, then a default database version will
+     * be used.
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000010; + public Builder clearDatabaseVersion() { + bitField0_ = (bitField0_ & ~0x00000800); + databaseVersion_ = 0; onChanged(); return this; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.alloydb.v1.Cluster.NetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.alloydb.v1.Cluster.NetworkConfig, + com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder> + networkConfigBuilder_; /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the createTime field is set. + * @return Whether the networkConfig field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00001000) != 0); } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The createTime. + * @return The networkConfig. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.alloydb.v1.Cluster.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() + : networkConfig_; } else { - return createTimeBuilder_.getMessage(); + return networkConfigBuilder_.getMessage(); } } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfig value) { + if (networkConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + networkConfig_ = value; } else { - createTimeBuilder_.setMessage(value); + networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setNetworkConfig( + com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); + public Builder mergeNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && networkConfig_ != null + && networkConfig_ + != com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); } else { - createTime_ = value; + networkConfig_ = value; } } else { - createTimeBuilder_.mergeFrom(value); + networkConfigBuilder_.mergeFrom(value); } - if (createTime_ != null) { - bitField0_ |= 0x00000020; + if (networkConfig_ != null) { + bitField0_ |= 0x00001000; onChanged(); } return this; } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; } onChanged(); return this; } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + public com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder getNetworkConfigBuilder() { + bitField0_ |= 0x00001000; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return getNetworkConfigFieldBuilder().getBuilder(); } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() + : networkConfig_; } } /** - * - * - *
-     * Output only. Create time stamp
-     * 
- * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.alloydb.v1.Cluster.NetworkConfig, + com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.alloydb.v1.Cluster.NetworkConfig, + com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; } - return createTimeBuilder_; + return networkConfigBuilder_; } - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + private java.lang.Object network_ = ""; /** * * *
-     * Output only. Update time stamp
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: `projects/{project}/global/networks/{network_id}`. This is required
+     * to create a cluster. Deprecated, use network_config.network instead.
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return Whether the updateTime field is set. + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @return The network. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000040) != 0); + @java.lang.Deprecated + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. Update time stamp
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: `projects/{project}/global/networks/{network_id}`. This is required
+     * to create a cluster. Deprecated, use network_config.network instead.
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The updateTime. + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @return The bytes for network. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; } else { - return updateTimeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } /** * * *
-     * Output only. Update time stamp
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: `projects/{project}/global/networks/{network_id}`. This is required
+     * to create a cluster. Deprecated, use network_config.network instead.
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @param value The network to set. + * @return This builder for chaining. */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); + @java.lang.Deprecated + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000040; + network_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6803,20 +10729,25 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Update time stamp
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: `projects/{project}/global/networks/{network_id}`. This is required
+     * to create a cluster. Deprecated, use network_config.network instead.
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @return This builder for chaining. */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; + @java.lang.Deprecated + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -6824,623 +10755,676 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Update time stamp
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: `projects/{project}/global/networks/{network_id}`. This is required
+     * to create a cluster. Deprecated, use network_config.network instead.
      * 
* * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=616 + * @param value The bytes for network to set. + * @return This builder for chaining. */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000040; - onChanged(); + @java.lang.Deprecated + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00002000; + onChanged(); return this; } + + private java.lang.Object etag_ = ""; /** * * *
-     * Output only. Update time stamp
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 11; + * + * @return The etag. */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; } - onChanged(); - return this; } /** * * *
-     * Output only. Update time stamp
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 11; + * + * @return The bytes for etag. */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. Update time stamp
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 11; + * + * @param value The etag to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
-     * Output only. Update time stamp
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 11; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; } - - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; /** * * *
-     * Output only. Delete time stamp
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 11; * - * @return Whether the deleteTime field is set. + * @param value The bytes for etag to set. + * @return This builder for chaining. */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000080) != 0); + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteTime. + * map<string, string> annotations = 12; */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000080; - onChanged(); - return this; + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (deleteTime_ != null) { - bitField0_ |= 0x00000080; - onChanged(); + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000080); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * - * - *
-     * Output only. Delete time stamp
-     * 
- * - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDeleteTimeFieldBuilder().getBuilder(); + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00008000; + return internalGetMutableAnnotations().getMutableMap(); } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; } /** * * *
-     * Output only. Delete time stamp
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> annotations = 12; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; - } - return deleteTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000100; - onChanged(); - return labels_; + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } + private boolean reconciling_; /** * * *
-     * Labels as key value pairs
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Cluster does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
      * 
* - * map<string, string> labels = 7; + * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); + public boolean getReconciling() { + return reconciling_; } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + /** + * + * + *
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Cluster does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
+     * 
+ * + * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *
-     * Labels as key value pairs
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Cluster does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
      * 
* - * map<string, string> labels = 7; + * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00010000); + reconciling_ = false; + onChanged(); + return this; } + + private com.google.cloud.alloydb.v1.UserPassword initialUser_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UserPassword, + com.google.cloud.alloydb.v1.UserPassword.Builder, + com.google.cloud.alloydb.v1.UserPasswordOrBuilder> + initialUserBuilder_; /** * * *
-     * Labels as key value pairs
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialUser field is set. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public boolean hasInitialUser() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Labels as key value pairs
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialUser. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { + if (initialUserBuilder_ == null) { + return initialUser_ == null + ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() + : initialUser_; + } else { + return initialUserBuilder_.getMessage(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLabels().getMutableMap().clear(); - return this; } /** * * *
-     * Labels as key value pairs
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { + if (initialUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialUser_ = value; + } else { + initialUserBuilder_.setMessage(value); } - internalGetMutableLabels().getMutableMap().remove(key); + bitField0_ |= 0x00020000; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; - return internalGetMutableLabels().getMutableMap(); - } /** * * *
-     * Labels as key value pairs
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder setInitialUser( + com.google.cloud.alloydb.v1.UserPassword.Builder builderForValue) { + if (initialUserBuilder_ == null) { + initialUser_ = builderForValue.build(); + } else { + initialUserBuilder_.setMessage(builderForValue.build()); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00020000; + onChanged(); return this; } /** * * *
-     * Labels as key value pairs
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* - * map<string, string> labels = 7; + * + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { + if (initialUserBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && initialUser_ != null + && initialUser_ != com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance()) { + getInitialUserBuilder().mergeFrom(value); + } else { + initialUser_ = value; + } + } else { + initialUserBuilder_.mergeFrom(value); + } + if (initialUser_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } return this; } - - private int state_ = 0; /** * * *
-     * Output only. The current serving state of the cluster.
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * - * - * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder clearInitialUser() { + bitField0_ = (bitField0_ & ~0x00020000); + initialUser_ = null; + if (initialUserBuilder_ != null) { + initialUserBuilder_.dispose(); + initialUserBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Output only. The current serving state of the cluster.
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000200; + public com.google.cloud.alloydb.v1.UserPassword.Builder getInitialUserBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return this; + return getInitialUserFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The current serving state of the cluster.
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * - * - * @return The state. */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.State getState() { - com.google.cloud.alloydb.v1.Cluster.State result = - com.google.cloud.alloydb.v1.Cluster.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1.Cluster.State.UNRECOGNIZED : result; + public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder() { + if (initialUserBuilder_ != null) { + return initialUserBuilder_.getMessageOrBuilder(); + } else { + return initialUser_ == null + ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() + : initialUser_; + } } /** * * *
-     * Output only. The current serving state of the cluster.
+     * Input only. Initial user to setup during cluster creation. Required.
+     * If used in `RestoreCluster` this is ignored.
      * 
* * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * - * - * @param value The state to set. - * @return This builder for chaining. */ - public Builder setState(com.google.cloud.alloydb.v1.Cluster.State value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UserPassword, + com.google.cloud.alloydb.v1.UserPassword.Builder, + com.google.cloud.alloydb.v1.UserPasswordOrBuilder> + getInitialUserFieldBuilder() { + if (initialUserBuilder_ == null) { + initialUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UserPassword, + com.google.cloud.alloydb.v1.UserPassword.Builder, + com.google.cloud.alloydb.v1.UserPasswordOrBuilder>( + getInitialUser(), getParentForChildren(), isClean()); + initialUser_ = null; } - bitField0_ |= 0x00000200; - state_ = value.getNumber(); - onChanged(); - return this; + return initialUserBuilder_; } + + private com.google.cloud.alloydb.v1.AutomatedBackupPolicy automatedBackupPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.AutomatedBackupPolicy, + com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, + com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder> + automatedBackupPolicyBuilder_; /** * * *
-     * Output only. The current serving state of the cluster.
+     * The automated backup policy for this cluster.
+     *
+     * If no policy is provided then the default policy will be used. If backups
+     * are supported for the cluster, the default policy takes one backup a day,
+     * has a backup window of 1 hour, and retains backups for 14 days.
+     * For more information on the defaults, consult the
+     * documentation for the message type.
      * 
* - * - * .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; * - * @return This builder for chaining. + * @return Whether the automatedBackupPolicy field is set. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000200); - state_ = 0; - onChanged(); - return this; + public boolean hasAutomatedBackupPolicy() { + return ((bitField0_ & 0x00040000) != 0); } - - private int clusterType_ = 0; /** * * *
-     * Output only. The type of the cluster. This is an output-only field and it's
-     * populated at the Cluster creation time or the Cluster promotion
-     * time. The cluster type is determined by which RPC was used to create
-     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
+     * The automated backup policy for this cluster.
+     *
+     * If no policy is provided then the default policy will be used. If backups
+     * are supported for the cluster, the default policy takes one backup a day,
+     * has a backup window of 1 hour, and retains backups for 14 days.
+     * For more information on the defaults, consult the
+     * documentation for the message type.
      * 
* - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; * - * @return The enum numeric value on the wire for clusterType. + * @return The automatedBackupPolicy. */ - @java.lang.Override - public int getClusterTypeValue() { - return clusterType_; + public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolicy() { + if (automatedBackupPolicyBuilder_ == null) { + return automatedBackupPolicy_ == null + ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() + : automatedBackupPolicy_; + } else { + return automatedBackupPolicyBuilder_.getMessage(); + } } /** * * *
-     * Output only. The type of the cluster. This is an output-only field and it's
-     * populated at the Cluster creation time or the Cluster promotion
-     * time. The cluster type is determined by which RPC was used to create
-     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @param value The enum numeric value on the wire for clusterType to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - public Builder setClusterTypeValue(int value) { - clusterType_ = value; - bitField0_ |= 0x00000400; + public Builder setAutomatedBackupPolicy( + com.google.cloud.alloydb.v1.AutomatedBackupPolicy value) { + if (automatedBackupPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automatedBackupPolicy_ = value; + } else { + automatedBackupPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7448,47 +11432,25 @@ public Builder setClusterTypeValue(int value) { * * *
-     * Output only. The type of the cluster. This is an output-only field and it's
-     * populated at the Cluster creation time or the Cluster promotion
-     * time. The cluster type is determined by which RPC was used to create
-     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
-     * 
- * - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterType. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { - com.google.cloud.alloydb.v1.Cluster.ClusterType result = - com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); - return result == null ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED : result; - } - /** - * + * The automated backup policy for this cluster. * - *
-     * Output only. The type of the cluster. This is an output-only field and it's
-     * populated at the Cluster creation time or the Cluster promotion
-     * time. The cluster type is determined by which RPC was used to create
-     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
+     * If no policy is provided then the default policy will be used. If backups
+     * are supported for the cluster, the default policy takes one backup a day,
+     * has a backup window of 1 hour, and retains backups for 14 days.
+     * For more information on the defaults, consult the
+     * documentation for the message type.
      * 
* - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The clusterType to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAutomatedBackupPolicy( + com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder builderForValue) { + if (automatedBackupPolicyBuilder_ == null) { + automatedBackupPolicy_ = builderForValue.build(); + } else { + automatedBackupPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; - clusterType_ = value.getNumber(); + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7496,505 +11458,499 @@ public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType va * * *
-     * Output only. The type of the cluster. This is an output-only field and it's
-     * populated at the Cluster creation time or the Cluster promotion
-     * time. The cluster type is determined by which RPC was used to create
-     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @return This builder for chaining. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - public Builder clearClusterType() { - bitField0_ = (bitField0_ & ~0x00000400); - clusterType_ = 0; - onChanged(); + public Builder mergeAutomatedBackupPolicy( + com.google.cloud.alloydb.v1.AutomatedBackupPolicy value) { + if (automatedBackupPolicyBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && automatedBackupPolicy_ != null + && automatedBackupPolicy_ + != com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance()) { + getAutomatedBackupPolicyBuilder().mergeFrom(value); + } else { + automatedBackupPolicy_ = value; + } + } else { + automatedBackupPolicyBuilder_.mergeFrom(value); + } + if (automatedBackupPolicy_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } return this; } - - private int databaseVersion_ = 0; /** * * *
-     * Optional. The database engine major version. This is an optional field and
-     * it is populated at the Cluster creation time. If a database version is not
-     * supplied at cluster creation time, then a default database version will
-     * be used.
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @return The enum numeric value on the wire for databaseVersion. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - @java.lang.Override - public int getDatabaseVersionValue() { - return databaseVersion_; + public Builder clearAutomatedBackupPolicy() { + bitField0_ = (bitField0_ & ~0x00040000); + automatedBackupPolicy_ = null; + if (automatedBackupPolicyBuilder_ != null) { + automatedBackupPolicyBuilder_.dispose(); + automatedBackupPolicyBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Optional. The database engine major version. This is an optional field and
-     * it is populated at the Cluster creation time. If a database version is not
-     * supplied at cluster creation time, then a default database version will
-     * be used.
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @param value The enum numeric value on the wire for databaseVersion to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - public Builder setDatabaseVersionValue(int value) { - databaseVersion_ = value; - bitField0_ |= 0x00000800; + public com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder + getAutomatedBackupPolicyBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return this; + return getAutomatedBackupPolicyFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The database engine major version. This is an optional field and
-     * it is populated at the Cluster creation time. If a database version is not
-     * supplied at cluster creation time, then a default database version will
-     * be used.
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @return The databaseVersion. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { - com.google.cloud.alloydb.v1.DatabaseVersion result = - com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); - return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + */ + public com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder + getAutomatedBackupPolicyOrBuilder() { + if (automatedBackupPolicyBuilder_ != null) { + return automatedBackupPolicyBuilder_.getMessageOrBuilder(); + } else { + return automatedBackupPolicy_ == null + ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() + : automatedBackupPolicy_; + } } /** * * *
-     * Optional. The database engine major version. This is an optional field and
-     * it is populated at the Cluster creation time. If a database version is not
-     * supplied at cluster creation time, then a default database version will
-     * be used.
-     * 
+ * The automated backup policy for this cluster. * - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * If no policy is provided then the default policy will be used. If backups + * are supported for the cluster, the default policy takes one backup a day, + * has a backup window of 1 hour, and retains backups for 14 days. + * For more information on the defaults, consult the + * documentation for the message type. + *
* - * @param value The databaseVersion to set. - * @return This builder for chaining. + * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ - public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.AutomatedBackupPolicy, + com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, + com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder> + getAutomatedBackupPolicyFieldBuilder() { + if (automatedBackupPolicyBuilder_ == null) { + automatedBackupPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.AutomatedBackupPolicy, + com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, + com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder>( + getAutomatedBackupPolicy(), getParentForChildren(), isClean()); + automatedBackupPolicy_ = null; } - bitField0_ |= 0x00000800; - databaseVersion_ = value.getNumber(); - onChanged(); - return this; + return automatedBackupPolicyBuilder_; } + + private com.google.cloud.alloydb.v1.SslConfig sslConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder> + sslConfigBuilder_; /** * * *
-     * Optional. The database engine major version. This is an optional field and
-     * it is populated at the Cluster creation time. If a database version is not
-     * supplied at cluster creation time, then a default database version will
-     * be used.
+     * SSL configuration for this AlloyDB cluster.
      * 
* - * - * .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * - * @return This builder for chaining. + * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=651 + * @return Whether the sslConfig field is set. */ - public Builder clearDatabaseVersion() { - bitField0_ = (bitField0_ & ~0x00000800); - databaseVersion_ = 0; - onChanged(); - return this; + @java.lang.Deprecated + public boolean hasSslConfig() { + return ((bitField0_ & 0x00080000) != 0); } - - private com.google.cloud.alloydb.v1.Cluster.NetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.NetworkConfig, - com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder> - networkConfigBuilder_; /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * * - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * * - * @return The networkConfig. + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * + * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See + * google/cloud/alloydb/v1/resources.proto;l=651 + * @return The sslConfig. */ - public com.google.cloud.alloydb.v1.Cluster.NetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() - : networkConfig_; + @java.lang.Deprecated + public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { + if (sslConfigBuilder_ == null) { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; } else { - return networkConfigBuilder_.getMessage(); + return sslConfigBuilder_.getMessage(); } } /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * + * + * + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ - public Builder setNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfig value) { - if (networkConfigBuilder_ == null) { + @java.lang.Deprecated + public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { + if (sslConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - networkConfig_ = value; + sslConfig_ = value; } else { - networkConfigBuilder_.setMessage(value); + sslConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00080000; onChanged(); return this; } /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * + * + * + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ - public Builder setNetworkConfig( - com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); + @java.lang.Deprecated + public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builderForValue) { + if (sslConfigBuilder_ == null) { + sslConfig_ = builderForValue.build(); } else { - networkConfigBuilder_.setMessage(builderForValue.build()); + sslConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00080000; onChanged(); return this; } /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * + * + * + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ - public Builder mergeNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && networkConfig_ != null - && networkConfig_ - != com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance()) { - getNetworkConfigBuilder().mergeFrom(value); + @java.lang.Deprecated + public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { + if (sslConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && sslConfig_ != null + && sslConfig_ != com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance()) { + getSslConfigBuilder().mergeFrom(value); } else { - networkConfig_ = value; + sslConfig_ = value; } } else { - networkConfigBuilder_.mergeFrom(value); + sslConfigBuilder_.mergeFrom(value); } - if (networkConfig_ != null) { - bitField0_ |= 0x00001000; + if (sslConfig_ != null) { + bitField0_ |= 0x00080000; onChanged(); } return this; } /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00001000); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - } - /** - * - * .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * + * + * + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.NetworkConfig, - com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.NetworkConfig, - com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; + @java.lang.Deprecated + public Builder clearSslConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; } - return networkConfigBuilder_; + onChanged(); + return this; } - - private java.lang.Object network_ = ""; /** * * *
-     * Required. The resource link for the VPC network in which cluster resources
-     * are created and from which they are accessible via Private IP. The network
-     * must belong to the same project as the cluster. It is specified in the
-     * form: "projects/{project}/global/networks/{network_id}". This is required
-     * to create a cluster. Deprecated, use network_config.network instead.
+     * SSL configuration for this AlloyDB cluster.
      * 
* - * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getSslConfigFieldBuilder().getBuilder(); + } + /** * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @return The network. + * + *
+     * SSL configuration for this AlloyDB cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ @java.lang.Deprecated - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; + public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { + if (sslConfigBuilder_ != null) { + return sslConfigBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; } } /** * * *
-     * Required. The resource link for the VPC network in which cluster resources
-     * are created and from which they are accessible via Private IP. The network
-     * must belong to the same project as the cluster. It is specified in the
-     * form: "projects/{project}/global/networks/{network_id}". This is required
-     * to create a cluster. Deprecated, use network_config.network instead.
+     * SSL configuration for this AlloyDB cluster.
      * 
* - * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @return The bytes for network. + * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder> + getSslConfigFieldBuilder() { + if (sslConfigBuilder_ == null) { + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); + sslConfig_ = null; } + return sslConfigBuilder_; } + + private com.google.cloud.alloydb.v1.EncryptionConfig encryptionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionConfig, + com.google.cloud.alloydb.v1.EncryptionConfig.Builder, + com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder> + encryptionConfigBuilder_; /** * * *
-     * Required. The resource link for the VPC network in which cluster resources
-     * are created and from which they are accessible via Private IP. The network
-     * must belong to the same project as the cluster. It is specified in the
-     * form: "projects/{project}/global/networks/{network_id}". This is required
-     * to create a cluster. Deprecated, use network_config.network instead.
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @param value The network to set. - * @return This builder for chaining. + * @return Whether the encryptionConfig field is set. */ - @java.lang.Deprecated - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - network_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; + public boolean hasEncryptionConfig() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
-     * Required. The resource link for the VPC network in which cluster resources
-     * are created and from which they are accessible via Private IP. The network
-     * must belong to the same project as the cluster. It is specified in the
-     * form: "projects/{project}/global/networks/{network_id}". This is required
-     * to create a cluster. Deprecated, use network_config.network instead.
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @return This builder for chaining. + * @return The encryptionConfig. */ - @java.lang.Deprecated - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; + public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { + if (encryptionConfigBuilder_ == null) { + return encryptionConfig_ == null + ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } else { + return encryptionConfigBuilder_.getMessage(); + } } /** * * *
-     * Required. The resource link for the VPC network in which cluster resources
-     * are created and from which they are accessible via Private IP. The network
-     * must belong to the same project as the cluster. It is specified in the
-     * form: "projects/{project}/global/networks/{network_id}". This is required
-     * to create a cluster. Deprecated, use network_config.network instead.
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* * - * string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 - * @param value The bytes for network to set. - * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionConfig_ = value; + } else { + encryptionConfigBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00100000; onChanged(); return this; } - - private java.lang.Object etag_ = ""; /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * string etag = 11; - * - * @return The etag. + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + public Builder setEncryptionConfig( + com.google.cloud.alloydb.v1.EncryptionConfig.Builder builderForValue) { + if (encryptionConfigBuilder_ == null) { + encryptionConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + encryptionConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * string etag = 11; - * - * @return The bytes for etag. + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; + public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && encryptionConfig_ != null + && encryptionConfig_ + != com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance()) { + getEncryptionConfigBuilder().mergeFrom(value); + } else { + encryptionConfig_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + encryptionConfigBuilder_.mergeFrom(value); + } + if (encryptionConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); } + return this; } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * string etag = 11; - * - * @param value The etag to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearEncryptionConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; } - etag_ = value; - bitField0_ |= 0x00004000; onChanged(); return this; } @@ -8002,355 +11958,348 @@ public Builder setEtag(java.lang.String value) { * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * string etag = 11; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00004000); + public com.google.cloud.alloydb.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { + bitField0_ |= 0x00100000; onChanged(); - return this; + return getEncryptionConfigFieldBuilder().getBuilder(); } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * string etag = 11; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private com.google.protobuf.MapField annotations_; - - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); + public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + if (encryptionConfigBuilder_ != null) { + return encryptionConfigBuilder_.getMessageOrBuilder(); + } else { + return encryptionConfig_ == null + ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } - bitField0_ |= 0x00008000; - onChanged(); - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionConfig, + com.google.cloud.alloydb.v1.EncryptionConfig.Builder, + com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder> + getEncryptionConfigFieldBuilder() { + if (encryptionConfigBuilder_ == null) { + encryptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionConfig, + com.google.cloud.alloydb.v1.EncryptionConfig.Builder, + com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder>( + getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfig_ = null; } - return internalGetAnnotations().getMap().containsKey(key); - } - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); + return encryptionConfigBuilder_; } + + private com.google.cloud.alloydb.v1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionInfo, + com.google.cloud.alloydb.v1.EncryptionInfo.Builder, + com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); } - java.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); } - return map.get(key); - } - - public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00008000); - internalGetMutableAnnotations().getMutableMap().clear(); + bitField0_ |= 0x00200000; + onChanged(); return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setEncryptionInfo( + com.google.cloud.alloydb.v1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); } - internalGetMutableAnnotations().getMutableMap().remove(key); + bitField0_ |= 0x00200000; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00008000; - return internalGetMutableAnnotations().getMutableMap(); - } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && encryptionInfo_ != null + && encryptionInfo_ != com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x00200000; + onChanged(); } - internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Output only. The encryption information for the cluster.
      * 
* - * map<string, string> annotations = 12; + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x00200000); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + onChanged(); return this; } - - private boolean reconciling_; /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Cluster does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Output only. The encryption information for the cluster.
      * 
* - * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The reconciling. + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean getReconciling() { - return reconciling_; + public com.google.cloud.alloydb.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getEncryptionInfoFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Cluster does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Output only. The encryption information for the cluster.
      * 
* - * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The reconciling to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setReconciling(boolean value) { - - reconciling_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } } /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Cluster does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Output only. The encryption information for the cluster.
      * 
* - * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00010000); - reconciling_ = false; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionInfo, + com.google.cloud.alloydb.v1.EncryptionInfo.Builder, + com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder> + getEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.EncryptionInfo, + com.google.cloud.alloydb.v1.EncryptionInfo.Builder, + com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; } - private com.google.cloud.alloydb.v1.UserPassword initialUser_; + private com.google.cloud.alloydb.v1.ContinuousBackupConfig continuousBackupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.UserPassword, - com.google.cloud.alloydb.v1.UserPassword.Builder, - com.google.cloud.alloydb.v1.UserPasswordOrBuilder> - initialUserBuilder_; + com.google.cloud.alloydb.v1.ContinuousBackupConfig, + com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder> + continuousBackupConfigBuilder_; /** * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the initialUser field is set. + * @return Whether the continuousBackupConfig field is set. */ - public boolean hasInitialUser() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasContinuousBackupConfig() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The initialUser. + * @return The continuousBackupConfig. */ - public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { - if (initialUserBuilder_ == null) { - return initialUser_ == null - ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() - : initialUser_; + public com.google.cloud.alloydb.v1.ContinuousBackupConfig getContinuousBackupConfig() { + if (continuousBackupConfigBuilder_ == null) { + return continuousBackupConfig_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() + : continuousBackupConfig_; } else { - return initialUserBuilder_.getMessage(); + return continuousBackupConfigBuilder_.getMessage(); } } /** * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { - if (initialUserBuilder_ == null) { + public Builder setContinuousBackupConfig( + com.google.cloud.alloydb.v1.ContinuousBackupConfig value) { + if (continuousBackupConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - initialUser_ = value; + continuousBackupConfig_ = value; } else { - initialUserBuilder_.setMessage(value); + continuousBackupConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8358,22 +12307,21 @@ public Builder setInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setInitialUser( - com.google.cloud.alloydb.v1.UserPassword.Builder builderForValue) { - if (initialUserBuilder_ == null) { - initialUser_ = builderForValue.build(); + public Builder setContinuousBackupConfig( + com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder builderForValue) { + if (continuousBackupConfigBuilder_ == null) { + continuousBackupConfig_ = builderForValue.build(); } else { - initialUserBuilder_.setMessage(builderForValue.build()); + continuousBackupConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8381,28 +12329,29 @@ public Builder setInitialUser( * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { - if (initialUserBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && initialUser_ != null - && initialUser_ != com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance()) { - getInitialUserBuilder().mergeFrom(value); + public Builder mergeContinuousBackupConfig( + com.google.cloud.alloydb.v1.ContinuousBackupConfig value) { + if (continuousBackupConfigBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && continuousBackupConfig_ != null + && continuousBackupConfig_ + != com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance()) { + getContinuousBackupConfigBuilder().mergeFrom(value); } else { - initialUser_ = value; + continuousBackupConfig_ = value; } } else { - initialUserBuilder_.mergeFrom(value); + continuousBackupConfigBuilder_.mergeFrom(value); } - if (initialUser_ != null) { - bitField0_ |= 0x00020000; + if (continuousBackupConfig_ != null) { + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -8411,20 +12360,19 @@ public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearInitialUser() { - bitField0_ = (bitField0_ & ~0x00020000); - initialUser_ = null; - if (initialUserBuilder_ != null) { - initialUserBuilder_.dispose(); - initialUserBuilder_ = null; + public Builder clearContinuousBackupConfig() { + bitField0_ = (bitField0_ & ~0x00400000); + continuousBackupConfig_ = null; + if (continuousBackupConfigBuilder_ != null) { + continuousBackupConfigBuilder_.dispose(); + continuousBackupConfigBuilder_ = null; } onChanged(); return this; @@ -8433,147 +12381,133 @@ public Builder clearInitialUser() { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.UserPassword.Builder getInitialUserBuilder() { - bitField0_ |= 0x00020000; + public com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder + getContinuousBackupConfigBuilder() { + bitField0_ |= 0x00400000; onChanged(); - return getInitialUserFieldBuilder().getBuilder(); + return getContinuousBackupConfigFieldBuilder().getBuilder(); } /** * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder() { - if (initialUserBuilder_ != null) { - return initialUserBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder + getContinuousBackupConfigOrBuilder() { + if (continuousBackupConfigBuilder_ != null) { + return continuousBackupConfigBuilder_.getMessageOrBuilder(); } else { - return initialUser_ == null - ? com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance() - : initialUser_; + return continuousBackupConfig_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() + : continuousBackupConfig_; } } /** * * *
-     * Input only. Initial user to setup during cluster creation. Required.
-     * If used in `RestoreCluster` this is ignored.
+     * Optional. Continuous backup configuration for this cluster.
      * 
* * - * .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.UserPassword, - com.google.cloud.alloydb.v1.UserPassword.Builder, - com.google.cloud.alloydb.v1.UserPasswordOrBuilder> - getInitialUserFieldBuilder() { - if (initialUserBuilder_ == null) { - initialUserBuilder_ = + com.google.cloud.alloydb.v1.ContinuousBackupConfig, + com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder> + getContinuousBackupConfigFieldBuilder() { + if (continuousBackupConfigBuilder_ == null) { + continuousBackupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.UserPassword, - com.google.cloud.alloydb.v1.UserPassword.Builder, - com.google.cloud.alloydb.v1.UserPasswordOrBuilder>( - getInitialUser(), getParentForChildren(), isClean()); - initialUser_ = null; + com.google.cloud.alloydb.v1.ContinuousBackupConfig, + com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder>( + getContinuousBackupConfig(), getParentForChildren(), isClean()); + continuousBackupConfig_ = null; } - return initialUserBuilder_; + return continuousBackupConfigBuilder_; } - private com.google.cloud.alloydb.v1.AutomatedBackupPolicy automatedBackupPolicy_; + private com.google.cloud.alloydb.v1.ContinuousBackupInfo continuousBackupInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.AutomatedBackupPolicy, - com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, - com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder> - automatedBackupPolicyBuilder_; + com.google.cloud.alloydb.v1.ContinuousBackupInfo, + com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder> + continuousBackupInfoBuilder_; /** * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the automatedBackupPolicy field is set. + * @return Whether the continuousBackupInfo field is set. */ - public boolean hasAutomatedBackupPolicy() { - return ((bitField0_ & 0x00040000) != 0); + public boolean hasContinuousBackupInfo() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The automatedBackupPolicy. + * @return The continuousBackupInfo. */ - public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolicy() { - if (automatedBackupPolicyBuilder_ == null) { - return automatedBackupPolicy_ == null - ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() - : automatedBackupPolicy_; + public com.google.cloud.alloydb.v1.ContinuousBackupInfo getContinuousBackupInfo() { + if (continuousBackupInfoBuilder_ == null) { + return continuousBackupInfo_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() + : continuousBackupInfo_; } else { - return automatedBackupPolicyBuilder_.getMessage(); + return continuousBackupInfoBuilder_.getMessage(); } } /** * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAutomatedBackupPolicy( - com.google.cloud.alloydb.v1.AutomatedBackupPolicy value) { - if (automatedBackupPolicyBuilder_ == null) { + public Builder setContinuousBackupInfo(com.google.cloud.alloydb.v1.ContinuousBackupInfo value) { + if (continuousBackupInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - automatedBackupPolicy_ = value; + continuousBackupInfo_ = value; } else { - automatedBackupPolicyBuilder_.setMessage(value); + continuousBackupInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8581,25 +12515,21 @@ public Builder setAutomatedBackupPolicy( * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAutomatedBackupPolicy( - com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder builderForValue) { - if (automatedBackupPolicyBuilder_ == null) { - automatedBackupPolicy_ = builderForValue.build(); + public Builder setContinuousBackupInfo( + com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder builderForValue) { + if (continuousBackupInfoBuilder_ == null) { + continuousBackupInfo_ = builderForValue.build(); } else { - automatedBackupPolicyBuilder_.setMessage(builderForValue.build()); + continuousBackupInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8607,33 +12537,29 @@ public Builder setAutomatedBackupPolicy( * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeAutomatedBackupPolicy( - com.google.cloud.alloydb.v1.AutomatedBackupPolicy value) { - if (automatedBackupPolicyBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && automatedBackupPolicy_ != null - && automatedBackupPolicy_ - != com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance()) { - getAutomatedBackupPolicyBuilder().mergeFrom(value); + public Builder mergeContinuousBackupInfo( + com.google.cloud.alloydb.v1.ContinuousBackupInfo value) { + if (continuousBackupInfoBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && continuousBackupInfo_ != null + && continuousBackupInfo_ + != com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance()) { + getContinuousBackupInfoBuilder().mergeFrom(value); } else { - automatedBackupPolicy_ = value; + continuousBackupInfo_ = value; } } else { - automatedBackupPolicyBuilder_.mergeFrom(value); + continuousBackupInfoBuilder_.mergeFrom(value); } - if (automatedBackupPolicy_ != null) { - bitField0_ |= 0x00040000; + if (continuousBackupInfo_ != null) { + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -8642,23 +12568,19 @@ public Builder mergeAutomatedBackupPolicy( * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearAutomatedBackupPolicy() { - bitField0_ = (bitField0_ & ~0x00040000); - automatedBackupPolicy_ = null; - if (automatedBackupPolicyBuilder_ != null) { - automatedBackupPolicyBuilder_.dispose(); - automatedBackupPolicyBuilder_ = null; + public Builder clearContinuousBackupInfo() { + bitField0_ = (bitField0_ & ~0x00800000); + continuousBackupInfo_ = null; + if (continuousBackupInfoBuilder_ != null) { + continuousBackupInfoBuilder_.dispose(); + continuousBackupInfoBuilder_ = null; } onChanged(); return this; @@ -8667,146 +12589,127 @@ public Builder clearAutomatedBackupPolicy() { * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder - getAutomatedBackupPolicyBuilder() { - bitField0_ |= 0x00040000; + public com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder + getContinuousBackupInfoBuilder() { + bitField0_ |= 0x00800000; onChanged(); - return getAutomatedBackupPolicyFieldBuilder().getBuilder(); + return getContinuousBackupInfoFieldBuilder().getBuilder(); } /** * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder - getAutomatedBackupPolicyOrBuilder() { - if (automatedBackupPolicyBuilder_ != null) { - return automatedBackupPolicyBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder + getContinuousBackupInfoOrBuilder() { + if (continuousBackupInfoBuilder_ != null) { + return continuousBackupInfoBuilder_.getMessageOrBuilder(); } else { - return automatedBackupPolicy_ == null - ? com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance() - : automatedBackupPolicy_; + return continuousBackupInfo_ == null + ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() + : continuousBackupInfo_; } } /** * * *
-     * The automated backup policy for this cluster.
-     *
-     * If no policy is provided then the default policy will be used. If backups
-     * are supported for the cluster, the default policy takes one backup a day,
-     * has a backup window of 1 hour, and retains backups for 14 days.
-     * For more information on the defaults, consult the
-     * documentation for the message type.
+     * Output only. Continuous backup properties for this cluster.
      * 
* - * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; + * + * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.AutomatedBackupPolicy, - com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, - com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder> - getAutomatedBackupPolicyFieldBuilder() { - if (automatedBackupPolicyBuilder_ == null) { - automatedBackupPolicyBuilder_ = + com.google.cloud.alloydb.v1.ContinuousBackupInfo, + com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder> + getContinuousBackupInfoFieldBuilder() { + if (continuousBackupInfoBuilder_ == null) { + continuousBackupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.AutomatedBackupPolicy, - com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder, - com.google.cloud.alloydb.v1.AutomatedBackupPolicyOrBuilder>( - getAutomatedBackupPolicy(), getParentForChildren(), isClean()); - automatedBackupPolicy_ = null; + com.google.cloud.alloydb.v1.ContinuousBackupInfo, + com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, + com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder>( + getContinuousBackupInfo(), getParentForChildren(), isClean()); + continuousBackupInfo_ = null; } - return automatedBackupPolicyBuilder_; + return continuousBackupInfoBuilder_; } - private com.google.cloud.alloydb.v1.SslConfig sslConfig_; + private com.google.cloud.alloydb.v1.Cluster.SecondaryConfig secondaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder> - sslConfigBuilder_; + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder> + secondaryConfigBuilder_; /** * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; * - * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 - * @return Whether the sslConfig field is set. + * @return Whether the secondaryConfig field is set. */ - @java.lang.Deprecated - public boolean hasSslConfig() { - return ((bitField0_ & 0x00080000) != 0); + public boolean hasSecondaryConfig() { + return ((bitField0_ & 0x01000000) != 0); } /** * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; * - * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 - * @return The sslConfig. + * @return The secondaryConfig. */ - @java.lang.Deprecated - public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { - if (sslConfigBuilder_ == null) { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; + public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig getSecondaryConfig() { + if (secondaryConfigBuilder_ == null) { + return secondaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() + : secondaryConfig_; } else { - return sslConfigBuilder_.getMessage(); + return secondaryConfigBuilder_.getMessage(); } } /** * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { - if (sslConfigBuilder_ == null) { + public Builder setSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryConfig value) { + if (secondaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sslConfig_ = value; + secondaryConfig_ = value; } else { - sslConfigBuilder_.setMessage(value); + secondaryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8814,19 +12717,19 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builderForValue) { - if (sslConfigBuilder_ == null) { - sslConfig_ = builderForValue.build(); + public Builder setSecondaryConfig( + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder builderForValue) { + if (secondaryConfigBuilder_ == null) { + secondaryConfig_ = builderForValue.build(); } else { - sslConfigBuilder_.setMessage(builderForValue.build()); + secondaryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8834,26 +12737,26 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builde * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { - if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && sslConfig_ != null - && sslConfig_ != com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance()) { - getSslConfigBuilder().mergeFrom(value); + public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryConfig value) { + if (secondaryConfigBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && secondaryConfig_ != null + && secondaryConfig_ + != com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance()) { + getSecondaryConfigBuilder().mergeFrom(value); } else { - sslConfig_ = value; + secondaryConfig_ = value; } } else { - sslConfigBuilder_.mergeFrom(value); + secondaryConfigBuilder_.mergeFrom(value); } - if (sslConfig_ != null) { - bitField0_ |= 0x00080000; + if (secondaryConfig_ != null) { + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -8862,18 +12765,17 @@ public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public Builder clearSslConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - sslConfig_ = null; - if (sslConfigBuilder_ != null) { - sslConfigBuilder_.dispose(); - sslConfigBuilder_ = null; + public Builder clearSecondaryConfig() { + bitField0_ = (bitField0_ & ~0x01000000); + secondaryConfig_ = null; + if (secondaryConfigBuilder_ != null) { + secondaryConfigBuilder_.dispose(); + secondaryConfigBuilder_ = null; } onChanged(); return this; @@ -8882,139 +12784,126 @@ public Builder clearSslConfig() { * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { - bitField0_ |= 0x00080000; + public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder getSecondaryConfigBuilder() { + bitField0_ |= 0x01000000; onChanged(); - return getSslConfigFieldBuilder().getBuilder(); + return getSecondaryConfigFieldBuilder().getBuilder(); } /** * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ - @java.lang.Deprecated - public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { - if (sslConfigBuilder_ != null) { - return sslConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder + getSecondaryConfigOrBuilder() { + if (secondaryConfigBuilder_ != null) { + return secondaryConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; + return secondaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() + : secondaryConfig_; } } /** * * *
-     * SSL configuration for this AlloyDB cluster.
+     * Cross Region replication config specific to SECONDARY cluster.
      * 
* - * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; + * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder> - getSslConfigFieldBuilder() { - if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder> + getSecondaryConfigFieldBuilder() { + if (secondaryConfigBuilder_ == null) { + secondaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder>( - getSslConfig(), getParentForChildren(), isClean()); - sslConfig_ = null; + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder>( + getSecondaryConfig(), getParentForChildren(), isClean()); + secondaryConfig_ = null; } - return sslConfigBuilder_; + return secondaryConfigBuilder_; } - private com.google.cloud.alloydb.v1.EncryptionConfig encryptionConfig_; + private com.google.cloud.alloydb.v1.Cluster.PrimaryConfig primaryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionConfig, - com.google.cloud.alloydb.v1.EncryptionConfig.Builder, - com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder> - encryptionConfigBuilder_; + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder> + primaryConfigBuilder_; /** * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the encryptionConfig field is set. + * @return Whether the primaryConfig field is set. */ - public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00100000) != 0); + public boolean hasPrimaryConfig() { + return ((bitField0_ & 0x02000000) != 0); } /** * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The encryptionConfig. + * @return The primaryConfig. */ - public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { - if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; + public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig getPrimaryConfig() { + if (primaryConfigBuilder_ == null) { + return primaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() + : primaryConfig_; } else { - return encryptionConfigBuilder_.getMessage(); + return primaryConfigBuilder_.getMessage(); } } /** * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { + public Builder setPrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfig value) { + if (primaryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - encryptionConfig_ = value; + primaryConfig_ = value; } else { - encryptionConfigBuilder_.setMessage(value); + primaryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -9022,25 +12911,21 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionConfig( - com.google.cloud.alloydb.v1.EncryptionConfig.Builder builderForValue) { - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = builderForValue.build(); + public Builder setPrimaryConfig( + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder builderForValue) { + if (primaryConfigBuilder_ == null) { + primaryConfig_ = builderForValue.build(); } else { - encryptionConfigBuilder_.setMessage(builderForValue.build()); + primaryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -9048,32 +12933,28 @@ public Builder setEncryptionConfig( * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && encryptionConfig_ != null - && encryptionConfig_ - != com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance()) { - getEncryptionConfigBuilder().mergeFrom(value); + public Builder mergePrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfig value) { + if (primaryConfigBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && primaryConfig_ != null + && primaryConfig_ + != com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance()) { + getPrimaryConfigBuilder().mergeFrom(value); } else { - encryptionConfig_ = value; + primaryConfig_ = value; } } else { - encryptionConfigBuilder_.mergeFrom(value); + primaryConfigBuilder_.mergeFrom(value); } - if (encryptionConfig_ != null) { - bitField0_ |= 0x00100000; + if (primaryConfig_ != null) { + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -9082,23 +12963,19 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfi * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - encryptionConfig_ = null; - if (encryptionConfigBuilder_ != null) { - encryptionConfigBuilder_.dispose(); - encryptionConfigBuilder_ = null; + public Builder clearPrimaryConfig() { + bitField0_ = (bitField0_ & ~0x02000000); + primaryConfig_ = null; + if (primaryConfigBuilder_ != null) { + primaryConfigBuilder_.dispose(); + primaryConfigBuilder_ = null; } onChanged(); return this; @@ -9107,143 +12984,187 @@ public Builder clearEncryptionConfig() { * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - bitField0_ |= 0x00100000; + public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder getPrimaryConfigBuilder() { + bitField0_ |= 0x02000000; onChanged(); - return getEncryptionConfigFieldBuilder().getBuilder(); + return getPrimaryConfigFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { - if (encryptionConfigBuilder_ != null) { - return encryptionConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder() { + if (primaryConfigBuilder_ != null) { + return primaryConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null - ? com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return primaryConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() + : primaryConfig_; } } /** * * *
-     * Optional. The encryption config can be specified to encrypt the data disks
-     * and other persistent data resources of a cluster with a
-     * customer-managed encryption key (CMEK). When this field is not
-     * specified, the cluster will then use default encryption scheme to
-     * protect the user data.
+     * Output only. Cross Region replication config specific to PRIMARY cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionConfig, - com.google.cloud.alloydb.v1.EncryptionConfig.Builder, - com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder> - getEncryptionConfigFieldBuilder() { - if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder> + getPrimaryConfigFieldBuilder() { + if (primaryConfigBuilder_ == null) { + primaryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionConfig, - com.google.cloud.alloydb.v1.EncryptionConfig.Builder, - com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); - encryptionConfig_ = null; + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder>( + getPrimaryConfig(), getParentForChildren(), isClean()); + primaryConfig_ = null; } - return encryptionConfigBuilder_; + return primaryConfigBuilder_; } - private com.google.cloud.alloydb.v1.EncryptionInfo encryptionInfo_; + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x04000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1.Cluster.PscConfig pscConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionInfo, - com.google.cloud.alloydb.v1.EncryptionInfo.Builder, - com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder> - encryptionInfoBuilder_; + com.google.cloud.alloydb.v1.Cluster.PscConfig, + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder> + pscConfigBuilder_; /** * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the encryptionInfo field is set. + * @return Whether the pscConfig field is set. */ - public boolean hasEncryptionInfo() { - return ((bitField0_ & 0x00200000) != 0); + public boolean hasPscConfig() { + return ((bitField0_ & 0x08000000) != 0); } /** * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The encryptionInfo. + * @return The pscConfig. */ - public com.google.cloud.alloydb.v1.EncryptionInfo getEncryptionInfo() { - if (encryptionInfoBuilder_ == null) { - return encryptionInfo_ == null - ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + public com.google.cloud.alloydb.v1.Cluster.PscConfig getPscConfig() { + if (pscConfigBuilder_ == null) { + return pscConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance() + : pscConfig_; } else { - return encryptionInfoBuilder_.getMessage(); + return pscConfigBuilder_.getMessage(); } } /** * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo value) { - if (encryptionInfoBuilder_ == null) { + public Builder setPscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig value) { + if (pscConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - encryptionInfo_ = value; + pscConfig_ = value; } else { - encryptionInfoBuilder_.setMessage(value); + pscConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -9251,21 +13172,22 @@ public Builder setEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo valu * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEncryptionInfo( - com.google.cloud.alloydb.v1.EncryptionInfo.Builder builderForValue) { - if (encryptionInfoBuilder_ == null) { - encryptionInfo_ = builderForValue.build(); + public Builder setPscConfig( + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder builderForValue) { + if (pscConfigBuilder_ == null) { + pscConfig_ = builderForValue.build(); } else { - encryptionInfoBuilder_.setMessage(builderForValue.build()); + pscConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -9273,27 +13195,28 @@ public Builder setEncryptionInfo( * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo value) { - if (encryptionInfoBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && encryptionInfo_ != null - && encryptionInfo_ != com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance()) { - getEncryptionInfoBuilder().mergeFrom(value); + public Builder mergePscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig value) { + if (pscConfigBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && pscConfig_ != null + && pscConfig_ != com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance()) { + getPscConfigBuilder().mergeFrom(value); } else { - encryptionInfo_ = value; + pscConfig_ = value; } } else { - encryptionInfoBuilder_.mergeFrom(value); + pscConfigBuilder_.mergeFrom(value); } - if (encryptionInfo_ != null) { - bitField0_ |= 0x00200000; + if (pscConfig_ != null) { + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -9302,19 +13225,20 @@ public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo va * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearEncryptionInfo() { - bitField0_ = (bitField0_ & ~0x00200000); - encryptionInfo_ = null; - if (encryptionInfoBuilder_ != null) { - encryptionInfoBuilder_.dispose(); - encryptionInfoBuilder_ = null; + public Builder clearPscConfig() { + bitField0_ = (bitField0_ & ~0x08000000); + pscConfig_ = null; + if (pscConfigBuilder_ != null) { + pscConfigBuilder_.dispose(); + pscConfigBuilder_ = null; } onChanged(); return this; @@ -9323,132 +13247,138 @@ public Builder clearEncryptionInfo() { * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { - bitField0_ |= 0x00200000; + public com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder getPscConfigBuilder() { + bitField0_ |= 0x08000000; onChanged(); - return getEncryptionInfoFieldBuilder().getBuilder(); + return getPscConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { - if (encryptionInfoBuilder_ != null) { - return encryptionInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder getPscConfigOrBuilder() { + if (pscConfigBuilder_ != null) { + return pscConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionInfo_ == null - ? com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + return pscConfig_ == null + ? com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance() + : pscConfig_; } } /** * * *
-     * Output only. The encryption information for the cluster.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * cluster.
      * 
* * - * .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionInfo, - com.google.cloud.alloydb.v1.EncryptionInfo.Builder, - com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder> - getEncryptionInfoFieldBuilder() { - if (encryptionInfoBuilder_ == null) { - encryptionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.EncryptionInfo, - com.google.cloud.alloydb.v1.EncryptionInfo.Builder, - com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder>( - getEncryptionInfo(), getParentForChildren(), isClean()); - encryptionInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Cluster.PscConfig, + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder> + getPscConfigFieldBuilder() { + if (pscConfigBuilder_ == null) { + pscConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Cluster.PscConfig, + com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder, + com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder>( + getPscConfig(), getParentForChildren(), isClean()); + pscConfig_ = null; } - return encryptionInfoBuilder_; + return pscConfigBuilder_; } - private com.google.cloud.alloydb.v1.ContinuousBackupConfig continuousBackupConfig_; + private com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenanceUpdatePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupConfig, - com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder> - continuousBackupConfigBuilder_; + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder> + maintenanceUpdatePolicyBuilder_; /** * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the continuousBackupConfig field is set. + * @return Whether the maintenanceUpdatePolicy field is set. */ - public boolean hasContinuousBackupConfig() { - return ((bitField0_ & 0x00400000) != 0); + public boolean hasMaintenanceUpdatePolicy() { + return ((bitField0_ & 0x10000000) != 0); } /** * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The continuousBackupConfig. + * @return The maintenanceUpdatePolicy. */ - public com.google.cloud.alloydb.v1.ContinuousBackupConfig getContinuousBackupConfig() { - if (continuousBackupConfigBuilder_ == null) { - return continuousBackupConfig_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() - : continuousBackupConfig_; + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getMaintenanceUpdatePolicy() { + if (maintenanceUpdatePolicyBuilder_ == null) { + return maintenanceUpdatePolicy_ == null + ? com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance() + : maintenanceUpdatePolicy_; } else { - return continuousBackupConfigBuilder_.getMessage(); + return maintenanceUpdatePolicyBuilder_.getMessage(); } } /** * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setContinuousBackupConfig( - com.google.cloud.alloydb.v1.ContinuousBackupConfig value) { - if (continuousBackupConfigBuilder_ == null) { + public Builder setMaintenanceUpdatePolicy( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy value) { + if (maintenanceUpdatePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - continuousBackupConfig_ = value; + maintenanceUpdatePolicy_ = value; } else { - continuousBackupConfigBuilder_.setMessage(value); + maintenanceUpdatePolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -9456,21 +13386,22 @@ public Builder setContinuousBackupConfig( * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setContinuousBackupConfig( - com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder builderForValue) { - if (continuousBackupConfigBuilder_ == null) { - continuousBackupConfig_ = builderForValue.build(); + public Builder setMaintenanceUpdatePolicy( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder builderForValue) { + if (maintenanceUpdatePolicyBuilder_ == null) { + maintenanceUpdatePolicy_ = builderForValue.build(); } else { - continuousBackupConfigBuilder_.setMessage(builderForValue.build()); + maintenanceUpdatePolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -9478,29 +13409,30 @@ public Builder setContinuousBackupConfig( * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeContinuousBackupConfig( - com.google.cloud.alloydb.v1.ContinuousBackupConfig value) { - if (continuousBackupConfigBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && continuousBackupConfig_ != null - && continuousBackupConfig_ - != com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance()) { - getContinuousBackupConfigBuilder().mergeFrom(value); + public Builder mergeMaintenanceUpdatePolicy( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy value) { + if (maintenanceUpdatePolicyBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && maintenanceUpdatePolicy_ != null + && maintenanceUpdatePolicy_ + != com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance()) { + getMaintenanceUpdatePolicyBuilder().mergeFrom(value); } else { - continuousBackupConfig_ = value; + maintenanceUpdatePolicy_ = value; } } else { - continuousBackupConfigBuilder_.mergeFrom(value); + maintenanceUpdatePolicyBuilder_.mergeFrom(value); } - if (continuousBackupConfig_ != null) { - bitField0_ |= 0x00400000; + if (maintenanceUpdatePolicy_ != null) { + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -9509,19 +13441,20 @@ public Builder mergeContinuousBackupConfig( * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearContinuousBackupConfig() { - bitField0_ = (bitField0_ & ~0x00400000); - continuousBackupConfig_ = null; - if (continuousBackupConfigBuilder_ != null) { - continuousBackupConfigBuilder_.dispose(); - continuousBackupConfigBuilder_ = null; + public Builder clearMaintenanceUpdatePolicy() { + bitField0_ = (bitField0_ & ~0x10000000); + maintenanceUpdatePolicy_ = null; + if (maintenanceUpdatePolicyBuilder_ != null) { + maintenanceUpdatePolicyBuilder_.dispose(); + maintenanceUpdatePolicyBuilder_ = null; } onChanged(); return this; @@ -9530,133 +13463,139 @@ public Builder clearContinuousBackupConfig() { * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder - getContinuousBackupConfigBuilder() { - bitField0_ |= 0x00400000; + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder + getMaintenanceUpdatePolicyBuilder() { + bitField0_ |= 0x10000000; onChanged(); - return getContinuousBackupConfigFieldBuilder().getBuilder(); + return getMaintenanceUpdatePolicyFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder - getContinuousBackupConfigOrBuilder() { - if (continuousBackupConfigBuilder_ != null) { - return continuousBackupConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder + getMaintenanceUpdatePolicyOrBuilder() { + if (maintenanceUpdatePolicyBuilder_ != null) { + return maintenanceUpdatePolicyBuilder_.getMessageOrBuilder(); } else { - return continuousBackupConfig_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance() - : continuousBackupConfig_; + return maintenanceUpdatePolicy_ == null + ? com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance() + : maintenanceUpdatePolicy_; } } /** * * *
-     * Optional. Continuous backup configuration for this cluster.
+     * Optional. The maintenance update policy determines when to allow or deny
+     * updates.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupConfig, - com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder> - getContinuousBackupConfigFieldBuilder() { - if (continuousBackupConfigBuilder_ == null) { - continuousBackupConfigBuilder_ = + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder> + getMaintenanceUpdatePolicyFieldBuilder() { + if (maintenanceUpdatePolicyBuilder_ == null) { + maintenanceUpdatePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupConfig, - com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupConfigOrBuilder>( - getContinuousBackupConfig(), getParentForChildren(), isClean()); - continuousBackupConfig_ = null; + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder>( + getMaintenanceUpdatePolicy(), getParentForChildren(), isClean()); + maintenanceUpdatePolicy_ = null; } - return continuousBackupConfigBuilder_; + return maintenanceUpdatePolicyBuilder_; } - private com.google.cloud.alloydb.v1.ContinuousBackupInfo continuousBackupInfo_; + private com.google.cloud.alloydb.v1.MaintenanceSchedule maintenanceSchedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupInfo, - com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder> - continuousBackupInfoBuilder_; + com.google.cloud.alloydb.v1.MaintenanceSchedule, + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder, + com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder> + maintenanceScheduleBuilder_; /** * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the continuousBackupInfo field is set. + * @return Whether the maintenanceSchedule field is set. */ - public boolean hasContinuousBackupInfo() { - return ((bitField0_ & 0x00800000) != 0); + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x20000000) != 0); } /** * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The continuousBackupInfo. + * @return The maintenanceSchedule. */ - public com.google.cloud.alloydb.v1.ContinuousBackupInfo getContinuousBackupInfo() { - if (continuousBackupInfoBuilder_ == null) { - return continuousBackupInfo_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() - : continuousBackupInfo_; + public com.google.cloud.alloydb.v1.MaintenanceSchedule getMaintenanceSchedule() { + if (maintenanceScheduleBuilder_ == null) { + return maintenanceSchedule_ == null + ? com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } else { - return continuousBackupInfoBuilder_.getMessage(); + return maintenanceScheduleBuilder_.getMessage(); } } /** * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setContinuousBackupInfo(com.google.cloud.alloydb.v1.ContinuousBackupInfo value) { - if (continuousBackupInfoBuilder_ == null) { + public Builder setMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - continuousBackupInfo_ = value; + maintenanceSchedule_ = value; } else { - continuousBackupInfoBuilder_.setMessage(value); + maintenanceScheduleBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -9664,21 +13603,22 @@ public Builder setContinuousBackupInfo(com.google.cloud.alloydb.v1.ContinuousBac * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setContinuousBackupInfo( - com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder builderForValue) { - if (continuousBackupInfoBuilder_ == null) { - continuousBackupInfo_ = builderForValue.build(); + public Builder setMaintenanceSchedule( + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder builderForValue) { + if (maintenanceScheduleBuilder_ == null) { + maintenanceSchedule_ = builderForValue.build(); } else { - continuousBackupInfoBuilder_.setMessage(builderForValue.build()); + maintenanceScheduleBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -9686,29 +13626,29 @@ public Builder setContinuousBackupInfo( * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeContinuousBackupInfo( - com.google.cloud.alloydb.v1.ContinuousBackupInfo value) { - if (continuousBackupInfoBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && continuousBackupInfo_ != null - && continuousBackupInfo_ - != com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance()) { - getContinuousBackupInfoBuilder().mergeFrom(value); + public Builder mergeMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && maintenanceSchedule_ != null + && maintenanceSchedule_ + != com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance()) { + getMaintenanceScheduleBuilder().mergeFrom(value); } else { - continuousBackupInfo_ = value; + maintenanceSchedule_ = value; } } else { - continuousBackupInfoBuilder_.mergeFrom(value); + maintenanceScheduleBuilder_.mergeFrom(value); } - if (continuousBackupInfo_ != null) { - bitField0_ |= 0x00800000; + if (maintenanceSchedule_ != null) { + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -9717,19 +13657,20 @@ public Builder mergeContinuousBackupInfo( * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearContinuousBackupInfo() { - bitField0_ = (bitField0_ & ~0x00800000); - continuousBackupInfo_ = null; - if (continuousBackupInfoBuilder_ != null) { - continuousBackupInfoBuilder_.dispose(); - continuousBackupInfoBuilder_ = null; + public Builder clearMaintenanceSchedule() { + bitField0_ = (bitField0_ & ~0x20000000); + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; } onChanged(); return this; @@ -9738,127 +13679,235 @@ public Builder clearContinuousBackupInfo() { * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder - getContinuousBackupInfoBuilder() { - bitField0_ |= 0x00800000; + public com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { + bitField0_ |= 0x20000000; onChanged(); - return getContinuousBackupInfoFieldBuilder().getBuilder(); + return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder - getContinuousBackupInfoOrBuilder() { - if (continuousBackupInfoBuilder_ != null) { - return continuousBackupInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + if (maintenanceScheduleBuilder_ != null) { + return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - return continuousBackupInfo_ == null - ? com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance() - : continuousBackupInfo_; + return maintenanceSchedule_ == null + ? com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } } /** * * *
-     * Output only. Continuous backup properties for this cluster.
+     * Output only. The maintenance schedule for the cluster, generated for a
+     * specific rollout if a maintenance window is set.
      * 
* * - * .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupInfo, - com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder> - getContinuousBackupInfoFieldBuilder() { - if (continuousBackupInfoBuilder_ == null) { - continuousBackupInfoBuilder_ = + com.google.cloud.alloydb.v1.MaintenanceSchedule, + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder, + com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder> + getMaintenanceScheduleFieldBuilder() { + if (maintenanceScheduleBuilder_ == null) { + maintenanceScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.ContinuousBackupInfo, - com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder, - com.google.cloud.alloydb.v1.ContinuousBackupInfoOrBuilder>( - getContinuousBackupInfo(), getParentForChildren(), isClean()); - continuousBackupInfo_ = null; + com.google.cloud.alloydb.v1.MaintenanceSchedule, + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder, + com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), getParentForChildren(), isClean()); + maintenanceSchedule_ = null; } - return continuousBackupInfoBuilder_; + return maintenanceScheduleBuilder_; } - private com.google.cloud.alloydb.v1.Cluster.SecondaryConfig secondaryConfig_; + private int subscriptionType_ = 0; + /** + * + * + *
+     * Optional. Subscription type of the cluster.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for subscriptionType. + */ + @java.lang.Override + public int getSubscriptionTypeValue() { + return subscriptionType_; + } + /** + * + * + *
+     * Optional. Subscription type of the cluster.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for subscriptionType to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTypeValue(int value) { + subscriptionType_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Subscription type of the cluster.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subscriptionType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SubscriptionType getSubscriptionType() { + com.google.cloud.alloydb.v1.SubscriptionType result = + com.google.cloud.alloydb.v1.SubscriptionType.forNumber(subscriptionType_); + return result == null ? com.google.cloud.alloydb.v1.SubscriptionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. Subscription type of the cluster.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The subscriptionType to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionType(com.google.cloud.alloydb.v1.SubscriptionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x40000000; + subscriptionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Subscription type of the cluster.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionType() { + bitField0_ = (bitField0_ & ~0x40000000); + subscriptionType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1.Cluster.TrialMetadata trialMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder> - secondaryConfigBuilder_; + com.google.cloud.alloydb.v1.Cluster.TrialMetadata, + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder, + com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder> + trialMetadataBuilder_; /** * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the secondaryConfig field is set. + * @return Whether the trialMetadata field is set. */ - public boolean hasSecondaryConfig() { - return ((bitField0_ & 0x01000000) != 0); + public boolean hasTrialMetadata() { + return ((bitField0_ & 0x80000000) != 0); } /** * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The secondaryConfig. + * @return The trialMetadata. */ - public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig getSecondaryConfig() { - if (secondaryConfigBuilder_ == null) { - return secondaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() - : secondaryConfig_; + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata getTrialMetadata() { + if (trialMetadataBuilder_ == null) { + return trialMetadata_ == null + ? com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance() + : trialMetadata_; } else { - return secondaryConfigBuilder_.getMessage(); + return trialMetadataBuilder_.getMessage(); } } /** * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryConfig value) { - if (secondaryConfigBuilder_ == null) { + public Builder setTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetadata value) { + if (trialMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - secondaryConfig_ = value; + trialMetadata_ = value; } else { - secondaryConfigBuilder_.setMessage(value); + trialMetadataBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -9866,19 +13915,21 @@ public Builder setSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryC * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSecondaryConfig( - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder builderForValue) { - if (secondaryConfigBuilder_ == null) { - secondaryConfig_ = builderForValue.build(); + public Builder setTrialMetadata( + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder builderForValue) { + if (trialMetadataBuilder_ == null) { + trialMetadata_ = builderForValue.build(); } else { - secondaryConfigBuilder_.setMessage(builderForValue.build()); + trialMetadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -9886,26 +13937,28 @@ public Builder setSecondaryConfig( * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryConfig value) { - if (secondaryConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && secondaryConfig_ != null - && secondaryConfig_ - != com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance()) { - getSecondaryConfigBuilder().mergeFrom(value); + public Builder mergeTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetadata value) { + if (trialMetadataBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && trialMetadata_ != null + && trialMetadata_ + != com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance()) { + getTrialMetadataBuilder().mergeFrom(value); } else { - secondaryConfig_ = value; + trialMetadata_ = value; } } else { - secondaryConfigBuilder_.mergeFrom(value); + trialMetadataBuilder_.mergeFrom(value); } - if (secondaryConfig_ != null) { - bitField0_ |= 0x01000000; + if (trialMetadata_ != null) { + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -9914,17 +13967,19 @@ public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.Secondar * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearSecondaryConfig() { - bitField0_ = (bitField0_ & ~0x01000000); - secondaryConfig_ = null; - if (secondaryConfigBuilder_ != null) { - secondaryConfigBuilder_.dispose(); - secondaryConfigBuilder_ = null; + public Builder clearTrialMetadata() { + bitField0_ = (bitField0_ & ~0x80000000); + trialMetadata_ = null; + if (trialMetadataBuilder_ != null) { + trialMetadataBuilder_.dispose(); + trialMetadataBuilder_ = null; } onChanged(); return this; @@ -9933,264 +13988,276 @@ public Builder clearSecondaryConfig() { * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder getSecondaryConfigBuilder() { - bitField0_ |= 0x01000000; + public com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder getTrialMetadataBuilder() { + bitField0_ |= 0x80000000; onChanged(); - return getSecondaryConfigFieldBuilder().getBuilder(); + return getTrialMetadataFieldBuilder().getBuilder(); } /** * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder - getSecondaryConfigOrBuilder() { - if (secondaryConfigBuilder_ != null) { - return secondaryConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder getTrialMetadataOrBuilder() { + if (trialMetadataBuilder_ != null) { + return trialMetadataBuilder_.getMessageOrBuilder(); } else { - return secondaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance() - : secondaryConfig_; + return trialMetadata_ == null + ? com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance() + : trialMetadata_; } } /** * * *
-     * Cross Region replication config specific to SECONDARY cluster.
+     * Output only. Metadata for free trial clusters
      * 
* - * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder> - getSecondaryConfigFieldBuilder() { - if (secondaryConfigBuilder_ == null) { - secondaryConfigBuilder_ = + com.google.cloud.alloydb.v1.Cluster.TrialMetadata, + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder, + com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder> + getTrialMetadataFieldBuilder() { + if (trialMetadataBuilder_ == null) { + trialMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.SecondaryConfigOrBuilder>( - getSecondaryConfig(), getParentForChildren(), isClean()); - secondaryConfig_ = null; + com.google.cloud.alloydb.v1.Cluster.TrialMetadata, + com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder, + com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder>( + getTrialMetadata(), getParentForChildren(), isClean()); + trialMetadata_ = null; } - return secondaryConfigBuilder_; + return trialMetadataBuilder_; } - private com.google.cloud.alloydb.v1.Cluster.PrimaryConfig primaryConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder> - primaryConfigBuilder_; - /** - * - * - *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
-     * 
- * - * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the primaryConfig field is set. - */ - public boolean hasPrimaryConfig() { - return ((bitField0_ & 0x02000000) != 0); + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField1_ |= 0x00000001; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @return The primaryConfig. */ - public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig getPrimaryConfig() { - if (primaryConfigBuilder_ == null) { - return primaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() - : primaryConfig_; - } else { - return primaryConfigBuilder_.getMessage(); + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetTags().getMap().containsKey(key); + } + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfig value) { - if (primaryConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - primaryConfig_ = value; - } else { - primaryConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPrimaryConfig( - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder builderForValue) { - if (primaryConfigBuilder_ == null) { - primaryConfig_ = builderForValue.build(); - } else { - primaryConfigBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x02000000; - onChanged(); - return this; + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfig value) { - if (primaryConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && primaryConfig_ != null - && primaryConfig_ - != com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance()) { - getPrimaryConfigBuilder().mergeFrom(value); - } else { - primaryConfig_ = value; - } - } else { - primaryConfigBuilder_.mergeFrom(value); + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (primaryConfig_ != null) { - bitField0_ |= 0x02000000; - onChanged(); + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearTags() { + bitField1_ = (bitField1_ & ~0x00000001); + internalGetMutableTags().getMutableMap().clear(); return this; } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPrimaryConfig() { - bitField0_ = (bitField0_ & ~0x02000000); - primaryConfig_ = null; - if (primaryConfigBuilder_ != null) { - primaryConfigBuilder_.dispose(); - primaryConfigBuilder_ = null; + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableTags().getMutableMap().remove(key); return this; } - /** - * - * - *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
-     * 
- * - * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder getPrimaryConfigBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return getPrimaryConfigFieldBuilder().getBuilder(); + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField1_ |= 0x00000001; + return internalGetMutableTags().getMutableMap(); } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder() { - if (primaryConfigBuilder_ != null) { - return primaryConfigBuilder_.getMessageOrBuilder(); - } else { - return primaryConfig_ == null - ? com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance() - : primaryConfig_; + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableTags().getMutableMap().put(key, value); + bitField1_ |= 0x00000001; + return this; } /** * * *
-     * Output only. Cross Region replication config specific to PRIMARY cluster.
+     * Optional. Input only. Immutable. Tag keys/values directly bound to this
+     * resource. For example:
+     * ```
+     * "123/environment": "production",
+     * "123/costCenter": "marketing"
+     * ```
      * 
* * - * .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder> - getPrimaryConfigFieldBuilder() { - if (primaryConfigBuilder_ == null) { - primaryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder, - com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder>( - getPrimaryConfig(), getParentForChildren(), isClean()); - primaryConfig_ = null; - } - return primaryConfigBuilder_; + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField1_ |= 0x00000001; + return this; } @java.lang.Override diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java index 72dccaa7ae0d..b8d505945efe 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java @@ -494,7 +494,7 @@ java.lang.String getLabelsOrDefault( * Required. The resource link for the VPC network in which cluster resources * are created and from which they are accessible via Private IP. The network * must belong to the same project as the cluster. It is specified in the - * form: "projects/{project}/global/networks/{network_id}". This is required + * form: `projects/{project}/global/networks/{network_id}`. This is required * to create a cluster. Deprecated, use network_config.network instead. *
* @@ -503,7 +503,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 + * google/cloud/alloydb/v1/resources.proto;l=616 * @return The network. */ @java.lang.Deprecated @@ -515,7 +515,7 @@ java.lang.String getLabelsOrDefault( * Required. The resource link for the VPC network in which cluster resources * are created and from which they are accessible via Private IP. The network * must belong to the same project as the cluster. It is specified in the - * form: "projects/{project}/global/networks/{network_id}". This is required + * form: `projects/{project}/global/networks/{network_id}`. This is required * to create a cluster. Deprecated, use network_config.network instead. *
* @@ -524,7 +524,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=543 + * google/cloud/alloydb/v1/resources.proto;l=616 * @return The bytes for network. */ @java.lang.Deprecated @@ -747,7 +747,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 + * google/cloud/alloydb/v1/resources.proto;l=651 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=578 + * google/cloud/alloydb/v1/resources.proto;l=651 * @return The sslConfig. */ @java.lang.Deprecated @@ -1031,5 +1031,314 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.alloydb.v1.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscConfig field is set. + */ + boolean hasPscConfig(); + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscConfig. + */ + com.google.cloud.alloydb.v1.Cluster.PscConfig getPscConfig(); + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder getPscConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenanceUpdatePolicy field is set. + */ + boolean hasMaintenanceUpdatePolicy(); + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenanceUpdatePolicy. + */ + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getMaintenanceUpdatePolicy(); + /** + * + * + *
+   * Optional. The maintenance update policy determines when to allow or deny
+   * updates.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder + getMaintenanceUpdatePolicyOrBuilder(); + + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + boolean hasMaintenanceSchedule(); + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + com.google.cloud.alloydb.v1.MaintenanceSchedule getMaintenanceSchedule(); + /** + * + * + *
+   * Output only. The maintenance schedule for the cluster, generated for a
+   * specific rollout if a maintenance window is set.
+   * 
+ * + * + * .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder(); + + /** + * + * + *
+   * Optional. Subscription type of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for subscriptionType. + */ + int getSubscriptionTypeValue(); + /** + * + * + *
+   * Optional. Subscription type of the cluster.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subscriptionType. + */ + com.google.cloud.alloydb.v1.SubscriptionType getSubscriptionType(); + + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trialMetadata field is set. + */ + boolean hasTrialMetadata(); + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trialMetadata. + */ + com.google.cloud.alloydb.v1.Cluster.TrialMetadata getTrialMetadata(); + /** + * + * + *
+   * Output only. Metadata for free trial clusters
+   * 
+ * + * + * .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.Cluster.TrialMetadataOrBuilder getTrialMetadataOrBuilder(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Input only. Immutable. Tag keys/values directly bound to this
+   * resource. For example:
+   * ```
+   * "123/environment": "production",
+   * "123/costCenter": "marketing"
+   * ```
+   * 
+ * + * + * map<string, string> tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); + com.google.cloud.alloydb.v1.Cluster.SourceCase getSourceCase(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfo.java index d9a07202cea9..6f94e864eb59 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfo.java @@ -42,6 +42,7 @@ private ConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder private ConnectionInfo() { name_ = ""; ipAddress_ = ""; + publicIpAddress_ = ""; instanceUid_ = ""; } @@ -176,6 +177,65 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } + public static final int PUBLIC_IP_ADDRESS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object publicIpAddress_ = ""; + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The publicIpAddress. + */ + @java.lang.Override + public java.lang.String getPublicIpAddress() { + java.lang.Object ref = publicIpAddress_; + 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(); + publicIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for publicIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicIpAddressBytes() { + java.lang.Object ref = publicIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int INSTANCE_UID_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -250,6 +310,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceUid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicIpAddress_); + } getUnknownFields().writeTo(output); } @@ -268,6 +331,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceUid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicIpAddress_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -286,6 +352,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getPublicIpAddress().equals(other.getPublicIpAddress())) return false; if (!getInstanceUid().equals(other.getInstanceUid())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -302,6 +369,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + PUBLIC_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPublicIpAddress().hashCode(); hash = (37 * hash) + INSTANCE_UID_FIELD_NUMBER; hash = (53 * hash) + getInstanceUid().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -446,6 +515,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; ipAddress_ = ""; + publicIpAddress_ = ""; instanceUid_ = ""; return this; } @@ -490,6 +560,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1.ConnectionInfo result) { result.ipAddress_ = ipAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.publicIpAddress_ = publicIpAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.instanceUid_ = instanceUid_; } } @@ -549,9 +622,14 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.ConnectionInfo other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getPublicIpAddress().isEmpty()) { + publicIpAddress_ = other.publicIpAddress_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getInstanceUid().isEmpty()) { instanceUid_ = other.instanceUid_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -595,9 +673,15 @@ public Builder mergeFrom( case 34: { instanceUid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + publicIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -849,6 +933,132 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object publicIpAddress_ = ""; + /** + * + * + *
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
+     * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The publicIpAddress. + */ + public java.lang.String getPublicIpAddress() { + java.lang.Object ref = publicIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
+     * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for publicIpAddress. + */ + public com.google.protobuf.ByteString getPublicIpAddressBytes() { + java.lang.Object ref = publicIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
+     * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The publicIpAddress to set. + * @return This builder for chaining. + */ + public Builder setPublicIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publicIpAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
+     * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPublicIpAddress() { + publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
+     * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for publicIpAddress to set. + * @return This builder for chaining. + */ + public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicIpAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object instanceUid_ = ""; /** * @@ -911,7 +1121,7 @@ public Builder setInstanceUid(java.lang.String value) { throw new NullPointerException(); } instanceUid_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -928,7 +1138,7 @@ public Builder setInstanceUid(java.lang.String value) { */ public Builder clearInstanceUid() { instanceUid_ = getDefaultInstance().getInstanceUid(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -950,7 +1160,7 @@ public Builder setInstanceUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instanceUid_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfoOrBuilder.java index 2dab25875c58..5972f25a2927 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ConnectionInfoOrBuilder.java @@ -82,6 +82,39 @@ public interface ConnectionInfoOrBuilder */ com.google.protobuf.ByteString getIpAddressBytes(); + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The publicIpAddress. + */ + java.lang.String getPublicIpAddress(); + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for publicIpAddress. + */ + com.google.protobuf.ByteString getPublicIpAddressBytes(); + /** * * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequest.java index 3bdbd43e6010..f1008844b521 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequest.java @@ -230,14 +230,14 @@ public com.google.cloud.alloydb.v1.BackupOrBuilder getBackupOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -265,14 +265,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1188,14 +1188,14 @@ public com.google.cloud.alloydb.v1.BackupOrBuilder getBackupOrBuilder() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1222,14 +1222,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1256,14 +1256,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1289,14 +1289,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1318,14 +1318,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequestOrBuilder.java
index e354eb408e86..d5837a3058da 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateBackupRequestOrBuilder.java
@@ -121,14 +121,14 @@ public interface CreateBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -145,14 +145,14 @@ public interface CreateBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequest.java
index 1d39aac10e34..95d9d976b97c 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequest.java
@@ -232,14 +232,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -267,14 +267,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -304,9 +304,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1200,14 +1200,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1234,14 +1234,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1268,14 +1268,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1301,14 +1301,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1330,14 +1330,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1365,9 +1365,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1382,9 +1382,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1403,9 +1403,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequestOrBuilder.java index 39b534c7a168..46ec6ec360f4 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateClusterRequestOrBuilder.java @@ -123,14 +123,14 @@ public interface CreateClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -147,14 +147,14 @@ public interface CreateClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -171,9 +171,9 @@ public interface CreateClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequest.java index 2bb1860854f5..5d4228017f89 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequest.java @@ -236,14 +236,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -271,14 +271,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -308,9 +308,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1213,14 +1213,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1247,14 +1247,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1281,14 +1281,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1314,14 +1314,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1343,14 +1343,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1378,9 +1378,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1395,9 +1395,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1416,9 +1416,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequestOrBuilder.java index 757fea40a22a..a525d811fa80 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateInstanceRequestOrBuilder.java @@ -123,14 +123,14 @@ public interface CreateInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -147,14 +147,14 @@ public interface CreateInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -171,9 +171,9 @@ public interface CreateInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequest.java index 7cce3cb23417..085eb98d7329 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequest.java @@ -224,14 +224,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -259,14 +259,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -296,9 +296,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1185,14 +1185,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1219,14 +1219,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1253,14 +1253,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1286,14 +1286,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1315,14 +1315,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1350,9 +1350,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1367,9 +1367,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1388,9 +1388,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequestOrBuilder.java index 4da94320cd72..0ba467bd8788 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryClusterRequestOrBuilder.java @@ -123,14 +123,14 @@ public interface CreateSecondaryClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -147,14 +147,14 @@ public interface CreateSecondaryClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -171,9 +171,9 @@ public interface CreateSecondaryClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequest.java index ef0b2445812a..dbd0f3218bdf 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequest.java @@ -237,14 +237,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -272,14 +272,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -309,9 +309,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1215,14 +1215,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1249,14 +1249,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1283,14 +1283,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1316,14 +1316,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1345,14 +1345,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1380,9 +1380,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1397,9 +1397,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1418,9 +1418,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the create
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequestOrBuilder.java index f153081a42f9..98528600ec68 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateSecondaryInstanceRequestOrBuilder.java @@ -123,14 +123,14 @@ public interface CreateSecondaryInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -147,14 +147,14 @@ public interface CreateSecondaryInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -171,9 +171,9 @@ public interface CreateSecondaryInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the create
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequest.java index 303618d96f49..2e9cfdc60045 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequest.java @@ -227,14 +227,14 @@ public com.google.cloud.alloydb.v1.UserOrBuilder getUserOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -262,14 +262,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1184,14 +1184,14 @@ public com.google.cloud.alloydb.v1.UserOrBuilder getUserOrBuilder() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1218,14 +1218,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1252,14 +1252,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1285,14 +1285,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1314,14 +1314,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequestOrBuilder.java
index f80307a264be..0e99b34a8d87 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CreateUserRequestOrBuilder.java
@@ -118,14 +118,14 @@ public interface CreateUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -142,14 +142,14 @@ public interface CreateUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DataModelProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DataModelProto.java
new file mode 100644
index 000000000000..fd3a9eef988f
--- /dev/null
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DataModelProto.java
@@ -0,0 +1,110 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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!
+// source: google/cloud/alloydb/v1/data_model.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.cloud.alloydb.v1;
+
+public final class DataModelProto {
+  private DataModelProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_alloydb_v1_SqlResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_alloydb_v1_SqlResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_alloydb_v1_SqlResultColumn_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_alloydb_v1_SqlResultRow_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_alloydb_v1_SqlResultValue_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n(google/cloud/alloydb/v1/data_model.pro"
+          + "to\022\027google.cloud.alloydb.v1\"{\n\tSqlResult"
+          + "\0229\n\007columns\030\001 \003(\0132(.google.cloud.alloydb"
+          + ".v1.SqlResultColumn\0223\n\004rows\030\002 \003(\0132%.goog"
+          + "le.cloud.alloydb.v1.SqlResultRow\"-\n\017SqlR"
+          + "esultColumn\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\""
+          + "G\n\014SqlResultRow\0227\n\006values\030\001 \003(\0132\'.google"
+          + ".cloud.alloydb.v1.SqlResultValue\"V\n\016SqlR"
+          + "esultValue\022\022\n\005value\030\001 \001(\tH\000\210\001\001\022\027\n\nnull_v"
+          + "alue\030\002 \001(\010H\001\210\001\001B\010\n\006_valueB\r\n\013_null_value"
+          + "B\267\001\n\033com.google.cloud.alloydb.v1B\016DataMo"
+          + "delProtoP\001Z5cloud.google.com/go/alloydb/"
+          + "apiv1/alloydbpb;alloydbpb\252\002\027Google.Cloud"
+          + ".AlloyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032"
+          + "Google::Cloud::AlloyDB::V1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_cloud_alloydb_v1_SqlResult_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_alloydb_v1_SqlResult_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_alloydb_v1_SqlResult_descriptor,
+            new java.lang.String[] {
+              "Columns", "Rows",
+            });
+    internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_alloydb_v1_SqlResultColumn_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor,
+            new java.lang.String[] {
+              "Name", "Type",
+            });
+    internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_alloydb_v1_SqlResultRow_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor,
+            new java.lang.String[] {
+              "Values",
+            });
+    internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_alloydb_v1_SqlResultValue_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor,
+            new java.lang.String[] {
+              "Value", "NullValue",
+            });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Database.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Database.java
new file mode 100644
index 000000000000..e685411526f9
--- /dev/null
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Database.java
@@ -0,0 +1,1020 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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!
+// source: google/cloud/alloydb/v1/resources.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.cloud.alloydb.v1;
+
+/**
+ *
+ *
+ * 
+ * Message describing Database object.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Database} + */ +public final class Database extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Database) + DatabaseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Database.newBuilder() to construct. + private Database(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Database() { + name_ = ""; + charset_ = ""; + collation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Database(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Database_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Database_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Database.class, + com.google.cloud.alloydb.v1.Database.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Name of the resource in the form of
+   * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. Name of the resource in the form of
+   * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARSET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object charset_ = ""; + /** + * + * + *
+   * Optional. Charset for the database.
+   * This field can contain any PostgreSQL supported charset name.
+   * Example values include "UTF8", "SQL_ASCII", etc.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + @java.lang.Override + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + 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(); + charset_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Charset for the database.
+   * This field can contain any PostgreSQL supported charset name.
+   * Example values include "UTF8", "SQL_ASCII", etc.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object collation_ = ""; + /** + * + * + *
+   * Optional. Collation for the database.
+   * Name of the custom or native collation for postgres.
+   * Example values include "C", "POSIX", etc
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + @java.lang.Override + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + 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(); + collation_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Collation for the database.
+   * Name of the custom or native collation for postgres.
+   * Example values include "C", "POSIX", etc
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Database)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Database other = (com.google.cloud.alloydb.v1.Database) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCharset().equals(other.getCharset())) return false; + if (!getCollation().equals(other.getCollation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CHARSET_FIELD_NUMBER; + hash = (53 * hash) + getCharset().hashCode(); + hash = (37 * hash) + COLLATION_FIELD_NUMBER; + hash = (53 * hash) + getCollation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Database parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Database parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Database parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Database parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.Database 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message describing Database object.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Database} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Database) + com.google.cloud.alloydb.v1.DatabaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Database_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Database_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Database.class, + com.google.cloud.alloydb.v1.Database.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Database.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + charset_ = ""; + collation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Database_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Database getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Database.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Database build() { + com.google.cloud.alloydb.v1.Database result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Database buildPartial() { + com.google.cloud.alloydb.v1.Database result = new com.google.cloud.alloydb.v1.Database(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Database result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.charset_ = charset_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.collation_ = collation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Database) { + return mergeFrom((com.google.cloud.alloydb.v1.Database) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Database other) { + if (other == com.google.cloud.alloydb.v1.Database.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCharset().isEmpty()) { + charset_ = other.charset_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCollation().isEmpty()) { + collation_ = other.collation_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + charset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Name of the resource in the form of
+     * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. Name of the resource in the form of
+     * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. Name of the resource in the form of
+     * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Name of the resource in the form of
+     * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Name of the resource in the form of
+     * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object charset_ = ""; + /** + * + * + *
+     * Optional. Charset for the database.
+     * This field can contain any PostgreSQL supported charset name.
+     * Example values include "UTF8", "SQL_ASCII", etc.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + charset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Charset for the database.
+     * This field can contain any PostgreSQL supported charset name.
+     * Example values include "UTF8", "SQL_ASCII", etc.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Charset for the database.
+     * This field can contain any PostgreSQL supported charset name.
+     * Example values include "UTF8", "SQL_ASCII", etc.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The charset to set. + * @return This builder for chaining. + */ + public Builder setCharset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + charset_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Charset for the database.
+     * This field can contain any PostgreSQL supported charset name.
+     * Example values include "UTF8", "SQL_ASCII", etc.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCharset() { + charset_ = getDefaultInstance().getCharset(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Charset for the database.
+     * This field can contain any PostgreSQL supported charset name.
+     * Example values include "UTF8", "SQL_ASCII", etc.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for charset to set. + * @return This builder for chaining. + */ + public Builder setCharsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + charset_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object collation_ = ""; + /** + * + * + *
+     * Optional. Collation for the database.
+     * Name of the custom or native collation for postgres.
+     * Example values include "C", "POSIX", etc
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Collation for the database.
+     * Name of the custom or native collation for postgres.
+     * Example values include "C", "POSIX", etc
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Collation for the database.
+     * Name of the custom or native collation for postgres.
+     * Example values include "C", "POSIX", etc
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The collation to set. + * @return This builder for chaining. + */ + public Builder setCollation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Collation for the database.
+     * Name of the custom or native collation for postgres.
+     * Example values include "C", "POSIX", etc
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCollation() { + collation_ = getDefaultInstance().getCollation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Collation for the database.
+     * Name of the custom or native collation for postgres.
+     * Example values include "C", "POSIX", etc
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for collation to set. + * @return This builder for chaining. + */ + public Builder setCollationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Database) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Database) + private static final com.google.cloud.alloydb.v1.Database DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Database(); + } + + public static com.google.cloud.alloydb.v1.Database getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Database parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Database getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java new file mode 100644 index 000000000000..551cfe0f7637 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java @@ -0,0 +1,259 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DatabaseName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER_DATABASE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + private final String database; + + @Deprecated + protected DatabaseName() { + project = null; + location = null; + cluster = null; + database = null; + } + + private DatabaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + database = Preconditions.checkNotNull(builder.getDatabase()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getDatabase() { + return database; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatabaseName of(String project, String location, String cluster, String database) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setDatabase(database) + .build(); + } + + public static String format(String project, String location, String cluster, String database) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setDatabase(database) + .build() + .toString(); + } + + public static DatabaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER_DATABASE.validatedMatch( + formattedString, "DatabaseName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cluster"), + matchMap.get("database")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DatabaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER_DATABASE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + if (database != null) { + fieldMapBuilder.put("database", database); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER_DATABASE.instantiate( + "project", project, "location", location, "cluster", cluster, "database", database); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DatabaseName that = ((DatabaseName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster) + && Objects.equals(this.database, that.database); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cluster); + h *= 1000003; + h ^= Objects.hashCode(database); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}. + */ + public static class Builder { + private String project; + private String location; + private String cluster; + private String database; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getDatabase() { + return database; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + private Builder(DatabaseName databaseName) { + this.project = databaseName.project; + this.location = databaseName.location; + this.cluster = databaseName.cluster; + this.database = databaseName.database; + } + + public DatabaseName build() { + return new DatabaseName(this); + } + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseOrBuilder.java new file mode 100644 index 000000000000..a8d1e614670d --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface DatabaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Database) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Name of the resource in the form of
+   * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Name of the resource in the form of
+   * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Charset for the database.
+   * This field can contain any PostgreSQL supported charset name.
+   * Example values include "UTF8", "SQL_ASCII", etc.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + java.lang.String getCharset(); + /** + * + * + *
+   * Optional. Charset for the database.
+   * This field can contain any PostgreSQL supported charset name.
+   * Example values include "UTF8", "SQL_ASCII", etc.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + com.google.protobuf.ByteString getCharsetBytes(); + + /** + * + * + *
+   * Optional. Collation for the database.
+   * Name of the custom or native collation for postgres.
+   * Example values include "C", "POSIX", etc
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + java.lang.String getCollation(); + /** + * + * + *
+   * Optional. Collation for the database.
+   * Name of the custom or native collation for postgres.
+   * Example values include "C", "POSIX", etc
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + com.google.protobuf.ByteString getCollationBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java index fca9ef1ec0a5..c2132c10e4a8 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseVersion.java @@ -60,6 +60,26 @@ public enum DatabaseVersion implements com.google.protobuf.ProtocolMessageEnum { * POSTGRES_14 = 2; */ POSTGRES_14(2), + /** + * + * + *
+   * The database version is Postgres 15.
+   * 
+ * + * POSTGRES_15 = 3; + */ + POSTGRES_15(3), + /** + * + * + *
+   * The database version is Postgres 16.
+   * 
+ * + * POSTGRES_16 = 4; + */ + POSTGRES_16(4), UNRECOGNIZED(-1), ; @@ -93,6 +113,26 @@ public enum DatabaseVersion implements com.google.protobuf.ProtocolMessageEnum { * POSTGRES_14 = 2; */ public static final int POSTGRES_14_VALUE = 2; + /** + * + * + *
+   * The database version is Postgres 15.
+   * 
+ * + * POSTGRES_15 = 3; + */ + public static final int POSTGRES_15_VALUE = 3; + /** + * + * + *
+   * The database version is Postgres 16.
+   * 
+ * + * POSTGRES_16 = 4; + */ + public static final int POSTGRES_16_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -124,6 +164,10 @@ public static DatabaseVersion forNumber(int value) { return POSTGRES_13; case 2: return POSTGRES_14; + case 3: + return POSTGRES_15; + case 4: + return POSTGRES_16; default: return null; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequest.java index 3580bbeb151a..bf378ae3adba 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequest.java @@ -131,14 +131,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -166,14 +166,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -810,14 +810,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -844,14 +844,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -878,14 +878,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -911,14 +911,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -940,14 +940,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequestOrBuilder.java
index b763453ddbc8..32d599c0324a 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteBackupRequestOrBuilder.java
@@ -60,14 +60,14 @@ public interface DeleteBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface DeleteBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequest.java
index ce29532d28f3..35f756ed07cb 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequest.java
@@ -131,14 +131,14 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -166,14 +166,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -258,8 +258,9 @@ public com.google.protobuf.ByteString getEtagBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -850,14 +851,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -884,14 +885,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -918,14 +919,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -951,14 +952,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -980,14 +981,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1131,8 +1132,9 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1147,8 +1149,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1167,8 +1170,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequestOrBuilder.java index 2e05404f6fe0..adc1c47d26f6 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteClusterRequestOrBuilder.java @@ -60,14 +60,14 @@ public interface DeleteClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface DeleteClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -137,8 +137,9 @@ public interface DeleteClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequest.java index fa3b4b7eb14f..3d262b7ce641 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequest.java @@ -131,14 +131,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -166,14 +166,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -258,8 +258,9 @@ public com.google.protobuf.ByteString getEtagBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -810,14 +811,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -844,14 +845,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -878,14 +879,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -911,14 +912,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -940,14 +941,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1091,8 +1092,9 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1107,8 +1109,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1127,8 +1130,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequestOrBuilder.java index 231d80c79150..48e97ae06f09 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteInstanceRequestOrBuilder.java @@ -60,14 +60,14 @@ public interface DeleteInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface DeleteInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -137,8 +137,9 @@ public interface DeleteInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequest.java index 1afbfed82658..9e9fd76ceea6 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequest.java @@ -130,14 +130,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -165,14 +165,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -729,14 +729,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -763,14 +763,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -797,14 +797,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -830,14 +830,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -859,14 +859,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequestOrBuilder.java
index d39c39df80a2..cf37b39a03e7 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DeleteUserRequestOrBuilder.java
@@ -60,14 +60,14 @@ public interface DeleteUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface DeleteUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadata.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadata.java
new file mode 100644
index 000000000000..28504671cfce
--- /dev/null
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadata.java
@@ -0,0 +1,1380 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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!
+// source: google/cloud/alloydb/v1/service.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.cloud.alloydb.v1;
+
+/**
+ *
+ *
+ * 
+ * Any additional metadata information regarding the execution of the SQL
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlMetadata} + */ +public final class ExecuteSqlMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExecuteSqlMetadata) + ExecuteSqlMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteSqlMetadata.newBuilder() to construct. + private ExecuteSqlMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteSqlMetadata() { + message_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecuteSqlMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.class, + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder.class); + } + + /** + * + * + *
+   * Status contains all valid Status a SQL execution can end up in.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1.ExecuteSqlMetadata.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The status is unknown.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * No error during SQL execution i.e. All SQL statements ran to completion.
+     * The "message" will be empty.
+     * 
+ * + * OK = 1; + */ + OK(1), + /** + * + * + *
+     * Same as OK, except indicates that only partial results were
+     * returned. The "message" field will contain details on why results were
+     * truncated.
+     * 
+ * + * PARTIAL = 2; + */ + PARTIAL(2), + /** + * + * + *
+     * Error during SQL execution. Atleast 1 SQL statement execution resulted in
+     * a error. Side effects of other statements are rolled back.  The "message"
+     * field will contain human readable error given by Postgres of the first
+     * bad SQL statement. SQL execution errors don't constitute API errors as
+     * defined in https://google.aip.dev/193 but will be returned as part of
+     * this message.
+     * 
+ * + * ERROR = 3; + */ + ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The status is unknown.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * No error during SQL execution i.e. All SQL statements ran to completion.
+     * The "message" will be empty.
+     * 
+ * + * OK = 1; + */ + public static final int OK_VALUE = 1; + /** + * + * + *
+     * Same as OK, except indicates that only partial results were
+     * returned. The "message" field will contain details on why results were
+     * truncated.
+     * 
+ * + * PARTIAL = 2; + */ + public static final int PARTIAL_VALUE = 2; + /** + * + * + *
+     * Error during SQL execution. Atleast 1 SQL statement execution resulted in
+     * a error. Side effects of other statements are rolled back.  The "message"
+     * field will contain human readable error given by Postgres of the first
+     * bad SQL statement. SQL execution errors don't constitute API errors as
+     * defined in https://google.aip.dev/193 but will be returned as part of
+     * this message.
+     * 
+ * + * ERROR = 3; + */ + public static final int ERROR_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return OK; + case 2: + return PARTIAL; + case 3: + return ERROR; + 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 Status findValueByNumber(int number) { + return Status.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.ExecuteSqlMetadata.Status) + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
+   * Message related to SQL execution. Marked as core content since it
+   * can potentially contain details related to the query or result set. This
+   * field can be used to convey messages such as "when the SQL result set
+   * exceeds the acceptable response size limits."
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Message related to SQL execution. Marked as core content since it
+   * can potentially contain details related to the query or result set. This
+   * field can be used to convey messages such as "when the SQL result set
+   * exceeds the acceptable response size limits."
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTIAL_RESULT_FIELD_NUMBER = 2; + private boolean partialResult_ = false; + /** + * + * + *
+   * Set to true if SQL returned a result set larger than the acceptable
+   * response size limits and the result was truncated.
+   * 
+ * + * bool partial_result = 2; + * + * @return The partialResult. + */ + @java.lang.Override + public boolean getPartialResult() { + return partialResult_; + } + + public static final int SQL_STATEMENT_EXECUTION_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration sqlStatementExecutionDuration_; + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return Whether the sqlStatementExecutionDuration field is set. + */ + @java.lang.Override + public boolean hasSqlStatementExecutionDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return The sqlStatementExecutionDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getSqlStatementExecutionDuration() { + return sqlStatementExecutionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sqlStatementExecutionDuration_; + } + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getSqlStatementExecutionDurationOrBuilder() { + return sqlStatementExecutionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sqlStatementExecutionDuration_; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_ = 0; + /** + * + * + *
+   * Status of SQL execution.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Status of SQL execution.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status getStatus() { + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status result = + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (partialResult_ != false) { + output.writeBool(2, partialResult_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSqlStatementExecutionDuration()); + } + if (status_ + != com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (partialResult_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, partialResult_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getSqlStatementExecutionDuration()); + } + if (status_ + != com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ExecuteSqlMetadata)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExecuteSqlMetadata other = + (com.google.cloud.alloydb.v1.ExecuteSqlMetadata) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (getPartialResult() != other.getPartialResult()) return false; + if (hasSqlStatementExecutionDuration() != other.hasSqlStatementExecutionDuration()) + return false; + if (hasSqlStatementExecutionDuration()) { + if (!getSqlStatementExecutionDuration().equals(other.getSqlStatementExecutionDuration())) + return false; + } + if (status_ != other.status_) 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) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + PARTIAL_RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialResult()); + if (hasSqlStatementExecutionDuration()) { + hash = (37 * hash) + SQL_STATEMENT_EXECUTION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getSqlStatementExecutionDuration().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.ExecuteSqlMetadata 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Any additional metadata information regarding the execution of the SQL
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExecuteSqlMetadata) + com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.class, + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ExecuteSqlMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSqlStatementExecutionDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + partialResult_ = false; + sqlStatementExecutionDuration_ = null; + if (sqlStatementExecutionDurationBuilder_ != null) { + sqlStatementExecutionDurationBuilder_.dispose(); + sqlStatementExecutionDurationBuilder_ = null; + } + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata build() { + com.google.cloud.alloydb.v1.ExecuteSqlMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata buildPartial() { + com.google.cloud.alloydb.v1.ExecuteSqlMetadata result = + new com.google.cloud.alloydb.v1.ExecuteSqlMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ExecuteSqlMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.partialResult_ = partialResult_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sqlStatementExecutionDuration_ = + sqlStatementExecutionDurationBuilder_ == null + ? sqlStatementExecutionDuration_ + : sqlStatementExecutionDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ExecuteSqlMetadata) { + return mergeFrom((com.google.cloud.alloydb.v1.ExecuteSqlMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ExecuteSqlMetadata other) { + if (other == com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPartialResult() != false) { + setPartialResult(other.getPartialResult()); + } + if (other.hasSqlStatementExecutionDuration()) { + mergeSqlStatementExecutionDuration(other.getSqlStatementExecutionDuration()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + 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: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + partialResult_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getSqlStatementExecutionDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Message related to SQL execution. Marked as core content since it
+     * can potentially contain details related to the query or result set. This
+     * field can be used to convey messages such as "when the SQL result set
+     * exceeds the acceptable response size limits."
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Message related to SQL execution. Marked as core content since it
+     * can potentially contain details related to the query or result set. This
+     * field can be used to convey messages such as "when the SQL result set
+     * exceeds the acceptable response size limits."
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Message related to SQL execution. Marked as core content since it
+     * can potentially contain details related to the query or result set. This
+     * field can be used to convey messages such as "when the SQL result set
+     * exceeds the acceptable response size limits."
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Message related to SQL execution. Marked as core content since it
+     * can potentially contain details related to the query or result set. This
+     * field can be used to convey messages such as "when the SQL result set
+     * exceeds the acceptable response size limits."
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Message related to SQL execution. Marked as core content since it
+     * can potentially contain details related to the query or result set. This
+     * field can be used to convey messages such as "when the SQL result set
+     * exceeds the acceptable response size limits."
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean partialResult_; + /** + * + * + *
+     * Set to true if SQL returned a result set larger than the acceptable
+     * response size limits and the result was truncated.
+     * 
+ * + * bool partial_result = 2; + * + * @return The partialResult. + */ + @java.lang.Override + public boolean getPartialResult() { + return partialResult_; + } + /** + * + * + *
+     * Set to true if SQL returned a result set larger than the acceptable
+     * response size limits and the result was truncated.
+     * 
+ * + * bool partial_result = 2; + * + * @param value The partialResult to set. + * @return This builder for chaining. + */ + public Builder setPartialResult(boolean value) { + + partialResult_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Set to true if SQL returned a result set larger than the acceptable
+     * response size limits and the result was truncated.
+     * 
+ * + * bool partial_result = 2; + * + * @return This builder for chaining. + */ + public Builder clearPartialResult() { + bitField0_ = (bitField0_ & ~0x00000002); + partialResult_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration sqlStatementExecutionDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + sqlStatementExecutionDurationBuilder_; + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return Whether the sqlStatementExecutionDuration field is set. + */ + public boolean hasSqlStatementExecutionDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return The sqlStatementExecutionDuration. + */ + public com.google.protobuf.Duration getSqlStatementExecutionDuration() { + if (sqlStatementExecutionDurationBuilder_ == null) { + return sqlStatementExecutionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sqlStatementExecutionDuration_; + } else { + return sqlStatementExecutionDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public Builder setSqlStatementExecutionDuration(com.google.protobuf.Duration value) { + if (sqlStatementExecutionDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sqlStatementExecutionDuration_ = value; + } else { + sqlStatementExecutionDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public Builder setSqlStatementExecutionDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (sqlStatementExecutionDurationBuilder_ == null) { + sqlStatementExecutionDuration_ = builderForValue.build(); + } else { + sqlStatementExecutionDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public Builder mergeSqlStatementExecutionDuration(com.google.protobuf.Duration value) { + if (sqlStatementExecutionDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && sqlStatementExecutionDuration_ != null + && sqlStatementExecutionDuration_ + != com.google.protobuf.Duration.getDefaultInstance()) { + getSqlStatementExecutionDurationBuilder().mergeFrom(value); + } else { + sqlStatementExecutionDuration_ = value; + } + } else { + sqlStatementExecutionDurationBuilder_.mergeFrom(value); + } + if (sqlStatementExecutionDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public Builder clearSqlStatementExecutionDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + sqlStatementExecutionDuration_ = null; + if (sqlStatementExecutionDurationBuilder_ != null) { + sqlStatementExecutionDurationBuilder_.dispose(); + sqlStatementExecutionDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public com.google.protobuf.Duration.Builder getSqlStatementExecutionDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSqlStatementExecutionDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getSqlStatementExecutionDurationOrBuilder() { + if (sqlStatementExecutionDurationBuilder_ != null) { + return sqlStatementExecutionDurationBuilder_.getMessageOrBuilder(); + } else { + return sqlStatementExecutionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sqlStatementExecutionDuration_; + } + } + /** + * + * + *
+     * The time duration taken to execute the sql statement.
+     * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getSqlStatementExecutionDurationFieldBuilder() { + if (sqlStatementExecutionDurationBuilder_ == null) { + sqlStatementExecutionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSqlStatementExecutionDuration(), getParentForChildren(), isClean()); + sqlStatementExecutionDuration_ = null; + } + return sqlStatementExecutionDurationBuilder_; + } + + private int status_ = 0; + /** + * + * + *
+     * Status of SQL execution.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Status of SQL execution.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of SQL execution.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status getStatus() { + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status result = + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Status of SQL execution.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of SQL execution.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ExecuteSqlMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExecuteSqlMetadata) + private static final com.google.cloud.alloydb.v1.ExecuteSqlMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExecuteSqlMetadata(); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteSqlMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadataOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadataOrBuilder.java new file mode 100644 index 000000000000..af3af234a9ae --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlMetadataOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ExecuteSqlMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExecuteSqlMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Message related to SQL execution. Marked as core content since it
+   * can potentially contain details related to the query or result set. This
+   * field can be used to convey messages such as "when the SQL result set
+   * exceeds the acceptable response size limits."
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Message related to SQL execution. Marked as core content since it
+   * can potentially contain details related to the query or result set. This
+   * field can be used to convey messages such as "when the SQL result set
+   * exceeds the acceptable response size limits."
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Set to true if SQL returned a result set larger than the acceptable
+   * response size limits and the result was truncated.
+   * 
+ * + * bool partial_result = 2; + * + * @return The partialResult. + */ + boolean getPartialResult(); + + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return Whether the sqlStatementExecutionDuration field is set. + */ + boolean hasSqlStatementExecutionDuration(); + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + * + * @return The sqlStatementExecutionDuration. + */ + com.google.protobuf.Duration getSqlStatementExecutionDuration(); + /** + * + * + *
+   * The time duration taken to execute the sql statement.
+   * 
+ * + * .google.protobuf.Duration sql_statement_execution_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getSqlStatementExecutionDurationOrBuilder(); + + /** + * + * + *
+   * Status of SQL execution.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Status of SQL execution.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; + * + * @return The status. + */ + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Status getStatus(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java new file mode 100644 index 000000000000..87b6487be260 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java @@ -0,0 +1,1540 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Request for ExecuteSql rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlRequest} + */ +public final class ExecuteSqlRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExecuteSqlRequest) + ExecuteSqlRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteSqlRequest.newBuilder() to construct. + private ExecuteSqlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteSqlRequest() { + instance_ = ""; + database_ = ""; + user_ = ""; + sqlStatement_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecuteSqlRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlRequest.class, + com.google.cloud.alloydb.v1.ExecuteSqlRequest.Builder.class); + } + + private int userCredentialCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object userCredential_; + + public enum UserCredentialCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PASSWORD(5), + USERCREDENTIAL_NOT_SET(0); + private final int value; + + private UserCredentialCase(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 UserCredentialCase valueOf(int value) { + return forNumber(value); + } + + public static UserCredentialCase forNumber(int value) { + switch (value) { + case 5: + return PASSWORD; + case 0: + return USERCREDENTIAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UserCredentialCase getUserCredentialCase() { + return UserCredentialCase.forNumber(userCredentialCase_); + } + + public static final int PASSWORD_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the password field is set. + */ + public boolean hasPassword() { + return userCredentialCase_ == 5; + } + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = ""; + if (userCredentialCase_ == 5) { + ref = userCredential_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (userCredentialCase_ == 5) { + userCredential_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = ""; + if (userCredentialCase_ == 5) { + ref = userCredential_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (userCredentialCase_ == 5) { + userCredential_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + /** + * + * + *
+   * Required. The instance where the SQL will be executed. For the required
+   * format, see the comment on the Instance.name field.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The instance where the SQL will be executed. For the required
+   * format, see the comment on the Instance.name field.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + /** + * + * + *
+   * Required. Name of the database where the query will be executed.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the database where the query will be executed.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * + * + *
+   * Required. Database user to be used for executing the SQL.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + 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(); + user_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Database user to be used for executing the SQL.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SQL_STATEMENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlStatement_ = ""; + /** + * + * + *
+   * Required. SQL statement to execute on database. Any valid statement is
+   * permitted, including DDL, DML, DQL statements.
+   * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlStatement. + */ + @java.lang.Override + public java.lang.String getSqlStatement() { + java.lang.Object ref = sqlStatement_; + 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(); + sqlStatement_ = s; + return s; + } + } + /** + * + * + *
+   * Required. SQL statement to execute on database. Any valid statement is
+   * permitted, including DDL, DML, DQL statements.
+   * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlStatement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlStatementBytes() { + java.lang.Object ref = sqlStatement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlStatement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlStatement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sqlStatement_); + } + if (userCredentialCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, userCredential_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlStatement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sqlStatement_); + } + if (userCredentialCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userCredential_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ExecuteSqlRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExecuteSqlRequest other = + (com.google.cloud.alloydb.v1.ExecuteSqlRequest) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getSqlStatement().equals(other.getSqlStatement())) return false; + if (!getUserCredentialCase().equals(other.getUserCredentialCase())) return false; + switch (userCredentialCase_) { + case 5: + if (!getPassword().equals(other.getPassword())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + SQL_STATEMENT_FIELD_NUMBER; + hash = (53 * hash) + getSqlStatement().hashCode(); + switch (userCredentialCase_) { + case 5: + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.ExecuteSqlRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for ExecuteSql rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExecuteSqlRequest) + com.google.cloud.alloydb.v1.ExecuteSqlRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlRequest.class, + com.google.cloud.alloydb.v1.ExecuteSqlRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ExecuteSqlRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + database_ = ""; + user_ = ""; + sqlStatement_ = ""; + userCredentialCase_ = 0; + userCredential_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExecuteSqlRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlRequest build() { + com.google.cloud.alloydb.v1.ExecuteSqlRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlRequest buildPartial() { + com.google.cloud.alloydb.v1.ExecuteSqlRequest result = + new com.google.cloud.alloydb.v1.ExecuteSqlRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ExecuteSqlRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instance_ = instance_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sqlStatement_ = sqlStatement_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.ExecuteSqlRequest result) { + result.userCredentialCase_ = userCredentialCase_; + result.userCredential_ = this.userCredential_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ExecuteSqlRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.ExecuteSqlRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ExecuteSqlRequest other) { + if (other == com.google.cloud.alloydb.v1.ExecuteSqlRequest.getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSqlStatement().isEmpty()) { + sqlStatement_ = other.sqlStatement_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getUserCredentialCase()) { + case PASSWORD: + { + userCredentialCase_ = 5; + userCredential_ = other.userCredential_; + onChanged(); + break; + } + case USERCREDENTIAL_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + sqlStatement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + userCredentialCase_ = 5; + userCredential_ = s; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int userCredentialCase_ = 0; + private java.lang.Object userCredential_; + + public UserCredentialCase getUserCredentialCase() { + return UserCredentialCase.forNumber(userCredentialCase_); + } + + public Builder clearUserCredential() { + userCredentialCase_ = 0; + userCredential_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the password field is set. + */ + @java.lang.Override + public boolean hasPassword() { + return userCredentialCase_ == 5; + } + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = ""; + if (userCredentialCase_ == 5) { + ref = userCredential_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (userCredentialCase_ == 5) { + userCredential_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = ""; + if (userCredentialCase_ == 5) { + ref = userCredential_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (userCredentialCase_ == 5) { + userCredential_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userCredentialCase_ = 5; + userCredential_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + if (userCredentialCase_ == 5) { + userCredentialCase_ = 0; + userCredential_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The database native user’s password.
+     * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userCredentialCase_ = 5; + userCredential_ = value; + onChanged(); + return this; + } + + private java.lang.Object instance_ = ""; + /** + * + * + *
+     * Required. The instance where the SQL will be executed. For the required
+     * format, see the comment on the Instance.name field.
+     * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The instance where the SQL will be executed. For the required
+     * format, see the comment on the Instance.name field.
+     * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The instance where the SQL will be executed. For the required
+     * format, see the comment on the Instance.name field.
+     * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The instance where the SQL will be executed. For the required
+     * format, see the comment on the Instance.name field.
+     * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The instance where the SQL will be executed. For the required
+     * format, see the comment on the Instance.name field.
+     * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + /** + * + * + *
+     * Required. Name of the database where the query will be executed.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the database where the query will be executed.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the database where the query will be executed.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the database where the query will be executed.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the database where the query will be executed.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * + * + *
+     * Required. Database user to be used for executing the SQL.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Database user to be used for executing the SQL.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Database user to be used for executing the SQL.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database user to be used for executing the SQL.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database user to be used for executing the SQL.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object sqlStatement_ = ""; + /** + * + * + *
+     * Required. SQL statement to execute on database. Any valid statement is
+     * permitted, including DDL, DML, DQL statements.
+     * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlStatement. + */ + public java.lang.String getSqlStatement() { + java.lang.Object ref = sqlStatement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlStatement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. SQL statement to execute on database. Any valid statement is
+     * permitted, including DDL, DML, DQL statements.
+     * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlStatement. + */ + public com.google.protobuf.ByteString getSqlStatementBytes() { + java.lang.Object ref = sqlStatement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlStatement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. SQL statement to execute on database. Any valid statement is
+     * permitted, including DDL, DML, DQL statements.
+     * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sqlStatement to set. + * @return This builder for chaining. + */ + public Builder setSqlStatement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlStatement_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SQL statement to execute on database. Any valid statement is
+     * permitted, including DDL, DML, DQL statements.
+     * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSqlStatement() { + sqlStatement_ = getDefaultInstance().getSqlStatement(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SQL statement to execute on database. Any valid statement is
+     * permitted, including DDL, DML, DQL statements.
+     * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sqlStatement to set. + * @return This builder for chaining. + */ + public Builder setSqlStatementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlStatement_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ExecuteSqlRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExecuteSqlRequest) + private static final com.google.cloud.alloydb.v1.ExecuteSqlRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExecuteSqlRequest(); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteSqlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java new file mode 100644 index 000000000000..d66797fad513 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ExecuteSqlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExecuteSqlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the password field is set. + */ + boolean hasPassword(); + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Optional. The database native user’s password.
+   * 
+ * + * string password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Required. The instance where the SQL will be executed. For the required
+   * format, see the comment on the Instance.name field.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + /** + * + * + *
+   * Required. The instance where the SQL will be executed. For the required
+   * format, see the comment on the Instance.name field.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+   * Required. Name of the database where the query will be executed.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + /** + * + * + *
+   * Required. Name of the database where the query will be executed.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Required. Database user to be used for executing the SQL.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
+   * Required. Database user to be used for executing the SQL.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
+   * Required. SQL statement to execute on database. Any valid statement is
+   * permitted, including DDL, DML, DQL statements.
+   * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlStatement. + */ + java.lang.String getSqlStatement(); + /** + * + * + *
+   * Required. SQL statement to execute on database. Any valid statement is
+   * permitted, including DDL, DML, DQL statements.
+   * 
+ * + * string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlStatement. + */ + com.google.protobuf.ByteString getSqlStatementBytes(); + + com.google.cloud.alloydb.v1.ExecuteSqlRequest.UserCredentialCase getUserCredentialCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponse.java new file mode 100644 index 000000000000..10d281aa54b3 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponse.java @@ -0,0 +1,1227 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Execute a SQL statement response.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlResponse} + */ +public final class ExecuteSqlResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExecuteSqlResponse) + ExecuteSqlResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteSqlResponse.newBuilder() to construct. + private ExecuteSqlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteSqlResponse() { + sqlResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecuteSqlResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlResponse.class, + com.google.cloud.alloydb.v1.ExecuteSqlResponse.Builder.class); + } + + private int bitField0_; + public static final int SQL_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sqlResults_; + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + @java.lang.Override + public java.util.List getSqlResultsList() { + return sqlResults_; + } + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + @java.lang.Override + public java.util.List + getSqlResultsOrBuilderList() { + return sqlResults_; + } + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + @java.lang.Override + public int getSqlResultsCount() { + return sqlResults_.size(); + } + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResult getSqlResults(int index) { + return sqlResults_.get(index); + } + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultOrBuilder getSqlResultsOrBuilder(int index) { + return sqlResults_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata_; + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance() + : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sqlResults_.size(); i++) { + output.writeMessage(1, sqlResults_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sqlResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sqlResults_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ExecuteSqlResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExecuteSqlResponse other = + (com.google.cloud.alloydb.v1.ExecuteSqlResponse) obj; + + if (!getSqlResultsList().equals(other.getSqlResultsList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) 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 (getSqlResultsCount() > 0) { + hash = (37 * hash) + SQL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getSqlResultsList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.ExecuteSqlResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Execute a SQL statement response.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExecuteSqlResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExecuteSqlResponse) + com.google.cloud.alloydb.v1.ExecuteSqlResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExecuteSqlResponse.class, + com.google.cloud.alloydb.v1.ExecuteSqlResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ExecuteSqlResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSqlResultsFieldBuilder(); + getMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sqlResultsBuilder_ == null) { + sqlResults_ = java.util.Collections.emptyList(); + } else { + sqlResults_ = null; + sqlResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExecuteSqlResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlResponse build() { + com.google.cloud.alloydb.v1.ExecuteSqlResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlResponse buildPartial() { + com.google.cloud.alloydb.v1.ExecuteSqlResponse result = + new com.google.cloud.alloydb.v1.ExecuteSqlResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.alloydb.v1.ExecuteSqlResponse result) { + if (sqlResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sqlResults_ = java.util.Collections.unmodifiableList(sqlResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sqlResults_ = sqlResults_; + } else { + result.sqlResults_ = sqlResultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ExecuteSqlResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ExecuteSqlResponse) { + return mergeFrom((com.google.cloud.alloydb.v1.ExecuteSqlResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ExecuteSqlResponse other) { + if (other == com.google.cloud.alloydb.v1.ExecuteSqlResponse.getDefaultInstance()) return this; + if (sqlResultsBuilder_ == null) { + if (!other.sqlResults_.isEmpty()) { + if (sqlResults_.isEmpty()) { + sqlResults_ = other.sqlResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSqlResultsIsMutable(); + sqlResults_.addAll(other.sqlResults_); + } + onChanged(); + } + } else { + if (!other.sqlResults_.isEmpty()) { + if (sqlResultsBuilder_.isEmpty()) { + sqlResultsBuilder_.dispose(); + sqlResultsBuilder_ = null; + sqlResults_ = other.sqlResults_; + bitField0_ = (bitField0_ & ~0x00000001); + sqlResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSqlResultsFieldBuilder() + : null; + } else { + sqlResultsBuilder_.addAllMessages(other.sqlResults_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.SqlResult m = + input.readMessage( + com.google.cloud.alloydb.v1.SqlResult.parser(), extensionRegistry); + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + sqlResults_.add(m); + } else { + sqlResultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 26: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sqlResults_ = + java.util.Collections.emptyList(); + + private void ensureSqlResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sqlResults_ = new java.util.ArrayList(sqlResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResult, + com.google.cloud.alloydb.v1.SqlResult.Builder, + com.google.cloud.alloydb.v1.SqlResultOrBuilder> + sqlResultsBuilder_; + + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public java.util.List getSqlResultsList() { + if (sqlResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sqlResults_); + } else { + return sqlResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public int getSqlResultsCount() { + if (sqlResultsBuilder_ == null) { + return sqlResults_.size(); + } else { + return sqlResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public com.google.cloud.alloydb.v1.SqlResult getSqlResults(int index) { + if (sqlResultsBuilder_ == null) { + return sqlResults_.get(index); + } else { + return sqlResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder setSqlResults(int index, com.google.cloud.alloydb.v1.SqlResult value) { + if (sqlResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSqlResultsIsMutable(); + sqlResults_.set(index, value); + onChanged(); + } else { + sqlResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder setSqlResults( + int index, com.google.cloud.alloydb.v1.SqlResult.Builder builderForValue) { + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + sqlResults_.set(index, builderForValue.build()); + onChanged(); + } else { + sqlResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder addSqlResults(com.google.cloud.alloydb.v1.SqlResult value) { + if (sqlResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSqlResultsIsMutable(); + sqlResults_.add(value); + onChanged(); + } else { + sqlResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder addSqlResults(int index, com.google.cloud.alloydb.v1.SqlResult value) { + if (sqlResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSqlResultsIsMutable(); + sqlResults_.add(index, value); + onChanged(); + } else { + sqlResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder addSqlResults(com.google.cloud.alloydb.v1.SqlResult.Builder builderForValue) { + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + sqlResults_.add(builderForValue.build()); + onChanged(); + } else { + sqlResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder addSqlResults( + int index, com.google.cloud.alloydb.v1.SqlResult.Builder builderForValue) { + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + sqlResults_.add(index, builderForValue.build()); + onChanged(); + } else { + sqlResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder addAllSqlResults( + java.lang.Iterable values) { + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sqlResults_); + onChanged(); + } else { + sqlResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder clearSqlResults() { + if (sqlResultsBuilder_ == null) { + sqlResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sqlResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public Builder removeSqlResults(int index) { + if (sqlResultsBuilder_ == null) { + ensureSqlResultsIsMutable(); + sqlResults_.remove(index); + onChanged(); + } else { + sqlResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public com.google.cloud.alloydb.v1.SqlResult.Builder getSqlResultsBuilder(int index) { + return getSqlResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultOrBuilder getSqlResultsOrBuilder(int index) { + if (sqlResultsBuilder_ == null) { + return sqlResults_.get(index); + } else { + return sqlResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public java.util.List + getSqlResultsOrBuilderList() { + if (sqlResultsBuilder_ != null) { + return sqlResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sqlResults_); + } + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public com.google.cloud.alloydb.v1.SqlResult.Builder addSqlResultsBuilder() { + return getSqlResultsFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.SqlResult.getDefaultInstance()); + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public com.google.cloud.alloydb.v1.SqlResult.Builder addSqlResultsBuilder(int index) { + return getSqlResultsFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.SqlResult.getDefaultInstance()); + } + /** + * + * + *
+     * SqlResult represents the results for the execution of sql statements.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + public java.util.List + getSqlResultsBuilderList() { + return getSqlResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResult, + com.google.cloud.alloydb.v1.SqlResult.Builder, + com.google.cloud.alloydb.v1.SqlResultOrBuilder> + getSqlResultsFieldBuilder() { + if (sqlResultsBuilder_ == null) { + sqlResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResult, + com.google.cloud.alloydb.v1.SqlResult.Builder, + com.google.cloud.alloydb.v1.SqlResultOrBuilder>( + sqlResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sqlResults_ = null; + } + return sqlResultsBuilder_; + } + + private com.google.cloud.alloydb.v1.ExecuteSqlMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExecuteSqlMetadata, + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder, + com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return The metadata. + */ + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.alloydb.v1.ExecuteSqlMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.alloydb.v1.ExecuteSqlMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ != com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + public com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.alloydb.v1.ExecuteSqlMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Any additional metadata information regarding the execution of the sql
+     * statement.
+     * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExecuteSqlMetadata, + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder, + com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExecuteSqlMetadata, + com.google.cloud.alloydb.v1.ExecuteSqlMetadata.Builder, + com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ExecuteSqlResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExecuteSqlResponse) + private static final com.google.cloud.alloydb.v1.ExecuteSqlResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExecuteSqlResponse(); + } + + public static com.google.cloud.alloydb.v1.ExecuteSqlResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteSqlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExecuteSqlResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponseOrBuilder.java new file mode 100644 index 000000000000..04f77a8cc72b --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ExecuteSqlResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExecuteSqlResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + java.util.List getSqlResultsList(); + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + com.google.cloud.alloydb.v1.SqlResult getSqlResults(int index); + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + int getSqlResultsCount(); + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + java.util.List + getSqlResultsOrBuilderList(); + /** + * + * + *
+   * SqlResult represents the results for the execution of sql statements.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; + */ + com.google.cloud.alloydb.v1.SqlResultOrBuilder getSqlResultsOrBuilder(int index); + + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + * + * @return The metadata. + */ + com.google.cloud.alloydb.v1.ExecuteSqlMetadata getMetadata(); + /** + * + * + *
+   * Any additional metadata information regarding the execution of the sql
+   * statement.
+   * 
+ * + * .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; + */ + com.google.cloud.alloydb.v1.ExecuteSqlMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequest.java index 8e9aa2af3115..8eb483f89e2c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequest.java @@ -130,14 +130,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -165,14 +165,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -202,8 +202,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the failover.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -730,14 +731,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -764,14 +765,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -798,14 +799,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -831,14 +832,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -860,14 +861,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -895,8 +896,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the failover.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -911,8 +913,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the failover.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -931,8 +934,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the failover.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequestOrBuilder.java index 2398ebce15cd..21c0e1537370 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/FailoverInstanceRequestOrBuilder.java @@ -60,14 +60,14 @@ public interface FailoverInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface FailoverInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -108,8 +108,9 @@ public interface FailoverInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the failover.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java index 7a81790db6e3..a962fe76482f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java @@ -134,14 +134,14 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -169,14 +169,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -924,14 +924,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -958,14 +958,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -992,14 +992,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1025,14 +1025,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1054,14 +1054,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java
index b541cd7ae695..b4dc239abcb7 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java
@@ -60,14 +60,14 @@ public interface GenerateClientCertificateRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface GenerateClientCertificateRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequest.java
index c16028503f67..71de91b4fad0 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequest.java
@@ -130,14 +130,14 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -165,14 +165,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -689,14 +689,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -723,14 +723,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -757,14 +757,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -790,14 +790,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -819,14 +819,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequestOrBuilder.java
index 3383a071188c..769d996df1f4 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GetConnectionInfoRequestOrBuilder.java
@@ -60,14 +60,14 @@ public interface GetConnectionInfoRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface GetConnectionInfoRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequest.java
index be5a99e1abb5..40cd9872827a 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequest.java
@@ -308,14 +308,14 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -343,14 +343,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -380,9 +380,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the fault
-   * injection.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1036,14 +1036,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1070,14 +1070,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1104,14 +1104,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1137,14 +1137,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1166,14 +1166,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1201,9 +1201,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the fault
-     * injection.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1218,9 +1218,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the fault
-     * injection.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1239,9 +1239,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the fault
-     * injection.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequestOrBuilder.java index 19a205ed1f38..a190f0b7ae8f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InjectFaultRequestOrBuilder.java @@ -89,14 +89,14 @@ public interface InjectFaultRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -113,14 +113,14 @@ public interface InjectFaultRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -137,9 +137,9 @@ public interface InjectFaultRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the fault
-   * injection.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java index d2d6e719c13b..7915daf1397c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java @@ -49,7 +49,9 @@ private Instance() { gceZone_ = ""; nodes_ = java.util.Collections.emptyList(); ipAddress_ = ""; + publicIpAddress_ = ""; etag_ = ""; + outboundPublicIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -4191,7 +4193,7 @@ public interface ClientConnectionConfigOrBuilder * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4205,7 +4207,7 @@ public interface ClientConnectionConfigOrBuilder * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4219,7 +4221,7 @@ public interface ClientConnectionConfigOrBuilder * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4296,7 +4298,7 @@ public boolean getRequireConnectors() { * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4313,7 +4315,7 @@ public boolean hasSslConfig() { * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4332,7 +4334,7 @@ public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { * * *
-     * Optional. SSL config option for this instance.
+     * Optional. SSL configuration option for this instance.
      * 
* * @@ -4803,7 +4805,7 @@ public Builder clearRequireConnectors() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4819,7 +4821,7 @@ public boolean hasSslConfig() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4841,7 +4843,7 @@ public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4865,7 +4867,7 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4886,7 +4888,7 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builde * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4915,7 +4917,7 @@ public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4936,7 +4938,7 @@ public Builder clearSslConfig() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4952,7 +4954,7 @@ public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -4972,7 +4974,7 @@ public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { * * *
-       * Optional. SSL config option for this instance.
+       * Optional. SSL configuration option for this instance.
        * 
* * @@ -5061,2532 +5063,7016 @@ public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getDefaultIns } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface PscInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The name of the instance resource with the format:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-   * where the cluster and instance ID segments should satisfy the regex
-   * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-   * lowercase letters, numbers, and dashes, starting with a letter, and ending
-   * with a letter or number. For more details see https://google.aip.dev/122.
-   * The prefix of the instance resource name is the name of the parent
-   * resource:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the instance resource with the format:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-   * where the cluster and instance ID segments should satisfy the regex
-   * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-   * lowercase letters, numbers, and dashes, starting with a letter, and ending
-   * with a letter or number. For more details see https://google.aip.dev/122.
-   * The prefix of the instance resource name is the name of the parent
-   * resource:
-   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * 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]; + * + * @return The serviceAttachmentLink. + */ + java.lang.String getServiceAttachmentLink(); + /** + * + * + *
+     * 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]; + * + * @return The bytes for serviceAttachmentLink. + */ + com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + java.util.List getAllowedConsumerProjectsList(); + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + int getAllowedConsumerProjectsCount(); + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + java.lang.String getAllowedConsumerProjects(int index); + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - * - * - *
-   * User-settable and human-readable display name for the Instance.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + java.lang.String getPscDnsName(); + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + com.google.protobuf.ByteString getPscDnsNameBytes(); } /** * * *
-   * User-settable and human-readable display name for the Instance.
+   * PscInstanceConfig contains PSC related configuration at an
+   * instance level.
    * 
* - * string display_name = 2; - * - * @return The bytes for displayName. + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + PscInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscInstanceConfig.newBuilder() to construct. + private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int UID_FIELD_NUMBER = 3; + private PscInstanceConfig() { + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; - /** - * - * - *
-   * Output only. The system-generated UID of the resource. The UID is assigned
-   * when the resource is created, and it is retained until it is deleted.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - 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(); - uid_ = s; - return s; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInstanceConfig(); } - } - /** - * - * - *
-   * Output only. The system-generated UID of the resource. The UID is assigned
-   * when the resource is created, and it is retained until it is deleted.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; } - } - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Create time stamp
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + } - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Update time stamp
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; - public static final int DELETE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp deleteTime_; - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteTime field is set. - */ - @java.lang.Override - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeleteTime() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - /** - * - * - *
-   * Output only. Delete time stamp
-   * 
- * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } + @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]; + * + * @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]; + * + * @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 = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int LABELS_FIELD_NUMBER = 7; + public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + return allowedConsumerProjects_; + } + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + @SuppressWarnings("serial") + private volatile java.lang.Object pscDnsName_ = ""; + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + @java.lang.Override + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + 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(); + pscDnsName_ = s; + return s; + } } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Labels as key value pairs
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + 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.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + } + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedConsumerProjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + } + getUnknownFields().writeTo(output); } - return map.get(key); - } - public static final int STATE_FIELD_NUMBER = 8; - private int state_ = 0; - /** - * - * - *
-   * Output only. The current serving state of the instance.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The current serving state of the instance.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.State getState() { - com.google.cloud.alloydb.v1.Instance.State result = - com.google.cloud.alloydb.v1.Instance.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1.Instance.State.UNRECOGNIZED : result; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int INSTANCE_TYPE_FIELD_NUMBER = 9; - private int instanceType_ = 0; - /** - * - * - *
-   * Required. The type of the instance. Specified at creation time.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for instanceType. - */ - @java.lang.Override - public int getInstanceTypeValue() { - return instanceType_; - } - /** - * - * - *
-   * Required. The type of the instance. Specified at creation time.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The instanceType. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { - com.google.cloud.alloydb.v1.Instance.InstanceType result = - com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); - return result == null ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED : result; - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerProjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int MACHINE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.alloydb.v1.Instance.MachineConfig machineConfig_; - /** - * - * - *
-   * Configurations for the machines that host the underlying
-   * database engine.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * - * @return Whether the machineConfig field is set. - */ - @java.lang.Override - public boolean hasMachineConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Configurations for the machines that host the underlying
-   * database engine.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * - * @return The machineConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.MachineConfig getMachineConfig() { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; - } - /** - * - * - *
-   * Configurations for the machines that host the underlying
-   * database engine.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder getMachineConfigOrBuilder() { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.PscInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other = + (com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) obj; - public static final int AVAILABILITY_TYPE_FIELD_NUMBER = 11; - private int availabilityType_ = 0; - /** - * - * - *
-   * Availability type of an Instance.
-   * If empty, defaults to REGIONAL for primary instances.
-   * For read pools, availability_type is always UNSPECIFIED. Instances in the
-   * read pools are evenly distributed across available zones within the region
-   * (i.e. read pools with more than one node will have a node in at
-   * least two zones).
-   * 
- * - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @return The enum numeric value on the wire for availabilityType. - */ - @java.lang.Override - public int getAvailabilityTypeValue() { - return availabilityType_; - } - /** - * - * - *
-   * Availability type of an Instance.
-   * If empty, defaults to REGIONAL for primary instances.
-   * For read pools, availability_type is always UNSPECIFIED. Instances in the
-   * read pools are evenly distributed across available zones within the region
-   * (i.e. read pools with more than one node will have a node in at
-   * least two zones).
-   * 
- * - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @return The availabilityType. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.AvailabilityType getAvailabilityType() { - com.google.cloud.alloydb.v1.Instance.AvailabilityType result = - com.google.cloud.alloydb.v1.Instance.AvailabilityType.forNumber(availabilityType_); - return result == null - ? com.google.cloud.alloydb.v1.Instance.AvailabilityType.UNRECOGNIZED - : result; - } + if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; + if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) + return false; + if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final int GCE_ZONE_FIELD_NUMBER = 12; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentLink().hashCode(); + if (getAllowedConsumerProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + } + hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscDnsName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @SuppressWarnings("serial") - private volatile java.lang.Object gceZone_ = ""; - /** - * - * - *
-   * The Compute Engine zone that the instance should serve from, per
-   * https://cloud.google.com/compute/docs/regions-zones
-   * This can ONLY be specified for ZONAL instances.
-   * If present for a REGIONAL instance, an error will be thrown.
-   * If this is absent for a ZONAL instance, instance is created in a random
-   * zone with available capacity.
-   * 
- * - * string gce_zone = 12; - * - * @return The gceZone. - */ - @java.lang.Override - public java.lang.String getGceZone() { - java.lang.Object ref = gceZone_; - 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(); - gceZone_ = s; - return s; + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - /** - * - * - *
-   * The Compute Engine zone that the instance should serve from, per
-   * https://cloud.google.com/compute/docs/regions-zones
-   * This can ONLY be specified for ZONAL instances.
-   * If present for a REGIONAL instance, an error will be thrown.
-   * If this is absent for a ZONAL instance, instance is created in a random
-   * zone with available capacity.
-   * 
- * - * string gce_zone = 12; - * - * @return The bytes for gceZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGceZoneBytes() { - java.lang.Object ref = gceZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gceZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - public static final int DATABASE_FLAGS_FIELD_NUMBER = 13; + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final class DatabaseFlagsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField databaseFlags_; + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.protobuf.MapField - internalGetDatabaseFlags() { - if (databaseFlags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return databaseFlags_; - } - public int getDatabaseFlagsCount() { - return internalGetDatabaseFlags().getMap().size(); - } - /** - * - * - *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
-   *
-   *
-   * This is a list of "key": "value" pairs.
-   * "key": The name of the flag. These flags are passed at instance setup time,
-   * so include both server options and system variables for Postgres. Flags are
-   * specified with underscores, not hyphens.
-   * "value": The value of the flag. Booleans are set to **on** for true
-   * and **off** for false. This field must be omitted if the flag
-   * doesn't take a value.
-   * 
- * - * map<string, string> database_flags = 13; - */ - @java.lang.Override - public boolean containsDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return internalGetDatabaseFlags().getMap().containsKey(key); - } - /** Use {@link #getDatabaseFlagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDatabaseFlags() { - return getDatabaseFlagsMap(); - } - /** - * - * - *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
-   *
-   *
-   * This is a list of "key": "value" pairs.
-   * "key": The name of the flag. These flags are passed at instance setup time,
-   * so include both server options and system variables for Postgres. Flags are
-   * specified with underscores, not hyphens.
-   * "value": The value of the flag. Booleans are set to **on** for true
-   * and **off** for false. This field must be omitted if the flag
-   * doesn't take a value.
-   * 
- * - * map<string, string> database_flags = 13; - */ - @java.lang.Override - public java.util.Map getDatabaseFlagsMap() { - return internalGetDatabaseFlags().getMap(); - } - /** - * - * - *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
-   *
-   *
-   * This is a list of "key": "value" pairs.
-   * "key": The name of the flag. These flags are passed at instance setup time,
-   * so include both server options and system variables for Postgres. Flags are
-   * specified with underscores, not hyphens.
-   * "value": The value of the flag. Booleans are set to **on** for true
-   * and **off** for false. This field must be omitted if the flag
-   * doesn't take a value.
-   * 
- * - * map<string, string> database_flags = 13; - */ - @java.lang.Override - public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
-   *
-   *
-   * This is a list of "key": "value" pairs.
-   * "key": The name of the flag. These flags are passed at instance setup time,
-   * so include both server options and system variables for Postgres. Flags are
-   * specified with underscores, not hyphens.
-   * "value": The value of the flag. Booleans are set to **on** for true
-   * and **off** for false. This field must be omitted if the flag
-   * doesn't take a value.
-   * 
- * - * map<string, string> database_flags = 13; - */ - @java.lang.Override - public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - return map.get(key); - } - public static final int WRITABLE_NODE_FIELD_NUMBER = 19; - private com.google.cloud.alloydb.v1.Instance.Node writableNode_; - /** - * - * - *
-   * Output only. This is set for the read-write VM of the PRIMARY instance
-   * only.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the writableNode field is set. - */ - @java.lang.Override - public boolean hasWritableNode() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Output only. This is set for the read-write VM of the PRIMARY instance
-   * only.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The writableNode. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.Node getWritableNode() { - return writableNode_ == null - ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() - : writableNode_; - } - /** - * - * - *
-   * Output only. This is set for the read-write VM of the PRIMARY instance
-   * only.
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getWritableNodeOrBuilder() { - return writableNode_ == null - ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() - : writableNode_; - } + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int NODES_FIELD_NUMBER = 20; + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @SuppressWarnings("serial") - private java.util.List nodes_; - /** - * - * - *
-   * Output only. List of available read-only VMs in this instance, including
-   * the standby for a PRIMARY instance.
-   * 
- * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getNodesList() { - return nodes_; - } - /** - * - * - *
-   * Output only. List of available read-only VMs in this instance, including
-   * the standby for a PRIMARY instance.
-   * 
- * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - * - * - *
-   * Output only. List of available read-only VMs in this instance, including
-   * the standby for a PRIMARY instance.
-   * 
- * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getNodesCount() { - return nodes_.size(); - } - /** - * - * - *
-   * Output only. List of available read-only VMs in this instance, including
-   * the standby for a PRIMARY instance.
-   * 
- * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.Node getNodes(int index) { - return nodes_.get(index); - } - /** - * - * - *
-   * Output only. List of available read-only VMs in this instance, including
-   * the standby for a PRIMARY instance.
-   * 
- * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getNodesOrBuilder(int index) { - return nodes_.get(index); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int QUERY_INSIGHTS_CONFIG_FIELD_NUMBER = 21; - private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig queryInsightsConfig_; - /** - * - * - *
-   * Configuration for query insights.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * - * - * @return Whether the queryInsightsConfig field is set. - */ - @java.lang.Override - public boolean hasQueryInsightsConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Configuration for query insights.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * - * - * @return The queryInsightsConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQueryInsightsConfig() { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() - : queryInsightsConfig_; - } - /** - * - * - *
-   * Configuration for query insights.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder - getQueryInsightsConfigOrBuilder() { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() - : queryInsightsConfig_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; - private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; - /** - * - * - *
-   * Read pool instance configuration.
-   * This is required if the value of instanceType is READ_POOL.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - * - * @return Whether the readPoolConfig field is set. - */ - @java.lang.Override - public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Read pool instance configuration.
-   * This is required if the value of instanceType is READ_POOL.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - * - * @return The readPoolConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getReadPoolConfig() { - return readPoolConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() - : readPoolConfig_; - } - /** - * - * - *
-   * Read pool instance configuration.
-   * This is required if the value of instanceType is READ_POOL.
-   * 
- * - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder getReadPoolConfigOrBuilder() { - return readPoolConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() - : readPoolConfig_; - } - - public static final int IP_ADDRESS_FIELD_NUMBER = 15; + public static Builder newBuilder( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @SuppressWarnings("serial") - private volatile java.lang.Object ipAddress_ = ""; - /** - * - * - *
-   * Output only. The IP address for the Instance.
-   * This is the connection endpoint for an end-user application.
-   * 
- * - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The ipAddress. - */ - @java.lang.Override - public java.lang.String getIpAddress() { - java.lang.Object ref = ipAddress_; - 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(); - ipAddress_ = s; - return s; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * - * - *
-   * Output only. The IP address for the Instance.
-   * This is the connection endpoint for an end-user application.
-   * 
- * - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for ipAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { - java.lang.Object ref = ipAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - } + /** + * + * + *
+     * PscInstanceConfig contains PSC related configuration at an
+     * instance level.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + } - public static final int RECONCILING_FIELD_NUMBER = 16; - private boolean reconciling_ = false; - /** - * - * - *
-   * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-   * Set to true if the current state of Instance does not match the user's
-   * intended state, and the service is actively updating the resource to
-   * reconcile them. This can happen due to user-triggered updates or
-   * system actions like failover or maintenance.
-   * 
- * - * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The reconciling. - */ - @java.lang.Override - public boolean getReconciling() { - return reconciling_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + } - public static final int ETAG_FIELD_NUMBER = 17; + // Construct using com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.newBuilder() + private Builder() {} - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * For Resource freshness validation (https://google.aip.dev/154)
-   * 
- * - * string etag = 17; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * For Resource freshness validation (https://google.aip.dev/154)
-   * 
- * - * string etag = 17; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - public static final int ANNOTATIONS_FIELD_NUMBER = 18; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + return this; + } - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance(); + } - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig build() { + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 18; - */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetAnnotations().getMap().containsKey(key); - } - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 18; - */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 18; - */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Annotations to allow client tools to store small amount of arbitrary data.
-   * This is distinct from labels.
-   * https://google.aip.dev/128
-   * 
- * - * map<string, string> annotations = 18; - */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = + new com.google.cloud.alloydb.v1.Instance.PscInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static final int CLIENT_CONNECTION_CONFIG_FIELD_NUMBER = 23; - private com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig clientConnectionConfig_; - /** - * - * - *
-   * Optional. Client connection specific configurations
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the clientConnectionConfig field is set. - */ - @java.lang.Override - public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Optional. Client connection specific configurations
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The clientConnectionConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getClientConnectionConfig() { - return clientConnectionConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() - : clientConnectionConfig_; - } - /** - * - * - *
-   * Optional. Client connection specific configurations
-   * 
- * - * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder - getClientConnectionConfigOrBuilder() { - return clientConnectionConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() - : clientConnectionConfig_; - } + private void buildPartial0(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachmentLink_ = serviceAttachmentLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedConsumerProjects_.makeImmutable(); + result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pscDnsName_ = pscDnsName_; + } + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getDeleteTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - if (state_ != com.google.cloud.alloydb.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(8, state_); - } - if (instanceType_ - != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(9, instanceType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(10, getMachineConfig()); - } - if (availabilityType_ - != com.google.cloud.alloydb.v1.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(11, availabilityType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gceZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gceZone_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(14, getReadPoolConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, ipAddress_); - } - if (reconciling_ != false) { - output.writeBool(16, reconciling_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 18); - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(19, getWritableNode()); - } - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(20, nodes_.get(i)); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(21, getQueryInsightsConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(23, getClientConnectionConfig()); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); - } - if (state_ != com.google.cloud.alloydb.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); - } - if (instanceType_ - != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, instanceType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMachineConfig()); - } - if (availabilityType_ - != com.google.cloud.alloydb.v1.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, availabilityType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gceZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gceZone_); - } - for (java.util.Map.Entry entry : - internalGetDatabaseFlags().getMap().entrySet()) { - com.google.protobuf.MapEntry databaseFlags__ = - DatabaseFlagsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, ipAddress_); - } - if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, reconciling_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, annotations__); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getWritableNode()); - } - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, nodes_.get(i)); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.alloydb.v1.Instance)) { - return super.equals(obj); - } - com.google.cloud.alloydb.v1.Instance other = (com.google.cloud.alloydb.v1.Instance) obj; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (state_ != other.state_) return false; - if (instanceType_ != other.instanceType_) return false; - if (hasMachineConfig() != other.hasMachineConfig()) return false; - if (hasMachineConfig()) { - if (!getMachineConfig().equals(other.getMachineConfig())) return false; - } - if (availabilityType_ != other.availabilityType_) return false; - if (!getGceZone().equals(other.getGceZone())) return false; - if (!internalGetDatabaseFlags().equals(other.internalGetDatabaseFlags())) return false; - if (hasWritableNode() != other.hasWritableNode()) return false; - if (hasWritableNode()) { - if (!getWritableNode().equals(other.getWritableNode())) return false; - } - if (!getNodesList().equals(other.getNodesList())) return false; - if (hasQueryInsightsConfig() != other.hasQueryInsightsConfig()) return false; - if (hasQueryInsightsConfig()) { - if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; - } - if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; - if (hasReadPoolConfig()) { - if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; - } - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (hasClientConnectionConfig() != other.hasClientConnectionConfig()) return false; - if (hasClientConnectionConfig()) { - if (!getClientConnectionConfig().equals(other.getClientConnectionConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other) { + if (other == com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) + return this; + if (!other.getServiceAttachmentLink().isEmpty()) { + serviceAttachmentLink_ = other.serviceAttachmentLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedConsumerProjects_.isEmpty()) { + if (allowedConsumerProjects_.isEmpty()) { + allowedConsumerProjects_ = other.allowedConsumerProjects_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + } + onChanged(); + } + if (!other.getPscDnsName().isEmpty()) { + pscDnsName_ = other.pscDnsName_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + instanceType_; - if (hasMachineConfig()) { - hash = (37 * hash) + MACHINE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMachineConfig().hashCode(); - } - hash = (37 * hash) + AVAILABILITY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + availabilityType_; - hash = (37 * hash) + GCE_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getGceZone().hashCode(); - if (!internalGetDatabaseFlags().getMap().isEmpty()) { - hash = (37 * hash) + DATABASE_FLAGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDatabaseFlags().hashCode(); - } - if (hasWritableNode()) { - hash = (37 * hash) + WRITABLE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getWritableNode().hashCode(); - } - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (hasQueryInsightsConfig()) { - hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getQueryInsightsConfig().hashCode(); - } - if (hasReadPoolConfig()) { - hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getReadPoolConfig().hashCode(); - } - hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getIpAddress().hashCode(); - hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (hasClientConnectionConfig()) { - hash = (37 * hash) + CLIENT_CONNECTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getClientConnectionConfig().hashCode(); + @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: + { + serviceAttachmentLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(s); + break; + } // case 18 + case 58: + { + pscDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private 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]; + * + * + * @return The serviceAttachmentLink. + */ + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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]; + * + * + * @return The bytes for serviceAttachmentLink. + */ + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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]; + * + * + * @param value The serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * 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]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentLink() { + serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * 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]; + * + * + * @param value The bytes for serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerProjectsIsMutable() { + if (!allowedConsumerProjects_.isModifiable()) { + allowedConsumerProjects_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + allowedConsumerProjects_.makeImmutable(); + return allowedConsumerProjects_; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedConsumerProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { + ensureAllowedConsumerProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerProjects() { + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object pscDnsName_ = ""; + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscDnsName() { + pscDnsName_ = getDefaultInstance().getPscDnsName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + private static final com.google.cloud.alloydb.v1.Instance.PscInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.PscInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1.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.v1.Instance.PscInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstanceNetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAuthorizedExternalNetworksList(); + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index); + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAuthorizedExternalNetworksCount(); + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList(); + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index); + + /** + * + * + *
+     * Optional. Enabling public ip for the instance.
+     * 
+ * + * bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicIp. + */ + boolean getEnablePublicIp(); + + /** + * + * + *
+     * Optional. Enabling an outbound public IP address to support a database
+     * server sending requests out into the internet.
+     * 
+ * + * bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOutboundPublicIp. + */ + boolean getEnableOutboundPublicIp(); + } + /** + * + * + *
+   * Metadata related to instance-level network configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.InstanceNetworkConfig} + */ + public static final class InstanceNetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) + InstanceNetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceNetworkConfig.newBuilder() to construct. + private InstanceNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceNetworkConfig() { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.class, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder.class); + } + + public interface AuthorizedNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * CIDR range for one authorzied network of the instance.
+       * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The cidrRange. + */ + java.lang.String getCidrRange(); + /** + * + * + *
+       * CIDR range for one authorzied network of the instance.
+       * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The bytes for cidrRange. + */ + com.google.protobuf.ByteString getCidrRangeBytes(); + } + /** + * + * + *
+     * AuthorizedNetwork contains metadata for an authorized network.
+     * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork} + */ + public static final class AuthorizedNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + AuthorizedNetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthorizedNetwork.newBuilder() to construct. + private AuthorizedNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuthorizedNetwork() { + cidrRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthorizedNetwork(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.class, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + .class); + } + + public static final int CIDR_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidrRange_ = ""; + /** + * + * + *
+       * CIDR range for one authorzied network of the instance.
+       * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The cidrRange. + */ + @java.lang.Override + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + 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(); + cidrRange_ = s; + return s; + } + } + /** + * + * + *
+       * CIDR range for one authorzied network of the instance.
+       * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The bytes for cidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cidrRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cidrRange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork other = + (com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) obj; + + if (!getCidrRange().equals(other.getCidrRange())) 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) + CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCidrRange().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * AuthorizedNetwork contains metadata for an authorized network.
+       * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .class, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cidrRange_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + build() { + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + buildPartial() { + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork result = + new com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cidrRange_ = cidrRange_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) { + return mergeFrom( + (com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork other) { + if (other + == com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()) return this; + if (!other.getCidrRange().isEmpty()) { + cidrRange_ = other.cidrRange_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cidrRange_ = ""; + /** + * + * + *
+         * CIDR range for one authorzied network of the instance.
+         * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The cidrRange. + */ + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * CIDR range for one authorzied network of the instance.
+         * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return The bytes for cidrRange. + */ + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * CIDR range for one authorzied network of the instance.
+         * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @param value The cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * CIDR range for one authorzied network of the instance.
+         * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCidrRange() { + cidrRange_ = getDefaultInstance().getCidrRange(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * CIDR range for one authorzied network of the instance.
+         * 
+ * + * string cidr_range = 1 [(.google.api.field_info) = { ... } + * + * @param value The bytes for cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork) + private static final com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetwork + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork(); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizedNetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int AUTHORIZED_EXTERNAL_NETWORKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork> + authorizedExternalNetworks_; + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork> + getAuthorizedExternalNetworksList() { + return authorizedExternalNetworks_; + } + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList() { + return authorizedExternalNetworks_; + } + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAuthorizedExternalNetworksCount() { + return authorizedExternalNetworks_.size(); + } + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index) { + return authorizedExternalNetworks_.get(index); + } + /** + * + * + *
+     * Optional. A list of external network authorized to access this instance.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index) { + return authorizedExternalNetworks_.get(index); + } + + public static final int ENABLE_PUBLIC_IP_FIELD_NUMBER = 2; + private boolean enablePublicIp_ = false; + /** + * + * + *
+     * Optional. Enabling public ip for the instance.
+     * 
+ * + * bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicIp. + */ + @java.lang.Override + public boolean getEnablePublicIp() { + return enablePublicIp_; + } + + public static final int ENABLE_OUTBOUND_PUBLIC_IP_FIELD_NUMBER = 3; + private boolean enableOutboundPublicIp_ = false; + /** + * + * + *
+     * Optional. Enabling an outbound public IP address to support a database
+     * server sending requests out into the internet.
+     * 
+ * + * bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOutboundPublicIp. + */ + @java.lang.Override + public boolean getEnableOutboundPublicIp() { + return enableOutboundPublicIp_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < authorizedExternalNetworks_.size(); i++) { + output.writeMessage(1, authorizedExternalNetworks_.get(i)); + } + if (enablePublicIp_ != false) { + output.writeBool(2, enablePublicIp_); + } + if (enableOutboundPublicIp_ != false) { + output.writeBool(3, enableOutboundPublicIp_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authorizedExternalNetworks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, authorizedExternalNetworks_.get(i)); + } + if (enablePublicIp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePublicIp_); + } + if (enableOutboundPublicIp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableOutboundPublicIp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig other = + (com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) obj; + + if (!getAuthorizedExternalNetworksList().equals(other.getAuthorizedExternalNetworksList())) + return false; + if (getEnablePublicIp() != other.getEnablePublicIp()) return false; + if (getEnableOutboundPublicIp() != other.getEnableOutboundPublicIp()) 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 (getAuthorizedExternalNetworksCount() > 0) { + hash = (37 * hash) + AUTHORIZED_EXTERNAL_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizedExternalNetworksList().hashCode(); + } + hash = (37 * hash) + ENABLE_PUBLIC_IP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePublicIp()); + hash = (37 * hash) + ENABLE_OUTBOUND_PUBLIC_IP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOutboundPublicIp()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metadata related to instance-level network configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.InstanceNetworkConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.class, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + } else { + authorizedExternalNetworks_ = null; + authorizedExternalNetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + enablePublicIp_ = false; + enableOutboundPublicIp_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig build() { + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig result = + new com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig result) { + if (authorizedExternalNetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authorizedExternalNetworks_ = + java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authorizedExternalNetworks_ = authorizedExternalNetworks_; + } else { + result.authorizedExternalNetworks_ = authorizedExternalNetworksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enablePublicIp_ = enablePublicIp_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableOutboundPublicIp_ = enableOutboundPublicIp_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig other) { + if (other + == com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance()) + return this; + if (authorizedExternalNetworksBuilder_ == null) { + if (!other.authorizedExternalNetworks_.isEmpty()) { + if (authorizedExternalNetworks_.isEmpty()) { + authorizedExternalNetworks_ = other.authorizedExternalNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.addAll(other.authorizedExternalNetworks_); + } + onChanged(); + } + } else { + if (!other.authorizedExternalNetworks_.isEmpty()) { + if (authorizedExternalNetworksBuilder_.isEmpty()) { + authorizedExternalNetworksBuilder_.dispose(); + authorizedExternalNetworksBuilder_ = null; + authorizedExternalNetworks_ = other.authorizedExternalNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + authorizedExternalNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuthorizedExternalNetworksFieldBuilder() + : null; + } else { + authorizedExternalNetworksBuilder_.addAllMessages(other.authorizedExternalNetworks_); + } + } + } + if (other.getEnablePublicIp() != false) { + setEnablePublicIp(other.getEnablePublicIp()); + } + if (other.getEnableOutboundPublicIp() != false) { + setEnableOutboundPublicIp(other.getEnableOutboundPublicIp()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork m = + input.readMessage( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetwork.parser(), + extensionRegistry); + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(m); + } else { + authorizedExternalNetworksBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + enablePublicIp_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableOutboundPublicIp_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork> + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + + private void ensureAuthorizedExternalNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authorizedExternalNetworks_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork>( + authorizedExternalNetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder> + authorizedExternalNetworksBuilder_; + + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork> + getAuthorizedExternalNetworksList() { + if (authorizedExternalNetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + } else { + return authorizedExternalNetworksBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAuthorizedExternalNetworksCount() { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.size(); + } else { + return authorizedExternalNetworksBuilder_.getCount(); + } + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.get(index); + } else { + return authorizedExternalNetworksBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.set(index, value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAuthorizedExternalNetworks( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(index, value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAuthorizedExternalNetworks( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAuthorizedExternalNetworks( + java.lang.Iterable< + ? extends + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork> + values) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizedExternalNetworks_); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthorizedExternalNetworks() { + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAuthorizedExternalNetworks(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.remove(index); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + getAuthorizedExternalNetworksBuilder(int index) { + return getAuthorizedExternalNetworksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.get(index); + } else { + return authorizedExternalNetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList() { + if (authorizedExternalNetworksBuilder_ != null) { + return authorizedExternalNetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + } + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + addAuthorizedExternalNetworksBuilder() { + return getAuthorizedExternalNetworksFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + addAuthorizedExternalNetworksBuilder(int index) { + return getAuthorizedExternalNetworksFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. A list of external network authorized to access this instance.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder> + getAuthorizedExternalNetworksBuilderList() { + return getAuthorizedExternalNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksFieldBuilder() { + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder>( + authorizedExternalNetworks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authorizedExternalNetworks_ = null; + } + return authorizedExternalNetworksBuilder_; + } + + private boolean enablePublicIp_; + /** + * + * + *
+       * Optional. Enabling public ip for the instance.
+       * 
+ * + * bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicIp. + */ + @java.lang.Override + public boolean getEnablePublicIp() { + return enablePublicIp_; + } + /** + * + * + *
+       * Optional. Enabling public ip for the instance.
+       * 
+ * + * bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePublicIp to set. + * @return This builder for chaining. + */ + public Builder setEnablePublicIp(boolean value) { + + enablePublicIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Enabling public ip for the instance.
+       * 
+ * + * bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePublicIp() { + bitField0_ = (bitField0_ & ~0x00000002); + enablePublicIp_ = false; + onChanged(); + return this; + } + + private boolean enableOutboundPublicIp_; + /** + * + * + *
+       * Optional. Enabling an outbound public IP address to support a database
+       * server sending requests out into the internet.
+       * 
+ * + * bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOutboundPublicIp. + */ + @java.lang.Override + public boolean getEnableOutboundPublicIp() { + return enableOutboundPublicIp_; + } + /** + * + * + *
+       * Optional. Enabling an outbound public IP address to support a database
+       * server sending requests out into the internet.
+       * 
+ * + * bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableOutboundPublicIp to set. + * @return This builder for chaining. + */ + public Builder setEnableOutboundPublicIp(boolean value) { + + enableOutboundPublicIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Enabling an outbound public IP address to support a database
+       * server sending requests out into the internet.
+       * 
+ * + * bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableOutboundPublicIp() { + bitField0_ = (bitField0_ & ~0x00000004); + enableOutboundPublicIp_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.InstanceNetworkConfig) + private static final com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The name of the instance resource with the format:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+   * where the cluster and instance ID segments should satisfy the regex
+   * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+   * lowercase letters, numbers, and dashes, starting with a letter, and ending
+   * with a letter or number. For more details see https://google.aip.dev/122.
+   * The prefix of the instance resource name is the name of the parent
+   * resource:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the instance resource with the format:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+   * where the cluster and instance ID segments should satisfy the regex
+   * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+   * lowercase letters, numbers, and dashes, starting with a letter, and ending
+   * with a letter or number. For more details see https://google.aip.dev/122.
+   * The prefix of the instance resource name is the name of the parent
+   * resource:
+   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * User-settable and human-readable display name for the Instance.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * User-settable and human-readable display name for the Instance.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. The system-generated UID of the resource. The UID is assigned
+   * when the resource is created, and it is retained until it is deleted.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The system-generated UID of the resource. The UID is assigned
+   * when the resource is created, and it is retained until it is deleted.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. Delete time stamp
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current serving state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The current serving state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.State getState() { + com.google.cloud.alloydb.v1.Instance.State result = + com.google.cloud.alloydb.v1.Instance.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1.Instance.State.UNRECOGNIZED : result; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 9; + private int instanceType_ = 0; + /** + * + * + *
+   * Required. The type of the instance. Specified at creation time.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for instanceType. + */ + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; + } + /** + * + * + *
+   * Required. The type of the instance. Specified at creation time.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1.Instance.InstanceType result = + com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED : result; + } + + public static final int MACHINE_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.alloydb.v1.Instance.MachineConfig machineConfig_; + /** + * + * + *
+   * Configurations for the machines that host the underlying
+   * database engine.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * @return Whether the machineConfig field is set. + */ + @java.lang.Override + public boolean hasMachineConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Configurations for the machines that host the underlying
+   * database engine.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * @return The machineConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.MachineConfig getMachineConfig() { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; + } + /** + * + * + *
+   * Configurations for the machines that host the underlying
+   * database engine.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder getMachineConfigOrBuilder() { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; + } + + public static final int AVAILABILITY_TYPE_FIELD_NUMBER = 11; + private int availabilityType_ = 0; + /** + * + * + *
+   * Availability type of an Instance.
+   * If empty, defaults to REGIONAL for primary instances.
+   * For read pools, availability_type is always UNSPECIFIED. Instances in the
+   * read pools are evenly distributed across available zones within the region
+   * (i.e. read pools with more than one node will have a node in at
+   * least two zones).
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; + * + * @return The enum numeric value on the wire for availabilityType. + */ + @java.lang.Override + public int getAvailabilityTypeValue() { + return availabilityType_; + } + /** + * + * + *
+   * Availability type of an Instance.
+   * If empty, defaults to REGIONAL for primary instances.
+   * For read pools, availability_type is always UNSPECIFIED. Instances in the
+   * read pools are evenly distributed across available zones within the region
+   * (i.e. read pools with more than one node will have a node in at
+   * least two zones).
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; + * + * @return The availabilityType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.AvailabilityType getAvailabilityType() { + com.google.cloud.alloydb.v1.Instance.AvailabilityType result = + com.google.cloud.alloydb.v1.Instance.AvailabilityType.forNumber(availabilityType_); + return result == null + ? com.google.cloud.alloydb.v1.Instance.AvailabilityType.UNRECOGNIZED + : result; + } + + public static final int GCE_ZONE_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object gceZone_ = ""; + /** + * + * + *
+   * The Compute Engine zone that the instance should serve from, per
+   * https://cloud.google.com/compute/docs/regions-zones
+   * This can ONLY be specified for ZONAL instances.
+   * If present for a REGIONAL instance, an error will be thrown.
+   * If this is absent for a ZONAL instance, instance is created in a random
+   * zone with available capacity.
+   * 
+ * + * string gce_zone = 12; + * + * @return The gceZone. + */ + @java.lang.Override + public java.lang.String getGceZone() { + java.lang.Object ref = gceZone_; + 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(); + gceZone_ = s; + return s; + } + } + /** + * + * + *
+   * The Compute Engine zone that the instance should serve from, per
+   * https://cloud.google.com/compute/docs/regions-zones
+   * This can ONLY be specified for ZONAL instances.
+   * If present for a REGIONAL instance, an error will be thrown.
+   * If this is absent for a ZONAL instance, instance is created in a random
+   * zone with available capacity.
+   * 
+ * + * string gce_zone = 12; + * + * @return The bytes for gceZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGceZoneBytes() { + java.lang.Object ref = gceZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gceZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FLAGS_FIELD_NUMBER = 13; + + private static final class DatabaseFlagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField databaseFlags_; + + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + return databaseFlags_; + } + + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); + } + /** + * + * + *
+   * Database flags. Set at instance level.
+   *  * They are copied from primary instance on read instance creation.
+   *  * Read instances can set new or override existing flags that are relevant
+   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+   *    set on read instance may or may not be present on primary.
+   *
+   *
+   * This is a list of "key": "value" pairs.
+   * "key": The name of the flag. These flags are passed at instance setup time,
+   * so include both server options and system variables for Postgres. Flags are
+   * specified with underscores, not hyphens.
+   * "value": The value of the flag. Booleans are set to **on** for true
+   * and **off** for false. This field must be omitted if the flag
+   * doesn't take a value.
+   * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public boolean containsDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDatabaseFlags().getMap().containsKey(key); + } + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); + } + /** + * + * + *
+   * Database flags. Set at instance level.
+   *  * They are copied from primary instance on read instance creation.
+   *  * Read instances can set new or override existing flags that are relevant
+   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+   *    set on read instance may or may not be present on primary.
+   *
+   *
+   * This is a list of "key": "value" pairs.
+   * "key": The name of the flag. These flags are passed at instance setup time,
+   * so include both server options and system variables for Postgres. Flags are
+   * specified with underscores, not hyphens.
+   * "value": The value of the flag. Booleans are set to **on** for true
+   * and **off** for false. This field must be omitted if the flag
+   * doesn't take a value.
+   * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); + } + /** + * + * + *
+   * Database flags. Set at instance level.
+   *  * They are copied from primary instance on read instance creation.
+   *  * Read instances can set new or override existing flags that are relevant
+   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+   *    set on read instance may or may not be present on primary.
+   *
+   *
+   * This is a list of "key": "value" pairs.
+   * "key": The name of the flag. These flags are passed at instance setup time,
+   * so include both server options and system variables for Postgres. Flags are
+   * specified with underscores, not hyphens.
+   * "value": The value of the flag. Booleans are set to **on** for true
+   * and **off** for false. This field must be omitted if the flag
+   * doesn't take a value.
+   * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Database flags. Set at instance level.
+   *  * They are copied from primary instance on read instance creation.
+   *  * Read instances can set new or override existing flags that are relevant
+   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+   *    set on read instance may or may not be present on primary.
+   *
+   *
+   * This is a list of "key": "value" pairs.
+   * "key": The name of the flag. These flags are passed at instance setup time,
+   * so include both server options and system variables for Postgres. Flags are
+   * specified with underscores, not hyphens.
+   * "value": The value of the flag. Booleans are set to **on** for true
+   * and **off** for false. This field must be omitted if the flag
+   * doesn't take a value.
+   * 
+ * + * map<string, string> database_flags = 13; + */ + @java.lang.Override + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int WRITABLE_NODE_FIELD_NUMBER = 19; + private com.google.cloud.alloydb.v1.Instance.Node writableNode_; + /** + * + * + *
+   * Output only. This is set for the read-write VM of the PRIMARY instance
+   * only.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the writableNode field is set. + */ + @java.lang.Override + public boolean hasWritableNode() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. This is set for the read-write VM of the PRIMARY instance
+   * only.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The writableNode. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.Node getWritableNode() { + return writableNode_ == null + ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() + : writableNode_; + } + /** + * + * + *
+   * Output only. This is set for the read-write VM of the PRIMARY instance
+   * only.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getWritableNodeOrBuilder() { + return writableNode_ == null + ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() + : writableNode_; + } + + public static final int NODES_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private java.util.List nodes_; + /** + * + * + *
+   * Output only. List of available read-only VMs in this instance, including
+   * the standby for a PRIMARY instance.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getNodesList() { + return nodes_; + } + /** + * + * + *
+   * Output only. List of available read-only VMs in this instance, including
+   * the standby for a PRIMARY instance.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + * + * + *
+   * Output only. List of available read-only VMs in this instance, including
+   * the standby for a PRIMARY instance.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getNodesCount() { + return nodes_.size(); + } + /** + * + * + *
+   * Output only. List of available read-only VMs in this instance, including
+   * the standby for a PRIMARY instance.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.Node getNodes(int index) { + return nodes_.get(index); + } + /** + * + * + *
+   * Output only. List of available read-only VMs in this instance, including
+   * the standby for a PRIMARY instance.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getNodesOrBuilder(int index) { + return nodes_.get(index); + } + + public static final int QUERY_INSIGHTS_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig queryInsightsConfig_; + /** + * + * + *
+   * Configuration for query insights.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + * + * @return Whether the queryInsightsConfig field is set. + */ + @java.lang.Override + public boolean hasQueryInsightsConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Configuration for query insights.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + * + * @return The queryInsightsConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQueryInsightsConfig() { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() + : queryInsightsConfig_; + } + /** + * + * + *
+   * Configuration for query insights.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder + getQueryInsightsConfigOrBuilder() { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() + : queryInsightsConfig_; + } + + public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; + private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; + /** + * + * + *
+   * Read pool instance configuration.
+   * This is required if the value of instanceType is READ_POOL.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * @return Whether the readPoolConfig field is set. + */ + @java.lang.Override + public boolean hasReadPoolConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Read pool instance configuration.
+   * This is required if the value of instanceType is READ_POOL.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * @return The readPoolConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getReadPoolConfig() { + return readPoolConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() + : readPoolConfig_; + } + /** + * + * + *
+   * Read pool instance configuration.
+   * This is required if the value of instanceType is READ_POOL.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder getReadPoolConfigOrBuilder() { + return readPoolConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() + : readPoolConfig_; + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + /** + * + * + *
+   * Output only. The IP address for the Instance.
+   * This is the connection endpoint for an end-user application.
+   * 
+ * + * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + 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(); + ipAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The IP address for the Instance.
+   * This is the connection endpoint for an end-user application.
+   * 
+ * + * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_IP_ADDRESS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object publicIpAddress_ = ""; + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The publicIpAddress. + */ + @java.lang.Override + public java.lang.String getPublicIpAddress() { + java.lang.Object ref = publicIpAddress_; + 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(); + publicIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for publicIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicIpAddressBytes() { + java.lang.Object ref = publicIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECONCILING_FIELD_NUMBER = 16; + private boolean reconciling_ = false; + /** + * + * + *
+   * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+   * Set to true if the current state of Instance does not match the user's
+   * intended state, and the service is actively updating the resource to
+   * reconcile them. This can happen due to user-triggered updates or
+   * system actions like failover or maintenance.
+   * 
+ * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ETAG_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * For Resource freshness validation (https://google.aip.dev/154)
+   * 
+ * + * string etag = 17; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * For Resource freshness validation (https://google.aip.dev/154)
+   * 
+ * + * string etag = 17; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 18; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 18; + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 18; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 18; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Annotations to allow client tools to store small amount of arbitrary data.
+   * This is distinct from labels.
+   * https://google.aip.dev/128
+   * 
+ * + * map<string, string> annotations = 18; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CLIENT_CONNECTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig clientConnectionConfig_; + /** + * + * + *
+   * Optional. Client connection specific configurations
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientConnectionConfig field is set. + */ + @java.lang.Override + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. Client connection specific configurations
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientConnectionConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getClientConnectionConfig() { + return clientConnectionConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + /** + * + * + *
+   * Optional. Client connection specific configurations
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + return clientConnectionConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 24; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int PSC_INSTANCE_CONFIG_FIELD_NUMBER = 28; + private com.google.cloud.alloydb.v1.Instance.PscInstanceConfig pscInstanceConfig_; + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasPscInstanceConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConfig() { + return pscInstanceConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance() + : pscInstanceConfig_; + } + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder + getPscInstanceConfigOrBuilder() { + return pscInstanceConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance() + : pscInstanceConfig_; + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig networkConfig_; + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance() + : networkConfig_; + } + + public static final int OUTBOUND_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 34; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList outboundPublicIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return A list containing the outboundPublicIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getOutboundPublicIpAddressesList() { + return outboundPublicIpAddresses_; + } + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The count of outboundPublicIpAddresses. + */ + public int getOutboundPublicIpAddressesCount() { + return outboundPublicIpAddresses_.size(); + } + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param index The index of the element to return. + * @return The outboundPublicIpAddresses at the given index. + */ + public java.lang.String getOutboundPublicIpAddresses(int index) { + return outboundPublicIpAddresses_.get(index); + } + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the outboundPublicIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index) { + return outboundPublicIpAddresses_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getDeleteTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (state_ != com.google.cloud.alloydb.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (instanceType_ + != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, instanceType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getMachineConfig()); + } + if (availabilityType_ + != com.google.cloud.alloydb.v1.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, availabilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gceZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gceZone_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(14, getReadPoolConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, ipAddress_); + } + if (reconciling_ != false) { + output.writeBool(16, reconciling_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 18); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getWritableNode()); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(20, nodes_.get(i)); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getQueryInsightsConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getClientConnectionConfig()); + } + if (satisfiesPzs_ != false) { + output.writeBool(24, satisfiesPzs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 27, publicIpAddress_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(28, getPscInstanceConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(29, getNetworkConfig()); + } + for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 34, outboundPublicIpAddresses_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (state_ != com.google.cloud.alloydb.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (instanceType_ + != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, instanceType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMachineConfig()); + } + if (availabilityType_ + != com.google.cloud.alloydb.v1.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, availabilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gceZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gceZone_); + } + for (java.util.Map.Entry entry : + internalGetDatabaseFlags().getMap().entrySet()) { + com.google.protobuf.MapEntry databaseFlags__ = + DatabaseFlagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, ipAddress_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, reconciling_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, annotations__); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getWritableNode()); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, nodes_.get(i)); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, publicIpAddress_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(outboundPublicIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 2 * getOutboundPublicIpAddressesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance other = (com.google.cloud.alloydb.v1.Instance) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (instanceType_ != other.instanceType_) return false; + if (hasMachineConfig() != other.hasMachineConfig()) return false; + if (hasMachineConfig()) { + if (!getMachineConfig().equals(other.getMachineConfig())) return false; + } + if (availabilityType_ != other.availabilityType_) return false; + if (!getGceZone().equals(other.getGceZone())) return false; + if (!internalGetDatabaseFlags().equals(other.internalGetDatabaseFlags())) return false; + if (hasWritableNode() != other.hasWritableNode()) return false; + if (hasWritableNode()) { + if (!getWritableNode().equals(other.getWritableNode())) return false; + } + if (!getNodesList().equals(other.getNodesList())) return false; + if (hasQueryInsightsConfig() != other.hasQueryInsightsConfig()) return false; + if (hasQueryInsightsConfig()) { + if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; + } + if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; + if (hasReadPoolConfig()) { + if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; + } + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getPublicIpAddress().equals(other.getPublicIpAddress())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasClientConnectionConfig() != other.hasClientConnectionConfig()) return false; + if (hasClientConnectionConfig()) { + if (!getClientConnectionConfig().equals(other.getClientConnectionConfig())) return false; + } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (hasPscInstanceConfig() != other.hasPscInstanceConfig()) return false; + if (hasPscInstanceConfig()) { + if (!getPscInstanceConfig().equals(other.getPscInstanceConfig())) return false; + } + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (!getOutboundPublicIpAddressesList().equals(other.getOutboundPublicIpAddressesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + instanceType_; + if (hasMachineConfig()) { + hash = (37 * hash) + MACHINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMachineConfig().hashCode(); + } + hash = (37 * hash) + AVAILABILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + availabilityType_; + hash = (37 * hash) + GCE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGceZone().hashCode(); + if (!internalGetDatabaseFlags().getMap().isEmpty()) { + hash = (37 * hash) + DATABASE_FLAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDatabaseFlags().hashCode(); + } + if (hasWritableNode()) { + hash = (37 * hash) + WRITABLE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getWritableNode().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (hasQueryInsightsConfig()) { + hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getQueryInsightsConfig().hashCode(); + } + if (hasReadPoolConfig()) { + hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReadPoolConfig().hashCode(); + } + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + PUBLIC_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPublicIpAddress().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasClientConnectionConfig()) { + hash = (37 * hash) + CLIENT_CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientConnectionConfig().hashCode(); + } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + if (hasPscInstanceConfig()) { + hash = (37 * hash) + PSC_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPscInstanceConfig().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + if (getOutboundPublicIpAddressesCount() > 0) { + hash = (37 * hash) + OUTBOUND_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getOutboundPublicIpAddressesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.Instance 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An Instance is a computing unit that an end customer can connect to.
+   * It's the main unit of computing resources in AlloyDB.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance) + com.google.cloud.alloydb.v1.InstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + case 13: + return internalGetDatabaseFlags(); + case 18: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + case 13: + return internalGetMutableDatabaseFlags(); + case 18: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.class, + com.google.cloud.alloydb.v1.Instance.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getMachineConfigFieldBuilder(); + getWritableNodeFieldBuilder(); + getNodesFieldBuilder(); + getQueryInsightsConfigFieldBuilder(); + getReadPoolConfigFieldBuilder(); + getClientConnectionConfigFieldBuilder(); + getPscInstanceConfigFieldBuilder(); + getNetworkConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + instanceType_ = 0; + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; + } + availabilityType_ = 0; + gceZone_ = ""; + internalGetMutableDatabaseFlags().clear(); + writableNode_ = null; + if (writableNodeBuilder_ != null) { + writableNodeBuilder_.dispose(); + writableNodeBuilder_ = null; + } + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + } else { + nodes_ = null; + nodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + queryInsightsConfig_ = null; + if (queryInsightsConfigBuilder_ != null) { + queryInsightsConfigBuilder_.dispose(); + queryInsightsConfigBuilder_ = null; + } + readPoolConfig_ = null; + if (readPoolConfigBuilder_ != null) { + readPoolConfigBuilder_.dispose(); + readPoolConfigBuilder_ = null; + } + ipAddress_ = ""; + publicIpAddress_ = ""; + reconciling_ = false; + etag_ = ""; + internalGetMutableAnnotations().clear(); + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; + } + satisfiesPzs_ = false; + pscInstanceConfig_ = null; + if (pscInstanceConfigBuilder_ != null) { + pscInstanceConfigBuilder_.dispose(); + pscInstanceConfigBuilder_ = null; + } + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + outboundPublicIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance build() { + com.google.cloud.alloydb.v1.Instance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance buildPartial() { + com.google.cloud.alloydb.v1.Instance result = new com.google.cloud.alloydb.v1.Instance(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.alloydb.v1.Instance result) { + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Instance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.instanceType_ = instanceType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.machineConfig_ = + machineConfigBuilder_ == null ? machineConfig_ : machineConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.availabilityType_ = availabilityType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.gceZone_ = gceZone_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.databaseFlags_ = internalGetDatabaseFlags(); + result.databaseFlags_.makeImmutable(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.writableNode_ = + writableNodeBuilder_ == null ? writableNode_ : writableNodeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.queryInsightsConfig_ = + queryInsightsConfigBuilder_ == null + ? queryInsightsConfig_ + : queryInsightsConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.readPoolConfig_ = + readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.publicIpAddress_ = publicIpAddress_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.clientConnectionConfig_ = + clientConnectionConfigBuilder_ == null + ? clientConnectionConfig_ + : clientConnectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.pscInstanceConfig_ = + pscInstanceConfigBuilder_ == null + ? pscInstanceConfig_ + : pscInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.Instance) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { + if (other == com.google.cloud.alloydb.v1.Instance.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.instanceType_ != 0) { + setInstanceTypeValue(other.getInstanceTypeValue()); + } + if (other.hasMachineConfig()) { + mergeMachineConfig(other.getMachineConfig()); + } + if (other.availabilityType_ != 0) { + setAvailabilityTypeValue(other.getAvailabilityTypeValue()); + } + if (!other.getGceZone().isEmpty()) { + gceZone_ = other.gceZone_; + bitField0_ |= 0x00000800; + onChanged(); + } + internalGetMutableDatabaseFlags().mergeFrom(other.internalGetDatabaseFlags()); + bitField0_ |= 0x00001000; + if (other.hasWritableNode()) { + mergeWritableNode(other.getWritableNode()); + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00004000); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (other.hasQueryInsightsConfig()) { + mergeQueryInsightsConfig(other.getQueryInsightsConfig()); + } + if (other.hasReadPoolConfig()) { + mergeReadPoolConfig(other.getReadPoolConfig()); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (!other.getPublicIpAddress().isEmpty()) { + publicIpAddress_ = other.publicIpAddress_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00100000; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00200000; + if (other.hasClientConnectionConfig()) { + mergeClientConnectionConfig(other.getClientConnectionConfig()); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasPscInstanceConfig()) { + mergePscInstanceConfig(other.getPscInstanceConfig()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.outboundPublicIpAddresses_.isEmpty()) { + if (outboundPublicIpAddresses_.isEmpty()) { + outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; + bitField0_ |= 0x04000000; + } else { + ensureOutboundPublicIpAddressesIsMutable(); + outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + instanceType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getMachineConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + availabilityType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + gceZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry databaseFlags__ = + input.readMessage( + DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDatabaseFlags() + .getMutableMap() + .put(databaseFlags__.getKey(), databaseFlags__.getValue()); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + input.readMessage(getReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 114 + case 122: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 122 + case 128: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 128 + case 138: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 138 + case 146: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00200000; + break; + } // case 146 + case 154: + { + input.readMessage(getWritableNodeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 + case 162: + { + com.google.cloud.alloydb.v1.Instance.Node m = + input.readMessage( + com.google.cloud.alloydb.v1.Instance.Node.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: + { + input.readMessage( + getQueryInsightsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 186: + { + input.readMessage( + getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 192: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00800000; + break; + } // case 192 + case 218: + { + publicIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 218 + case 226: + { + input.readMessage( + getPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 226 + case 234: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 234 + case 274: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOutboundPublicIpAddressesIsMutable(); + outboundPublicIpAddresses_.add(s); + break; + } // case 274 + 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; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.alloydb.v1.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.alloydb.v1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.alloydb.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.alloydb.v1.Instance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private int bitField0_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * An Instance is a computing unit that an end customer can connect to.
-   * It's the main unit of computing resources in AlloyDB.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance) - com.google.cloud.alloydb.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_descriptor; + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The name of the instance resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+     * where the cluster and instance ID segments should satisfy the regex
+     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+     * lowercase letters, numbers, and dashes, starting with a letter, and ending
+     * with a letter or number. For more details see https://google.aip.dev/122.
+     * The prefix of the instance resource name is the name of the parent
+     * resource:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 7: - return internalGetLabels(); - case 13: - return internalGetDatabaseFlags(); - case 18: - return internalGetAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
+     * Output only. The name of the instance resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+     * where the cluster and instance ID segments should satisfy the regex
+     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+     * lowercase letters, numbers, and dashes, starting with a letter, and ending
+     * with a letter or number. For more details see https://google.aip.dev/122.
+     * The prefix of the instance resource name is the name of the parent
+     * resource:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the instance resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+     * where the cluster and instance ID segments should satisfy the regex
+     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+     * lowercase letters, numbers, and dashes, starting with a letter, and ending
+     * with a letter or number. For more details see https://google.aip.dev/122.
+     * The prefix of the instance resource name is the name of the parent
+     * resource:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the instance resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+     * where the cluster and instance ID segments should satisfy the regex
+     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+     * lowercase letters, numbers, and dashes, starting with a letter, and ending
+     * with a letter or number. For more details see https://google.aip.dev/122.
+     * The prefix of the instance resource name is the name of the parent
+     * resource:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the instance resource with the format:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
+     * where the cluster and instance ID segments should satisfy the regex
+     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
+     * lowercase letters, numbers, and dashes, starting with a letter, and ending
+     * with a letter or number. For more details see https://google.aip.dev/122.
+     * The prefix of the instance resource name is the name of the parent
+     * resource:
+     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 7: - return internalGetMutableLabels(); - case 13: - return internalGetMutableDatabaseFlags(); - case 18: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * User-settable and human-readable display name for the Instance.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; } } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.class, - com.google.cloud.alloydb.v1.Instance.Builder.class); + /** + * + * + *
+     * User-settable and human-readable display name for the Instance.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - - // Construct using com.google.cloud.alloydb.v1.Instance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+     * User-settable and human-readable display name for the Instance.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+     * User-settable and human-readable display name for the Instance.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getDeleteTimeFieldBuilder(); - getMachineConfigFieldBuilder(); - getWritableNodeFieldBuilder(); - getNodesFieldBuilder(); - getQueryInsightsConfigFieldBuilder(); - getReadPoolConfigFieldBuilder(); - getClientConnectionConfigFieldBuilder(); + /** + * + * + *
+     * User-settable and human-readable display name for the Instance.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - uid_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - state_ = 0; - instanceType_ = 0; - machineConfig_ = null; - if (machineConfigBuilder_ != null) { - machineConfigBuilder_.dispose(); - machineConfigBuilder_ = null; - } - availabilityType_ = 0; - gceZone_ = ""; - internalGetMutableDatabaseFlags().clear(); - writableNode_ = null; - if (writableNodeBuilder_ != null) { - writableNodeBuilder_.dispose(); - writableNodeBuilder_ = null; - } - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; } else { - nodes_ = null; - nodesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - queryInsightsConfig_ = null; - if (queryInsightsConfigBuilder_ != null) { - queryInsightsConfigBuilder_.dispose(); - queryInsightsConfigBuilder_ = null; - } - readPoolConfig_ = null; - if (readPoolConfigBuilder_ != null) { - readPoolConfigBuilder_.dispose(); - readPoolConfigBuilder_ = null; + return (java.lang.String) ref; } - ipAddress_ = ""; - reconciling_ = false; - etag_ = ""; - internalGetMutableAnnotations().clear(); - clientConnectionConfig_ = null; - if (clientConnectionConfigBuilder_ != null) { - clientConnectionConfigBuilder_.dispose(); - clientConnectionConfigBuilder_ = null; + } + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_descriptor; + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Instance.getDefaultInstance(); + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance build() { - com.google.cloud.alloydb.v1.Instance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * Output only. The system-generated UID of the resource. The UID is assigned
+     * when the resource is created, and it is retained until it is deleted.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return result; + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance buildPartial() { - com.google.cloud.alloydb.v1.Instance result = new com.google.cloud.alloydb.v1.Instance(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - onBuilt(); - return result; } - - private void buildPartialRepeatedFields(com.google.cloud.alloydb.v1.Instance result) { - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00004000); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - result.nodes_ = nodes_; + createTime_ = value; } else { - result.nodes_ = nodesBuilder_.build(); + createTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - - private void buildPartial0(com.google.cloud.alloydb.v1.Instance result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.uid_ = uid_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.instanceType_ = instanceType_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.machineConfig_ = - machineConfigBuilder_ == null ? machineConfig_ : machineConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.availabilityType_ = availabilityType_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.gceZone_ = gceZone_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.databaseFlags_ = internalGetDatabaseFlags(); - result.databaseFlags_.makeImmutable(); - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.writableNode_ = - writableNodeBuilder_ == null ? writableNode_ : writableNodeBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.queryInsightsConfig_ = - queryInsightsConfigBuilder_ == null - ? queryInsightsConfig_ - : queryInsightsConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.readPoolConfig_ = - readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.ipAddress_ = ipAddress_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.reconciling_ = reconciling_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.clientConnectionConfig_ = - clientConnectionConfigBuilder_ == null - ? clientConnectionConfig_ - : clientConnectionConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Output only. Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1.Instance) { - return mergeFrom((com.google.cloud.alloydb.v1.Instance) other); + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - super.mergeFrom(other); - return this; + return updateTimeBuilder_.getMessage(); } } - - public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { - if (other == com.google.cloud.alloydb.v1.Instance.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.instanceType_ != 0) { - setInstanceTypeValue(other.getInstanceTypeValue()); - } - if (other.hasMachineConfig()) { - mergeMachineConfig(other.getMachineConfig()); - } - if (other.availabilityType_ != 0) { - setAvailabilityTypeValue(other.getAvailabilityTypeValue()); - } - if (!other.getGceZone().isEmpty()) { - gceZone_ = other.gceZone_; - bitField0_ |= 0x00000800; - onChanged(); - } - internalGetMutableDatabaseFlags().mergeFrom(other.internalGetDatabaseFlags()); - bitField0_ |= 0x00001000; - if (other.hasWritableNode()) { - mergeWritableNode(other.getWritableNode()); - } - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + updateTime_ = value; } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00004000); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (other.hasQueryInsightsConfig()) { - mergeQueryInsightsConfig(other.getQueryInsightsConfig()); - } - if (other.hasReadPoolConfig()) { - mergeReadPoolConfig(other.getReadPoolConfig()); - } - if (!other.getIpAddress().isEmpty()) { - ipAddress_ = other.ipAddress_; - bitField0_ |= 0x00020000; - onChanged(); - } - if (other.getReconciling() != false) { - setReconciling(other.getReconciling()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00080000; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00100000; - if (other.hasClientConnectionConfig()) { - mergeClientConnectionConfig(other.getClientConnectionConfig()); + updateTimeBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000010; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - instanceType_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage(getMachineConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: - { - availabilityType_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 98: - { - gceZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry databaseFlags__ = - input.readMessage( - DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableDatabaseFlags() - .getMutableMap() - .put(databaseFlags__.getKey(), databaseFlags__.getValue()); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: - { - input.readMessage(getReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 114 - case 122: - { - ipAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; - break; - } // case 122 - case 128: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 128 - case 138: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 138 - case 146: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00100000; - break; - } // case 146 - case 154: - { - input.readMessage(getWritableNodeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 154 - case 162: - { - com.google.cloud.alloydb.v1.Instance.Node m = - input.readMessage( - com.google.cloud.alloydb.v1.Instance.Node.parser(), extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 162 - case 170: - { - input.readMessage( - getQueryInsightsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 186: - { - input.readMessage( - getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 186 - 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 { + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; onChanged(); - } // finally + } return this; } - - private int bitField0_; - - private java.lang.Object name_ = ""; /** * * *
-     * Output only. The name of the instance resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-     * where the cluster and instance ID segments should satisfy the regex
-     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-     * lowercase letters, numbers, and dashes, starting with a letter, and ending
-     * with a letter or number. For more details see https://google.aip.dev/122.
-     * The prefix of the instance resource name is the name of the parent
-     * resource:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * Output only. Update time stamp
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** * - * @return The name. + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** * * *
-     * Output only. The name of the instance resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-     * where the cluster and instance ID segments should satisfy the regex
-     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-     * lowercase letters, numbers, and dashes, starting with a letter, and ending
-     * with a letter or number. For more details see https://google.aip.dev/122.
-     * The prefix of the instance resource name is the name of the parent
-     * resource:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * Output only. Update time stamp
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + /** * - * @return The bytes for name. + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { - return (com.google.protobuf.ByteString) ref; + return deleteTimeBuilder_.getMessage(); } } /** * * *
-     * Output only. The name of the instance resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-     * where the cluster and instance ID segments should satisfy the regex
-     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-     * lowercase letters, numbers, and dashes, starting with a letter, and ending
-     * with a letter or number. For more details see https://google.aip.dev/122.
-     * The prefix of the instance resource name is the name of the parent
-     * resource:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * Output only. Delete time stamp
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** * - * @param value The name to set. - * @return This builder for chaining. + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Delete time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
-     * Output only. The name of the instance resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-     * where the cluster and instance ID segments should satisfy the regex
-     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-     * lowercase letters, numbers, and dashes, starting with a letter, and ending
-     * with a letter or number. For more details see https://google.aip.dev/122.
-     * The prefix of the instance resource name is the name of the parent
-     * resource:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * Output only. Delete time stamp
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } onChanged(); return this; } @@ -7594,315 +12080,306 @@ public Builder clearName() { * * *
-     * Output only. The name of the instance resource with the format:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
-     * where the cluster and instance ID segments should satisfy the regex
-     * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of
-     * lowercase letters, numbers, and dashes, starting with a letter, and ending
-     * with a letter or number. For more details see https://google.aip.dev/122.
-     * The prefix of the instance resource name is the name of the parent
-     * resource:
-     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
+     * Output only. Delete time stamp
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return getDeleteTimeFieldBuilder().getBuilder(); } - - private java.lang.Object displayName_ = ""; /** * * *
-     * User-settable and human-readable display name for the Instance.
+     * Output only. Delete time stamp
      * 
* - * string display_name = 2; - * - * @return The displayName. + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** * * *
-     * User-settable and human-readable display name for the Instance.
+     * Output only. Delete time stamp
      * 
* - * string display_name = 2; - * - * @return The bytes for displayName. + * + * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } /** * * *
-     * User-settable and human-readable display name for the Instance.
+     * Labels as key value pairs
      * 
* - * string display_name = 2; - * - * @param value The displayName to set. - * @return This builder for chaining. + * map<string, string> labels = 7; */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
-     * User-settable and human-readable display name for the Instance.
+     * Labels as key value pairs
      * 
* - * string display_name = 2; - * - * @return This builder for chaining. + * map<string, string> labels = 7; */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * User-settable and human-readable display name for the Instance.
+     * Labels as key value pairs
      * 
* - * string display_name = 2; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * map<string, string> labels = 7; */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - - private java.lang.Object uid_ = ""; /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Labels as key value pairs
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. + * map<string, string> labels = 7; */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; } /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + * Labels as key value pairs + *
+ * + * map<string, string> labels = 7; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); } /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Labels as key value pairs
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The uid to set. - * @return This builder for chaining. + * map<string, string> labels = 7; */ - public Builder setUid(java.lang.String value) { + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - uid_ = value; - bitField0_ |= 0x00000004; - onChanged(); + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; return this; } /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Labels as key value pairs
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * map<string, string> labels = 7; */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } + + private int state_ = 0; /** * * *
-     * Output only. The system-generated UID of the resource. The UID is assigned
-     * when the resource is created, and it is retained until it is deleted.
+     * Output only. The current serving state of the instance.
      * 
* - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes for uid to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for state. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public int getStateValue() { + return state_; } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; /** * * *
-     * Output only. Create time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the createTime field is set. + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000008) != 0); + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
-     * Output only. Create time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The createTime. + * @return The state. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.State getState() { + com.google.cloud.alloydb.v1.Instance.State result = + com.google.cloud.alloydb.v1.Instance.State.forNumber(state_); + return result == null ? com.google.cloud.alloydb.v1.Instance.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. Create time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The state to set. + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + public Builder setState(com.google.cloud.alloydb.v1.Instance.State value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; + state_ = value.getNumber(); onChanged(); return this; } @@ -7910,70 +12387,57 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Create time stamp
+     * Output only. The current serving state of the instance.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; onChanged(); return this; } + + private int instanceType_ = 0; /** * * *
-     * Output only. Create time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for instanceType. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; } /** * * *
-     * Output only. Create time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for instanceType to set. + * @return This builder for chaining. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } + public Builder setInstanceTypeValue(int value) { + instanceType_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7981,131 +12445,128 @@ public Builder clearCreateTime() { * * *
-     * Output only. Create time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The instanceType. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1.Instance.InstanceType result = + com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED + : result; } /** * * *
-     * Output only. Create time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The instanceType to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder setInstanceType(com.google.cloud.alloydb.v1.Instance.InstanceType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000100; + instanceType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * Output only. Create time stamp
+     * Required. The type of the instance. Specified at creation time.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; + public Builder clearInstanceType() { + bitField0_ = (bitField0_ & ~0x00000100); + instanceType_ = 0; + onChanged(); + return this; } - private com.google.protobuf.Timestamp updateTime_; + private com.google.cloud.alloydb.v1.Instance.MachineConfig machineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.cloud.alloydb.v1.Instance.MachineConfig, + com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder> + machineConfigBuilder_; /** * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; * - * @return Whether the updateTime field is set. + * @return Whether the machineConfig field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasMachineConfig() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; * - * @return The updateTime. + * @return The machineConfig. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public com.google.cloud.alloydb.v1.Instance.MachineConfig getMachineConfig() { + if (machineConfigBuilder_ == null) { + return machineConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; } else { - return updateTimeBuilder_.getMessage(); + return machineConfigBuilder_.getMessage(); } } /** * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { + public Builder setMachineConfig(com.google.cloud.alloydb.v1.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - updateTime_ = value; + machineConfig_ = value; } else { - updateTimeBuilder_.setMessage(value); + machineConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8113,20 +12574,20 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + public Builder setMachineConfig( + com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder builderForValue) { + if (machineConfigBuilder_ == null) { + machineConfig_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + machineConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8134,27 +12595,27 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); + public Builder mergeMachineConfig(com.google.cloud.alloydb.v1.Instance.MachineConfig value) { + if (machineConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && machineConfig_ != null + && machineConfig_ + != com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance()) { + getMachineConfigBuilder().mergeFrom(value); } else { - updateTime_ = value; + machineConfig_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + machineConfigBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000010; + if (machineConfig_ != null) { + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -8163,19 +12624,18 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearMachineConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; } onChanged(); return this; @@ -8184,131 +12644,155 @@ public Builder clearUpdateTime() { * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000010; + public com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder getMachineConfigBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + return getMachineConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder getMachineConfigOrBuilder() { + if (machineConfigBuilder_ != null) { + return machineConfigBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return machineConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() + : machineConfig_; } } /** * * *
-     * Output only. Update time stamp
+     * Configurations for the machines that host the underlying
+     * database engine.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + com.google.cloud.alloydb.v1.Instance.MachineConfig, + com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder> + getMachineConfigFieldBuilder() { + if (machineConfigBuilder_ == null) { + machineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + com.google.cloud.alloydb.v1.Instance.MachineConfig, + com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, + com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder>( + getMachineConfig(), getParentForChildren(), isClean()); + machineConfig_ = null; } - return updateTimeBuilder_; + return machineConfigBuilder_; } - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + private int availabilityType_ = 0; /** * * *
-     * Output only. Delete time stamp
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; * - * @return Whether the deleteTime field is set. + * @return The enum numeric value on the wire for availabilityType. */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000020) != 0); + @java.lang.Override + public int getAvailabilityTypeValue() { + return availabilityType_; } /** * * *
-     * Output only. Delete time stamp
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; * - * @return The deleteTime. + * @param value The enum numeric value on the wire for availabilityType to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } + public Builder setAvailabilityTypeValue(int value) { + availabilityType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
+     * 
+ * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; + * + * @return The availabilityType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.AvailabilityType getAvailabilityType() { + com.google.cloud.alloydb.v1.Instance.AvailabilityType result = + com.google.cloud.alloydb.v1.Instance.AvailabilityType.forNumber(availabilityType_); + return result == null + ? com.google.cloud.alloydb.v1.Instance.AvailabilityType.UNRECOGNIZED + : result; } /** * * *
-     * Output only. Delete time stamp
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; + * + * @param value The availabilityType to set. + * @return This builder for chaining. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); + public Builder setAvailabilityType( + com.google.cloud.alloydb.v1.Instance.AvailabilityType value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000400; + availabilityType_ = value.getNumber(); onChanged(); return this; } @@ -8316,377 +12800,481 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Delete time stamp
+     * Availability type of an Instance.
+     * If empty, defaults to REGIONAL for primary instances.
+     * For read pools, availability_type is always UNSPECIFIED. Instances in the
+     * read pools are evenly distributed across available zones within the region
+     * (i.e. read pools with more than one node will have a node in at
+     * least two zones).
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; + * + * @return This builder for chaining. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; + public Builder clearAvailabilityType() { + bitField0_ = (bitField0_ & ~0x00000400); + availabilityType_ = 0; onChanged(); return this; } + + private java.lang.Object gceZone_ = ""; /** * * *
-     * Output only. Delete time stamp
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string gce_zone = 12; + * + * @return The gceZone. */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } + public java.lang.String getGceZone() { + java.lang.Object ref = gceZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gceZone_ = s; + return s; } else { - deleteTimeBuilder_.mergeFrom(value); - } - if (deleteTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
-     * Output only. Delete time stamp
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string gce_zone = 12; + * + * @return The bytes for gceZone. */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000020); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public com.google.protobuf.ByteString getGceZoneBytes() { + java.lang.Object ref = gceZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gceZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
-     * Output only. Delete time stamp
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string gce_zone = 12; + * + * @param value The gceZone to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000020; + public Builder setGceZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gceZone_ = value; + bitField0_ |= 0x00000800; onChanged(); - return getDeleteTimeFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Output only. Delete time stamp
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string gce_zone = 12; + * + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } + public Builder clearGceZone() { + gceZone_ = getDefaultInstance().getGceZone(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; } /** * * *
-     * Output only. Delete time stamp
+     * The Compute Engine zone that the instance should serve from, per
+     * https://cloud.google.com/compute/docs/regions-zones
+     * This can ONLY be specified for ZONAL instances.
+     * If present for a REGIONAL instance, an error will be thrown.
+     * If this is absent for a ZONAL instance, instance is created in a random
+     * zone with available capacity.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string gce_zone = 12; + * + * @param value The bytes for gceZone to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; + public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return deleteTimeBuilder_; + checkByteStringIsUtf8(value); + gceZone_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; } - private com.google.protobuf.MapField labels_; + private com.google.protobuf.MapField databaseFlags_; - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); } - return labels_; + return databaseFlags_; } private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + internalGetMutableDatabaseFlags() { + if (databaseFlags_ == null) { + databaseFlags_ = + com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + if (!databaseFlags_.isMutable()) { + databaseFlags_ = databaseFlags_.copy(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00001000; onChanged(); - return labels_; + return databaseFlags_; } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); } /** * * - *
-     * Labels as key value pairs
+     * 
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { + public boolean containsDatabaseFlags(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); + return internalGetDatabaseFlags().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** Use {@link #getDatabaseFlagsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); } /** * * *
-     * Labels as key value pairs
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); } /** * * *
-     * Labels as key value pairs
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetLabels().getMap(); + java.util.Map map = internalGetDatabaseFlags().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Labels as key value pairs
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetLabels().getMap(); + java.util.Map map = internalGetDatabaseFlags().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + public Builder clearDatabaseFlags() { + bitField0_ = (bitField0_ & ~0x00001000); + internalGetMutableDatabaseFlags().getMutableMap().clear(); return this; } /** * * *
-     * Labels as key value pairs
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ - public Builder removeLabels(java.lang.String key) { + public Builder removeDatabaseFlags(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap().remove(key); + internalGetMutableDatabaseFlags().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); + public java.util.Map getMutableDatabaseFlags() { + bitField0_ |= 0x00001000; + return internalGetMutableDatabaseFlags().getMutableMap(); } /** * * *
-     * Labels as key value pairs
+     * Database flags. Set at instance level.
+     *  * They are copied from primary instance on read instance creation.
+     *  * Read instances can set new or override existing flags that are relevant
+     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
+     *    set on read instance may or may not be present on primary.
+     *
+     *
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * map<string, string> labels = 7; + * map<string, string> database_flags = 13; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { + public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + internalGetMutableDatabaseFlags().getMutableMap().put(key, value); + bitField0_ |= 0x00001000; return this; } /** * * *
-     * Labels as key value pairs
-     * 
- * - * map<string, string> labels = 7; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; - return this; - } - - private int state_ = 0; - /** + * Database flags. Set at instance level. + * * They are copied from primary instance on read instance creation. + * * Read instances can set new or override existing flags that are relevant + * for reads, e.g. for enabling columnar cache on a read instance. Flags + * set on read instance may or may not be present on primary. * * - *
-     * Output only. The current serving state of the instance.
+     * This is a list of "key": "value" pairs.
+     * "key": The name of the flag. These flags are passed at instance setup time,
+     * so include both server options and system variables for Postgres. Flags are
+     * specified with underscores, not hyphens.
+     * "value": The value of the flag. Booleans are set to **on** for true
+     * and **off** for false. This field must be omitted if the flag
+     * doesn't take a value.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. + * map<string, string> database_flags = 13; */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder putAllDatabaseFlags(java.util.Map values) { + internalGetMutableDatabaseFlags().getMutableMap().putAll(values); + bitField0_ |= 0x00001000; + return this; } + + private com.google.cloud.alloydb.v1.Instance.Node writableNode_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> + writableNodeBuilder_; /** * * *
-     * Output only. The current serving state of the instance.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * @return Whether the writableNode field is set. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; + public boolean hasWritableNode() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-     * Output only. The current serving state of the instance.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The state. + * @return The writableNode. */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.State getState() { - com.google.cloud.alloydb.v1.Instance.State result = - com.google.cloud.alloydb.v1.Instance.State.forNumber(state_); - return result == null ? com.google.cloud.alloydb.v1.Instance.State.UNRECOGNIZED : result; + public com.google.cloud.alloydb.v1.Instance.Node getWritableNode() { + if (writableNodeBuilder_ == null) { + return writableNode_ == null + ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() + : writableNode_; + } else { + return writableNodeBuilder_.getMessage(); + } } /** * * *
-     * Output only. The current serving state of the instance.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The state to set. - * @return This builder for chaining. */ - public Builder setState(com.google.cloud.alloydb.v1.Instance.State value) { - if (value == null) { - throw new NullPointerException(); + public Builder setWritableNode(com.google.cloud.alloydb.v1.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writableNode_ = value; + } else { + writableNodeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; - state_ = value.getNumber(); + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -8694,57 +13282,74 @@ public Builder setState(com.google.cloud.alloydb.v1.Instance.State value) { * * *
-     * Output only. The current serving state of the instance.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); - state_ = 0; + public Builder setWritableNode( + com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { + if (writableNodeBuilder_ == null) { + writableNode_ = builderForValue.build(); + } else { + writableNodeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; onChanged(); return this; } - - private int instanceType_ = 0; /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for instanceType. */ - @java.lang.Override - public int getInstanceTypeValue() { - return instanceType_; + public Builder mergeWritableNode(com.google.cloud.alloydb.v1.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && writableNode_ != null + && writableNode_ != com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()) { + getWritableNodeBuilder().mergeFrom(value); + } else { + writableNode_ = value; + } + } else { + writableNodeBuilder_.mergeFrom(value); + } + if (writableNode_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; } /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for instanceType to set. - * @return This builder for chaining. */ - public Builder setInstanceTypeValue(int value) { - instanceType_ = value; - bitField0_ |= 0x00000100; + public Builder clearWritableNode() { + bitField0_ = (bitField0_ & ~0x00002000); + writableNode_ = null; + if (writableNodeBuilder_ != null) { + writableNodeBuilder_.dispose(); + writableNodeBuilder_ = null; + } onChanged(); return this; } @@ -8752,178 +13357,187 @@ public Builder setInstanceTypeValue(int value) { * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The instanceType. */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { - com.google.cloud.alloydb.v1.Instance.InstanceType result = - com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); - return result == null - ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED - : result; + public com.google.cloud.alloydb.v1.Instance.Node.Builder getWritableNodeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getWritableNodeFieldBuilder().getBuilder(); } /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The instanceType to set. - * @return This builder for chaining. */ - public Builder setInstanceType(com.google.cloud.alloydb.v1.Instance.InstanceType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getWritableNodeOrBuilder() { + if (writableNodeBuilder_ != null) { + return writableNodeBuilder_.getMessageOrBuilder(); + } else { + return writableNode_ == null + ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() + : writableNode_; } - bitField0_ |= 0x00000100; - instanceType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Required. The type of the instance. Specified at creation time.
+     * Output only. This is set for the read-write VM of the PRIMARY instance
+     * only.
      * 
* * - * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearInstanceType() { - bitField0_ = (bitField0_ & ~0x00000100); - instanceType_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> + getWritableNodeFieldBuilder() { + if (writableNodeBuilder_ == null) { + writableNodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder>( + getWritableNode(), getParentForChildren(), isClean()); + writableNode_ = null; + } + return writableNodeBuilder_; } - private com.google.cloud.alloydb.v1.Instance.MachineConfig machineConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.MachineConfig, - com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder> - machineConfigBuilder_; + private java.util.List nodes_ = + java.util.Collections.emptyList(); + + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> + nodesBuilder_; + /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * - * @return Whether the machineConfig field is set. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public boolean hasMachineConfig() { - return ((bitField0_ & 0x00000200) != 0); + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * - * @return The machineConfig. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.Instance.MachineConfig getMachineConfig() { - if (machineConfigBuilder_ == null) { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); } else { - return machineConfigBuilder_.getMessage(); + return nodesBuilder_.getCount(); } } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMachineConfig(com.google.cloud.alloydb.v1.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - machineConfig_ = value; + public com.google.cloud.alloydb.v1.Instance.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { - machineConfigBuilder_.setMessage(value); + return nodesBuilder_.getMessage(index); } - bitField0_ |= 0x00000200; - onChanged(); - return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMachineConfig( - com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder builderForValue) { - if (machineConfigBuilder_ == null) { - machineConfig_ = builderForValue.build(); + public Builder setNodes(int index, com.google.cloud.alloydb.v1.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); } else { - machineConfigBuilder_.setMessage(builderForValue.build()); + nodesBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000200; - onChanged(); return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeMachineConfig(com.google.cloud.alloydb.v1.Instance.MachineConfig value) { - if (machineConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && machineConfig_ != null - && machineConfig_ - != com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance()) { - getMachineConfigBuilder().mergeFrom(value); - } else { - machineConfig_ = value; - } - } else { - machineConfigBuilder_.mergeFrom(value); - } - if (machineConfig_ != null) { - bitField0_ |= 0x00000200; + public Builder setNodes( + int index, com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -8931,657 +13545,556 @@ public Builder mergeMachineConfig(com.google.cloud.alloydb.v1.Instance.MachineCo * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearMachineConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - machineConfig_ = null; - if (machineConfigBuilder_ != null) { - machineConfigBuilder_.dispose(); - machineConfigBuilder_ = null; + public Builder addNodes(com.google.cloud.alloydb.v1.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); } - onChanged(); return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
-     * 
- * - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - */ - public com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder getMachineConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getMachineConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder getMachineConfigOrBuilder() { - if (machineConfigBuilder_ != null) { - return machineConfigBuilder_.getMessageOrBuilder(); + public Builder addNodes(int index, com.google.cloud.alloydb.v1.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); } else { - return machineConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.MachineConfig.getDefaultInstance() - : machineConfig_; + nodesBuilder_.addMessage(index, value); } + return this; } /** * * *
-     * Configurations for the machines that host the underlying
-     * database engine.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.MachineConfig, - com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder> - getMachineConfigFieldBuilder() { - if (machineConfigBuilder_ == null) { - machineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.MachineConfig, - com.google.cloud.alloydb.v1.Instance.MachineConfig.Builder, - com.google.cloud.alloydb.v1.Instance.MachineConfigOrBuilder>( - getMachineConfig(), getParentForChildren(), isClean()); - machineConfig_ = null; + public Builder addNodes(com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); } - return machineConfigBuilder_; + return this; } - - private int availabilityType_ = 0; /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @return The enum numeric value on the wire for availabilityType. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public int getAvailabilityTypeValue() { - return availabilityType_; + public Builder addNodes( + int index, com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @param value The enum numeric value on the wire for availabilityType to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAvailabilityTypeValue(int value) { - availabilityType_ = value; - bitField0_ |= 0x00000400; - onChanged(); + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @return The availabilityType. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.AvailabilityType getAvailabilityType() { - com.google.cloud.alloydb.v1.Instance.AvailabilityType result = - com.google.cloud.alloydb.v1.Instance.AvailabilityType.forNumber(availabilityType_); - return result == null - ? com.google.cloud.alloydb.v1.Instance.AvailabilityType.UNRECOGNIZED - : result; + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @param value The availabilityType to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAvailabilityType( - com.google.cloud.alloydb.v1.Instance.AvailabilityType value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); } - bitField0_ |= 0x00000400; - availabilityType_ = value.getNumber(); - onChanged(); return this; } /** * * *
-     * Availability type of an Instance.
-     * If empty, defaults to REGIONAL for primary instances.
-     * For read pools, availability_type is always UNSPECIFIED. Instances in the
-     * read pools are evenly distributed across available zones within the region
-     * (i.e. read pools with more than one node will have a node in at
-     * least two zones).
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearAvailabilityType() { - bitField0_ = (bitField0_ & ~0x00000400); - availabilityType_ = 0; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.Node.Builder getNodesBuilder(int index) { + return getNodesFieldBuilder().getBuilder(index); } - - private java.lang.Object gceZone_ = ""; /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * string gce_zone = 12; - * - * @return The gceZone. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getGceZone() { - java.lang.Object ref = gceZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gceZone_ = s; - return s; + public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getNodesOrBuilder(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { - return (java.lang.String) ref; + return nodesBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * string gce_zone = 12; - * - * @return The bytes for gceZone. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getGceZoneBytes() { - java.lang.Object ref = gceZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gceZone_ = b; - return b; + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(nodes_); } } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * string gce_zone = 12; - * - * @param value The gceZone to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - gceZone_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()); } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * string gce_zone = 12; - * - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearGceZone() { - gceZone_ = getDefaultInstance().getGceZone(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.Node.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()); } /** * * *
-     * The Compute Engine zone that the instance should serve from, per
-     * https://cloud.google.com/compute/docs/regions-zones
-     * This can ONLY be specified for ZONAL instances.
-     * If present for a REGIONAL instance, an error will be thrown.
-     * If this is absent for a ZONAL instance, instance is created in a random
-     * zone with available capacity.
+     * Output only. List of available read-only VMs in this instance, including
+     * the standby for a PRIMARY instance.
      * 
* - * string gce_zone = 12; - * - * @param value The bytes for gceZone to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gceZone_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private com.google.protobuf.MapField databaseFlags_; - - private com.google.protobuf.MapField - internalGetDatabaseFlags() { - if (databaseFlags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - return databaseFlags_; + public java.util.List getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.MapField - internalGetMutableDatabaseFlags() { - if (databaseFlags_ == null) { - databaseFlags_ = - com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - if (!databaseFlags_.isMutable()) { - databaseFlags_ = databaseFlags_.copy(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.Node, + com.google.cloud.alloydb.v1.Instance.Node.Builder, + com.google.cloud.alloydb.v1.Instance.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + nodes_ = null; } - bitField0_ |= 0x00001000; - onChanged(); - return databaseFlags_; + return nodesBuilder_; } - public int getDatabaseFlagsCount() { - return internalGetDatabaseFlags().getMap().size(); - } + private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig queryInsightsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder> + queryInsightsConfigBuilder_; /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + * + * @return Whether the queryInsightsConfig field is set. */ - @java.lang.Override - public boolean containsDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetDatabaseFlags().getMap().containsKey(key); - } - /** Use {@link #getDatabaseFlagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDatabaseFlags() { - return getDatabaseFlagsMap(); + public boolean hasQueryInsightsConfig() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + * + * @return The queryInsightsConfig. */ - @java.lang.Override - public java.util.Map getDatabaseFlagsMap() { - return internalGetDatabaseFlags().getMap(); + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig + getQueryInsightsConfig() { + if (queryInsightsConfigBuilder_ == null) { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() + : queryInsightsConfig_; + } else { + return queryInsightsConfigBuilder_.getMessage(); + } } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsConfig_ = value; + } else { + queryInsightsConfigBuilder_.setMessage(value); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Configuration for query insights.
+     * 
* + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + */ + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder builderForValue) { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfig_ = builderForValue.build(); + } else { + queryInsightsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * + *
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * */ - @java.lang.Override - public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeQueryInsightsConfig( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && queryInsightsConfig_ != null + && queryInsightsConfig_ + != com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig + .getDefaultInstance()) { + getQueryInsightsConfigBuilder().mergeFrom(value); + } else { + queryInsightsConfig_ = value; + } + } else { + queryInsightsConfigBuilder_.mergeFrom(value); } - java.util.Map map = internalGetDatabaseFlags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (queryInsightsConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } - return map.get(key); - } - - public Builder clearDatabaseFlags() { - bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableDatabaseFlags().getMutableMap().clear(); return this; } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * */ - public Builder removeDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearQueryInsightsConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + queryInsightsConfig_ = null; + if (queryInsightsConfigBuilder_ != null) { + queryInsightsConfigBuilder_.dispose(); + queryInsightsConfigBuilder_ = null; } - internalGetMutableDatabaseFlags().getMutableMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableDatabaseFlags() { - bitField0_ |= 0x00001000; - return internalGetMutableDatabaseFlags().getMutableMap(); - } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Configuration for query insights.
+     * 
* + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * + */ + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder + getQueryInsightsConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getQueryInsightsConfigFieldBuilder().getBuilder(); + } + /** * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * + *
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * */ - public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder + getQueryInsightsConfigOrBuilder() { + if (queryInsightsConfigBuilder_ != null) { + return queryInsightsConfigBuilder_.getMessageOrBuilder(); + } else { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() + : queryInsightsConfig_; } - internalGetMutableDatabaseFlags().getMutableMap().put(key, value); - bitField0_ |= 0x00001000; - return this; } /** * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
-     *
-     *
-     * This is a list of "key": "value" pairs.
-     * "key": The name of the flag. These flags are passed at instance setup time,
-     * so include both server options and system variables for Postgres. Flags are
-     * specified with underscores, not hyphens.
-     * "value": The value of the flag. Booleans are set to **on** for true
-     * and **off** for false. This field must be omitted if the flag
-     * doesn't take a value.
+     * Configuration for query insights.
      * 
* - * map<string, string> database_flags = 13; + * + * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * */ - public Builder putAllDatabaseFlags(java.util.Map values) { - internalGetMutableDatabaseFlags().getMutableMap().putAll(values); - bitField0_ |= 0x00001000; - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder> + getQueryInsightsConfigFieldBuilder() { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>( + getQueryInsightsConfig(), getParentForChildren(), isClean()); + queryInsightsConfig_ = null; + } + return queryInsightsConfigBuilder_; } - private com.google.cloud.alloydb.v1.Instance.Node writableNode_; + private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> - writableNodeBuilder_; + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder> + readPoolConfigBuilder_; /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; * - * @return Whether the writableNode field is set. + * @return Whether the readPoolConfig field is set. */ - public boolean hasWritableNode() { - return ((bitField0_ & 0x00002000) != 0); + public boolean hasReadPoolConfig() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; * - * @return The writableNode. + * @return The readPoolConfig. */ - public com.google.cloud.alloydb.v1.Instance.Node getWritableNode() { - if (writableNodeBuilder_ == null) { - return writableNode_ == null - ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() - : writableNode_; + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getReadPoolConfig() { + if (readPoolConfigBuilder_ == null) { + return readPoolConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() + : readPoolConfig_; } else { - return writableNodeBuilder_.getMessage(); + return readPoolConfigBuilder_.getMessage(); } } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public Builder setWritableNode(com.google.cloud.alloydb.v1.Instance.Node value) { - if (writableNodeBuilder_ == null) { + public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { + if (readPoolConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - writableNode_ = value; + readPoolConfig_ = value; } else { - writableNodeBuilder_.setMessage(value); + readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -9589,22 +14102,20 @@ public Builder setWritableNode(com.google.cloud.alloydb.v1.Instance.Node value) * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public Builder setWritableNode( - com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { - if (writableNodeBuilder_ == null) { - writableNode_ = builderForValue.build(); + public Builder setReadPoolConfig( + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder builderForValue) { + if (readPoolConfigBuilder_ == null) { + readPoolConfig_ = builderForValue.build(); } else { - writableNodeBuilder_.setMessage(builderForValue.build()); + readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -9612,28 +14123,27 @@ public Builder setWritableNode( * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public Builder mergeWritableNode(com.google.cloud.alloydb.v1.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && writableNode_ != null - && writableNode_ != com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()) { - getWritableNodeBuilder().mergeFrom(value); + public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { + if (readPoolConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && readPoolConfig_ != null + && readPoolConfig_ + != com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) { + getReadPoolConfigBuilder().mergeFrom(value); } else { - writableNode_ = value; + readPoolConfig_ = value; } } else { - writableNodeBuilder_.mergeFrom(value); + readPoolConfigBuilder_.mergeFrom(value); } - if (writableNode_ != null) { - bitField0_ |= 0x00002000; + if (readPoolConfig_ != null) { + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -9642,20 +14152,18 @@ public Builder mergeWritableNode(com.google.cloud.alloydb.v1.Instance.Node value * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public Builder clearWritableNode() { - bitField0_ = (bitField0_ & ~0x00002000); - writableNode_ = null; - if (writableNodeBuilder_ != null) { - writableNodeBuilder_.dispose(); - writableNodeBuilder_ = null; + public Builder clearReadPoolConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + readPoolConfig_ = null; + if (readPoolConfigBuilder_ != null) { + readPoolConfigBuilder_.dispose(); + readPoolConfigBuilder_ = null; } onChanged(); return this; @@ -9664,744 +14172,718 @@ public Builder clearWritableNode() { * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public com.google.cloud.alloydb.v1.Instance.Node.Builder getWritableNodeBuilder() { - bitField0_ |= 0x00002000; + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { + bitField0_ |= 0x00010000; onChanged(); - return getWritableNodeFieldBuilder().getBuilder(); + return getReadPoolConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ - public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getWritableNodeOrBuilder() { - if (writableNodeBuilder_ != null) { - return writableNodeBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder + getReadPoolConfigOrBuilder() { + if (readPoolConfigBuilder_ != null) { + return readPoolConfigBuilder_.getMessageOrBuilder(); } else { - return writableNode_ == null - ? com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance() - : writableNode_; + return readPoolConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() + : readPoolConfig_; } } /** * * *
-     * Output only. This is set for the read-write VM of the PRIMARY instance
-     * only.
+     * Read pool instance configuration.
+     * This is required if the value of instanceType is READ_POOL.
      * 
* - * - * .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> - getWritableNodeFieldBuilder() { - if (writableNodeBuilder_ == null) { - writableNodeBuilder_ = + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder> + getReadPoolConfigFieldBuilder() { + if (readPoolConfigBuilder_ == null) { + readPoolConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder>( - getWritableNode(), getParentForChildren(), isClean()); - writableNode_ = null; - } - return writableNodeBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00004000; + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder>( + getReadPoolConfig(), getParentForChildren(), isClean()); + readPoolConfig_ = null; } + return readPoolConfigBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> - nodesBuilder_; - + private java.lang.Object ipAddress_ = ""; /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
-     * 
+ * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @return The ipAddress. */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; } else { - return nodesBuilder_.getCount(); + return (java.lang.String) ref; } } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.alloydb.v1.Instance.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
-     * 
+ * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @return The bytes for ipAddress. */ - public Builder setNodes(int index, com.google.cloud.alloydb.v1.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; } else { - nodesBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setNodes( - int index, com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); + * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ipAddress_ = value; + bitField0_ |= 0x00020000; + onChanged(); return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public Builder addNodes(com.google.cloud.alloydb.v1.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. */ - public Builder addNodes(int index, com.google.cloud.alloydb.v1.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00020000; + onChanged(); return this; } + + private java.lang.Object publicIpAddress_ = ""; /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
      * 
* * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @return The publicIpAddress. */ - public Builder addNodes(com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); + public java.lang.String getPublicIpAddress() { + java.lang.Object ref = publicIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicIpAddress_ = s; + return s; } else { - nodesBuilder_.addMessage(builderForValue.build()); + return (java.lang.String) ref; } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
      * 
* * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @return The bytes for publicIpAddress. */ - public Builder addNodes( - int index, com.google.cloud.alloydb.v1.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.ByteString getPublicIpAddressBytes() { + java.lang.Object ref = publicIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicIpAddress_ = b; + return b; } else { - nodesBuilder_.addMessage(index, builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
      * 
* * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param value The publicIpAddress to set. + * @return This builder for chaining. */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); + public Builder setPublicIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + publicIpAddress_ = value; + bitField0_ |= 0x00040000; + onChanged(); return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
      * 
* * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @return This builder for chaining. */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - nodesBuilder_.clear(); - } + public Builder clearPublicIpAddress() { + publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. The public IP addresses for the Instance. This is available
+     * ONLY when enable_public_ip is set. This is the connection endpoint for an
+     * end-user application.
      * 
* * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param value The bytes for publicIpAddress to set. + * @return This builder for chaining. */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); + public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + publicIpAddress_ = value; + bitField0_ |= 0x00040000; + onChanged(); return this; } + + private boolean reconciling_; /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Instance does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. */ - public com.google.cloud.alloydb.v1.Instance.Node.Builder getNodesBuilder(int index) { - return getNodesFieldBuilder().getBuilder(index); + @java.lang.Override + public boolean getReconciling() { + return reconciling_; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Instance does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1.Instance.NodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessageOrBuilder(index); - } + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
+     * Set to true if the current state of Instance does not match the user's
+     * intended state, and the service is actively updating the resource to
+     * reconcile them. This can happen due to user-triggered updates or
+     * system actions like failover or maintenance.
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00080000); + reconciling_ = false; + onChanged(); + return this; } + + private java.lang.Object etag_ = ""; /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 17; + * + * @return The etag. */ - public com.google.cloud.alloydb.v1.Instance.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()); + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 17; + * + * @return The bytes for etag. */ - public com.google.cloud.alloydb.v1.Instance.Node.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.alloydb.v1.Instance.Node.getDefaultInstance()); + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. List of available read-only VMs in this instance, including
-     * the standby for a PRIMARY instance.
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 17; + * + * @param value The etag to set. + * @return This builder for chaining. */ - public java.util.List getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.Node, - com.google.cloud.alloydb.v1.Instance.Node.Builder, - com.google.cloud.alloydb.v1.Instance.NodeOrBuilder>( - nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - nodes_ = null; + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return nodesBuilder_; + etag_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; } - - private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig queryInsightsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder> - queryInsightsConfigBuilder_; /** * * *
-     * Configuration for query insights.
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * string etag = 17; * - * @return Whether the queryInsightsConfig field is set. + * @return This builder for chaining. */ - public boolean hasQueryInsightsConfig() { - return ((bitField0_ & 0x00008000) != 0); + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; } /** * * *
-     * Configuration for query insights.
+     * For Resource freshness validation (https://google.aip.dev/154)
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * string etag = 17; * - * @return The queryInsightsConfig. + * @param value The bytes for etag to set. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig - getQueryInsightsConfig() { - if (queryInsightsConfigBuilder_ == null) { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() - : queryInsightsConfig_; - } else { - return queryInsightsConfigBuilder_.getMessage(); + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); } + bitField0_ |= 0x00200000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryInsightsConfig_ = value; - } else { - queryInsightsConfigBuilder_.setMessage(value); + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00008000; - onChanged(); - return this; + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder builderForValue) { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfig_ = builderForValue.build(); - } else { - queryInsightsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public Builder mergeQueryInsightsConfig( - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && queryInsightsConfig_ != null - && queryInsightsConfig_ - != com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig - .getDefaultInstance()) { - getQueryInsightsConfigBuilder().mergeFrom(value); - } else { - queryInsightsConfig_ = value; - } - } else { - queryInsightsConfigBuilder_.mergeFrom(value); - } - if (queryInsightsConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - return this; + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public Builder clearQueryInsightsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - queryInsightsConfig_ = null; - if (queryInsightsConfigBuilder_ != null) { - queryInsightsConfigBuilder_.dispose(); - queryInsightsConfigBuilder_ = null; + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00200000); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder - getQueryInsightsConfigBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getQueryInsightsConfigFieldBuilder().getBuilder(); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00200000; + return internalGetMutableAnnotations().getMutableMap(); } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder - getQueryInsightsConfigOrBuilder() { - if (queryInsightsConfigBuilder_ != null) { - return queryInsightsConfigBuilder_.getMessageOrBuilder(); - } else { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.getDefaultInstance() - : queryInsightsConfig_; + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00200000; + return this; } /** * * *
-     * Configuration for query insights.
+     * Annotations to allow client tools to store small amount of arbitrary data.
+     * This is distinct from labels.
+     * https://google.aip.dev/128
      * 
* - * - * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * + * map<string, string> annotations = 18; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder> - getQueryInsightsConfigFieldBuilder() { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>( - getQueryInsightsConfig(), getParentForChildren(), isClean()); - queryInsightsConfig_ = null; - } - return queryInsightsConfigBuilder_; + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00200000; + return this; } - private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; + private com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig clientConnectionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder> - readPoolConfigBuilder_; + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder> + clientConnectionConfigBuilder_; /** * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the readPoolConfig field is set. + * @return Whether the clientConnectionConfig field is set. */ - public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The readPoolConfig. + * @return The clientConnectionConfig. */ - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getReadPoolConfig() { - if (readPoolConfigBuilder_ == null) { - return readPoolConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() - : readPoolConfig_; + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getClientConnectionConfig() { + if (clientConnectionConfigBuilder_ == null) { + return clientConnectionConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; } else { - return readPoolConfigBuilder_.getMessage(); + return clientConnectionConfigBuilder_.getMessage(); } } /** * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { - if (readPoolConfigBuilder_ == null) { + public Builder setClientConnectionConfig( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - readPoolConfig_ = value; + clientConnectionConfig_ = value; } else { - readPoolConfigBuilder_.setMessage(value); + clientConnectionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10409,20 +14891,21 @@ public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolCo * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadPoolConfig( - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder builderForValue) { - if (readPoolConfigBuilder_ == null) { - readPoolConfig_ = builderForValue.build(); + public Builder setClientConnectionConfig( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder builderForValue) { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfig_ = builderForValue.build(); } else { - readPoolConfigBuilder_.setMessage(builderForValue.build()); + clientConnectionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10430,27 +14913,30 @@ public Builder setReadPoolConfig( * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { - if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && readPoolConfig_ != null - && readPoolConfig_ - != com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) { - getReadPoolConfigBuilder().mergeFrom(value); + public Builder mergeClientConnectionConfig( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && clientConnectionConfig_ != null + && clientConnectionConfig_ + != com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig + .getDefaultInstance()) { + getClientConnectionConfigBuilder().mergeFrom(value); } else { - readPoolConfig_ = value; + clientConnectionConfig_ = value; } } else { - readPoolConfigBuilder_.mergeFrom(value); + clientConnectionConfigBuilder_.mergeFrom(value); } - if (readPoolConfig_ != null) { - bitField0_ |= 0x00010000; + if (clientConnectionConfig_ != null) { + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -10459,18 +14945,19 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - readPoolConfig_ = null; - if (readPoolConfigBuilder_ != null) { - readPoolConfigBuilder_.dispose(); - readPoolConfigBuilder_ = null; + public Builder clearClientConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00400000); + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; } onChanged(); return this; @@ -10479,148 +14966,100 @@ public Builder clearReadPoolConfig() { * * *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
+     * Optional. Client connection specific configurations
      * 
* - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00010000; + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder + getClientConnectionConfigBuilder() { + bitField0_ |= 0x00400000; onChanged(); - return getReadPoolConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
-     * 
- * - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - */ - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder - getReadPoolConfigOrBuilder() { - if (readPoolConfigBuilder_ != null) { - return readPoolConfigBuilder_.getMessageOrBuilder(); - } else { - return readPoolConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance() - : readPoolConfig_; - } - } - /** - * - * - *
-     * Read pool instance configuration.
-     * This is required if the value of instanceType is READ_POOL.
-     * 
- * - * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder> - getReadPoolConfigFieldBuilder() { - if (readPoolConfigBuilder_ == null) { - readPoolConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder>( - getReadPoolConfig(), getParentForChildren(), isClean()); - readPoolConfig_ = null; - } - return readPoolConfigBuilder_; + return getClientConnectionConfigFieldBuilder().getBuilder(); } - - private java.lang.Object ipAddress_ = ""; /** * * *
-     * Output only. The IP address for the Instance.
-     * This is the connection endpoint for an end-user application.
+     * Optional. Client connection specific configurations
      * 
* - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The ipAddress. + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getIpAddress() { - java.lang.Object ref = ipAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipAddress_ = s; - return s; + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + if (clientConnectionConfigBuilder_ != null) { + return clientConnectionConfigBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return clientConnectionConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; } } /** * * *
-     * Output only. The IP address for the Instance.
-     * This is the connection endpoint for an end-user application.
+     * Optional. Client connection specific configurations
      * 
* - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for ipAddress. + * + * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getIpAddressBytes() { - java.lang.Object ref = ipAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder> + getClientConnectionConfigFieldBuilder() { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder>( + getClientConnectionConfig(), getParentForChildren(), isClean()); + clientConnectionConfig_ = null; } + return clientConnectionConfigBuilder_; } + + private boolean satisfiesPzs_; /** * * *
-     * Output only. The IP address for the Instance.
-     * This is the connection endpoint for an end-user application.
+     * Output only. Reserved for future use.
      * 
* - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The ipAddress to set. - * @return This builder for chaining. + * @return The satisfiesPzs. */ - public Builder setIpAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ipAddress_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; } /** * * *
-     * Output only. The IP address for the Instance.
-     * This is the connection endpoint for an end-user application.
+     * Output only. Reserved for future use.
      * 
* - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * @param value The satisfiesPzs to set. * @return This builder for chaining. */ - public Builder clearIpAddress() { - ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00020000); + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -10628,154 +15067,166 @@ public Builder clearIpAddress() { * * *
-     * Output only. The IP address for the Instance.
-     * This is the connection endpoint for an end-user application.
+     * Output only. Reserved for future use.
      * 
* - * string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ipAddress_ = value; - bitField0_ |= 0x00020000; + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00800000); + satisfiesPzs_ = false; onChanged(); return this; } - private boolean reconciling_; + private com.google.cloud.alloydb.v1.Instance.PscInstanceConfig pscInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder> + pscInstanceConfigBuilder_; /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Instance does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The reconciling. + * @return Whether the pscInstanceConfig field is set. */ - @java.lang.Override - public boolean getReconciling() { - return reconciling_; + public boolean hasPscInstanceConfig() { + return ((bitField0_ & 0x01000000) != 0); } /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Instance does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The reconciling to set. - * @return This builder for chaining. + * @return The pscInstanceConfig. */ - public Builder setReconciling(boolean value) { - - reconciling_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConfig() { + if (pscInstanceConfigBuilder_ == null) { + return pscInstanceConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance() + : pscInstanceConfig_; + } else { + return pscInstanceConfigBuilder_.getMessage(); + } } /** * * *
-     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
-     * Set to true if the current state of Instance does not match the user's
-     * intended state, and the service is actively updating the resource to
-     * reconcile them. This can happen due to user-triggered updates or
-     * system actions like failover or maintenance.
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00040000); - reconciling_ = false; + public Builder setPscInstanceConfig( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig value) { + if (pscInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInstanceConfig_ = value; + } else { + pscInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; onChanged(); return this; } - - private java.lang.Object etag_ = ""; /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * string etag = 17; - * - * @return The etag. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + public Builder setPscInstanceConfig( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder builderForValue) { + if (pscInstanceConfigBuilder_ == null) { + pscInstanceConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x01000000; + onChanged(); + return this; } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * string etag = 17; - * - * @return The bytes for etag. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; + public Builder mergePscInstanceConfig( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig value) { + if (pscInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && pscInstanceConfig_ != null + && pscInstanceConfig_ + != com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) { + getPscInstanceConfigBuilder().mergeFrom(value); + } else { + pscInstanceConfig_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + pscInstanceConfigBuilder_.mergeFrom(value); + } + if (pscInstanceConfig_ != null) { + bitField0_ |= 0x01000000; + onChanged(); } + return this; } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * string etag = 17; - * - * @param value The etag to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearPscInstanceConfig() { + bitField0_ = (bitField0_ & ~0x01000000); + pscInstanceConfig_ = null; + if (pscInstanceConfigBuilder_ != null) { + pscInstanceConfigBuilder_.dispose(); + pscInstanceConfigBuilder_ = null; } - etag_ = value; - bitField0_ |= 0x00080000; onChanged(); return this; } @@ -10783,363 +15234,404 @@ public Builder setEtag(java.lang.String value) { * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * string etag = 17; - * - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00080000); + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder + getPscInstanceConfigBuilder() { + bitField0_ |= 0x01000000; onChanged(); - return this; + return getPscInstanceConfigFieldBuilder().getBuilder(); } /** * * *
-     * For Resource freshness validation (https://google.aip.dev/154)
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
      * 
* - * string etag = 17; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - - private com.google.protobuf.MapField annotations_; - - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder + getPscInstanceConfigOrBuilder() { + if (pscInstanceConfigBuilder_ != null) { + return pscInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return pscInstanceConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance() + : pscInstanceConfig_; } - return annotations_; } - - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); + /** + * + * + *
+     * Optional. The configuration for Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder> + getPscInstanceConfigFieldBuilder() { + if (pscInstanceConfigBuilder_ == null) { + pscInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder>( + getPscInstanceConfig(), getParentForChildren(), isClean()); + pscInstanceConfig_ = null; } - bitField0_ |= 0x00100000; - onChanged(); - return annotations_; + return pscInstanceConfigBuilder_; } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); + private com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Optional. Instance-level network configuration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x02000000) != 0); } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); + public Builder setNetworkConfig( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setNetworkConfig( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); } - java.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x02000000; + onChanged(); + return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeNetworkConfig( + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && networkConfig_ != null + && networkConfig_ + != com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig + .getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (networkConfig_ != null) { + bitField0_ |= 0x02000000; + onChanged(); } - return map.get(key); - } - - public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00100000); - internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x02000000); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; } - internalGetMutableAnnotations().getMutableMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00100000; - return internalGetMutableAnnotations().getMutableMap(); + /** + * + * + *
+     * Optional. Instance-level network configuration.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder + getNetworkConfigBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.getDefaultInstance() + : networkConfig_; } - internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00100000; - return this; } /** * * *
-     * Annotations to allow client tools to store small amount of arbitrary data.
-     * This is distinct from labels.
-     * https://google.aip.dev/128
+     * Optional. Instance-level network configuration.
      * 
* - * map<string, string> annotations = 18; + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00100000; - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder, + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; } - private com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig clientConnectionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder> - clientConnectionConfigBuilder_; + private com.google.protobuf.LazyStringArrayList outboundPublicIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOutboundPublicIpAddressesIsMutable() { + if (!outboundPublicIpAddresses_.isModifiable()) { + outboundPublicIpAddresses_ = + new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); + } + bitField0_ |= 0x04000000; + } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @return Whether the clientConnectionConfig field is set. + * @return A list containing the outboundPublicIpAddresses. */ - public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00200000) != 0); + public com.google.protobuf.ProtocolStringList getOutboundPublicIpAddressesList() { + outboundPublicIpAddresses_.makeImmutable(); + return outboundPublicIpAddresses_; } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @return The clientConnectionConfig. + * @return The count of outboundPublicIpAddresses. */ - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getClientConnectionConfig() { - if (clientConnectionConfigBuilder_ == null) { - return clientConnectionConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() - : clientConnectionConfig_; - } else { - return clientConnectionConfigBuilder_.getMessage(); - } + public int getOutboundPublicIpAddressesCount() { + return outboundPublicIpAddresses_.size(); } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param index The index of the element to return. + * @return The outboundPublicIpAddresses at the given index. */ - public Builder setClientConnectionConfig( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig value) { - if (clientConnectionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientConnectionConfig_ = value; - } else { - clientConnectionConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; + public java.lang.String getOutboundPublicIpAddresses(int index) { + return outboundPublicIpAddresses_.get(index); } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param index The index of the value to return. + * @return The bytes of the outboundPublicIpAddresses at the given index. */ - public Builder setClientConnectionConfig( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder builderForValue) { - if (clientConnectionConfigBuilder_ == null) { - clientConnectionConfig_ = builderForValue.build(); - } else { - clientConnectionConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; + public com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index) { + return outboundPublicIpAddresses_.getByteString(index); } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param index The index to set the value at. + * @param value The outboundPublicIpAddresses to set. + * @return This builder for chaining. */ - public Builder mergeClientConnectionConfig( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig value) { - if (clientConnectionConfigBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && clientConnectionConfig_ != null - && clientConnectionConfig_ - != com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig - .getDefaultInstance()) { - getClientConnectionConfigBuilder().mergeFrom(value); - } else { - clientConnectionConfig_ = value; - } - } else { - clientConnectionConfigBuilder_.mergeFrom(value); - } - if (clientConnectionConfig_ != null) { - bitField0_ |= 0x00200000; - onChanged(); + public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureOutboundPublicIpAddressesIsMutable(); + outboundPublicIpAddresses_.set(index, value); + bitField0_ |= 0x04000000; + onChanged(); return this; } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param value The outboundPublicIpAddresses to add. + * @return This builder for chaining. */ - public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x00200000); - clientConnectionConfig_ = null; - if (clientConnectionConfigBuilder_ != null) { - clientConnectionConfigBuilder_.dispose(); - clientConnectionConfigBuilder_ = null; + public Builder addOutboundPublicIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureOutboundPublicIpAddressesIsMutable(); + outboundPublicIpAddresses_.add(value); + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -11147,66 +15639,67 @@ public Builder clearClientConnectionConfig() { * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param values The outboundPublicIpAddresses to add. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder - getClientConnectionConfigBuilder() { - bitField0_ |= 0x00200000; + public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { + ensureOutboundPublicIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); + bitField0_ |= 0x04000000; onChanged(); - return getClientConnectionConfigFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder - getClientConnectionConfigOrBuilder() { - if (clientConnectionConfigBuilder_ != null) { - return clientConnectionConfigBuilder_.getMessageOrBuilder(); - } else { - return clientConnectionConfig_ == null - ? com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance() - : clientConnectionConfig_; - } + public Builder clearOutboundPublicIpAddresses() { + outboundPublicIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x04000000); + ; + onChanged(); + return this; } /** * * *
-     * Optional. Client connection specific configurations
+     * Output only. All outbound public IP addresses configured for the instance.
      * 
* * - * .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * + * + * @param value The bytes of the outboundPublicIpAddresses to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder> - getClientConnectionConfigFieldBuilder() { - if (clientConnectionConfigBuilder_ == null) { - clientConnectionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder>( - getClientConnectionConfig(), getParentForChildren(), isClean()); - clientConnectionConfig_ = null; + public Builder addOutboundPublicIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return clientConnectionConfigBuilder_; + checkByteStringIsUtf8(value); + ensureOutboundPublicIpAddressesIsMutable(); + outboundPublicIpAddresses_.add(value); + bitField0_ |= 0x04000000; + onChanged(); + return this; } @java.lang.Override diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java index c948d5ef929e..6616c34ca7fc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceOrBuilder.java @@ -793,6 +793,39 @@ java.lang.String getDatabaseFlagsOrDefault( */ com.google.protobuf.ByteString getIpAddressBytes(); + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The publicIpAddress. + */ + java.lang.String getPublicIpAddress(); + /** + * + * + *
+   * Output only. The public IP addresses for the Instance. This is available
+   * ONLY when enable_public_ip is set. This is the connection endpoint for an
+   * end-user application.
+   * 
+ * + * + * string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for publicIpAddress. + */ + com.google.protobuf.ByteString getPublicIpAddressBytes(); + /** * * @@ -944,4 +977,161 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder getClientConnectionConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInstanceConfig field is set. + */ + boolean hasPscInstanceConfig(); + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInstanceConfig. + */ + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConfig(); + /** + * + * + *
+   * Optional. The configuration for Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder getPscInstanceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig getNetworkConfig(); + /** + * + * + *
+   * Optional. Instance-level network configuration.
+   * 
+ * + * + * .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return A list containing the outboundPublicIpAddresses. + */ + java.util.List getOutboundPublicIpAddressesList(); + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The count of outboundPublicIpAddresses. + */ + int getOutboundPublicIpAddressesCount(); + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param index The index of the element to return. + * @return The outboundPublicIpAddresses at the given index. + */ + java.lang.String getOutboundPublicIpAddresses(int index); + /** + * + * + *
+   * Output only. All outbound public IP addresses configured for the instance.
+   * 
+ * + * + * repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the outboundPublicIpAddresses at the given index. + */ + com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequest.java new file mode 100644 index 000000000000..30f38223037a --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequest.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Message for requesting list of Databases.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ListDatabasesRequest} + */ +public final class ListDatabasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ListDatabasesRequest) + ListDatabasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatabasesRequest.newBuilder() to construct. + private ListDatabasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabasesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabasesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ListDatabasesRequest.class, + com.google.cloud.alloydb.v1.ListDatabasesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value for ListDatabasesRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Parent value for ListDatabasesRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of databases to return. The service may return
+   * fewer than this value. If unspecified, 2000 is the default page_size. The
+   * max value of page_size will be 4000, values above max will be coerced to
+   * max.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDatabases` call.
+   * This should be provided to retrieve the subsequent page.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDatabases` call.
+   * This should be provided to retrieve the subsequent page.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filtering results.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Filtering results.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ListDatabasesRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ListDatabasesRequest other = + (com.google.cloud.alloydb.v1.ListDatabasesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.ListDatabasesRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for requesting list of Databases.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ListDatabasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ListDatabasesRequest) + com.google.cloud.alloydb.v1.ListDatabasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ListDatabasesRequest.class, + com.google.cloud.alloydb.v1.ListDatabasesRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ListDatabasesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ListDatabasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesRequest build() { + com.google.cloud.alloydb.v1.ListDatabasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesRequest buildPartial() { + com.google.cloud.alloydb.v1.ListDatabasesRequest result = + new com.google.cloud.alloydb.v1.ListDatabasesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ListDatabasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ListDatabasesRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.ListDatabasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ListDatabasesRequest other) { + if (other == com.google.cloud.alloydb.v1.ListDatabasesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Parent value for ListDatabasesRequest.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListDatabasesRequest.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListDatabasesRequest.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Parent value for ListDatabasesRequest.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Parent value for ListDatabasesRequest.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of databases to return. The service may return
+     * fewer than this value. If unspecified, 2000 is the default page_size. The
+     * max value of page_size will be 4000, values above max will be coerced to
+     * max.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of databases to return. The service may return
+     * fewer than this value. If unspecified, 2000 is the default page_size. The
+     * max value of page_size will be 4000, values above max will be coerced to
+     * max.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of databases to return. The service may return
+     * fewer than this value. If unspecified, 2000 is the default page_size. The
+     * max value of page_size will be 4000, values above max will be coerced to
+     * max.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous `ListDatabases` call.
+     * This should be provided to retrieve the subsequent page.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListDatabases` call.
+     * This should be provided to retrieve the subsequent page.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListDatabases` call.
+     * This should be provided to retrieve the subsequent page.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListDatabases` call.
+     * This should be provided to retrieve the subsequent page.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListDatabases` call.
+     * This should be provided to retrieve the subsequent page.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. Filtering results.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Filtering results.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Filtering results.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering results.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering results.
+     * This field is currently not supported, its value will be ignored if passed.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ListDatabasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ListDatabasesRequest) + private static final com.google.cloud.alloydb.v1.ListDatabasesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ListDatabasesRequest(); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabasesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequestOrBuilder.java new file mode 100644 index 000000000000..f8c5b2acca80 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ListDatabasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ListDatabasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListDatabasesRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value for ListDatabasesRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of databases to return. The service may return
+   * fewer than this value. If unspecified, 2000 is the default page_size. The
+   * max value of page_size will be 4000, values above max will be coerced to
+   * max.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDatabases` call.
+   * This should be provided to retrieve the subsequent page.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous `ListDatabases` call.
+   * This should be provided to retrieve the subsequent page.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filtering results.
+   * This field is currently not supported, its value will be ignored if passed.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponse.java new file mode 100644 index 000000000000..cf69430c5bb1 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Message for response to listing Databases.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ListDatabasesResponse} + */ +public final class ListDatabasesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ListDatabasesResponse) + ListDatabasesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatabasesResponse.newBuilder() to construct. + private ListDatabasesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabasesResponse() { + databases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabasesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ListDatabasesResponse.class, + com.google.cloud.alloydb.v1.ListDatabasesResponse.Builder.class); + } + + public static final int DATABASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List databases_; + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + @java.lang.Override + public java.util.List getDatabasesList() { + return databases_; + } + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + @java.lang.Override + public java.util.List + getDatabasesOrBuilderList() { + return databases_; + } + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + @java.lang.Override + public int getDatabasesCount() { + return databases_.size(); + } + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Database getDatabases(int index) { + return databases_.get(index); + } + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + return databases_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying the next page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying the next page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < databases_.size(); i++) { + output.writeMessage(1, databases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < databases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, databases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ListDatabasesResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ListDatabasesResponse other = + (com.google.cloud.alloydb.v1.ListDatabasesResponse) obj; + + if (!getDatabasesList().equals(other.getDatabasesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDatabasesCount() > 0) { + hash = (37 * hash) + DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getDatabasesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.ListDatabasesResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to listing Databases.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ListDatabasesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ListDatabasesResponse) + com.google.cloud.alloydb.v1.ListDatabasesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ListDatabasesResponse.class, + com.google.cloud.alloydb.v1.ListDatabasesResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ListDatabasesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (databasesBuilder_ == null) { + databases_ = java.util.Collections.emptyList(); + } else { + databases_ = null; + databasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ListDatabasesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesResponse build() { + com.google.cloud.alloydb.v1.ListDatabasesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesResponse buildPartial() { + com.google.cloud.alloydb.v1.ListDatabasesResponse result = + new com.google.cloud.alloydb.v1.ListDatabasesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.ListDatabasesResponse result) { + if (databasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + databases_ = java.util.Collections.unmodifiableList(databases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.databases_ = databases_; + } else { + result.databases_ = databasesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ListDatabasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ListDatabasesResponse) { + return mergeFrom((com.google.cloud.alloydb.v1.ListDatabasesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ListDatabasesResponse other) { + if (other == com.google.cloud.alloydb.v1.ListDatabasesResponse.getDefaultInstance()) + return this; + if (databasesBuilder_ == null) { + if (!other.databases_.isEmpty()) { + if (databases_.isEmpty()) { + databases_ = other.databases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatabasesIsMutable(); + databases_.addAll(other.databases_); + } + onChanged(); + } + } else { + if (!other.databases_.isEmpty()) { + if (databasesBuilder_.isEmpty()) { + databasesBuilder_.dispose(); + databasesBuilder_ = null; + databases_ = other.databases_; + bitField0_ = (bitField0_ & ~0x00000001); + databasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatabasesFieldBuilder() + : null; + } else { + databasesBuilder_.addAllMessages(other.databases_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.Database m = + input.readMessage( + com.google.cloud.alloydb.v1.Database.parser(), extensionRegistry); + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(m); + } else { + databasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List databases_ = + java.util.Collections.emptyList(); + + private void ensureDatabasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + databases_ = new java.util.ArrayList(databases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Database, + com.google.cloud.alloydb.v1.Database.Builder, + com.google.cloud.alloydb.v1.DatabaseOrBuilder> + databasesBuilder_; + + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public java.util.List getDatabasesList() { + if (databasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(databases_); + } else { + return databasesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public int getDatabasesCount() { + if (databasesBuilder_ == null) { + return databases_.size(); + } else { + return databasesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public com.google.cloud.alloydb.v1.Database getDatabases(int index) { + if (databasesBuilder_ == null) { + return databases_.get(index); + } else { + return databasesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder setDatabases(int index, com.google.cloud.alloydb.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.set(index, value); + onChanged(); + } else { + databasesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder setDatabases( + int index, com.google.cloud.alloydb.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.set(index, builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder addDatabases(com.google.cloud.alloydb.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.add(value); + onChanged(); + } else { + databasesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder addDatabases(int index, com.google.cloud.alloydb.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.add(index, value); + onChanged(); + } else { + databasesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder addDatabases(com.google.cloud.alloydb.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder addDatabases( + int index, com.google.cloud.alloydb.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(index, builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder addAllDatabases( + java.lang.Iterable values) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databases_); + onChanged(); + } else { + databasesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder clearDatabases() { + if (databasesBuilder_ == null) { + databases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + databasesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public Builder removeDatabases(int index) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.remove(index); + onChanged(); + } else { + databasesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public com.google.cloud.alloydb.v1.Database.Builder getDatabasesBuilder(int index) { + return getDatabasesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public com.google.cloud.alloydb.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + if (databasesBuilder_ == null) { + return databases_.get(index); + } else { + return databasesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public java.util.List + getDatabasesOrBuilderList() { + if (databasesBuilder_ != null) { + return databasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(databases_); + } + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public com.google.cloud.alloydb.v1.Database.Builder addDatabasesBuilder() { + return getDatabasesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.Database.getDefaultInstance()); + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public com.google.cloud.alloydb.v1.Database.Builder addDatabasesBuilder(int index) { + return getDatabasesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.Database.getDefaultInstance()); + } + /** + * + * + *
+     * The list of databases
+     * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + public java.util.List getDatabasesBuilderList() { + return getDatabasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Database, + com.google.cloud.alloydb.v1.Database.Builder, + com.google.cloud.alloydb.v1.DatabaseOrBuilder> + getDatabasesFieldBuilder() { + if (databasesBuilder_ == null) { + databasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Database, + com.google.cloud.alloydb.v1.Database.Builder, + com.google.cloud.alloydb.v1.DatabaseOrBuilder>( + databases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + databases_ = null; + } + return databasesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying the next page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying the next page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying the next page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying the next page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying the next page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ListDatabasesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ListDatabasesResponse) + private static final com.google.cloud.alloydb.v1.ListDatabasesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ListDatabasesResponse(); + } + + public static com.google.cloud.alloydb.v1.ListDatabasesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabasesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ListDatabasesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponseOrBuilder.java new file mode 100644 index 000000000000..0674ed8b7756 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListDatabasesResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ListDatabasesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ListDatabasesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + java.util.List getDatabasesList(); + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + com.google.cloud.alloydb.v1.Database getDatabases(int index); + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + int getDatabasesCount(); + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + java.util.List + getDatabasesOrBuilderList(); + /** + * + * + *
+   * The list of databases
+   * 
+ * + * repeated .google.cloud.alloydb.v1.Database databases = 1; + */ + com.google.cloud.alloydb.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying the next page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying the next page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceSchedule.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceSchedule.java new file mode 100644 index 000000000000..4436b3f7560b --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceSchedule.java @@ -0,0 +1,733 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * MaintenanceSchedule stores the maintenance schedule generated from
+ * the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if
+ * MaintenanceWindow is set, and if there is no conflicting DenyPeriod.
+ * The schedule is cleared once the update takes place. This field cannot be
+ * manually changed; modify the MaintenanceUpdatePolicy instead.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceSchedule} + */ +public final class MaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.MaintenanceSchedule) + MaintenanceScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceSchedule.newBuilder() to construct. + private MaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceSchedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceSchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceSchedule.class, + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.MaintenanceSchedule)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.MaintenanceSchedule other = + (com.google.cloud.alloydb.v1.MaintenanceSchedule) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.MaintenanceSchedule 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MaintenanceSchedule stores the maintenance schedule generated from
+   * the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if
+   * MaintenanceWindow is set, and if there is no conflicting DenyPeriod.
+   * The schedule is cleared once the update takes place. This field cannot be
+   * manually changed; modify the MaintenanceUpdatePolicy instead.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceSchedule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.MaintenanceSchedule) + com.google.cloud.alloydb.v1.MaintenanceScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceSchedule.class, + com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.MaintenanceSchedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceSchedule getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceSchedule build() { + com.google.cloud.alloydb.v1.MaintenanceSchedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceSchedule buildPartial() { + com.google.cloud.alloydb.v1.MaintenanceSchedule result = + new com.google.cloud.alloydb.v1.MaintenanceSchedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.MaintenanceSchedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.MaintenanceSchedule) { + return mergeFrom((com.google.cloud.alloydb.v1.MaintenanceSchedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.MaintenanceSchedule other) { + if (other == com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. The scheduled start time for the maintenance.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.MaintenanceSchedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.MaintenanceSchedule) + private static final com.google.cloud.alloydb.v1.MaintenanceSchedule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.MaintenanceSchedule(); + } + + public static com.google.cloud.alloydb.v1.MaintenanceSchedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceSchedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceScheduleOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceScheduleOrBuilder.java new file mode 100644 index 000000000000..970b71ac9fe2 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceScheduleOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface MaintenanceScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.MaintenanceSchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. The scheduled start time for the maintenance.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicy.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicy.java new file mode 100644 index 000000000000..08261e68602c --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicy.java @@ -0,0 +1,1963 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * MaintenanceUpdatePolicy defines the policy for system updates.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceUpdatePolicy} + */ +public final class MaintenanceUpdatePolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.MaintenanceUpdatePolicy) + MaintenanceUpdatePolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceUpdatePolicy.newBuilder() to construct. + private MaintenanceUpdatePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceUpdatePolicy() { + maintenanceWindows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceUpdatePolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.class, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder.class); + } + + public interface MaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+     * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + int getDayValue(); + /** + * + * + *
+     * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+     * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + com.google.type.DayOfWeek getDay(); + + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + } + /** + * + * + *
+   * MaintenanceWindow specifies a preferred day and time for maintenance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow} + */ + public static final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) + MaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceWindow() { + day_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceWindow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.class, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder.class); + } + + private int bitField0_; + public static final int DAY_FIELD_NUMBER = 1; + private int day_ = 0; + /** + * + * + *
+     * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+     * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
+     * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+     * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
+     * Preferred time to start the maintenance operation on the specified day.
+     * Maintenance will start within 1 hour of this time.
+     * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + output.writeEnum(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow other = + (com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) obj; + + if (day_ != other.day_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DAY_FIELD_NUMBER; + hash = (53 * hash) + day_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * MaintenanceWindow specifies a preferred day and time for maintenance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.class, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + day_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow build() { + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow buildPartial() { + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow result = + new com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.day_ = day_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) { + return mergeFrom( + (com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow other) { + if (other + == com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + .getDefaultInstance()) return this; + if (other.day_ != 0) { + setDayValue(other.getDayValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + day_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().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 int day_ = 0; + /** + * + * + *
+       * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+       * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
+       * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+       * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @param value The enum numeric value on the wire for day to set. + * @return This builder for chaining. + */ + public Builder setDayValue(int value) { + day_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+       * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + /** + * + * + *
+       * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+       * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @param value The day to set. + * @return This builder for chaining. + */ + public Builder setDay(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + day_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
+       * 
+ * + * .google.type.DayOfWeek day = 1; + * + * @return This builder for chaining. + */ + public Builder clearDay() { + bitField0_ = (bitField0_ & ~0x00000001); + day_ = 0; + onChanged(); + return this; + } + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+       * Preferred time to start the maintenance operation on the specified day.
+       * Maintenance will start within 1 hour of this time.
+       * 
+ * + * .google.type.TimeOfDay start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow) + private static final com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow(); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int MAINTENANCE_WINDOWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + maintenanceWindows_; + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + @java.lang.Override + public java.util.List + getMaintenanceWindowsList() { + return maintenanceWindows_; + } + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> + getMaintenanceWindowsOrBuilderList() { + return maintenanceWindows_; + } + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + @java.lang.Override + public int getMaintenanceWindowsCount() { + return maintenanceWindows_.size(); + } + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + getMaintenanceWindows(int index) { + return maintenanceWindows_.get(index); + } + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder + getMaintenanceWindowsOrBuilder(int index) { + return maintenanceWindows_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < maintenanceWindows_.size(); i++) { + output.writeMessage(1, maintenanceWindows_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < maintenanceWindows_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, maintenanceWindows_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy other = + (com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy) obj; + + if (!getMaintenanceWindowsList().equals(other.getMaintenanceWindowsList())) 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 (getMaintenanceWindowsCount() > 0) { + hash = (37 * hash) + MAINTENANCE_WINDOWS_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceWindowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MaintenanceUpdatePolicy defines the policy for system updates.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.MaintenanceUpdatePolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.MaintenanceUpdatePolicy) + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.class, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (maintenanceWindowsBuilder_ == null) { + maintenanceWindows_ = java.util.Collections.emptyList(); + } else { + maintenanceWindows_ = null; + maintenanceWindowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy build() { + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy buildPartial() { + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy result = + new com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy result) { + if (maintenanceWindowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + maintenanceWindows_ = java.util.Collections.unmodifiableList(maintenanceWindows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.maintenanceWindows_ = maintenanceWindows_; + } else { + result.maintenanceWindows_ = maintenanceWindowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy) { + return mergeFrom((com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy other) { + if (other == com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance()) + return this; + if (maintenanceWindowsBuilder_ == null) { + if (!other.maintenanceWindows_.isEmpty()) { + if (maintenanceWindows_.isEmpty()) { + maintenanceWindows_ = other.maintenanceWindows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.addAll(other.maintenanceWindows_); + } + onChanged(); + } + } else { + if (!other.maintenanceWindows_.isEmpty()) { + if (maintenanceWindowsBuilder_.isEmpty()) { + maintenanceWindowsBuilder_.dispose(); + maintenanceWindowsBuilder_ = null; + maintenanceWindows_ = other.maintenanceWindows_; + bitField0_ = (bitField0_ & ~0x00000001); + maintenanceWindowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMaintenanceWindowsFieldBuilder() + : null; + } else { + maintenanceWindowsBuilder_.addAllMessages(other.maintenanceWindows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow m = + input.readMessage( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + .parser(), + extensionRegistry); + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.add(m); + } else { + maintenanceWindowsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + maintenanceWindows_ = java.util.Collections.emptyList(); + + private void ensureMaintenanceWindowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + maintenanceWindows_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow>( + maintenanceWindows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> + maintenanceWindowsBuilder_; + + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public java.util.List + getMaintenanceWindowsList() { + if (maintenanceWindowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(maintenanceWindows_); + } else { + return maintenanceWindowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public int getMaintenanceWindowsCount() { + if (maintenanceWindowsBuilder_ == null) { + return maintenanceWindows_.size(); + } else { + return maintenanceWindowsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + getMaintenanceWindows(int index) { + if (maintenanceWindowsBuilder_ == null) { + return maintenanceWindows_.get(index); + } else { + return maintenanceWindowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder setMaintenanceWindows( + int index, com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow value) { + if (maintenanceWindowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.set(index, value); + onChanged(); + } else { + maintenanceWindowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder setMaintenanceWindows( + int index, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + builderForValue) { + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.set(index, builderForValue.build()); + onChanged(); + } else { + maintenanceWindowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder addMaintenanceWindows( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow value) { + if (maintenanceWindowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.add(value); + onChanged(); + } else { + maintenanceWindowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder addMaintenanceWindows( + int index, com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow value) { + if (maintenanceWindowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.add(index, value); + onChanged(); + } else { + maintenanceWindowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder addMaintenanceWindows( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + builderForValue) { + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.add(builderForValue.build()); + onChanged(); + } else { + maintenanceWindowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder addMaintenanceWindows( + int index, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + builderForValue) { + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.add(index, builderForValue.build()); + onChanged(); + } else { + maintenanceWindowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder addAllMaintenanceWindows( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow> + values) { + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, maintenanceWindows_); + onChanged(); + } else { + maintenanceWindowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder clearMaintenanceWindows() { + if (maintenanceWindowsBuilder_ == null) { + maintenanceWindows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + maintenanceWindowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public Builder removeMaintenanceWindows(int index) { + if (maintenanceWindowsBuilder_ == null) { + ensureMaintenanceWindowsIsMutable(); + maintenanceWindows_.remove(index); + onChanged(); + } else { + maintenanceWindowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + getMaintenanceWindowsBuilder(int index) { + return getMaintenanceWindowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder + getMaintenanceWindowsOrBuilder(int index) { + if (maintenanceWindowsBuilder_ == null) { + return maintenanceWindows_.get(index); + } else { + return maintenanceWindowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> + getMaintenanceWindowsOrBuilderList() { + if (maintenanceWindowsBuilder_ != null) { + return maintenanceWindowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(maintenanceWindows_); + } + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + addMaintenanceWindowsBuilder() { + return getMaintenanceWindowsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder + addMaintenanceWindowsBuilder(int index) { + return getMaintenanceWindowsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
+     * Preferred windows to perform maintenance. Currently limited to 1.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder> + getMaintenanceWindowsBuilderList() { + return getMaintenanceWindowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> + getMaintenanceWindowsFieldBuilder() { + if (maintenanceWindowsBuilder_ == null) { + maintenanceWindowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow.Builder, + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder>( + maintenanceWindows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + maintenanceWindows_ = null; + } + return maintenanceWindowsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.MaintenanceUpdatePolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.MaintenanceUpdatePolicy) + private static final com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy(); + } + + public static com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceUpdatePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicyOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicyOrBuilder.java new file mode 100644 index 000000000000..3f17ddaaa5f7 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/MaintenanceUpdatePolicyOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface MaintenanceUpdatePolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.MaintenanceUpdatePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + java.util.List + getMaintenanceWindowsList(); + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow getMaintenanceWindows( + int index); + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + int getMaintenanceWindowsCount(); + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + java.util.List< + ? extends com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> + getMaintenanceWindowsOrBuilderList(); + /** + * + * + *
+   * Preferred windows to perform maintenance. Currently limited to 1.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; + * + */ + com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder + getMaintenanceWindowsOrBuilder(int index); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequest.java index fe59f52d45f5..68c6bb580395 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequest.java @@ -131,9 +131,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
@@ -166,9 +166,9 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
@@ -258,8 +258,9 @@ public com.google.protobuf.ByteString getEtagBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -810,9 +811,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
@@ -844,9 +845,9 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
@@ -878,9 +879,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
@@ -911,9 +912,9 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
@@ -940,9 +941,9 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
@@ -1091,8 +1092,9 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1107,8 +1109,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1127,8 +1130,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the delete.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequestOrBuilder.java index 7cca0165e50f..20f6b1aa5a45 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/PromoteClusterRequestOrBuilder.java @@ -60,9 +60,9 @@ public interface PromoteClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
@@ -84,9 +84,9 @@ public interface PromoteClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
@@ -137,8 +137,9 @@ public interface PromoteClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the delete.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java index 37af564ad082..15609c131e95 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java @@ -84,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_ContinuousBackupSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_ContinuousBackupSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Cluster_PrimaryConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Cluster_PrimaryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -132,6 +156,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -164,6 +200,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Backup_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Backup_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -180,6 +220,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_User_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Database_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Database_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -191,283 +235,346 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\'google/cloud/alloydb/v1/resources.prot" + "o\022\027google.cloud.alloydb.v1\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032\036google/protobuf/duration.proto\032\037" - + "google/protobuf/timestamp.proto\032\036google/" - + "protobuf/wrappers.proto\032\033google/type/day" - + "ofweek.proto\032\033google/type/timeofday.prot" - + "o\".\n\014UserPassword\022\014\n\004user\030\001 \001(\t\022\020\n\010passw" - + "ord\030\002 \001(\t\"\343\001\n\017MigrationSource\022\026\n\thost_po" - + "rt\030\001 \001(\tB\003\340A\003\022\031\n\014reference_id\030\002 \001(\tB\003\340A\003" - + "\022V\n\013source_type\030\003 \001(\0162<.google.cloud.all" - + "oydb.v1.MigrationSource.MigrationSourceT" - + "ypeB\003\340A\003\"E\n\023MigrationSourceType\022%\n!MIGRA" - + "TION_SOURCE_TYPE_UNSPECIFIED\020\000\022\007\n\003DMS\020\001\"" - + "(\n\020EncryptionConfig\022\024\n\014kms_key_name\030\001 \001(" - + "\t\"\206\002\n\016EncryptionInfo\022J\n\017encryption_type\030" - + "\001 \001(\0162,.google.cloud.alloydb.v1.Encrypti" - + "onInfo.TypeB\003\340A\003\022J\n\020kms_key_versions\030\002 \003" - + "(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/Cryp" - + "toKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFIED" - + "\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033CUS" - + "TOMER_MANAGED_ENCRYPTION\020\002\"\376\002\n\tSslConfig" - + "\022A\n\010ssl_mode\030\001 \001(\0162*.google.cloud.alloyd" - + "b.v1.SslConfig.SslModeB\003\340A\001\022C\n\tca_source" - + "\030\002 \001(\0162+.google.cloud.alloydb.v1.SslConf" - + "ig.CaSourceB\003\340A\001\"\252\001\n\007SslMode\022\030\n\024SSL_MODE" - + "_UNSPECIFIED\020\000\022\026\n\016SSL_MODE_ALLOW\020\001\032\002\010\001\022\030" - + "\n\020SSL_MODE_REQUIRE\020\002\032\002\010\001\022\032\n\022SSL_MODE_VER" - + "IFY_CA\020\003\032\002\010\001\022#\n\037ALLOW_UNENCRYPTED_AND_EN" - + "CRYPTED\020\004\022\022\n\016ENCRYPTED_ONLY\020\005\"<\n\010CaSourc" - + "e\022\031\n\025CA_SOURCE_UNSPECIFIED\020\000\022\025\n\021CA_SOURC" - + "E_MANAGED\020\001\"\345\006\n\025AutomatedBackupPolicy\022X\n" - + "\017weekly_schedule\030\002 \001(\0132=.google.cloud.al" - + "loydb.v1.AutomatedBackupPolicy.WeeklySch" - + "eduleH\000\022a\n\024time_based_retention\030\004 \001(\0132A." - + "google.cloud.alloydb.v1.AutomatedBackupP" - + "olicy.TimeBasedRetentionH\001\022i\n\030quantity_b" - + "ased_retention\030\005 \001(\0132E.google.cloud.allo" - + "ydb.v1.AutomatedBackupPolicy.QuantityBas" - + "edRetentionH\001\022\024\n\007enabled\030\001 \001(\010H\002\210\001\001\0220\n\rb" - + "ackup_window\030\003 \001(\0132\031.google.protobuf.Dur" - + "ation\022I\n\021encryption_config\030\010 \001(\0132).googl" - + "e.cloud.alloydb.v1.EncryptionConfigB\003\340A\001" - + "\022\020\n\010location\030\006 \001(\t\022J\n\006labels\030\007 \003(\0132:.goo" - + "gle.cloud.alloydb.v1.AutomatedBackupPoli" - + "cy.LabelsEntry\032k\n\016WeeklySchedule\022+\n\013star" - + "t_times\030\001 \003(\0132\026.google.type.TimeOfDay\022,\n" - + "\014days_of_week\030\002 \003(\0162\026.google.type.DayOfW" - + "eek\032I\n\022TimeBasedRetention\0223\n\020retention_p" - + "eriod\030\001 \001(\0132\031.google.protobuf.Duration\032\'" - + "\n\026QuantityBasedRetention\022\r\n\005count\030\001 \001(\005\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\n\n\010scheduleB\013\n\tretentionB\n\n\010_enab" - + "led\"\236\001\n\026ContinuousBackupConfig\022\024\n\007enable" - + "d\030\001 \001(\010H\000\210\001\001\022\034\n\024recovery_window_days\030\004 \001" - + "(\005\022D\n\021encryption_config\030\003 \001(\0132).google.c" - + "loud.alloydb.v1.EncryptionConfigB\n\n\010_ena" - + "bled\"\206\002\n\024ContinuousBackupInfo\022E\n\017encrypt" - + "ion_info\030\001 \001(\0132\'.google.cloud.alloydb.v1" - + ".EncryptionInfoB\003\340A\003\0225\n\014enabled_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022-\n\010s" - + "chedule\030\003 \003(\0162\026.google.type.DayOfWeekB\003\340" - + "A\003\022A\n\030earliest_restorable_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\"c\n\014BackupS" - + "ource\022\027\n\nbackup_uid\030\002 \001(\tB\003\340A\003\022:\n\013backup" - + "_name\030\001 \001(\tB%\340A\002\372A\037\n\035alloydb.googleapis." - + "com/Backup\"f\n\026ContinuousBackupSource\022\024\n\007" - + "cluster\030\001 \001(\tB\003\340A\002\0226\n\rpoint_in_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\002\"\254\021\n\007C" - + "luster\022C\n\rbackup_source\030\017 \001(\0132%.google.c" - + "loud.alloydb.v1.BackupSourceB\003\340A\003H\000\022I\n\020m" - + "igration_source\030\020 \001(\0132(.google.cloud.all" - + "oydb.v1.MigrationSourceB\003\340A\003H\000\022\021\n\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\0224\n\013create_time\030\004 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013delete_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022<\n\006labels\030\007 \003(\0132,.google.clo" - + "ud.alloydb.v1.Cluster.LabelsEntry\022:\n\005sta" - + "te\030\010 \001(\0162&.google.cloud.alloydb.v1.Clust" - + "er.StateB\003\340A\003\022G\n\014cluster_type\030\030 \001(\0162,.go" - + "ogle.cloud.alloydb.v1.Cluster.ClusterTyp" - + "eB\003\340A\003\022G\n\020database_version\030\t \001(\0162(.googl" - + "e.cloud.alloydb.v1.DatabaseVersionB\003\340A\001\022" - + "K\n\016network_config\030\035 \001(\0132..google.cloud.a" - + "lloydb.v1.Cluster.NetworkConfigB\003\340A\001\0229\n\007" - + "network\030\n \001(\tB(\030\001\340A\002\372A \n\036compute.googlea" - + "pis.com/Network\022\014\n\004etag\030\013 \001(\t\022F\n\013annotat" - + "ions\030\014 \003(\01321.google.cloud.alloydb.v1.Clu" - + "ster.AnnotationsEntry\022\030\n\013reconciling\030\r \001" - + "(\010B\003\340A\003\022@\n\014initial_user\030\016 \001(\0132%.google.c" - + "loud.alloydb.v1.UserPasswordB\003\340A\004\022O\n\027aut" - + "omated_backup_policy\030\021 \001(\0132..google.clou" - + "d.alloydb.v1.AutomatedBackupPolicy\022:\n\nss" - + "l_config\030\022 \001(\0132\".google.cloud.alloydb.v1" - + ".SslConfigB\002\030\001\022I\n\021encryption_config\030\023 \001(" - + "\0132).google.cloud.alloydb.v1.EncryptionCo" - + "nfigB\003\340A\001\022E\n\017encryption_info\030\024 \001(\0132\'.goo" - + "gle.cloud.alloydb.v1.EncryptionInfoB\003\340A\003" - + "\022V\n\030continuous_backup_config\030\033 \001(\0132/.goo" - + "gle.cloud.alloydb.v1.ContinuousBackupCon" - + "figB\003\340A\001\022R\n\026continuous_backup_info\030\034 \001(\013" - + "2-.google.cloud.alloydb.v1.ContinuousBac" - + "kupInfoB\003\340A\003\022J\n\020secondary_config\030\026 \001(\01320" - + ".google.cloud.alloydb.v1.Cluster.Seconda" - + "ryConfig\022K\n\016primary_config\030\027 \001(\0132..googl" - + "e.cloud.alloydb.v1.Cluster.PrimaryConfig" - + "B\003\340A\003\032i\n\rNetworkConfig\0227\n\007network\030\001 \001(\tB" - + "&\340A\002\372A \n\036compute.googleapis.com/Network\022" - + "\037\n\022allocated_ip_range\030\002 \001(\tB\003\340A\001\032/\n\017Seco" - + "ndaryConfig\022\034\n\024primary_cluster_name\030\001 \001(" - + "\t\0325\n\rPrimaryConfig\022$\n\027secondary_cluster_" - + "names\030\001 \003(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\234\001\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022" - + "\013\n\007STOPPED\020\002\022\t\n\005EMPTY\020\003\022\014\n\010CREATING\020\004\022\014\n" - + "\010DELETING\020\005\022\n\n\006FAILED\020\006\022\021\n\rBOOTSTRAPPING" - + "\020\007\022\017\n\013MAINTENANCE\020\010\022\r\n\tPROMOTING\020\t\"G\n\013Cl" - + "usterType\022\034\n\030CLUSTER_TYPE_UNSPECIFIED\020\000\022" - + "\013\n\007PRIMARY\020\001\022\r\n\tSECONDARY\020\002:b\352A_\n\036alloyd" - + "b.googleapis.com/Cluster\022:projects/{proj" - + "ect}/locations/{location}/clusters/{clus" - + "ter}R\001\001B\010\n\006source\"\214\022\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\003uid\030\003" - + " \001(\tB\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013delete_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022=\n\006labels\030\007 \003(\0132-.google.clo" - + "ud.alloydb.v1.Instance.LabelsEntry\022;\n\005st" - + "ate\030\010 \001(\0162\'.google.cloud.alloydb.v1.Inst" - + "ance.StateB\003\340A\003\022J\n\rinstance_type\030\t \001(\0162." - + ".google.cloud.alloydb.v1.Instance.Instan" - + "ceTypeB\003\340A\002\022G\n\016machine_config\030\n \001(\0132/.go" - + "ogle.cloud.alloydb.v1.Instance.MachineCo" - + "nfig\022M\n\021availability_type\030\013 \001(\01622.google" - + ".cloud.alloydb.v1.Instance.AvailabilityT" - + "ype\022\020\n\010gce_zone\030\014 \001(\t\022L\n\016database_flags\030" - + "\r \003(\01324.google.cloud.alloydb.v1.Instance" - + ".DatabaseFlagsEntry\022B\n\rwritable_node\030\023 \001" - + "(\0132&.google.cloud.alloydb.v1.Instance.No" - + "deB\003\340A\003\022:\n\005nodes\030\024 \003(\0132&.google.cloud.al" - + "loydb.v1.Instance.NodeB\003\340A\003\022\\\n\025query_ins" - + "ights_config\030\025 \001(\0132=.google.cloud.alloyd" - + "b.v1.Instance.QueryInsightsInstanceConfi" - + "g\022J\n\020read_pool_config\030\016 \001(\01320.google.clo" - + "ud.alloydb.v1.Instance.ReadPoolConfig\022\027\n" - + "\nip_address\030\017 \001(\tB\003\340A\003\022\030\n\013reconciling\030\020 " - + "\001(\010B\003\340A\003\022\014\n\004etag\030\021 \001(\t\022G\n\013annotations\030\022 " - + "\003(\01322.google.cloud.alloydb.v1.Instance.A" - + "nnotationsEntry\022_\n\030client_connection_con" - + "fig\030\027 \001(\01328.google.cloud.alloydb.v1.Inst" - + "ance.ClientConnectionConfigB\003\340A\001\032\"\n\rMach" - + "ineConfig\022\021\n\tcpu_count\030\001 \001(\005\032>\n\004Node\022\017\n\007" - + "zone_id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t\022\r\n" - + "\005state\030\004 \001(\t\032\372\001\n\033QueryInsightsInstanceCo" - + "nfig\022$\n\027record_application_tags\030\002 \001(\010H\000\210" - + "\001\001\022\"\n\025record_client_address\030\003 \001(\010H\001\210\001\001\022\033" - + "\n\023query_string_length\030\004 \001(\r\022#\n\026query_pla" - + "ns_per_minute\030\005 \001(\rH\002\210\001\001B\032\n\030_record_appl" - + "ication_tagsB\030\n\026_record_client_addressB\031" - + "\n\027_query_plans_per_minute\032$\n\016ReadPoolCon" - + "fig\022\022\n\nnode_count\030\001 \001(\005\032v\n\026ClientConnect" - + "ionConfig\022\037\n\022require_connectors\030\001 \001(\010B\003\340" - + "A\001\022;\n\nssl_config\030\002 \001(\0132\".google.cloud.al" - + "loydb.v1.SslConfigB\003\340A\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022Databa" - + "seFlagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\221\001\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\t\n\005READY\020\001\022\013\n\007STOPPED\020\002\022\014\n\010CRE" - + "ATING\020\003\022\014\n\010DELETING\020\004\022\017\n\013MAINTENANCE\020\005\022\n" - + "\n\006FAILED\020\006\022\021\n\rBOOTSTRAPPING\020\010\022\r\n\tPROMOTI" - + "NG\020\t\"X\n\014InstanceType\022\035\n\031INSTANCE_TYPE_UN" - + "SPECIFIED\020\000\022\013\n\007PRIMARY\020\001\022\r\n\tREAD_POOL\020\002\022" - + "\r\n\tSECONDARY\020\003\"N\n\020AvailabilityType\022!\n\035AV" - + "AILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n\005ZONAL\020\001" - + "\022\014\n\010REGIONAL\020\002:x\352Au\n\037alloydb.googleapis." - + "com/Instance\022Oprojects/{project}/locatio" - + "ns/{location}/clusters/{cluster}/instanc" - + "es/{instance}R\001\001\"\340\001\n\016ConnectionInfo\022\014\n\004n" - + "ame\030\001 \001(\t\022\027\n\nip_address\030\002 \001(\tB\003\340A\003\022\031\n\014in" - + "stance_uid\030\004 \001(\tB\003\340A\003:\213\001\352A\207\001\n%alloydb.go" - + "ogleapis.com/ConnectionInfo\022^projects/{p" - + "roject}/locations/{location}/clusters/{c" - + "luster}/instances/{instance}/connectionI" - + "nfo\"\246\013\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014dis" - + "play_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\0224\n\013cre" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\017 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022;\n\006l" - + "abels\030\006 \003(\0132+.google.cloud.alloydb.v1.Ba" - + "ckup.LabelsEntry\0229\n\005state\030\007 \001(\0162%.google" - + ".cloud.alloydb.v1.Backup.StateB\003\340A\003\0222\n\004t" - + "ype\030\010 \001(\0162$.google.cloud.alloydb.v1.Back" - + "up.Type\022\023\n\013description\030\t \001(\t\022\030\n\013cluster_" - + "uid\030\022 \001(\tB\003\340A\003\022<\n\014cluster_name\030\n \001(\tB&\340A" - + "\002\372A \n\036alloydb.googleapis.com/Cluster\022\030\n\013" - + "reconciling\030\013 \001(\010B\003\340A\003\022I\n\021encryption_con" - + "fig\030\014 \001(\0132).google.cloud.alloydb.v1.Encr" - + "yptionConfigB\003\340A\001\022E\n\017encryption_info\030\r \001" - + "(\0132\'.google.cloud.alloydb.v1.EncryptionI" - + "nfoB\003\340A\003\022\014\n\004etag\030\016 \001(\t\022E\n\013annotations\030\020 " - + "\003(\01320.google.cloud.alloydb.v1.Backup.Ann" - + "otationsEntry\022\027\n\nsize_bytes\030\021 \001(\003B\003\340A\003\0224" - + "\n\013expiry_time\030\023 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022Q\n\017expiry_quantity\030\024 \001(\01323." - + "google.cloud.alloydb.v1.Backup.QuantityB" - + "asedExpiryB\003\340A\003\022G\n\020database_version\030\026 \001(" - + "\0162(.google.cloud.alloydb.v1.DatabaseVers" - + "ionB\003\340A\003\032W\n\023QuantityBasedExpiry\022\034\n\017reten" - + "tion_count\030\001 \001(\005B\003\340A\003\022\"\n\025total_retention" - + "_count\030\002 \001(\005B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022" - + "\014\n\010CREATING\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\"" - + "J\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tON_DEMA" - + "ND\020\001\022\r\n\tAUTOMATED\020\002\022\016\n\nCONTINUOUS\020\003:_\352A\\" - + "\n\035alloydb.googleapis.com/Backup\0228project" - + "s/{project}/locations/{location}/backups" - + "/{backup}R\001\001\"\310\006\n\025SupportedDatabaseFlag\022`" - + "\n\023string_restrictions\030\007 \001(\0132A.google.clo" - + "ud.alloydb.v1.SupportedDatabaseFlag.Stri" - + "ngRestrictionsH\000\022b\n\024integer_restrictions" - + "\030\010 \001(\0132B.google.cloud.alloydb.v1.Support" - + "edDatabaseFlag.IntegerRestrictionsH\000\022\014\n\004" - + "name\030\001 \001(\t\022\021\n\tflag_name\030\002 \001(\t\022L\n\nvalue_t" - + "ype\030\003 \001(\01628.google.cloud.alloydb.v1.Supp" - + "ortedDatabaseFlag.ValueType\022\037\n\027accepts_m" - + "ultiple_values\030\004 \001(\010\022G\n\025supported_db_ver" - + "sions\030\005 \003(\0162(.google.cloud.alloydb.v1.Da" - + "tabaseVersion\022\033\n\023requires_db_restart\030\006 \001" - + "(\010\032,\n\022StringRestrictions\022\026\n\016allowed_valu" - + "es\030\001 \003(\t\032u\n\023IntegerRestrictions\022.\n\tmin_v" - + "alue\030\001 \001(\0132\033.google.protobuf.Int64Value\022" - + ".\n\tmax_value\030\002 \001(\0132\033.google.protobuf.Int" - + "64Value\"U\n\tValueType\022\032\n\026VALUE_TYPE_UNSPE" - + "CIFIED\020\000\022\n\n\006STRING\020\001\022\013\n\007INTEGER\020\002\022\t\n\005FLO" - + "AT\020\003\022\010\n\004NONE\020\004:g\352Ad\n,alloydb.googleapis." - + "com/SupportedDatabaseFlag\0224projects/{pro" - + "ject}/locations/{location}/flags/{flag}B" - + "\016\n\014restrictions\"\316\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_r" - + "oles\030\004 \003(\tB\003\340A\001\022>\n\tuser_type\030\005 \001(\0162&.goo" - + "gle.cloud.alloydb.v1.User.UserTypeB\003\340A\001\"" - + "Q\n\010UserType\022\031\n\025USER_TYPE_UNSPECIFIED\020\000\022\024" - + "\n\020ALLOYDB_BUILT_IN\020\001\022\024\n\020ALLOYDB_IAM_USER" - + "\020\002:l\352Ai\n\033alloydb.googleapis.com/User\022Gpr" + + "ield_behavior.proto\032\033google/api/field_in" + + "fo.proto\032\031google/api/resource.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\032\036google/protobuf/wr" + + "appers.proto\032\033google/type/dayofweek.prot" + + "o\032\033google/type/timeofday.proto\".\n\014UserPa" + + "ssword\022\014\n\004user\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\343" + + "\001\n\017MigrationSource\022\026\n\thost_port\030\001 \001(\tB\003\340" + + "A\003\022\031\n\014reference_id\030\002 \001(\tB\003\340A\003\022V\n\013source_" + + "type\030\003 \001(\0162<.google.cloud.alloydb.v1.Mig" + + "rationSource.MigrationSourceTypeB\003\340A\003\"E\n" + + "\023MigrationSourceType\022%\n!MIGRATION_SOURCE" + + "_TYPE_UNSPECIFIED\020\000\022\007\n\003DMS\020\001\"(\n\020Encrypti" + + "onConfig\022\024\n\014kms_key_name\030\001 \001(\t\"\206\002\n\016Encry" + + "ptionInfo\022J\n\017encryption_type\030\001 \001(\0162,.goo" + + "gle.cloud.alloydb.v1.EncryptionInfo.Type" + + "B\003\340A\003\022J\n\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\035\n\031GOOGL" + + "E_DEFAULT_ENCRYPTION\020\001\022\037\n\033CUSTOMER_MANAG" + + "ED_ENCRYPTION\020\002\"\376\002\n\tSslConfig\022A\n\010ssl_mod" + + "e\030\001 \001(\0162*.google.cloud.alloydb.v1.SslCon" + + "fig.SslModeB\003\340A\001\022C\n\tca_source\030\002 \001(\0162+.go" + + "ogle.cloud.alloydb.v1.SslConfig.CaSource" + + "B\003\340A\001\"\252\001\n\007SslMode\022\030\n\024SSL_MODE_UNSPECIFIE" + + "D\020\000\022\026\n\016SSL_MODE_ALLOW\020\001\032\002\010\001\022\030\n\020SSL_MODE_" + + "REQUIRE\020\002\032\002\010\001\022\032\n\022SSL_MODE_VERIFY_CA\020\003\032\002\010" + + "\001\022#\n\037ALLOW_UNENCRYPTED_AND_ENCRYPTED\020\004\022\022" + + "\n\016ENCRYPTED_ONLY\020\005\"<\n\010CaSource\022\031\n\025CA_SOU" + + "RCE_UNSPECIFIED\020\000\022\025\n\021CA_SOURCE_MANAGED\020\001" + + "\"\345\006\n\025AutomatedBackupPolicy\022X\n\017weekly_sch" + + "edule\030\002 \001(\0132=.google.cloud.alloydb.v1.Au" + + "tomatedBackupPolicy.WeeklyScheduleH\000\022a\n\024" + + "time_based_retention\030\004 \001(\0132A.google.clou" + + "d.alloydb.v1.AutomatedBackupPolicy.TimeB" + + "asedRetentionH\001\022i\n\030quantity_based_retent" + + "ion\030\005 \001(\0132E.google.cloud.alloydb.v1.Auto" + + "matedBackupPolicy.QuantityBasedRetention" + + "H\001\022\024\n\007enabled\030\001 \001(\010H\002\210\001\001\0220\n\rbackup_windo" + + "w\030\003 \001(\0132\031.google.protobuf.Duration\022I\n\021en" + + "cryption_config\030\010 \001(\0132).google.cloud.all" + + "oydb.v1.EncryptionConfigB\003\340A\001\022\020\n\010locatio" + + "n\030\006 \001(\t\022J\n\006labels\030\007 \003(\0132:.google.cloud.a" + + "lloydb.v1.AutomatedBackupPolicy.LabelsEn" + + "try\032k\n\016WeeklySchedule\022+\n\013start_times\030\001 \003" + + "(\0132\026.google.type.TimeOfDay\022,\n\014days_of_we" + + "ek\030\002 \003(\0162\026.google.type.DayOfWeek\032I\n\022Time" + + "BasedRetention\0223\n\020retention_period\030\001 \001(\013" + + "2\031.google.protobuf.Duration\032\'\n\026QuantityB" + + "asedRetention\022\r\n\005count\030\001 \001(\005\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010s" + + "cheduleB\013\n\tretentionB\n\n\010_enabled\"\236\001\n\026Con" + + "tinuousBackupConfig\022\024\n\007enabled\030\001 \001(\010H\000\210\001" + + "\001\022\034\n\024recovery_window_days\030\004 \001(\005\022D\n\021encry" + + "ption_config\030\003 \001(\0132).google.cloud.alloyd" + + "b.v1.EncryptionConfigB\n\n\010_enabled\"\206\002\n\024Co" + + "ntinuousBackupInfo\022E\n\017encryption_info\030\001 " + + "\001(\0132\'.google.cloud.alloydb.v1.Encryption" + + "InfoB\003\340A\003\0225\n\014enabled_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022-\n\010schedule\030\003 \003" + + "(\0162\026.google.type.DayOfWeekB\003\340A\003\022A\n\030earli" + + "est_restorable_time\030\004 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\"c\n\014BackupSource\022\027\n\nba" + + "ckup_uid\030\002 \001(\tB\003\340A\003\022:\n\013backup_name\030\001 \001(\t" + + "B%\340A\002\372A\037\n\035alloydb.googleapis.com/Backup\"" + + "f\n\026ContinuousBackupSource\022\024\n\007cluster\030\001 \001" + + "(\tB\003\340A\002\0226\n\rpoint_in_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\002\"\340\001\n\027MaintenanceU" + + "pdatePolicy\022_\n\023maintenance_windows\030\001 \003(\013" + + "2B.google.cloud.alloydb.v1.MaintenanceUp" + + "datePolicy.MaintenanceWindow\032d\n\021Maintena" + + "nceWindow\022#\n\003day\030\001 \001(\0162\026.google.type.Day" + + "OfWeek\022*\n\nstart_time\030\002 \001(\0132\026.google.type" + + ".TimeOfDay\"J\n\023MaintenanceSchedule\0223\n\nsta" + + "rt_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\"\322\027\n\007Cluster\022C\n\rbackup_source\030\017 \001(" + + "\0132%.google.cloud.alloydb.v1.BackupSource" + + "B\003\340A\003H\000\022I\n\020migration_source\030\020 \001(\0132(.goog" + + "le.cloud.alloydb.v1.MigrationSourceB\003\340A\003" + + "H\000\022\021\n\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\0224\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013delete_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022<\n\006labels\030\007 \003(\0132" + + ",.google.cloud.alloydb.v1.Cluster.Labels" + + "Entry\022:\n\005state\030\010 \001(\0162&.google.cloud.allo" + + "ydb.v1.Cluster.StateB\003\340A\003\022G\n\014cluster_typ" + + "e\030\030 \001(\0162,.google.cloud.alloydb.v1.Cluste" + + "r.ClusterTypeB\003\340A\003\022G\n\020database_version\030\t" + + " \001(\0162(.google.cloud.alloydb.v1.DatabaseV" + + "ersionB\003\340A\001\022K\n\016network_config\030\035 \001(\0132..go" + + "ogle.cloud.alloydb.v1.Cluster.NetworkCon" + + "figB\003\340A\001\0229\n\007network\030\n \001(\tB(\030\001\340A\002\372A \n\036com" + + "pute.googleapis.com/Network\022\014\n\004etag\030\013 \001(" + + "\t\022F\n\013annotations\030\014 \003(\01321.google.cloud.al" + + "loydb.v1.Cluster.AnnotationsEntry\022\030\n\013rec" + + "onciling\030\r \001(\010B\003\340A\003\022@\n\014initial_user\030\016 \001(" + + "\0132%.google.cloud.alloydb.v1.UserPassword" + + "B\003\340A\004\022O\n\027automated_backup_policy\030\021 \001(\0132." + + ".google.cloud.alloydb.v1.AutomatedBackup" + + "Policy\022:\n\nssl_config\030\022 \001(\0132\".google.clou" + + "d.alloydb.v1.SslConfigB\002\030\001\022I\n\021encryption" + + "_config\030\023 \001(\0132).google.cloud.alloydb.v1." + + "EncryptionConfigB\003\340A\001\022E\n\017encryption_info" + + "\030\024 \001(\0132\'.google.cloud.alloydb.v1.Encrypt" + + "ionInfoB\003\340A\003\022V\n\030continuous_backup_config" + + "\030\033 \001(\0132/.google.cloud.alloydb.v1.Continu" + + "ousBackupConfigB\003\340A\001\022R\n\026continuous_backu" + + "p_info\030\034 \001(\0132-.google.cloud.alloydb.v1.C" + + "ontinuousBackupInfoB\003\340A\003\022J\n\020secondary_co" + + "nfig\030\026 \001(\01320.google.cloud.alloydb.v1.Clu" + + "ster.SecondaryConfig\022K\n\016primary_config\030\027" + + " \001(\0132..google.cloud.alloydb.v1.Cluster.P" + + "rimaryConfigB\003\340A\003\022\032\n\rsatisfies_pzs\030\036 \001(\010" + + "B\003\340A\003\022C\n\npsc_config\030\037 \001(\0132*.google.cloud" + + ".alloydb.v1.Cluster.PscConfigB\003\340A\001\022X\n\031ma" + + "intenance_update_policy\030 \001(\01320.google.c" + + "loud.alloydb.v1.MaintenanceUpdatePolicyB" + + "\003\340A\001\022O\n\024maintenance_schedule\030% \001(\0132,.goo" + + "gle.cloud.alloydb.v1.MaintenanceSchedule" + + "B\003\340A\003\022I\n\021subscription_type\030& \001(\0162).googl" + + "e.cloud.alloydb.v1.SubscriptionTypeB\003\340A\001" + + "\022K\n\016trial_metadata\030\' \001(\0132..google.cloud." + + "alloydb.v1.Cluster.TrialMetadataB\003\340A\003\022C\n" + + "\004tags\030) \003(\0132*.google.cloud.alloydb.v1.Cl" + + "uster.TagsEntryB\t\340A\004\340A\005\340A\001\032i\n\rNetworkCon" + + "fig\0227\n\007network\030\001 \001(\tB&\340A\001\372A \n\036compute.go" + + "ogleapis.com/Network\022\037\n\022allocated_ip_ran" + + "ge\030\002 \001(\tB\003\340A\001\032/\n\017SecondaryConfig\022\034\n\024prim" + + "ary_cluster_name\030\001 \001(\t\0325\n\rPrimaryConfig\022" + + "$\n\027secondary_cluster_names\030\001 \003(\tB\003\340A\003\032%\n" + + "\tPscConfig\022\030\n\013psc_enabled\030\001 \001(\010B\003\340A\001\032\323\001\n" + + "\rTrialMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\0220\n\014upgrade_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0222" + + "\n\016grace_end_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032+\n\tTagsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\234\001\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\013" + + "\n\007STOPPED\020\002\022\t\n\005EMPTY\020\003\022\014\n\010CREATING\020\004\022\014\n\010" + + "DELETING\020\005\022\n\n\006FAILED\020\006\022\021\n\rBOOTSTRAPPING\020" + + "\007\022\017\n\013MAINTENANCE\020\010\022\r\n\tPROMOTING\020\t\"G\n\013Clu" + + "sterType\022\034\n\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\013" + + "\n\007PRIMARY\020\001\022\r\n\tSECONDARY\020\002:u\352Ar\n\036alloydb" + + ".googleapis.com/Cluster\022:projects/{proje" + + "ct}/locations/{location}/clusters/{clust" + + "er}*\010clusters2\007clusterR\001\001B\010\n\006source\"\317\027\n\010" + + "Instance\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_n" + + "ame\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\0224\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013delete_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022=\n\006labels\030" + + "\007 \003(\0132-.google.cloud.alloydb.v1.Instance" + + ".LabelsEntry\022;\n\005state\030\010 \001(\0162\'.google.clo" + + "ud.alloydb.v1.Instance.StateB\003\340A\003\022J\n\rins" + + "tance_type\030\t \001(\0162..google.cloud.alloydb." + + "v1.Instance.InstanceTypeB\003\340A\002\022G\n\016machine" + + "_config\030\n \001(\0132/.google.cloud.alloydb.v1." + + "Instance.MachineConfig\022M\n\021availability_t" + + "ype\030\013 \001(\01622.google.cloud.alloydb.v1.Inst" + + "ance.AvailabilityType\022\020\n\010gce_zone\030\014 \001(\t\022" + + "L\n\016database_flags\030\r \003(\01324.google.cloud.a" + + "lloydb.v1.Instance.DatabaseFlagsEntry\022B\n" + + "\rwritable_node\030\023 \001(\0132&.google.cloud.allo" + + "ydb.v1.Instance.NodeB\003\340A\003\022:\n\005nodes\030\024 \003(\013" + + "2&.google.cloud.alloydb.v1.Instance.Node" + + "B\003\340A\003\022\\\n\025query_insights_config\030\025 \001(\0132=.g" + + "oogle.cloud.alloydb.v1.Instance.QueryIns" + + "ightsInstanceConfig\022J\n\020read_pool_config\030" + + "\016 \001(\01320.google.cloud.alloydb.v1.Instance" + + ".ReadPoolConfig\022\027\n\nip_address\030\017 \001(\tB\003\340A\003" + + "\022&\n\021public_ip_address\030\033 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002" + + "\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n\004etag\030\021 \001(\t" + + "\022G\n\013annotations\030\022 \003(\01322.google.cloud.all" + + "oydb.v1.Instance.AnnotationsEntry\022_\n\030cli" + + "ent_connection_config\030\027 \001(\01328.google.clo" + + "ud.alloydb.v1.Instance.ClientConnectionC" + + "onfigB\003\340A\001\022\032\n\rsatisfies_pzs\030\030 \001(\010B\003\340A\003\022U" + + "\n\023psc_instance_config\030\034 \001(\01323.google.clo" + + "ud.alloydb.v1.Instance.PscInstanceConfig" + + "B\003\340A\001\022T\n\016network_config\030\035 \001(\01327.google.c" + + "loud.alloydb.v1.Instance.InstanceNetwork" + + "ConfigB\003\340A\001\0221\n\034outbound_public_ip_addres" + + "ses\030\" \003(\tB\013\340A\003\342\214\317\327\010\002\010\002\032\"\n\rMachineConfig\022" + + "\021\n\tcpu_count\030\001 \001(\005\032>\n\004Node\022\017\n\007zone_id\030\001 " + + "\001(\t\022\n\n\002id\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t\022\r\n\005state\030\004 \001" + + "(\t\032\372\001\n\033QueryInsightsInstanceConfig\022$\n\027re" + + "cord_application_tags\030\002 \001(\010H\000\210\001\001\022\"\n\025reco" + + "rd_client_address\030\003 \001(\010H\001\210\001\001\022\033\n\023query_st" + + "ring_length\030\004 \001(\r\022#\n\026query_plans_per_min" + + "ute\030\005 \001(\rH\002\210\001\001B\032\n\030_record_application_ta" + + "gsB\030\n\026_record_client_addressB\031\n\027_query_p" + + "lans_per_minute\032$\n\016ReadPoolConfig\022\022\n\nnod" + + "e_count\030\001 \001(\005\032v\n\026ClientConnectionConfig\022" + + "\037\n\022require_connectors\030\001 \001(\010B\003\340A\001\022;\n\nssl_" + + "config\030\002 \001(\0132\".google.cloud.alloydb.v1.S" + + "slConfigB\003\340A\001\032|\n\021PscInstanceConfig\022$\n\027se" + + "rvice_attachment_link\030\001 \001(\tB\003\340A\003\022&\n\031allo" + + "wed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n\014psc_" + + "dns_name\030\007 \001(\tB\003\340A\003\032\207\002\n\025InstanceNetworkC" + + "onfig\022t\n\034authorized_external_networks\030\001 " + + "\003(\0132I.google.cloud.alloydb.v1.Instance.I" + + "nstanceNetworkConfig.AuthorizedNetworkB\003" + + "\340A\001\022\035\n\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n\031en" + + "able_outbound_public_ip\030\003 \001(\010B\003\340A\001\0321\n\021Au" + + "thorizedNetwork\022\034\n\ncidr_range\030\001 \001(\tB\010\342\214\317" + + "\327\010\002\010\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY" + + "\020\001\022\013\n\007STOPPED\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETIN" + + "G\020\004\022\017\n\013MAINTENANCE\020\005\022\n\n\006FAILED\020\006\022\021\n\rBOOT" + + "STRAPPING\020\010\022\r\n\tPROMOTING\020\t\"X\n\014InstanceTy" + + "pe\022\035\n\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n\007PRI" + + "MARY\020\001\022\r\n\tREAD_POOL\020\002\022\r\n\tSECONDARY\020\003\"N\n\020" + + "AvailabilityType\022!\n\035AVAILABILITY_TYPE_UN" + + "SPECIFIED\020\000\022\t\n\005ZONAL\020\001\022\014\n\010REGIONAL\020\002:\216\001\352" + + "A\212\001\n\037alloydb.googleapis.com/Instance\022Opr" + "ojects/{project}/locations/{location}/cl" - + "usters/{cluster}/users/{user}R\001\001*^\n\014Inst" - + "anceView\022\035\n\031INSTANCE_VIEW_UNSPECIFIED\020\000\022" - + "\027\n\023INSTANCE_VIEW_BASIC\020\001\022\026\n\022INSTANCE_VIE" - + "W_FULL\020\002*g\n\013ClusterView\022\034\n\030CLUSTER_VIEW_" - + "UNSPECIFIED\020\000\022\026\n\022CLUSTER_VIEW_BASIC\020\001\022\"\n" - + "\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*Y\n\017Dat" - + "abaseVersion\022 \n\034DATABASE_VERSION_UNSPECI" - + "FIED\020\000\022\023\n\013POSTGRES_13\020\001\032\002\010\001\022\017\n\013POSTGRES_" - + "14\020\002B\262\003\n\033com.google.cloud.alloydb.v1B\016Re" - + "sourcesProtoP\001Z5cloud.google.com/go/allo" - + "ydb/apiv1/alloydbpb;alloydbpb\252\002\027Google.C" - + "loud.AlloyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V" - + "1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n(clou" - + "dkms.googleapis.com/CryptoKeyVersion\022zpr" - + "ojects/{project}/locations/{location}/ke" - + "yRings/{key_ring}/cryptoKeys/{crypto_key" - + "}/cryptoKeyVersions/{crypto_key_version}" - + "\352AN\n\036compute.googleapis.com/Network\022,pro" - + "jects/{project}/global/networks/{network" - + "}b\006proto3" + + "usters/{cluster}/instances/{instance}*\ti" + + "nstances2\010instanceR\001\001\"\251\002\n\016ConnectionInfo" + + "\022\014\n\004name\030\001 \001(\t\022\027\n\nip_address\030\002 \001(\tB\003\340A\003\022" + + "&\n\021public_ip_address\030\005 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022" + + "\031\n\014instance_uid\030\004 \001(\tB\003\340A\003:\254\001\352A\250\001\n%alloy" + + "db.googleapis.com/ConnectionInfo\022^projec" + + "ts/{project}/locations/{location}/cluste" + + "rs/{cluster}/instances/{instance}/connec" + + "tionInfo*\017connectionInfos2\016connectionInf" + + "o\"\304\014\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014displ" + + "ay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\0224\n\013creat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\017 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022;\n\006lab" + + "els\030\006 \003(\0132+.google.cloud.alloydb.v1.Back" + + "up.LabelsEntry\0229\n\005state\030\007 \001(\0162%.google.c" + + "loud.alloydb.v1.Backup.StateB\003\340A\003\0222\n\004typ" + + "e\030\010 \001(\0162$.google.cloud.alloydb.v1.Backup" + + ".Type\022\023\n\013description\030\t \001(\t\022\030\n\013cluster_ui" + + "d\030\022 \001(\tB\003\340A\003\022<\n\014cluster_name\030\n \001(\tB&\340A\002\372" + + "A \n\036alloydb.googleapis.com/Cluster\022\030\n\013re" + + "conciling\030\013 \001(\010B\003\340A\003\022I\n\021encryption_confi" + + "g\030\014 \001(\0132).google.cloud.alloydb.v1.Encryp" + + "tionConfigB\003\340A\001\022E\n\017encryption_info\030\r \001(\013" + + "2\'.google.cloud.alloydb.v1.EncryptionInf" + + "oB\003\340A\003\022\014\n\004etag\030\016 \001(\t\022E\n\013annotations\030\020 \003(" + + "\01320.google.cloud.alloydb.v1.Backup.Annot" + + "ationsEntry\022\027\n\nsize_bytes\030\021 \001(\003B\003\340A\003\0224\n\013" + + "expiry_time\030\023 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022Q\n\017expiry_quantity\030\024 \001(\01323.go" + + "ogle.cloud.alloydb.v1.Backup.QuantityBas" + + "edExpiryB\003\340A\003\022\032\n\rsatisfies_pzs\030\025 \001(\010B\003\340A" + + "\003\022G\n\020database_version\030\026 \001(\0162(.google.clo" + + "ud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n\004ta" + + "gs\030\031 \003(\0132).google.cloud.alloydb.v1.Backu" + + "p.TagsEntryB\t\340A\004\340A\005\340A\001\032W\n\023QuantityBasedE" + + "xpiry\022\034\n\017retention_count\030\001 \001(\005B\003\340A\003\022\"\n\025t" + + "otal_retention_count\030\002 \001(\005B\003\340A\003\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322" + + "\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\n\n\006FAIL" + + "ED\020\003\022\014\n\010DELETING\020\004\"J\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\r\n\tAUTOMATED\020\002\022\016" + + "\n\nCONTINUOUS\020\003:p\352Am\n\035alloydb.googleapis." + + "com/Backup\0228projects/{project}/locations" + + "/{location}/backups/{backup}*\007backups2\006b" + + "ackupR\001\001\"\371\006\n\025SupportedDatabaseFlag\022`\n\023st" + + "ring_restrictions\030\007 \001(\0132A.google.cloud.a" + + "lloydb.v1.SupportedDatabaseFlag.StringRe" + + "strictionsH\000\022b\n\024integer_restrictions\030\010 \001" + + "(\0132B.google.cloud.alloydb.v1.SupportedDa" + + "tabaseFlag.IntegerRestrictionsH\000\022\014\n\004name" + + "\030\001 \001(\t\022\021\n\tflag_name\030\002 \001(\t\022L\n\nvalue_type\030" + + "\003 \001(\01628.google.cloud.alloydb.v1.Supporte" + + "dDatabaseFlag.ValueType\022\037\n\027accepts_multi" + + "ple_values\030\004 \001(\010\022G\n\025supported_db_version" + + "s\030\005 \003(\0162(.google.cloud.alloydb.v1.Databa" + + "seVersion\022\033\n\023requires_db_restart\030\006 \001(\010\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\tm" + + "ax_value\030\002 \001(\0132\033.google.protobuf.Int64Va" + + "lue\"U\n\tValueType\022\032\n\026VALUE_TYPE_UNSPECIFI" + + "ED\020\000\022\n\n\006STRING\020\001\022\013\n\007INTEGER\020\002\022\t\n\005FLOAT\020\003" + + "\022\010\n\004NONE\020\004:\227\001\352A\223\001\n,alloydb.googleapis.co" + + "m/SupportedDatabaseFlag\0224projects/{proje" + + "ct}/locations/{location}/flags/{flag}*\026s" + + "upportedDatabaseFlags2\025supportedDatabase" + + "FlagB\016\n\014restrictions\"\372\002\n\004User\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022\025\n\010password\030\002 \001(\tB\003\340A\004\022\033\n\016datab" + + "ase_roles\030\004 \003(\tB\003\340A\001\022>\n\tuser_type\030\005 \001(\0162" + + "&.google.cloud.alloydb.v1.User.UserTypeB" + + "\003\340A\001\022\035\n\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n\010U" + + "serType\022\031\n\025USER_TYPE_UNSPECIFIED\020\000\022\024\n\020AL" + + "LOYDB_BUILT_IN\020\001\022\024\n\020ALLOYDB_IAM_USER\020\002:y" + + "\352Av\n\033alloydb.googleapis.com/User\022Gprojec" + + "ts/{project}/locations/{location}/cluste" + + "rs/{cluster}/users/{user}*\005users2\004userR\001" + + "\001\"\334\001\n\010Database\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\024\n\007cha" + + "rset\030\002 \001(\tB\003\340A\001\022\026\n\tcollation\030\003 \001(\tB\003\340A\001:" + + "\216\001\352A\212\001\n\037alloydb.googleapis.com/Database\022" + + "Oprojects/{project}/locations/{location}" + + "/clusters/{cluster}/databases/{database}" + + "*\tdatabases2\010databaseR\001\001*^\n\014InstanceView" + + "\022\035\n\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n\023INSTA" + + "NCE_VIEW_BASIC\020\001\022\026\n\022INSTANCE_VIEW_FULL\020\002" + + "*g\n\013ClusterView\022\034\n\030CLUSTER_VIEW_UNSPECIF" + + "IED\020\000\022\026\n\022CLUSTER_VIEW_BASIC\020\001\022\"\n\036CLUSTER" + + "_VIEW_CONTINUOUS_BACKUP\020\002*{\n\017DatabaseVer" + + "sion\022 \n\034DATABASE_VERSION_UNSPECIFIED\020\000\022\023" + + "\n\013POSTGRES_13\020\001\032\002\010\001\022\017\n\013POSTGRES_14\020\002\022\017\n\013" + + "POSTGRES_15\020\003\022\017\n\013POSTGRES_16\020\004*N\n\020Subscr" + + "iptionType\022!\n\035SUBSCRIPTION_TYPE_UNSPECIF" + + "IED\020\000\022\014\n\010STANDARD\020\001\022\t\n\005TRIAL\020\002B\262\003\n\033com.g" + + "oogle.cloud.alloydb.v1B\016ResourcesProtoP\001" + + "Z5cloud.google.com/go/alloydb/apiv1/allo" + + "ydbpb;alloydbpb\252\002\027Google.Cloud.AlloyDb.V" + + "1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Google::Cl" + + "oud::AlloyDB::V1\352A\246\001\n(cloudkms.googleapi" + + "s.com/CryptoKeyVersion\022zprojects/{projec" + + "t}/locations/{location}/keyRings/{key_ri" + + "ng}/cryptoKeys/{crypto_key}/cryptoKeyVer" + + "sions/{crypto_key_version}\352AN\n\036compute.g" + + "oogleapis.com/Network\022,projects/{project" + + "}/global/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -604,8 +711,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Cluster", "PointInTime", }); - internal_static_google_cloud_alloydb_v1_Cluster_descriptor = + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor, + new java.lang.String[] { + "MaintenanceWindows", + }); + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor = + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_MaintenanceUpdatePolicy_MaintenanceWindow_descriptor, + new java.lang.String[] { + "Day", "StartTime", + }); + internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_MaintenanceSchedule_descriptor, + new java.lang.String[] { + "StartTime", + }); + internal_static_google_cloud_alloydb_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_alloydb_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Cluster_descriptor, @@ -636,6 +769,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContinuousBackupInfo", "SecondaryConfig", "PrimaryConfig", + "SatisfiesPzs", + "PscConfig", + "MaintenanceUpdatePolicy", + "MaintenanceSchedule", + "SubscriptionType", + "TrialMetadata", + "Tags", "Source", }); internal_static_google_cloud_alloydb_v1_Cluster_NetworkConfig_descriptor = @@ -662,8 +802,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SecondaryClusterNames", }); - internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor = internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor, + new java.lang.String[] { + "PscEnabled", + }); + internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor = + internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "UpgradeTime", "GraceEndTime", + }); + internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(5); internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Cluster_LabelsEntry_descriptor, @@ -671,15 +827,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(6); internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Cluster_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Cluster_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_alloydb_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_alloydb_v1_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_descriptor, @@ -702,10 +866,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryInsightsConfig", "ReadPoolConfig", "IpAddress", + "PublicIpAddress", "Reconciling", "Etag", "Annotations", "ClientConnectionConfig", + "SatisfiesPzs", + "PscInstanceConfig", + "NetworkConfig", + "OutboundPublicIpAddresses", }); internal_static_google_cloud_alloydb_v1_Instance_MachineConfig_descriptor = internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(0); @@ -750,8 +919,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RequireConnectors", "SslConfig", }); - internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor = internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor, + new java.lang.String[] { + "ServiceAttachmentLink", "AllowedConsumerProjects", "PscDnsName", + }); + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor, + new java.lang.String[] { + "AuthorizedExternalNetworks", "EnablePublicIp", "EnableOutboundPublicIp", + }); + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor, + new java.lang.String[] { + "CidrRange", + }); + internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(7); internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor, @@ -759,7 +954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(8); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor, @@ -767,7 +962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(9); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor, @@ -775,15 +970,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_ConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_alloydb_v1_ConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ConnectionInfo_descriptor, new java.lang.String[] { - "Name", "IpAddress", "InstanceUid", + "Name", "IpAddress", "PublicIpAddress", "InstanceUid", }); internal_static_google_cloud_alloydb_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_alloydb_v1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Backup_descriptor, @@ -808,7 +1003,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeBytes", "ExpiryTime", "ExpiryQuantity", + "SatisfiesPzs", "DatabaseVersion", + "Tags", }); internal_static_google_cloud_alloydb_v1_Backup_QuantityBasedExpiry_descriptor = internal_static_google_cloud_alloydb_v1_Backup_descriptor.getNestedTypes().get(0); @@ -834,8 +1031,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_descriptor = + internal_static_google_cloud_alloydb_v1_Backup_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Backup_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_descriptor, @@ -871,22 +1076,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinValue", "MaxValue", }); internal_static_google_cloud_alloydb_v1_User_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_alloydb_v1_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_User_descriptor, new java.lang.String[] { - "Name", "Password", "DatabaseRoles", "UserType", + "Name", "Password", "DatabaseRoles", "UserType", "KeepExtraRoles", + }); + internal_static_google_cloud_alloydb_v1_Database_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_alloydb_v1_Database_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Database_descriptor, + new java.lang.String[] { + "Name", "Charset", "Collation", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequest.java index 2129688d6726..04fc286c6769 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequest.java @@ -33,6 +33,7 @@ private RestartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder private RestartInstanceRequest() { name_ = ""; requestId_ = ""; + nodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -122,14 +123,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -157,14 +158,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -194,8 +195,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the restart.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -207,6 +209,74 @@ public boolean getValidateOnly() { return validateOnly_; } + public static final int NODE_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nodeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nodeIds. + */ + public com.google.protobuf.ProtocolStringList getNodeIdsList() { + return nodeIds_; + } + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nodeIds. + */ + public int getNodeIdsCount() { + return nodeIds_.size(); + } + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nodeIds at the given index. + */ + public java.lang.String getNodeIds(int index) { + return nodeIds_.get(index); + } + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nodeIds at the given index. + */ + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + return nodeIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -230,6 +300,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (validateOnly_ != false) { output.writeBool(3, validateOnly_); } + for (int i = 0; i < nodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodeIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -248,6 +321,14 @@ public int getSerializedSize() { if (validateOnly_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } + { + int dataSize = 0; + for (int i = 0; i < nodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(nodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getNodeIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -267,6 +348,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,6 +366,10 @@ public int hashCode() { hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + if (getNodeIdsCount() > 0) { + hash = (37 * hash) + NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getNodeIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -418,6 +504,7 @@ public Builder clear() { name_ = ""; requestId_ = ""; validateOnly_ = false; + nodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -463,6 +550,10 @@ private void buildPartial0(com.google.cloud.alloydb.v1.RestartInstanceRequest re if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + nodeIds_.makeImmutable(); + result.nodeIds_ = nodeIds_; + } } @java.lang.Override @@ -524,6 +615,16 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.RestartInstanceRequest othe if (other.getValidateOnly() != false) { setValidateOnly(other.getValidateOnly()); } + if (!other.nodeIds_.isEmpty()) { + if (nodeIds_.isEmpty()) { + nodeIds_ = other.nodeIds_; + bitField0_ |= 0x00000008; + } else { + ensureNodeIdsIsMutable(); + nodeIds_.addAll(other.nodeIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -568,6 +669,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNodeIdsIsMutable(); + nodeIds_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -714,14 +822,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -748,14 +856,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -782,14 +890,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -815,14 +923,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -844,14 +952,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes after the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -879,8 +987,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the restart.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -895,8 +1004,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the restart.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -915,8 +1025,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the restart.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -930,6 +1041,189 @@ public Builder clearValidateOnly() { return this; } + private com.google.protobuf.LazyStringArrayList nodeIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNodeIdsIsMutable() { + if (!nodeIds_.isModifiable()) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nodeIds. + */ + public com.google.protobuf.ProtocolStringList getNodeIdsList() { + nodeIds_.makeImmutable(); + return nodeIds_; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nodeIds. + */ + public int getNodeIdsCount() { + return nodeIds_.size(); + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nodeIds at the given index. + */ + public java.lang.String getNodeIds(int index) { + return nodeIds_.get(index); + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nodeIds at the given index. + */ + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + return nodeIds_.getByteString(index); + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The nodeIds to set. + * @return This builder for chaining. + */ + public Builder setNodeIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); + nodeIds_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nodeIds to add. + * @return This builder for chaining. + */ + public Builder addNodeIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); + nodeIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The nodeIds to add. + * @return This builder for chaining. + */ + public Builder addAllNodeIds(java.lang.Iterable values) { + ensureNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNodeIds() { + nodeIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+     * restart upon. Applicable only to read instances.
+     * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the nodeIds to add. + * @return This builder for chaining. + */ + public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNodeIdsIsMutable(); + nodeIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequestOrBuilder.java index cb668f48144c..98398c086b1d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestartInstanceRequestOrBuilder.java @@ -60,14 +60,14 @@ public interface RestartInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -84,14 +84,14 @@ public interface RestartInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes after the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -108,8 +108,9 @@ public interface RestartInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the restart.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -117,4 +118,59 @@ public interface RestartInstanceRequestOrBuilder * @return The validateOnly. */ boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nodeIds. + */ + java.util.List getNodeIdsList(); + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nodeIds. + */ + int getNodeIdsCount(); + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nodeIds at the given index. + */ + java.lang.String getNodeIds(int index); + /** + * + * + *
+   * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
+   * restart upon. Applicable only to read instances.
+   * 
+ * + * repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nodeIds at the given index. + */ + com.google.protobuf.ByteString getNodeIdsBytes(int index); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequest.java index c73bb758e69b..b50c266d7a99 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequest.java @@ -388,14 +388,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -423,14 +423,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -460,9 +460,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the import
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1890,14 +1890,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1924,14 +1924,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1958,14 +1958,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1991,14 +1991,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -2020,14 +2020,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -2055,9 +2055,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the import
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2072,9 +2072,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the import
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2093,9 +2093,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the import
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequestOrBuilder.java index 2bec31dd5c21..c69e14ae5b9d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreClusterRequestOrBuilder.java @@ -196,14 +196,14 @@ public interface RestoreClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -220,14 +220,14 @@ public interface RestoreClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -244,9 +244,9 @@ public interface RestoreClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the import
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java index 88f4b1c982ad..d78a40c5a092 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_PromoteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -128,6 +132,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_RestartInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_RestartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_ListBackupsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -200,6 +216,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_DeleteUserRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_DeleteUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -212,365 +236,408 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n%google/cloud/alloydb/v1/service.proto\022" + "\027google.cloud.alloydb.v1\032\034google/api/ann" + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032\'google/cloud/alloyd" - + "b/v1/resources.proto\032#google/longrunning" - + "/operations.proto\032\036google/protobuf/durat" - + "ion.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\032\027google/rpc/st" - + "atus.proto\"\245\001\n\023ListClustersRequest\0226\n\006pa" - + "rent\030\001 \001(\tB&\340A\002\372A \022\036alloydb.googleapis.c" - + "om/Cluster\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" - + "rder_by\030\005 \001(\tB\003\340A\001\"x\n\024ListClustersRespon" - + "se\0222\n\010clusters\030\001 \003(\0132 .google.cloud.allo" - + "ydb.v1.Cluster\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\202\001\n\021GetClusterReque" - + "st\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036alloydb.google" - + "apis.com/Cluster\0227\n\004view\030\002 \001(\0162$.google." - + "cloud.alloydb.v1.ClusterViewB\003\340A\001\"\335\001\n\035Cr" - + "eateSecondaryClusterRequest\0226\n\006parent\030\001 " - + "\001(\tB&\340A\002\372A \022\036alloydb.googleapis.com/Clus" - + "ter\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\0226\n\007cluster\030" - + "\003 \001(\0132 .google.cloud.alloydb.v1.ClusterB" - + "\003\340A\002\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\022\032\n\rvalidat" - + "e_only\030\006 \001(\010B\003\340A\001\"\324\001\n\024CreateClusterReque" - + "st\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036alloydb.goog" - + "leapis.com/Cluster\022\027\n\ncluster_id\030\002 \001(\tB\003" - + "\340A\002\0226\n\007cluster\030\003 \001(\0132 .google.cloud.allo" - + "ydb.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" - + "\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\325\001\n\024Upd" - + "ateClusterRequest\0224\n\013update_mask\030\001 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\001\0226\n\007clust" - + "er\030\002 \001(\0132 .google.cloud.alloydb.v1.Clust" - + "erB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvali" - + "date_only\030\004 \001(\010B\003\340A\001\022\032\n\rallow_missing\030\005 " - + "\001(\010B\003\340A\001\"\250\001\n\024DeleteClusterRequest\0224\n\004nam" + + "\037google/api/field_behavior.proto\032\033google" + + "/api/field_info.proto\032\031google/api/resour" + + "ce.proto\032(google/cloud/alloydb/v1/data_m" + + "odel.proto\032\'google/cloud/alloydb/v1/reso" + + "urces.proto\032#google/longrunning/operatio" + + "ns.proto\032\036google/protobuf/duration.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"\245\001\n\023ListClustersRequest\0226\n\006parent\030\001 \001(" + + "\tB&\340A\002\372A \022\036alloydb.googleapis.com/Cluste" + + "r\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\npage_token\030" + + "\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\"x\n\024ListClustersResponse\0222\n\010clu" + + "sters\030\001 \003(\0132 .google.cloud.alloydb.v1.Cl" + + "uster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"\202\001\n\021GetClusterRequest\0224\n\004nam" + "e\030\001 \001(\tB&\340A\002\372A \n\036alloydb.googleapis.com/" - + "Cluster\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\021\n\004etag" - + "\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022" - + "\022\n\005force\030\005 \001(\010B\003\340A\001\"\225\001\n\025PromoteClusterRe" - + "quest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036alloydb.goo" - + "gleapis.com/Cluster\022\027\n\nrequest_id\030\002 \001(\tB" - + "\003\340A\001\022\021\n\004etag\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only" - + "\030\004 \001(\010B\003\340A\001\"\364\002\n\025RestoreClusterRequest\022>\n" - + "\rbackup_source\030\004 \001(\0132%.google.cloud.allo" - + "ydb.v1.BackupSourceH\000\022S\n\030continuous_back" - + "up_source\030\010 \001(\0132/.google.cloud.alloydb.v" - + "1.ContinuousBackupSourceH\000\0226\n\006parent\030\001 \001" - + "(\tB&\340A\002\372A \022\036alloydb.googleapis.com/Clust" - + "er\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\0226\n\007cluster\030\003" - + " \001(\0132 .google.cloud.alloydb.v1.ClusterB\003" - + "\340A\002\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\022\032\n\rvalidate" - + "_only\030\006 \001(\010B\003\340A\001B\010\n\006source\"\247\001\n\024ListInsta" - + "ncesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037all" - + "oydb.googleapis.com/Instance\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\022\n\npage_token\030\003 \001(\t\022\023\n\006filt" - + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"{\n\025" - + "ListInstancesResponse\0224\n\tinstances\030\001 \003(\013" - + "2!.google.cloud.alloydb.v1.Instance\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"\200\001\n\022GetInstanceRequest\0225\n\004name\030\001 \001(\tB\'" - + "\340A\002\372A!\n\037alloydb.googleapis.com/Instance\022" - + "3\n\004view\030\002 \001(\0162%.google.cloud.alloydb.v1." - + "InstanceView\"\331\001\n\025CreateInstanceRequest\0227" - + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037alloydb.googleap" - + "is.com/Instance\022\030\n\013instance_id\030\002 \001(\tB\003\340A" - + "\002\0228\n\010instance\030\003 \001(\0132!.google.cloud.alloy" - + "db.v1.InstanceB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" - + "\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\342\001\n\036Cre" - + "ateSecondaryInstanceRequest\0227\n\006parent\030\001 " - + "\001(\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Inst" - + "ance\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\0228\n\010instan" - + "ce\030\003 \001(\0132!.google.cloud.alloydb.v1.Insta" - + "nceB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rval" - + "idate_only\030\005 \001(\010B\003\340A\001\"o\n\026CreateInstanceR" - + "equests\022U\n\030create_instance_requests\030\001 \003(" - + "\0132..google.cloud.alloydb.v1.CreateInstan" - + "ceRequestB\003\340A\002\"\267\001\n\033BatchCreateInstancesR" - + "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037alloydb." - + "googleapis.com/Instance\022F\n\010requests\030\002 \001(" - + "\0132/.google.cloud.alloydb.v1.CreateInstan" - + "ceRequestsB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001" - + "\"T\n\034BatchCreateInstancesResponse\0224\n\tinst" - + "ances\030\001 \003(\0132!.google.cloud.alloydb.v1.In" - + "stance\"\215\002\n\034BatchCreateInstancesMetadata\022" - + "\030\n\020instance_targets\030\001 \003(\t\022f\n\021instance_st" - + "atuses\030\002 \003(\0132K.google.cloud.alloydb.v1.B" - + "atchCreateInstancesMetadata.InstanceStat" - + "usesEntry\032k\n\025InstanceStatusesEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud.al" - + "loydb.v1.BatchCreateInstanceStatus:\0028\001\"\320" - + "\002\n\031BatchCreateInstanceStatus\022G\n\005state\030\001 " - + "\001(\01628.google.cloud.alloydb.v1.BatchCreat" - + "eInstanceStatus.State\022\021\n\terror_msg\030\002 \001(\t" - + "\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\022<\n\004t" - + "ype\030\003 \001(\0162..google.cloud.alloydb.v1.Inst" - + "ance.InstanceType\"v\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\022\n\016PENDING_CREATE\020\001\022\t\n\005READY\020\002" - + "\022\014\n\010CREATING\020\003\022\014\n\010DELETING\020\004\022\n\n\006FAILED\020\005" - + "\022\017\n\013ROLLED_BACK\020\006\"\330\001\n\025UpdateInstanceRequ" - + "est\0224\n\013update_mask\030\001 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\001\0228\n\010instance\030\002 \001(\0132!.go" - + "ogle.cloud.alloydb.v1.InstanceB\003\340A\002\022\027\n\nr" - + "equest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 " - + "\001(\010B\003\340A\001\022\032\n\rallow_missing\030\005 \001(\010B\003\340A\001\"\226\001\n" - + "\025DeleteInstanceRequest\0225\n\004name\030\001 \001(\tB\'\340A" - + "\002\372A!\n\037alloydb.googleapis.com/Instance\022\027\n" - + "\nrequest_id\030\002 \001(\tB\003\340A\001\022\021\n\004etag\030\003 \001(\tB\003\340A" - + "\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\"\205\001\n\027Failov" - + "erInstanceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037alloydb.googleapis.com/Instance\022\027\n\nrequ" - + "est_id\030\002 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010" - + "B\003\340A\001\"\206\002\n\022InjectFaultRequest\022N\n\nfault_ty" - + "pe\030\001 \001(\01625.google.cloud.alloydb.v1.Injec" - + "tFaultRequest.FaultTypeB\003\340A\002\0225\n\004name\030\002 \001" - + "(\tB\'\340A\002\372A!\n\037alloydb.googleapis.com/Insta" - + "nce\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate" - + "_only\030\004 \001(\010B\003\340A\001\"4\n\tFaultType\022\032\n\026FAULT_T" - + "YPE_UNSPECIFIED\020\000\022\013\n\007STOP_VM\020\001\"\204\001\n\026Resta" - + "rtInstanceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037alloydb.googleapis.com/Instance\022\027\n\nrequ" - + "est_id\030\002 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010" - + "B\003\340A\001\"\224\001\n\022ListBackupsRequest\0225\n\006parent\030\001" - + " \001(\tB%\340A\002\372A\037\022\035alloydb.googleapis.com/Bac" - + "kup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\023" - + "ListBackupsResponse\0220\n\007backups\030\001 \003(\0132\037.g" - + "oogle.cloud.alloydb.v1.Backup\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"G\n\020G" - + "etBackupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035a" - + "lloydb.googleapis.com/Backup\"\317\001\n\023CreateB" - + "ackupRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035al" - + "loydb.googleapis.com/Backup\022\026\n\tbackup_id" - + "\030\002 \001(\tB\003\340A\002\0224\n\006backup\030\003 \001(\0132\037.google.clo" - + "ud.alloydb.v1.BackupB\003\340A\002\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\322" - + "\001\n\023UpdateBackupRequest\0224\n\013update_mask\030\001 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0224\n\006" - + "backup\030\002 \001(\0132\037.google.cloud.alloydb.v1.B" - + "ackupB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rv" - + "alidate_only\030\004 \001(\010B\003\340A\001\022\032\n\rallow_missing" - + "\030\005 \001(\010B\003\340A\001\"\222\001\n\023DeleteBackupRequest\0223\n\004n" - + "ame\030\001 \001(\tB%\340A\002\372A\037\n\035alloydb.googleapis.co" - + "m/Backup\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rval" - + "idate_only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001" - + "\"\220\001\n!ListSupportedDatabaseFlagsRequest\022D" - + "\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,alloydb.googleap" - + "is.com/SupportedDatabaseFlag\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\217\001\n\"ListSupp" - + "ortedDatabaseFlagsResponse\022P\n\030supported_" - + "database_flags\030\001 \003(\0132..google.cloud.allo" - + "ydb.v1.SupportedDatabaseFlag\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"\347\001\n GenerateClientCertific" - + "ateRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036allo" + + "Cluster\0227\n\004view\030\002 \001(\0162$.google.cloud.all" + + "oydb.v1.ClusterViewB\003\340A\001\"\335\001\n\035CreateSecon" + + "daryClusterRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372" + + "A \022\036alloydb.googleapis.com/Cluster\022\027\n\ncl" + + "uster_id\030\002 \001(\tB\003\340A\002\0226\n\007cluster\030\003 \001(\0132 .g" + + "oogle.cloud.alloydb.v1.ClusterB\003\340A\002\022\027\n\nr" + + "equest_id\030\005 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\006 " + + "\001(\010B\003\340A\001\"\324\001\n\024CreateClusterRequest\0226\n\006par" + + "ent\030\001 \001(\tB&\340A\002\372A \022\036alloydb.googleapis.co" + + "m/Cluster\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\0226\n\007cl" + + "uster\030\003 \001(\0132 .google.cloud.alloydb.v1.Cl" + + "usterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" + + "alidate_only\030\005 \001(\010B\003\340A\001\"\325\001\n\024UpdateCluste" + + "rRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\0226\n\007cluster\030\002 \001(\0132" + + " .google.cloud.alloydb.v1.ClusterB\003\340A\002\022\027" + + "\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only" + + "\030\004 \001(\010B\003\340A\001\022\032\n\rallow_missing\030\005 \001(\010B\003\340A\001\"" + + "\250\001\n\024DeleteClusterRequest\0224\n\004name\030\001 \001(\tB&" + + "\340A\002\372A \n\036alloydb.googleapis.com/Cluster\022\027" + + "\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\021\n\004etag\030\003 \001(\tB\003\340" + + "A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030" + + "\005 \001(\010B\003\340A\001\"\205\001\n\030SwitchoverClusterRequest\022" + + "4\n\004name\030\001 \001(\tB&\340A\002\372A \n\036alloydb.googleapi" + + "s.com/Cluster\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032" + + "\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\225\001\n\025PromoteCl" + + "usterRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036allo" + "ydb.googleapis.com/Cluster\022\027\n\nrequest_id" - + "\030\002 \001(\tB\003\340A\001\0225\n\rcert_duration\030\004 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\022\027\n\npublic_key" - + "\030\005 \001(\tB\003\340A\001\022\"\n\025use_metadata_exchange\030\006 \001" - + "(\010B\003\340A\001\"]\n!GenerateClientCertificateResp" - + "onse\022\"\n\025pem_certificate_chain\030\002 \003(\tB\003\340A\003" - + "\022\024\n\007ca_cert\030\003 \001(\tB\003\340A\001\"l\n\030GetConnectionI" - + "nfoRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037allo" - + "ydb.googleapis.com/Instance\022\027\n\nrequest_i" - + "d\030\002 \001(\tB\003\340A\001\"\373\002\n\021OperationMetadata\022e\n\037ba" - + "tch_create_instances_metadata\030\010 \001(\01325.go" - + "ogle.cloud.alloydb.v1.BatchCreateInstanc" - + "esMetadataB\003\340A\003H\000\0224\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" - + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340" - + "A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026reque" - + "sted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_vers" - + "ion\030\007 \001(\tB\003\340A\003B\022\n\020request_specific\"\244\001\n\020L" - + "istUsersRequest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022" - + "\033alloydb.googleapis.com/User\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\"o\n\021ListUsersResponse\022,\n\005users\030\001 \003(\0132\035." - + "google.cloud.alloydb.v1.User\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"C\n\016Ge" - + "tUserRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033allo" - + "ydb.googleapis.com/User\"\305\001\n\021CreateUserRe" - + "quest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033alloydb.g" - + "oogleapis.com/User\022\024\n\007user_id\030\002 \001(\tB\003\340A\002" - + "\0220\n\004user\030\003 \001(\0132\035.google.cloud.alloydb.v1" - + ".UserB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" - + "alidate_only\030\005 \001(\010B\003\340A\001\"\314\001\n\021UpdateUserRe" - + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\001\0220\n\004user\030\002 \001(\0132\035.goog" - + "le.cloud.alloydb.v1.UserB\003\340A\002\022\027\n\nrequest" - + "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" - + "A\001\022\032\n\rallow_missing\030\005 \001(\010B\003\340A\001\"{\n\021Delete" - + "UserRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033alloy" - + "db.googleapis.com/User\022\027\n\nrequest_id\030\002 \001" - + "(\tB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\0012\3721\n\014" - + "AlloyDBAdmin\022\252\001\n\014ListClusters\022,.google.c" - + "loud.alloydb.v1.ListClustersRequest\032-.go" - + "ogle.cloud.alloydb.v1.ListClustersRespon" - + "se\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=project" - + "s/*/locations/*}/clusters\022\227\001\n\nGetCluster" - + "\022*.google.cloud.alloydb.v1.GetClusterReq" - + "uest\032 .google.cloud.alloydb.v1.Cluster\";" - + "\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/loca" - + "tions/*/clusters/*}\022\327\001\n\rCreateCluster\022-." - + "google.cloud.alloydb.v1.CreateClusterReq" - + "uest\032\035.google.longrunning.Operation\"x\312A\034" - + "\n\007Cluster\022\021OperationMetadata\332A\031parent,cl" - + "uster,cluster_id\202\323\344\223\0027\",/v1/{parent=proj" - + "ects/*/locations/*}/clusters:\007cluster\022\331\001" - + "\n\rUpdateCluster\022-.google.cloud.alloydb.v" - + "1.UpdateClusterRequest\032\035.google.longrunn" - + "ing.Operation\"z\312A\034\n\007Cluster\022\021OperationMe" - + "tadata\332A\023cluster,update_mask\202\323\344\223\002?24/v1/" - + "{cluster.name=projects/*/locations/*/clu" - + "sters/*}:\007cluster\022\307\001\n\rDeleteCluster\022-.go" - + "ogle.cloud.alloydb.v1.DeleteClusterReque" - + "st\032\035.google.longrunning.Operation\"h\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/loca" - + "tions/*/clusters/*}\022\306\001\n\016PromoteCluster\022." - + ".google.cloud.alloydb.v1.PromoteClusterR" - + "equest\032\035.google.longrunning.Operation\"e\312" - + "A\034\n\007Cluster\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\0029\"4/v1/{name=projects/*/locations/*/cl" - + "usters/*}:promote:\001*\022\277\001\n\016RestoreCluster\022" - + "..google.cloud.alloydb.v1.RestoreCluster" - + "Request\032\035.google.longrunning.Operation\"^" - + "\312A\034\n\007Cluster\022\021OperationMetadata\202\323\344\223\0029\"4/" - + "v1/{parent=projects/*/locations/*}/clust" - + "ers:restore:\001*\022\372\001\n\026CreateSecondaryCluste" - + "r\0226.google.cloud.alloydb.v1.CreateSecond" - + "aryClusterRequest\032\035.google.longrunning.O" - + "peration\"\210\001\312A\034\n\007Cluster\022\021OperationMetada" - + "ta\332A\031parent,cluster,cluster_id\202\323\344\223\002G\"\n\rbackup_source\030\004 \001(\0132%.google.clo" + + "ud.alloydb.v1.BackupSourceH\000\022S\n\030continuo" + + "us_backup_source\030\010 \001(\0132/.google.cloud.al" + + "loydb.v1.ContinuousBackupSourceH\000\0226\n\006par" + + "ent\030\001 \001(\tB&\340A\002\372A \022\036alloydb.googleapis.co" + + "m/Cluster\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\0226\n\007cl" + + "uster\030\003 \001(\0132 .google.cloud.alloydb.v1.Cl" + + "usterB\003\340A\002\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\022\032\n\rv" + + "alidate_only\030\006 \001(\010B\003\340A\001B\010\n\006source\"\247\001\n\024Li" + + "stInstancesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372" + + "A!\022\037alloydb.googleapis.com/Instance\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\022\n\npage_token\030\003 \001(\t\022" + + "\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003" + + "\340A\001\"{\n\025ListInstancesResponse\0224\n\tinstance" + + "s\030\001 \003(\0132!.google.cloud.alloydb.v1.Instan" + + "ce\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" + + "le\030\003 \003(\t\"\200\001\n\022GetInstanceRequest\0225\n\004name\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037alloydb.googleapis.com/In" + + "stance\0223\n\004view\030\002 \001(\0162%.google.cloud.allo" + + "ydb.v1.InstanceView\"\331\001\n\025CreateInstanceRe" + + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037alloydb.g" + + "oogleapis.com/Instance\022\030\n\013instance_id\030\002 " + + "\001(\tB\003\340A\002\0228\n\010instance\030\003 \001(\0132!.google.clou" + + "d.alloydb.v1.InstanceB\003\340A\002\022\027\n\nrequest_id" + + "\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"" + + "\342\001\n\036CreateSecondaryInstanceRequest\0227\n\006pa" + + "rent\030\001 \001(\tB\'\340A\002\372A!\022\037alloydb.googleapis.c" + + "om/Instance\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\0228\n" + + "\010instance\030\003 \001(\0132!.google.cloud.alloydb.v" + + "1.InstanceB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"o\n\026CreateIn" + + "stanceRequests\022U\n\030create_instance_reques" + + "ts\030\001 \003(\0132..google.cloud.alloydb.v1.Creat" + + "eInstanceRequestB\003\340A\002\"\267\001\n\033BatchCreateIns" + + "tancesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037a" + + "lloydb.googleapis.com/Instance\022F\n\010reques" + + "ts\030\002 \001(\0132/.google.cloud.alloydb.v1.Creat" + + "eInstanceRequestsB\003\340A\002\022\027\n\nrequest_id\030\003 \001" + + "(\tB\003\340A\001\"T\n\034BatchCreateInstancesResponse\022" + + "4\n\tinstances\030\001 \003(\0132!.google.cloud.alloyd" + + "b.v1.Instance\"\215\002\n\034BatchCreateInstancesMe" + + "tadata\022\030\n\020instance_targets\030\001 \003(\t\022f\n\021inst" + + "ance_statuses\030\002 \003(\0132K.google.cloud.alloy" + + "db.v1.BatchCreateInstancesMetadata.Insta" + + "nceStatusesEntry\032k\n\025InstanceStatusesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.c" + + "loud.alloydb.v1.BatchCreateInstanceStatu" + + "s:\0028\001\"\320\002\n\031BatchCreateInstanceStatus\022G\n\005s" + + "tate\030\001 \001(\01628.google.cloud.alloydb.v1.Bat" + + "chCreateInstanceStatus.State\022\021\n\terror_ms" + + "g\030\002 \001(\t\022!\n\005error\030\004 \001(\0132\022.google.rpc.Stat" + + "us\022<\n\004type\030\003 \001(\0162..google.cloud.alloydb." + + "v1.Instance.InstanceType\"v\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\022\n\016PENDING_CREATE\020\001\022\t\n\005" + + "READY\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETING\020\004\022\n\n\006F" + + "AILED\020\005\022\017\n\013ROLLED_BACK\020\006\"\330\001\n\025UpdateInsta" + + "nceRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\001\0228\n\010instance\030\002 \001" + + "(\0132!.google.cloud.alloydb.v1.InstanceB\003\340" + + "A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_" + + "only\030\004 \001(\010B\003\340A\001\022\032\n\rallow_missing\030\005 \001(\010B\003" + + "\340A\001\"\226\001\n\025DeleteInstanceRequest\0225\n\004name\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037alloydb.googleapis.com/Inst" + + "ance\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\021\n\004etag\030\003 " + + "\001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\"\205\001\n" + + "\027FailoverInstanceRequest\0225\n\004name\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037alloydb.googleapis.com/Instance\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rvalidate_onl" + + "y\030\003 \001(\010B\003\340A\001\"\206\002\n\022InjectFaultRequest\022N\n\nf" + + "ault_type\030\001 \001(\01625.google.cloud.alloydb.v" + + "1.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n\004n" + + "ame\030\002 \001(\tB\'\340A\002\372A!\n\037alloydb.googleapis.co" + + "m/Instance\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rv" + + "alidate_only\030\004 \001(\010B\003\340A\001\"4\n\tFaultType\022\032\n\026" + + "FAULT_TYPE_UNSPECIFIED\020\000\022\013\n\007STOP_VM\020\001\"\233\001" + + "\n\026RestartInstanceRequest\0225\n\004name\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037alloydb.googleapis.com/Instance\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rvalidate_onl" + + "y\030\003 \001(\010B\003\340A\001\022\025\n\010node_ids\030\004 \003(\tB\003\340A\001\"\300\001\n\021" + + "ExecuteSqlRequest\022\027\n\010password\030\005 \001(\tB\003\340A\001" + + "H\000\0229\n\010instance\030\001 \001(\tB\'\340A\002\372A!\n\037alloydb.go" + + "ogleapis.com/Instance\022\025\n\010database\030\002 \001(\tB" + + "\003\340A\002\022\021\n\004user\030\003 \001(\tB\003\340A\002\022\032\n\rsql_statement" + + "\030\004 \001(\tB\003\340A\002B\021\n\017user_credential\"\214\001\n\022Execu" + + "teSqlResponse\0227\n\013sql_results\030\001 \003(\0132\".goo" + + "gle.cloud.alloydb.v1.SqlResult\022=\n\010metada" + + "ta\030\003 \001(\0132+.google.cloud.alloydb.v1.Execu" + + "teSqlMetadata\"\210\002\n\022ExecuteSqlMetadata\022\017\n\007" + + "message\030\001 \001(\t\022\026\n\016partial_result\030\002 \001(\010\022C\n" + + " sql_statement_execution_duration\030\003 \001(\0132" + + "\031.google.protobuf.Duration\022B\n\006status\030\004 \001" + + "(\01622.google.cloud.alloydb.v1.ExecuteSqlM" + + "etadata.Status\"@\n\006Status\022\026\n\022STATUS_UNSPE" + + "CIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007PARTIAL\020\002\022\t\n\005ERROR\020\003" + + "\"\224\001\n\022ListBackupsRequest\0225\n\006parent\030\001 \001(\tB" + + "%\340A\002\372A\037\022\035alloydb.googleapis.com/Backup\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + + "\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\023ListB" + + "ackupsResponse\0220\n\007backups\030\001 \003(\0132\037.google" + + ".cloud.alloydb.v1.Backup\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"G\n\020GetBac" + + "kupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035alloyd" + + "b.googleapis.com/Backup\"\317\001\n\023CreateBackup" + + "Request\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035alloydb" + + ".googleapis.com/Backup\022\026\n\tbackup_id\030\002 \001(" + + "\tB\003\340A\002\0224\n\006backup\030\003 \001(\0132\037.google.cloud.al" + + "loydb.v1.BackupB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" + + "B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\322\001\n\023Up" + + "dateBackupRequest\0224\n\013update_mask\030\001 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\001\0224\n\006backu" + + "p\030\002 \001(\0132\037.google.cloud.alloydb.v1.Backup" + + "B\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalida" + + "te_only\030\004 \001(\010B\003\340A\001\022\032\n\rallow_missing\030\005 \001(" + + "\010B\003\340A\001\"\222\001\n\023DeleteBackupRequest\0223\n\004name\030\001" + + " \001(\tB%\340A\002\372A\037\n\035alloydb.googleapis.com/Bac" + + "kup\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rvalidate" + + "_only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\220\001\n!" + + "ListSupportedDatabaseFlagsRequest\022D\n\006par" + + "ent\030\001 \001(\tB4\340A\002\372A.\022,alloydb.googleapis.co" + + "m/SupportedDatabaseFlag\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"\217\001\n\"ListSupported" + + "DatabaseFlagsResponse\022P\n\030supported_datab" + + "ase_flags\030\001 \003(\0132..google.cloud.alloydb.v" + + "1.SupportedDatabaseFlag\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\347\001\n GenerateClientCertificateRe" + + "quest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036alloydb.g" + + "oogleapis.com/Cluster\022\027\n\nrequest_id\030\002 \001(" + + "\tB\003\340A\001\0225\n\rcert_duration\030\004 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\001\022\027\n\npublic_key\030\005 \001(" + + "\tB\003\340A\001\022\"\n\025use_metadata_exchange\030\006 \001(\010B\003\340" + + "A\001\"]\n!GenerateClientCertificateResponse\022" + + "\"\n\025pem_certificate_chain\030\002 \003(\tB\003\340A\003\022\024\n\007c" + + "a_cert\030\003 \001(\tB\003\340A\001\"l\n\030GetConnectionInfoRe" + + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037alloydb.g" + + "oogleapis.com/Instance\022\027\n\nrequest_id\030\002 \001" + + "(\tB\003\340A\001\"\373\002\n\021OperationMetadata\022e\n\037batch_c" + + "reate_instances_metadata\030\010 \001(\01325.google." + + "cloud.alloydb.v1.BatchCreateInstancesMet" + + "adataB\003\340A\003H\000\0224\n\013create_time\030\001 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_" + + "cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007" + + " \001(\tB\003\340A\003B\022\n\020request_specific\"\244\001\n\020ListUs" + + "ersRequest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033allo" + + "ydb.googleapis.com/User\022\026\n\tpage_size\030\002 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"o\n\021" + + "ListUsersResponse\022,\n\005users\030\001 \003(\0132\035.googl" + + "e.cloud.alloydb.v1.User\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"C\n\016GetUser" + + "Request\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033alloydb.g" + + "oogleapis.com/User\"\305\001\n\021CreateUserRequest" + + "\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033alloydb.google" + + "apis.com/User\022\024\n\007user_id\030\002 \001(\tB\003\340A\002\0220\n\004u" + + "ser\030\003 \001(\0132\035.google.cloud.alloydb.v1.User" + + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalida" + + "te_only\030\005 \001(\010B\003\340A\001\"\314\001\n\021UpdateUserRequest" + + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\001\0220\n\004user\030\002 \001(\0132\035.google.cl" + + "oud.alloydb.v1.UserB\003\340A\002\022\027\n\nrequest_id\030\003" + + " \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\032\n" + + "\rallow_missing\030\005 \001(\010B\003\340A\001\"{\n\021DeleteUserR" + + "equest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033alloydb.go" + + "ogleapis.com/User\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + + "A\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\225\001\n\024ListD" + + "atabasesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022" + + "\037alloydb.googleapis.com/Database\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"f\n\025ListDatabasesR" + + "esponse\0224\n\tdatabases\030\001 \003(\0132!.google.clou" + + "d.alloydb.v1.Database\022\027\n\017next_page_token" + + "\030\002 \001(\t2\3656\n\014AlloyDBAdmin\022\252\001\n\014ListClusters" + + "\022,.google.cloud.alloydb.v1.ListClustersR" + + "equest\032-.google.cloud.alloydb.v1.ListClu" + + "stersResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{par" + + "ent=projects/*/locations/*}/clusters\022\227\001\n" + + "\nGetCluster\022*.google.cloud.alloydb.v1.Ge" + + "tClusterRequest\032 .google.cloud.alloydb.v" + + "1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{name=proj" + + "ects/*/locations/*/clusters/*}\022\327\001\n\rCreat" + + "eCluster\022-.google.cloud.alloydb.v1.Creat" + + "eClusterRequest\032\035.google.longrunning.Ope" + + "ration\"x\312A\034\n\007Cluster\022\021OperationMetadata\332" + + "A\031parent,cluster,cluster_id\202\323\344\223\0027\",/v1/{" + + "parent=projects/*/locations/*}/clusters:" + + "\007cluster\022\331\001\n\rUpdateCluster\022-.google.clou" + + "d.alloydb.v1.UpdateClusterRequest\032\035.goog" + + "le.longrunning.Operation\"z\312A\034\n\007Cluster\022\021" + + "OperationMetadata\332A\023cluster,update_mask\202" + + "\323\344\223\002?24/v1/{cluster.name=projects/*/loca" + + "tions/*/clusters/*}:\007cluster\022\307\001\n\rDeleteC" + + "luster\022-.google.cloud.alloydb.v1.DeleteC" + + "lusterRequest\032\035.google.longrunning.Opera" + + "tion\"h\312A*\n\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002.*,/v1/{name=proj" + + "ects/*/locations/*/clusters/*}\022\306\001\n\016Promo" + + "teCluster\022..google.cloud.alloydb.v1.Prom" + + "oteClusterRequest\032\035.google.longrunning.O" + + "peration\"e\312A\034\n\007Cluster\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\0029\"4/v1/{name=projects/*/loc" + + "ations/*/clusters/*}:promote:\001*\022\317\001\n\021Swit" + + "choverCluster\0221.google.cloud.alloydb.v1." + + "SwitchoverClusterRequest\032\035.google.longru" + + "nning.Operation\"h\312A\034\n\007Cluster\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002<\"7/v1/{name=project" + + "s/*/locations/*/clusters/*}:switchover:\001" + + "*\022\277\001\n\016RestoreCluster\022..google.cloud.allo" + + "ydb.v1.RestoreClusterRequest\032\035.google.lo" + + "ngrunning.Operation\"^\312A\034\n\007Cluster\022\021Opera" + + "tionMetadata\202\323\344\223\0029\"4/v1/{parent=projects" + + "/*/locations/*}/clusters:restore:\001*\022\372\001\n\026" + + "CreateSecondaryCluster\0226.google.cloud.al" + + "loydb.v1.CreateSecondaryClusterRequest\032\035" + + ".google.longrunning.Operation\"\210\001\312A\034\n\007Clu" + + "ster\022\021OperationMetadata\332A\031parent,cluster" + + ",cluster_id\202\323\344\223\002G\" + * SqlResult represents the result for the execution of a sql statement. + *
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResult} + */ +public final class SqlResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.SqlResult) + SqlResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlResult.newBuilder() to construct. + private SqlResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlResult() { + columns_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResult.class, + com.google.cloud.alloydb.v1.SqlResult.Builder.class); + } + + public static final int COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List columns_; + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumn getColumns(int index) { + return columns_.get(index); + } + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder getColumnsOrBuilder(int index) { + return columns_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rows_; + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRow getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(1, columns_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(2, rows_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rows_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.SqlResult)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.SqlResult other = (com.google.cloud.alloydb.v1.SqlResult) obj; + + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.SqlResult 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SqlResult represents the result for the execution of a sql statement.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.SqlResult) + com.google.cloud.alloydb.v1.SqlResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResult.class, + com.google.cloud.alloydb.v1.SqlResult.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.SqlResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResult getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.SqlResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResult build() { + com.google.cloud.alloydb.v1.SqlResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResult buildPartial() { + com.google.cloud.alloydb.v1.SqlResult result = + new com.google.cloud.alloydb.v1.SqlResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.alloydb.v1.SqlResult result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.SqlResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.SqlResult) { + return mergeFrom((com.google.cloud.alloydb.v1.SqlResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.SqlResult other) { + if (other == com.google.cloud.alloydb.v1.SqlResult.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.SqlResultColumn m = + input.readMessage( + com.google.cloud.alloydb.v1.SqlResultColumn.parser(), extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.alloydb.v1.SqlResultRow m = + input.readMessage( + com.google.cloud.alloydb.v1.SqlResultRow.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultColumn, + com.google.cloud.alloydb.v1.SqlResultColumn.Builder, + com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder> + columnsBuilder_; + + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder setColumns(int index, com.google.cloud.alloydb.v1.SqlResultColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder setColumns( + int index, com.google.cloud.alloydb.v1.SqlResultColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder addColumns(com.google.cloud.alloydb.v1.SqlResultColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder addColumns(int index, com.google.cloud.alloydb.v1.SqlResultColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder addColumns(com.google.cloud.alloydb.v1.SqlResultColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder addColumns( + int index, com.google.cloud.alloydb.v1.SqlResultColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultColumn.Builder getColumnsBuilder(int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder getColumnsOrBuilder(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.SqlResultColumn.getDefaultInstance()); + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultColumn.Builder addColumnsBuilder(int index) { + return getColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.SqlResultColumn.getDefaultInstance()); + } + /** + * + * + *
+     * List of columns included in the result. This also includes the data type
+     * of the column.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultColumn, + com.google.cloud.alloydb.v1.SqlResultColumn.Builder, + com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultColumn, + com.google.cloud.alloydb.v1.SqlResultColumn.Builder, + com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder>( + columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultRow, + com.google.cloud.alloydb.v1.SqlResultRow.Builder, + com.google.cloud.alloydb.v1.SqlResultRowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public com.google.cloud.alloydb.v1.SqlResultRow getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder setRows(int index, com.google.cloud.alloydb.v1.SqlResultRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder setRows( + int index, com.google.cloud.alloydb.v1.SqlResultRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder addRows(com.google.cloud.alloydb.v1.SqlResultRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder addRows(int index, com.google.cloud.alloydb.v1.SqlResultRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder addRows(com.google.cloud.alloydb.v1.SqlResultRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder addRows( + int index, com.google.cloud.alloydb.v1.SqlResultRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public com.google.cloud.alloydb.v1.SqlResultRow.Builder getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public com.google.cloud.alloydb.v1.SqlResultRowOrBuilder getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public com.google.cloud.alloydb.v1.SqlResultRow.Builder addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.SqlResultRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public com.google.cloud.alloydb.v1.SqlResultRow.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.SqlResultRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows returned by the SQL statement.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + public java.util.List getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultRow, + com.google.cloud.alloydb.v1.SqlResultRow.Builder, + com.google.cloud.alloydb.v1.SqlResultRowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultRow, + com.google.cloud.alloydb.v1.SqlResultRow.Builder, + com.google.cloud.alloydb.v1.SqlResultRowOrBuilder>( + rows_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.SqlResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.SqlResult) + private static final com.google.cloud.alloydb.v1.SqlResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.SqlResult(); + } + + public static com.google.cloud.alloydb.v1.SqlResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumn.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumn.java new file mode 100644 index 000000000000..5f5dad32e8eb --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumn.java @@ -0,0 +1,820 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Contains the name and datatype of a column in a SQL Result.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultColumn} + */ +public final class SqlResultColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.SqlResultColumn) + SqlResultColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlResultColumn.newBuilder() to construct. + private SqlResultColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlResultColumn() { + name_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlResultColumn(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultColumn.class, + com.google.cloud.alloydb.v1.SqlResultColumn.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the column.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the column.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + * + * + *
+   * Datatype of the column as reported by the postgres driver.
+   * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+   * "INT", and "BIGINT".
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Datatype of the column as reported by the postgres driver.
+   * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+   * "INT", and "BIGINT".
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.SqlResultColumn)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.SqlResultColumn other = + (com.google.cloud.alloydb.v1.SqlResultColumn) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.SqlResultColumn 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Contains the name and datatype of a column in a SQL Result.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.SqlResultColumn) + com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultColumn.class, + com.google.cloud.alloydb.v1.SqlResultColumn.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.SqlResultColumn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumn getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.SqlResultColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumn build() { + com.google.cloud.alloydb.v1.SqlResultColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumn buildPartial() { + com.google.cloud.alloydb.v1.SqlResultColumn result = + new com.google.cloud.alloydb.v1.SqlResultColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.SqlResultColumn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.SqlResultColumn) { + return mergeFrom((com.google.cloud.alloydb.v1.SqlResultColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.SqlResultColumn other) { + if (other == com.google.cloud.alloydb.v1.SqlResultColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the column.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the column.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the column.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the column.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the column.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Datatype of the column as reported by the postgres driver.
+     * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+     * "INT", and "BIGINT".
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Datatype of the column as reported by the postgres driver.
+     * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+     * "INT", and "BIGINT".
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Datatype of the column as reported by the postgres driver.
+     * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+     * "INT", and "BIGINT".
+     * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Datatype of the column as reported by the postgres driver.
+     * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+     * "INT", and "BIGINT".
+     * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Datatype of the column as reported by the postgres driver.
+     * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+     * "INT", and "BIGINT".
+     * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.SqlResultColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.SqlResultColumn) + private static final com.google.cloud.alloydb.v1.SqlResultColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.SqlResultColumn(); + } + + public static com.google.cloud.alloydb.v1.SqlResultColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlResultColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumnOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumnOrBuilder.java new file mode 100644 index 000000000000..1ee75ea4263d --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultColumnOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface SqlResultColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SqlResultColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the column.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the column.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Datatype of the column as reported by the postgres driver.
+   * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+   * "INT", and "BIGINT".
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Datatype of the column as reported by the postgres driver.
+   * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
+   * "INT", and "BIGINT".
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultOrBuilder.java new file mode 100644 index 000000000000..32b4b474c764 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface SqlResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SqlResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + java.util.List getColumnsList(); + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + com.google.cloud.alloydb.v1.SqlResultColumn getColumns(int index); + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + int getColumnsCount(); + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + java.util.List + getColumnsOrBuilderList(); + /** + * + * + *
+   * List of columns included in the result. This also includes the data type
+   * of the column.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; + */ + com.google.cloud.alloydb.v1.SqlResultColumnOrBuilder getColumnsOrBuilder(int index); + + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + java.util.List getRowsList(); + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + com.google.cloud.alloydb.v1.SqlResultRow getRows(int index); + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + int getRowsCount(); + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + java.util.List + getRowsOrBuilderList(); + /** + * + * + *
+   * Rows returned by the SQL statement.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; + */ + com.google.cloud.alloydb.v1.SqlResultRowOrBuilder getRowsOrBuilder(int index); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRow.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRow.java new file mode 100644 index 000000000000..9dea7fc4bbde --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRow.java @@ -0,0 +1,933 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * A single row from a sql result.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultRow} + */ +public final class SqlResultRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.SqlResultRow) + SqlResultRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlResultRow.newBuilder() to construct. + private SqlResultRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlResultRow() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlResultRow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultRow.class, + com.google.cloud.alloydb.v1.SqlResultRow.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List values_; + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValue getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValueOrBuilder getValuesOrBuilder(int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.SqlResultRow)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.SqlResultRow other = (com.google.cloud.alloydb.v1.SqlResultRow) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.SqlResultRow 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A single row from a sql result.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.SqlResultRow) + com.google.cloud.alloydb.v1.SqlResultRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultRow.class, + com.google.cloud.alloydb.v1.SqlResultRow.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.SqlResultRow.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultRow_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRow getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.SqlResultRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRow build() { + com.google.cloud.alloydb.v1.SqlResultRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRow buildPartial() { + com.google.cloud.alloydb.v1.SqlResultRow result = + new com.google.cloud.alloydb.v1.SqlResultRow(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.alloydb.v1.SqlResultRow result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.SqlResultRow result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.SqlResultRow) { + return mergeFrom((com.google.cloud.alloydb.v1.SqlResultRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.SqlResultRow other) { + if (other == com.google.cloud.alloydb.v1.SqlResultRow.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1.SqlResultValue m = + input.readMessage( + com.google.cloud.alloydb.v1.SqlResultValue.parser(), extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultValue, + com.google.cloud.alloydb.v1.SqlResultValue.Builder, + com.google.cloud.alloydb.v1.SqlResultValueOrBuilder> + valuesBuilder_; + + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder setValues(int index, com.google.cloud.alloydb.v1.SqlResultValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder setValues( + int index, com.google.cloud.alloydb.v1.SqlResultValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder addValues(com.google.cloud.alloydb.v1.SqlResultValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder addValues(int index, com.google.cloud.alloydb.v1.SqlResultValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder addValues(com.google.cloud.alloydb.v1.SqlResultValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder addValues( + int index, com.google.cloud.alloydb.v1.SqlResultValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultValue.Builder getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultValueOrBuilder getValuesOrBuilder(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultValue.Builder addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1.SqlResultValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public com.google.cloud.alloydb.v1.SqlResultValue.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1.SqlResultValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of values in a row of sql result.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultValue, + com.google.cloud.alloydb.v1.SqlResultValue.Builder, + com.google.cloud.alloydb.v1.SqlResultValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.SqlResultValue, + com.google.cloud.alloydb.v1.SqlResultValue.Builder, + com.google.cloud.alloydb.v1.SqlResultValueOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.SqlResultRow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.SqlResultRow) + private static final com.google.cloud.alloydb.v1.SqlResultRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.SqlResultRow(); + } + + public static com.google.cloud.alloydb.v1.SqlResultRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlResultRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRowOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRowOrBuilder.java new file mode 100644 index 000000000000..b85e56af516a --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultRowOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface SqlResultRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SqlResultRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + java.util.List getValuesList(); + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + com.google.cloud.alloydb.v1.SqlResultValue getValues(int index); + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + int getValuesCount(); + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * + * + *
+   * List of values in a row of sql result.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; + */ + com.google.cloud.alloydb.v1.SqlResultValueOrBuilder getValuesOrBuilder(int index); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValue.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValue.java new file mode 100644 index 000000000000..e6147a322538 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValue.java @@ -0,0 +1,800 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * A single value in a row from a sql result.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultValue} + */ +public final class SqlResultValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.SqlResultValue) + SqlResultValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlResultValue.newBuilder() to construct. + private SqlResultValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlResultValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlResultValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultValue.class, + com.google.cloud.alloydb.v1.SqlResultValue.Builder.class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NULL_VALUE_FIELD_NUMBER = 2; + private boolean nullValue_ = false; + /** + * + * + *
+   * Set to true if cell value is null.
+   * 
+ * + * optional bool null_value = 2; + * + * @return Whether the nullValue field is set. + */ + @java.lang.Override + public boolean hasNullValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Set to true if cell value is null.
+   * 
+ * + * optional bool null_value = 2; + * + * @return The nullValue. + */ + @java.lang.Override + public boolean getNullValue() { + return nullValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, nullValue_); + } + 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.GeneratedMessageV3.computeStringSize(1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, nullValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.SqlResultValue)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.SqlResultValue other = + (com.google.cloud.alloydb.v1.SqlResultValue) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (hasNullValue() != other.hasNullValue()) return false; + if (hasNullValue()) { + if (getNullValue() != other.getNullValue()) 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 (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasNullValue()) { + hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullValue()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.SqlResultValue 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A single value in a row from a sql result.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SqlResultValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.SqlResultValue) + com.google.cloud.alloydb.v1.SqlResultValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SqlResultValue.class, + com.google.cloud.alloydb.v1.SqlResultValue.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.SqlResultValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + nullValue_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.DataModelProto + .internal_static_google_cloud_alloydb_v1_SqlResultValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValue getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.SqlResultValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValue build() { + com.google.cloud.alloydb.v1.SqlResultValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValue buildPartial() { + com.google.cloud.alloydb.v1.SqlResultValue result = + new com.google.cloud.alloydb.v1.SqlResultValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.SqlResultValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nullValue_ = nullValue_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.SqlResultValue) { + return mergeFrom((com.google.cloud.alloydb.v1.SqlResultValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.SqlResultValue other) { + if (other == com.google.cloud.alloydb.v1.SqlResultValue.getDefaultInstance()) return this; + if (other.hasValue()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasNullValue()) { + setNullValue(other.getNullValue()); + } + 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: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + nullValue_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The cell value represented in string format.
+     * Timestamps are converted to string using RFC3339Nano format.
+     * 
+ * + * optional string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean nullValue_; + /** + * + * + *
+     * Set to true if cell value is null.
+     * 
+ * + * optional bool null_value = 2; + * + * @return Whether the nullValue field is set. + */ + @java.lang.Override + public boolean hasNullValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Set to true if cell value is null.
+     * 
+ * + * optional bool null_value = 2; + * + * @return The nullValue. + */ + @java.lang.Override + public boolean getNullValue() { + return nullValue_; + } + /** + * + * + *
+     * Set to true if cell value is null.
+     * 
+ * + * optional bool null_value = 2; + * + * @param value The nullValue to set. + * @return This builder for chaining. + */ + public Builder setNullValue(boolean value) { + + nullValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Set to true if cell value is null.
+     * 
+ * + * optional bool null_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearNullValue() { + bitField0_ = (bitField0_ & ~0x00000002); + nullValue_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.SqlResultValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.SqlResultValue) + private static final com.google.cloud.alloydb.v1.SqlResultValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.SqlResultValue(); + } + + public static com.google.cloud.alloydb.v1.SqlResultValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlResultValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SqlResultValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValueOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValueOrBuilder.java new file mode 100644 index 000000000000..3ddce233d760 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SqlResultValueOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/data_model.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface SqlResultValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SqlResultValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The cell value represented in string format.
+   * Timestamps are converted to string using RFC3339Nano format.
+   * 
+ * + * optional string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Set to true if cell value is null.
+   * 
+ * + * optional bool null_value = 2; + * + * @return Whether the nullValue field is set. + */ + boolean hasNullValue(); + /** + * + * + *
+   * Set to true if cell value is null.
+   * 
+ * + * optional bool null_value = 2; + * + * @return The nullValue. + */ + boolean getNullValue(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SslConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SslConfig.java index 119d4b6c452e..b11760985068 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SslConfig.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SslConfig.java @@ -78,7 +78,7 @@ public enum SslMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * SSL mode not specified. Defaults to ENCRYPTED_ONLY.
+     * SSL mode is not specified. Defaults to ENCRYPTED_ONLY.
      * 
* * SSL_MODE_UNSPECIFIED = 0; @@ -113,7 +113,7 @@ public enum SslMode implements com.google.protobuf.ProtocolMessageEnum { * *
      * SSL connections are required. CA verification enforced.
-     * Clients must have certificates signed by a Cluster CA, e.g. via
+     * Clients must have certificates signed by a Cluster CA, for example, using
      * GenerateClientCertificate.
      * 
* @@ -148,7 +148,7 @@ public enum SslMode implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * SSL mode not specified. Defaults to ENCRYPTED_ONLY.
+     * SSL mode is not specified. Defaults to ENCRYPTED_ONLY.
      * 
* * SSL_MODE_UNSPECIFIED = 0; @@ -181,7 +181,7 @@ public enum SslMode implements com.google.protobuf.ProtocolMessageEnum { * *
      * SSL connections are required. CA verification enforced.
-     * Clients must have certificates signed by a Cluster CA, e.g. via
+     * Clients must have certificates signed by a Cluster CA, for example, using
      * GenerateClientCertificate.
      * 
* diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SubscriptionType.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SubscriptionType.java new file mode 100644 index 000000000000..f740ede70529 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SubscriptionType.java @@ -0,0 +1,181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Subscription_type added to distinguish between Standard and Trial
+ * subscriptions. By default, a subscription type is considered STANDARD unless
+ * explicitly specified.
+ * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1.SubscriptionType} + */ +public enum SubscriptionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * This is an unknown subscription type. By default, the subscription type is
+   * STANDARD.
+   * 
+ * + * SUBSCRIPTION_TYPE_UNSPECIFIED = 0; + */ + SUBSCRIPTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Standard subscription.
+   * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+   * Trial subscription.
+   * 
+ * + * TRIAL = 2; + */ + TRIAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * This is an unknown subscription type. By default, the subscription type is
+   * STANDARD.
+   * 
+ * + * SUBSCRIPTION_TYPE_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Standard subscription.
+   * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
+   * Trial subscription.
+   * 
+ * + * TRIAL = 2; + */ + public static final int TRIAL_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 SubscriptionType 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 SubscriptionType forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return TRIAL; + 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 SubscriptionType findValueByNumber(int number) { + return SubscriptionType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto.getDescriptor().getEnumTypes().get(3); + } + + private static final SubscriptionType[] VALUES = values(); + + public static SubscriptionType 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 SubscriptionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.SubscriptionType) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequest.java new file mode 100644 index 000000000000..393fe7f27704 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequest.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Message for switching over to a cluster
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SwitchoverClusterRequest} + */ +public final class SwitchoverClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.SwitchoverClusterRequest) + SwitchoverClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SwitchoverClusterRequest.newBuilder() to construct. + private SwitchoverClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SwitchoverClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SwitchoverClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest.class, + com.google.cloud.alloydb.v1.SwitchoverClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the resource. For the required format, see the
+   * comment on the Cluster.name field
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the resource. For the required format, see the
+   * comment on the Cluster.name field
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.SwitchoverClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.SwitchoverClusterRequest other = + (com.google.cloud.alloydb.v1.SwitchoverClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.alloydb.v1.SwitchoverClusterRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for switching over to a cluster
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.SwitchoverClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.SwitchoverClusterRequest) + com.google.cloud.alloydb.v1.SwitchoverClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest.class, + com.google.cloud.alloydb.v1.SwitchoverClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.SwitchoverClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SwitchoverClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.SwitchoverClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SwitchoverClusterRequest build() { + com.google.cloud.alloydb.v1.SwitchoverClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SwitchoverClusterRequest buildPartial() { + com.google.cloud.alloydb.v1.SwitchoverClusterRequest result = + new com.google.cloud.alloydb.v1.SwitchoverClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.SwitchoverClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.SwitchoverClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.SwitchoverClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.SwitchoverClusterRequest other) { + if (other == com.google.cloud.alloydb.v1.SwitchoverClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the resource. For the required format, see the
+     * comment on the Cluster.name field
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the resource. For the required format, see the
+     * comment on the Cluster.name field
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the resource. For the required format, see the
+     * comment on the Cluster.name field
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the resource. For the required format, see the
+     * comment on the Cluster.name field
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the resource. For the required format, see the
+     * comment on the Cluster.name field
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.SwitchoverClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.SwitchoverClusterRequest) + private static final com.google.cloud.alloydb.v1.SwitchoverClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.SwitchoverClusterRequest(); + } + + public static com.google.cloud.alloydb.v1.SwitchoverClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchoverClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.SwitchoverClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequestOrBuilder.java new file mode 100644 index 000000000000..0b88baa20470 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SwitchoverClusterRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface SwitchoverClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SwitchoverClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the resource. For the required format, see the
+   * comment on the Cluster.name field
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the resource. For the required format, see the
+   * comment on the Cluster.name field
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequest.java index 3a342b03afad..5555b1979f79 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequest.java @@ -183,14 +183,14 @@ public com.google.cloud.alloydb.v1.BackupOrBuilder getBackupOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -218,14 +218,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1175,14 +1175,14 @@ public com.google.cloud.alloydb.v1.BackupOrBuilder getBackupOrBuilder() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1209,14 +1209,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1243,14 +1243,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1276,14 +1276,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1305,14 +1305,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequestOrBuilder.java
index 6f9aa0953e4a..83c6e63cc6ca 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateBackupRequestOrBuilder.java
@@ -117,14 +117,14 @@ public interface UpdateBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -141,14 +141,14 @@ public interface UpdateBackupRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequest.java
index 175e3688e7e4..9360d2166981 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequest.java
@@ -183,14 +183,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -218,14 +218,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -255,9 +255,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the update
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1180,14 +1180,14 @@ public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1214,14 +1214,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1248,14 +1248,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1281,14 +1281,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1310,14 +1310,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1345,9 +1345,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1362,9 +1362,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1383,9 +1383,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequestOrBuilder.java index d6e4b8c0d941..1deeaa40457f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateClusterRequestOrBuilder.java @@ -117,14 +117,14 @@ public interface UpdateClusterRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -141,14 +141,14 @@ public interface UpdateClusterRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -165,9 +165,9 @@ public interface UpdateClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the update
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequest.java index 7597a5ae5793..05171e42c90f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequest.java @@ -187,14 +187,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -222,14 +222,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -259,9 +259,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the update
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1193,14 +1193,14 @@ public com.google.cloud.alloydb.v1.InstanceOrBuilder getInstanceOrBuilder() { * *
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1227,14 +1227,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1261,14 +1261,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1294,14 +1294,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1323,14 +1323,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1358,9 +1358,9 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1375,9 +1375,9 @@ public boolean getValidateOnly() { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1396,9 +1396,9 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If set, performs request validation (e.g. permission checks and
-     * any other type of validation), but do not actually execute the update
-     * request.
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequestOrBuilder.java index 9b4888218d07..03361fd9dd65 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateInstanceRequestOrBuilder.java @@ -117,14 +117,14 @@ public interface UpdateInstanceRequestOrBuilder * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -141,14 +141,14 @@ public interface UpdateInstanceRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -165,9 +165,9 @@ public interface UpdateInstanceRequestOrBuilder
    *
    *
    * 
-   * Optional. If set, performs request validation (e.g. permission checks and
-   * any other type of validation), but do not actually execute the update
-   * request.
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequest.java index 293d412d47fe..0f5ae1b7a071 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequest.java @@ -180,14 +180,14 @@ public com.google.cloud.alloydb.v1.UserOrBuilder getUserOrBuilder() { * *
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -215,14 +215,14 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1170,14 +1170,14 @@ public com.google.cloud.alloydb.v1.UserOrBuilder getUserOrBuilder() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1204,14 +1204,14 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1238,14 +1238,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1271,14 +1271,14 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
@@ -1300,14 +1300,14 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. An optional request ID to identify requests. Specify a unique
-     * request ID so that if you must retry your request, the server will know to
-     * ignore the request if it has already been completed. The server will
-     * guarantee that for at least 60 minutes since the first request.
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
      *
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
      * clients from accidentally creating duplicate commitments.
      *
      * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequestOrBuilder.java
index 79c9ebb29bb4..6cf275645202 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpdateUserRequestOrBuilder.java
@@ -114,14 +114,14 @@ public interface UpdateUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
@@ -138,14 +138,14 @@ public interface UpdateUserRequestOrBuilder
    *
    * 
    * Optional. An optional request ID to identify requests. Specify a unique
-   * request ID so that if you must retry your request, the server will know to
-   * ignore the request if it has already been completed. The server will
-   * guarantee that for at least 60 minutes since the first request.
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
    *
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
    * clients from accidentally creating duplicate commitments.
    *
    * The request ID must be a valid UUID with the exception that zero UUID is
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/User.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/User.java
index 5ead7960f4ad..ab3f6bbb4e84 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/User.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/User.java
@@ -435,6 +435,25 @@ public com.google.cloud.alloydb.v1.User.UserType getUserType() {
     return result == null ? com.google.cloud.alloydb.v1.User.UserType.UNRECOGNIZED : result;
   }
 
+  public static final int KEEP_EXTRA_ROLES_FIELD_NUMBER = 6;
+  private boolean keepExtraRoles_ = false;
+  /**
+   *
+   *
+   * 
+   * Input only. If the user already exists and it has additional roles, keep
+   * them granted.
+   * 
+ * + * bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The keepExtraRoles. + */ + @java.lang.Override + public boolean getKeepExtraRoles() { + return keepExtraRoles_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -461,6 +480,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (userType_ != com.google.cloud.alloydb.v1.User.UserType.USER_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, userType_); } + if (keepExtraRoles_ != false) { + output.writeBool(6, keepExtraRoles_); + } getUnknownFields().writeTo(output); } @@ -487,6 +509,9 @@ public int getSerializedSize() { if (userType_ != com.google.cloud.alloydb.v1.User.UserType.USER_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, userType_); } + if (keepExtraRoles_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, keepExtraRoles_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -506,6 +531,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPassword().equals(other.getPassword())) return false; if (!getDatabaseRolesList().equals(other.getDatabaseRolesList())) return false; if (userType_ != other.userType_) return false; + if (getKeepExtraRoles() != other.getKeepExtraRoles()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -527,6 +553,8 @@ public int hashCode() { } hash = (37 * hash) + USER_TYPE_FIELD_NUMBER; hash = (53 * hash) + userType_; + hash = (37 * hash) + KEEP_EXTRA_ROLES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepExtraRoles()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -669,6 +697,7 @@ public Builder clear() { password_ = ""; databaseRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); userType_ = 0; + keepExtraRoles_ = false; return this; } @@ -717,6 +746,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1.User result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.userType_ = userType_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keepExtraRoles_ = keepExtraRoles_; + } } @java.lang.Override @@ -787,6 +819,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.User other) { if (other.userType_ != 0) { setUserTypeValue(other.getUserTypeValue()); } + if (other.getKeepExtraRoles() != false) { + setKeepExtraRoles(other.getKeepExtraRoles()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -838,6 +873,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 40 + case 48: + { + keepExtraRoles_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1357,6 +1398,62 @@ public Builder clearUserType() { return this; } + private boolean keepExtraRoles_; + /** + * + * + *
+     * Input only. If the user already exists and it has additional roles, keep
+     * them granted.
+     * 
+ * + * bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The keepExtraRoles. + */ + @java.lang.Override + public boolean getKeepExtraRoles() { + return keepExtraRoles_; + } + /** + * + * + *
+     * Input only. If the user already exists and it has additional roles, keep
+     * them granted.
+     * 
+ * + * bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The keepExtraRoles to set. + * @return This builder for chaining. + */ + public Builder setKeepExtraRoles(boolean value) { + + keepExtraRoles_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. If the user already exists and it has additional roles, keep
+     * them granted.
+     * 
+ * + * bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKeepExtraRoles() { + bitField0_ = (bitField0_ & ~0x00000010); + keepExtraRoles_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserOrBuilder.java index 94f9115be3a3..9b37e91bfa83 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserOrBuilder.java @@ -159,4 +159,18 @@ public interface UserOrBuilder * @return The userType. */ com.google.cloud.alloydb.v1.User.UserType getUserType(); + + /** + * + * + *
+   * Input only. If the user already exists and it has additional roles, keep
+   * them granted.
+   * 
+ * + * bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The keepExtraRoles. + */ + boolean getKeepExtraRoles(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/data_model.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/data_model.proto new file mode 100644 index 000000000000..6529fccb8dc5 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/data_model.proto @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.alloydb.v1; + +option csharp_namespace = "Google.Cloud.AlloyDb.V1"; +option go_package = "cloud.google.com/go/alloydb/apiv1/alloydbpb;alloydbpb"; +option java_multiple_files = true; +option java_outer_classname = "DataModelProto"; +option java_package = "com.google.cloud.alloydb.v1"; +option php_namespace = "Google\\Cloud\\AlloyDb\\V1"; +option ruby_package = "Google::Cloud::AlloyDB::V1"; + +// SqlResult represents the result for the execution of a sql statement. +message SqlResult { + // List of columns included in the result. This also includes the data type + // of the column. + repeated SqlResultColumn columns = 1; + + // Rows returned by the SQL statement. + repeated SqlResultRow rows = 2; +} + +// Contains the name and datatype of a column in a SQL Result. +message SqlResultColumn { + // Name of the column. + string name = 1; + + // Datatype of the column as reported by the postgres driver. + // Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", + // "INT", and "BIGINT". + string type = 2; +} + +// A single row from a sql result. +message SqlResultRow { + // List of values in a row of sql result. + repeated SqlResultValue values = 1; +} + +// A single value in a row from a sql result. +message SqlResultValue { + // The cell value represented in string format. + // Timestamps are converted to string using RFC3339Nano format. + optional string value = 1; + + // Set to true if cell value is null. + optional bool null_value = 2; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto index 5b7cf97502d6..424baceef22f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.alloydb.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -83,6 +84,27 @@ enum DatabaseVersion { // The database version is Postgres 14. POSTGRES_14 = 2; + + // The database version is Postgres 15. + POSTGRES_15 = 3; + + // The database version is Postgres 16. + POSTGRES_16 = 4; +} + +// Subscription_type added to distinguish between Standard and Trial +// subscriptions. By default, a subscription type is considered STANDARD unless +// explicitly specified. +enum SubscriptionType { + // This is an unknown subscription type. By default, the subscription type is + // STANDARD. + SUBSCRIPTION_TYPE_UNSPECIFIED = 0; + + // Standard subscription. + STANDARD = 1; + + // Trial subscription. + TRIAL = 2; } // The username/password for a database user. Used for specifying initial @@ -162,7 +184,7 @@ message EncryptionInfo { message SslConfig { // SSL mode options. enum SslMode { - // SSL mode not specified. Defaults to ENCRYPTED_ONLY. + // SSL mode is not specified. Defaults to ENCRYPTED_ONLY. SSL_MODE_UNSPECIFIED = 0; // SSL connections are optional. CA verification not enforced. @@ -174,7 +196,7 @@ message SslConfig { SSL_MODE_REQUIRE = 2 [deprecated = true]; // SSL connections are required. CA verification enforced. - // Clients must have certificates signed by a Cluster CA, e.g. via + // Clients must have certificates signed by a Cluster CA, for example, using // GenerateClientCertificate. SSL_MODE_VERIFY_CA = 3 [deprecated = true]; @@ -371,6 +393,33 @@ message ContinuousBackupSource { [(google.api.field_behavior) = REQUIRED]; } +// MaintenanceUpdatePolicy defines the policy for system updates. +message MaintenanceUpdatePolicy { + // MaintenanceWindow specifies a preferred day and time for maintenance. + message MaintenanceWindow { + // Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + google.type.DayOfWeek day = 1; + + // Preferred time to start the maintenance operation on the specified day. + // Maintenance will start within 1 hour of this time. + google.type.TimeOfDay start_time = 2; + } + + // Preferred windows to perform maintenance. Currently limited to 1. + repeated MaintenanceWindow maintenance_windows = 1; +} + +// MaintenanceSchedule stores the maintenance schedule generated from +// the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if +// MaintenanceWindow is set, and if there is no conflicting DenyPeriod. +// The schedule is cleared once the update takes place. This field cannot be +// manually changed; modify the MaintenanceUpdatePolicy instead. +message MaintenanceSchedule { + // Output only. The scheduled start time for the maintenance. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A cluster is a collection of regional AlloyDB resources. It can include a // primary instance and one or more read pool instances. // All cluster resources share a storage layer, which scales as needed. @@ -378,19 +427,21 @@ message Cluster { option (google.api.resource) = { type: "alloydb.googleapis.com/Cluster" pattern: "projects/{project}/locations/{location}/clusters/{cluster}" + plural: "clusters" + singular: "cluster" style: DECLARATIVE_FRIENDLY }; // Metadata related to network configuration. message NetworkConfig { - // Required. The resource link for the VPC network in which cluster + // Optional. The resource link for the VPC network in which cluster // resources are created and from which they are accessible via Private IP. // The network must belong to the same project as the cluster. It is // specified in the form: - // "projects/{project_number}/global/networks/{network_id}". This is + // `projects/{project_number}/global/networks/{network_id}`. This is // required to create a cluster. string network = 1 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } @@ -424,6 +475,28 @@ message Cluster { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // PscConfig contains PSC related configuration at a cluster level. + message PscConfig { + // Optional. Create an instance that allows connections from Private Service + // Connect endpoints to the instance. + bool psc_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Contains information and all metadata related to TRIAL clusters. + message TrialMetadata { + // start time of the trial cluster. + google.protobuf.Timestamp start_time = 1; + + // End time of the trial cluster. + google.protobuf.Timestamp end_time = 2; + + // Upgrade time of trial cluster to Standard cluster. + google.protobuf.Timestamp upgrade_time = 3; + + // grace end time of the cluster. + google.protobuf.Timestamp grace_end_time = 4; + } + // Cluster State enum State { // The state of the cluster is unknown. @@ -539,7 +612,7 @@ message Cluster { // Required. The resource link for the VPC network in which cluster resources // are created and from which they are accessible via Private IP. The network // must belong to the same project as the cluster. It is specified in the - // form: "projects/{project}/global/networks/{network_id}". This is required + // form: `projects/{project}/global/networks/{network_id}`. This is required // to create a cluster. Deprecated, use network_config.network instead. string network = 10 [ deprecated = true, @@ -603,6 +676,42 @@ message Cluster { // Output only. Cross Region replication config specific to PRIMARY cluster. PrimaryConfig primary_config = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The configuration for Private Service Connect (PSC) for the + // cluster. + PscConfig psc_config = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maintenance update policy determines when to allow or deny + // updates. + MaintenanceUpdatePolicy maintenance_update_policy = 32 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The maintenance schedule for the cluster, generated for a + // specific rollout if a maintenance window is set. + MaintenanceSchedule maintenance_schedule = 37 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Subscription type of the cluster. + SubscriptionType subscription_type = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata for free trial clusters + TrialMetadata trial_metadata = 39 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // ``` + // "123/environment": "production", + // "123/costCenter": "marketing" + // ``` + map tags = 41 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // An Instance is a computing unit that an end customer can connect to. @@ -611,6 +720,8 @@ message Instance { option (google.api.resource) = { type: "alloydb.googleapis.com/Instance" pattern: "projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}" + plural: "instances" + singular: "instance" style: DECLARATIVE_FRIENDLY }; @@ -672,10 +783,50 @@ message Instance { // connections to the database. bool require_connectors = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. SSL config option for this instance. + // Optional. SSL configuration option for this instance. SslConfig ssl_config = 2 [(google.api.field_behavior) = OPTIONAL]; } + // PscInstanceConfig contains PSC related configuration at an + // instance level. + message PscInstanceConfig { + // 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//regions//serviceAttachments/` + string service_attachment_link = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. List of consumer projects that are allowed to create + // PSC endpoints to service-attachments to this instance. + repeated string allowed_consumer_projects = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The DNS name of the instance for PSC connectivity. + // Name convention: ...alloydb-psc.goog + string psc_dns_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Metadata related to instance-level network configuration. + message InstanceNetworkConfig { + // AuthorizedNetwork contains metadata for an authorized network. + message AuthorizedNetwork { + // CIDR range for one authorzied network of the instance. + string cidr_range = 1 [(google.api.field_info).format = IPV4]; + } + + // Optional. A list of external network authorized to access this instance. + repeated AuthorizedNetwork authorized_external_networks = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enabling public ip for the instance. + bool enable_public_ip = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enabling an outbound public IP address to support a database + // server sending requests out into the internet. + bool enable_outbound_public_ip = 3 [(google.api.field_behavior) = OPTIONAL]; + } + // Instance State enum State { // The state of the instance is unknown. @@ -843,6 +994,14 @@ message Instance { // This is the connection endpoint for an end-user application. string ip_address = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The public IP addresses for the Instance. This is available + // ONLY when enable_public_ip is set. This is the connection endpoint for an + // end-user application. + string public_ip_address = 27 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. Reconciling (https://google.aip.dev/128#reconciliation). // Set to true if the current state of Instance does not match the user's // intended state, and the service is actively updating the resource to @@ -861,6 +1020,24 @@ message Instance { // Optional. Client connection specific configurations ClientConnectionConfig client_connection_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The configuration for Private Service Connect (PSC) for the + // instance. + PscInstanceConfig psc_instance_config = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Instance-level network configuration. + InstanceNetworkConfig network_config = 29 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. All outbound public IP addresses configured for the instance. + repeated string outbound_public_ip_addresses = 34 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; } // ConnectionInfo singleton resource. @@ -869,6 +1046,8 @@ message ConnectionInfo { option (google.api.resource) = { type: "alloydb.googleapis.com/ConnectionInfo" pattern: "projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}/connectionInfo" + plural: "connectionInfos" + singular: "connectionInfo" }; // The name of the ConnectionInfo singleton resource, e.g.: @@ -881,6 +1060,14 @@ message ConnectionInfo { // is set). This is the connection endpoint for an end-user application. string ip_address = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The public IP addresses for the Instance. This is available + // ONLY when enable_public_ip is set. This is the connection endpoint for an + // end-user application. + string public_ip_address = 5 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. The unique ID of the Instance. string instance_uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -890,6 +1077,8 @@ message Backup { option (google.api.resource) = { type: "alloydb.googleapis.com/Backup" pattern: "projects/{project}/locations/{location}/backups/{backup}" + plural: "backups" + singular: "backup" style: DECLARATIVE_FRIENDLY }; @@ -1045,11 +1234,26 @@ message Backup { QuantityBasedExpiry expiry_quantity = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The database engine major version of the cluster this backup // was created from. Any restored cluster created from this backup will have // the same database version. DatabaseVersion database_version = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // ``` + // "123/environment": "production", + // "123/costCenter": "marketing" + // ``` + map tags = 25 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // SupportedDatabaseFlag gives general information about a database flag, @@ -1061,6 +1265,8 @@ message SupportedDatabaseFlag { option (google.api.resource) = { type: "alloydb.googleapis.com/SupportedDatabaseFlag" pattern: "projects/{project}/locations/{location}/flags/{flag}" + plural: "supportedDatabaseFlags" + singular: "supportedDatabaseFlag" }; // Restrictions on STRING type values @@ -1138,6 +1344,8 @@ message User { option (google.api.resource) = { type: "alloydb.googleapis.com/User" pattern: "projects/{project}/locations/{location}/clusters/{cluster}/users/{user}" + plural: "users" + singular: "user" style: DECLARATIVE_FRIENDLY }; @@ -1167,4 +1375,33 @@ message User { // Optional. Type of this user. UserType user_type = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Input only. If the user already exists and it has additional roles, keep + // them granted. + bool keep_extra_roles = 6 [(google.api.field_behavior) = INPUT_ONLY]; +} + +// Message describing Database object. +message Database { + option (google.api.resource) = { + type: "alloydb.googleapis.com/Database" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}" + plural: "databases" + singular: "database" + style: DECLARATIVE_FRIENDLY + }; + + // Identifier. Name of the resource in the form of + // `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Charset for the database. + // This field can contain any PostgreSQL supported charset name. + // Example values include "UTF8", "SQL_ASCII", etc. + string charset = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Collation for the database. + // Name of the custom or native collation for postgres. + // Example values include "C", "POSIX", etc + string collation = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto index a3eba091f9f0..ab73dc5ccdeb 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto @@ -19,7 +19,9 @@ package google.cloud.alloydb.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/cloud/alloydb/v1/data_model.proto"; import "google/cloud/alloydb/v1/resources.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -116,6 +118,22 @@ service AlloyDBAdmin { }; } + // Switches the roles of PRIMARY and SECONDARY clusters without any data loss. + // This promotes the SECONDARY cluster to PRIMARY and sets up the original + // PRIMARY cluster to replicate from this newly promoted cluster. + rpc SwitchoverCluster(SwitchoverClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:switchover" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } + // Creates a new Cluster in a given project and location, with a volume // restored from the provided source, either a backup ID or a point-in-time // and a source cluster. @@ -284,6 +302,16 @@ service AlloyDBAdmin { }; } + // Executes a SQL statement in a database inside an AlloyDB instance. + rpc ExecuteSql(ExecuteSqlRequest) returns (ExecuteSqlResponse) { + option (google.api.http) = { + post: "/v1/{instance=projects/*/locations/*/clusters/*/instances/*}:executeSql" + body: "*" + }; + option (google.api.method_signature) = + "instance,database,user,sql_statement,password"; + } + // Lists Backups in a given project and location. rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { option (google.api.http) = { @@ -410,6 +438,14 @@ service AlloyDBAdmin { }; option (google.api.method_signature) = "name"; } + + // Lists Databases in a given project and location. + rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/databases" + }; + option (google.api.method_signature) = "parent"; + } } // Message for requesting list of Clusters @@ -482,23 +518,23 @@ message CreateSecondaryClusterRequest { Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the create - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -520,23 +556,23 @@ message CreateClusterRequest { Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the create - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -554,23 +590,23 @@ message UpdateClusterRequest { Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the update - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set to true, update succeeds even if cluster is not found. In @@ -588,14 +624,14 @@ message DeleteClusterRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -607,14 +643,45 @@ message DeleteClusterRequest { // deletion will be blocked and an ABORTED error will be returned. string etag = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the delete. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Whether to cascade delete child instances for given cluster. bool force = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Message for switching over to a cluster +message SwitchoverClusterRequest { + // Required. The name of the resource. For the required format, see the + // comment on the Cluster.name field + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Message for promoting a Cluster message PromoteClusterRequest { // Required. The name of the resource. For the required format, see the @@ -625,9 +692,9 @@ message PromoteClusterRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -644,8 +711,9 @@ message PromoteClusterRequest { // deletion will be blocked and an ABORTED error will be returned. string etag = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the delete. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -679,23 +747,23 @@ message RestoreClusterRequest { Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the import - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -773,23 +841,23 @@ message CreateInstanceRequest { Instance instance = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the create - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -811,23 +879,23 @@ message CreateSecondaryInstanceRequest { Instance instance = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the create - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -853,14 +921,14 @@ message BatchCreateInstancesRequest { CreateInstanceRequests requests = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -916,7 +984,7 @@ message BatchCreateInstanceStatus { STATE_UNSPECIFIED = 0; // Instance is pending creation and has not yet been picked up for - // processsing in the backend. + // processing in the backend. PENDING_CREATE = 1; // The instance is active and running. @@ -972,23 +1040,23 @@ message UpdateInstanceRequest { Instance instance = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the update - // request. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set to true, update succeeds even if instance is not found. In @@ -1008,14 +1076,14 @@ message DeleteInstanceRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1027,8 +1095,9 @@ message DeleteInstanceRequest { // deletion will be blocked and an ABORTED error will be returned. string etag = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the delete. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1044,22 +1113,23 @@ message FailoverInstanceRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the failover. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -1088,23 +1158,23 @@ message InjectFaultRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the fault - // injection. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1119,23 +1189,113 @@ message RestartInstanceRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, performs request validation (e.g. permission checks and - // any other type of validation), but do not actually execute the restart. + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to + // restart upon. Applicable only to read instances. + repeated string node_ids = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for ExecuteSql rpc. +message ExecuteSqlRequest { + // Oneof field to support other credential mechanisms in future like + // SecretManager etc. + oneof user_credential { + // Optional. The database native user’s password. + string password = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The instance where the SQL will be executed. For the required + // format, see the comment on the Instance.name field. + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "alloydb.googleapis.com/Instance" + } + ]; + + // Required. Name of the database where the query will be executed. + // Note - Value provided should be the same as expected from `SELECT + // current_database();` and NOT as a resource reference. + string database = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database user to be used for executing the SQL. + // Note - Value provided should be the same as expected from + // `SELECT current_user;` and NOT as a resource reference. + string user = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. SQL statement to execute on database. Any valid statement is + // permitted, including DDL, DML, DQL statements. + string sql_statement = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Execute a SQL statement response. +message ExecuteSqlResponse { + // SqlResult represents the results for the execution of sql statements. + repeated SqlResult sql_results = 1; + + // Any additional metadata information regarding the execution of the sql + // statement. + ExecuteSqlMetadata metadata = 3; +} + +// Any additional metadata information regarding the execution of the SQL +message ExecuteSqlMetadata { + // Status contains all valid Status a SQL execution can end up in. + enum Status { + // The status is unknown. + STATUS_UNSPECIFIED = 0; + + // No error during SQL execution i.e. All SQL statements ran to completion. + // The "message" will be empty. + OK = 1; + + // Same as OK, except indicates that only partial results were + // returned. The "message" field will contain details on why results were + // truncated. + PARTIAL = 2; + + // Error during SQL execution. Atleast 1 SQL statement execution resulted in + // a error. Side effects of other statements are rolled back. The "message" + // field will contain human readable error given by Postgres of the first + // bad SQL statement. SQL execution errors don't constitute API errors as + // defined in https://google.aip.dev/193 but will be returned as part of + // this message. + ERROR = 3; + } + + // Message related to SQL execution. Marked as core content since it + // can potentially contain details related to the query or result set. This + // field can be used to convey messages such as "when the SQL result set + // exceeds the acceptable response size limits." + string message = 1; + + // Set to true if SQL returned a result set larger than the acceptable + // response size limits and the result was truncated. + bool partial_result = 2; + + // The time duration taken to execute the sql statement. + google.protobuf.Duration sql_statement_execution_duration = 3; + + // Status of SQL execution. + Status status = 4; } // Message for requesting list of Backups @@ -1200,14 +1360,14 @@ message CreateBackupRequest { Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1233,14 +1393,14 @@ message UpdateBackupRequest { Backup backup = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1266,14 +1426,14 @@ message DeleteBackupRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1334,14 +1494,14 @@ message GenerateClientCertificateRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1388,14 +1548,14 @@ message GetConnectionInfoRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1503,14 +1663,14 @@ message CreateUserRequest { User user = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1536,14 +1696,14 @@ message UpdateUserRequest { User user = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1568,14 +1728,14 @@ message DeleteUserRequest { ]; // Optional. An optional request ID to identify requests. Specify a unique - // request ID so that if you must retry your request, the server will know to - // ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes after the first request. + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents // clients from accidentally creating duplicate commitments. // // The request ID must be a valid UUID with the exception that zero UUID is @@ -1586,3 +1746,39 @@ message DeleteUserRequest { // execute it. bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Message for requesting list of Databases. +message ListDatabasesRequest { + // Required. Parent value for ListDatabasesRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "alloydb.googleapis.com/Database" + } + ]; + + // Optional. The maximum number of databases to return. The service may return + // fewer than this value. If unspecified, 2000 is the default page_size. The + // max value of page_size will be 4000, values above max will be coerced to + // max. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDatabases` call. + // This should be provided to retrieve the subsequent page. + // This field is currently not supported, its value will be ignored if passed. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results. + // This field is currently not supported, its value will be ignored if passed. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Databases. +message ListDatabasesResponse { + // The list of databases + repeated Database databases = 1; + + // A token identifying the next page of results the server should return. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 60062c503590..000000000000 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.alloydb.v1.samples; - -// [START alloydb_v1_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] -import com.google.cloud.alloydb.v1.AlloyDBAdminClient; -import com.google.cloud.alloydb.v1.AlloyDBAdminSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); - AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); - } -} -// [END alloydb_v1_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e4be1bf0f89c --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.AlloyDBAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); + AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/AsyncExecuteSql.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/AsyncExecuteSql.java new file mode 100644 index 000000000000..67d0b6db458c --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/AsyncExecuteSql.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.InstanceName; + +public class AsyncExecuteSql { + + public static void main(String[] args) throws Exception { + asyncExecuteSql(); + } + + public static void asyncExecuteSql() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setInstance( + InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) + .setDatabase("database1789464955") + .setUser("user3599307") + .setSqlStatement("sqlStatement937767745") + .build(); + ApiFuture future = + alloyDBAdminClient.executeSqlCallable().futureCall(request); + // Do something. + ExecuteSqlResponse response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSql.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSql.java new file mode 100644 index 000000000000..1235cec75530 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSql.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ExecuteSqlRequest; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.InstanceName; + +public class SyncExecuteSql { + + public static void main(String[] args) throws Exception { + syncExecuteSql(); + } + + public static void syncExecuteSql() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setInstance( + InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) + .setDatabase("database1789464955") + .setUser("user3599307") + .setSqlStatement("sqlStatement937767745") + .build(); + ExecuteSqlResponse response = alloyDBAdminClient.executeSql(request); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlInstancenameStringStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlInstancenameStringStringStringString.java new file mode 100644 index 000000000000..61888080321f --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlInstancenameStringStringStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_InstancenameStringStringStringString_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.InstanceName; + +public class SyncExecuteSqlInstancenameStringStringStringString { + + public static void main(String[] args) throws Exception { + syncExecuteSqlInstancenameStringStringStringString(); + } + + public static void syncExecuteSqlInstancenameStringStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]"); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + ExecuteSqlResponse response = + alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_InstancenameStringStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlStringStringStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlStringStringStringStringString.java new file mode 100644 index 000000000000..f90e01b2597f --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/executesql/SyncExecuteSqlStringStringStringStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_StringStringStringStringString_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.InstanceName; + +public class SyncExecuteSqlStringStringStringStringString { + + public static void main(String[] args) throws Exception { + syncExecuteSqlStringStringStringStringString(); + } + + public static void syncExecuteSqlStringStringStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String instance = + InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString(); + String database = "database1789464955"; + String user = "user3599307"; + String sqlStatement = "sqlStatement937767745"; + String password = "password1216985755"; + ExecuteSqlResponse response = + alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_StringStringStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabases.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabases.java new file mode 100644 index 000000000000..85b123d87193 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabases.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ListDatabases_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.Database; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; + +public class AsyncListDatabases { + + public static void main(String[] args) throws Exception { + asyncListDatabases(); + } + + public static void asyncListDatabases() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + alloyDBAdminClient.listDatabasesPagedCallable().futureCall(request); + // Do something. + for (Database element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabasesPaged.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabasesPaged.java new file mode 100644 index 000000000000..6354b11523a4 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/AsyncListDatabasesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ListDatabases_Paged_async] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.Database; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; +import com.google.cloud.alloydb.v1.ListDatabasesResponse; +import com.google.common.base.Strings; + +public class AsyncListDatabasesPaged { + + public static void main(String[] args) throws Exception { + asyncListDatabasesPaged(); + } + + public static void asyncListDatabasesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListDatabasesResponse response = alloyDBAdminClient.listDatabasesCallable().call(request); + for (Database element : response.getDatabasesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_Paged_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabases.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabases.java new file mode 100644 index 000000000000..660176550360 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabases.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ListDatabases_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.Database; +import com.google.cloud.alloydb.v1.ListDatabasesRequest; + +public class SyncListDatabases { + + public static void main(String[] args) throws Exception { + syncListDatabases(); + } + + public static void syncListDatabases() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Database element : alloyDBAdminClient.listDatabases(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesClustername.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesClustername.java new file mode 100644 index 000000000000..370ee24e01de --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesClustername.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ListDatabases_Clustername_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.Database; + +public class SyncListDatabasesClustername { + + public static void main(String[] args) throws Exception { + syncListDatabasesClustername(); + } + + public static void syncListDatabasesClustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_Clustername_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesString.java new file mode 100644 index 000000000000..fac66aaf893f --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/listdatabases/SyncListDatabasesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ListDatabases_String_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.Database; + +public class SyncListDatabasesString { + + public static void main(String[] args) throws Exception { + syncListDatabasesString(); + } + + public static void syncListDatabasesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_String_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstance.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstance.java index 0a281eab6ab3..d3f521af175a 100644 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstance.java +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstance.java @@ -22,6 +22,7 @@ import com.google.cloud.alloydb.v1.InstanceName; import com.google.cloud.alloydb.v1.RestartInstanceRequest; import com.google.longrunning.Operation; +import java.util.ArrayList; public class AsyncRestartInstance { @@ -42,6 +43,7 @@ public static void asyncRestartInstance() throws Exception { InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .setValidateOnly(true) + .addAllNodeIds(new ArrayList()) .build(); ApiFuture future = alloyDBAdminClient.restartInstanceCallable().futureCall(request); diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstanceLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstanceLRO.java index bce85ccd4201..f9656dd6e3ec 100644 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstanceLRO.java +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/AsyncRestartInstanceLRO.java @@ -23,6 +23,7 @@ import com.google.cloud.alloydb.v1.InstanceName; import com.google.cloud.alloydb.v1.OperationMetadata; import com.google.cloud.alloydb.v1.RestartInstanceRequest; +import java.util.ArrayList; public class AsyncRestartInstanceLRO { @@ -43,6 +44,7 @@ public static void asyncRestartInstanceLRO() throws Exception { InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .setValidateOnly(true) + .addAllNodeIds(new ArrayList()) .build(); OperationFuture future = alloyDBAdminClient.restartInstanceOperationCallable().futureCall(request); diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/SyncRestartInstance.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/SyncRestartInstance.java index 7da0b308fbd4..2422a3093ea4 100644 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/SyncRestartInstance.java +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/restartinstance/SyncRestartInstance.java @@ -21,6 +21,7 @@ import com.google.cloud.alloydb.v1.Instance; import com.google.cloud.alloydb.v1.InstanceName; import com.google.cloud.alloydb.v1.RestartInstanceRequest; +import java.util.ArrayList; public class SyncRestartInstance { @@ -41,6 +42,7 @@ public static void syncRestartInstance() throws Exception { InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .setValidateOnly(true) + .addAllNodeIds(new ArrayList()) .build(); Instance response = alloyDBAdminClient.restartInstanceAsync(request).get(); } diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverCluster.java new file mode 100644 index 000000000000..a8a52594dec3 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncSwitchoverCluster { + + public static void main(String[] args) throws Exception { + asyncSwitchoverCluster(); + } + + public static void asyncSwitchoverCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + SwitchoverClusterRequest request = + SwitchoverClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + ApiFuture future = + alloyDBAdminClient.switchoverClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverClusterLRO.java new file mode 100644 index 000000000000..edb610228aa2 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/AsyncSwitchoverClusterLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; + +public class AsyncSwitchoverClusterLRO { + + public static void main(String[] args) throws Exception { + asyncSwitchoverClusterLRO(); + } + + public static void asyncSwitchoverClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + SwitchoverClusterRequest request = + SwitchoverClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + OperationFuture future = + alloyDBAdminClient.switchoverClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverCluster.java new file mode 100644 index 000000000000..1934c636cd98 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.SwitchoverClusterRequest; + +public class SyncSwitchoverCluster { + + public static void main(String[] args) throws Exception { + syncSwitchoverCluster(); + } + + public static void syncSwitchoverCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + SwitchoverClusterRequest request = + SwitchoverClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + Cluster response = alloyDBAdminClient.switchoverClusterAsync(request).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterClustername.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterClustername.java new file mode 100644 index 000000000000..41581f4c7615 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterClustername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_Clustername_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.ClusterName; + +public class SyncSwitchoverClusterClustername { + + public static void main(String[] args) throws Exception { + syncSwitchoverClusterClustername(); + } + + public static void syncSwitchoverClusterClustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_Clustername_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterString.java new file mode 100644 index 000000000000..cedeb8e292cc --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/switchovercluster/SyncSwitchoverClusterString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_String_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.ClusterName; + +public class SyncSwitchoverClusterString { + + public static void main(String[] args) throws Exception { + syncSwitchoverClusterString(); + } + + public static void syncSwitchoverClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_String_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 34670664cc81..000000000000 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.alloydb.v1alpha.samples; - -// [START alloydb_v1alpha_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] -import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; -import com.google.cloud.alloydb.v1alpha.AlloyDBAdminSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); - AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); - } -} -// [END alloydb_v1alpha_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1f0936e3bacf --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); + AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 755a6c5112cd..000000000000 --- a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.alloydb.v1beta.samples; - -// [START alloydb_v1beta_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] -import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; -import com.google.cloud.alloydb.v1beta.AlloyDBAdminSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); - AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); - } -} -// [END alloydb_v1beta_generated_AlloyDBAdmin_Create_SetCredentialsProvider1_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..69795a2e8bb3 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.AlloyDBAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBAdminSettings alloyDBAdminSettings = AlloyDBAdminSettings.newHttpJsonBuilder().build(); + AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create(alloyDBAdminSettings); + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 5a3b7e655623..adcf5dd58139 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.62.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json index d46cb35de1dc..d278204f03db 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json @@ -5984,6 +5984,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.BoolValue", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json index 2b72052d488d..87fa0d500067 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json @@ -2564,6 +2564,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.BoolValue", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 741c02f17874..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.admin.v1alpha.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_Create_SetCredentialsProvider1_sync] -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsAdminServiceSettings analyticsAdminServiceSettings = - AnalyticsAdminServiceSettings.newHttpJsonBuilder().build(); - AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_Create_SetCredentialsProvider1_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..43c883395bdd --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_Create_UseHttpJsonTransport_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsAdminServiceSettings analyticsAdminServiceSettings = + AnalyticsAdminServiceSettings.newHttpJsonBuilder().build(); + AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_Create_UseHttpJsonTransport_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ea97fce4defc..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.admin.v1beta.samples; - -// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_Create_SetCredentialsProvider1_sync] -import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1beta.AnalyticsAdminServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsAdminServiceSettings analyticsAdminServiceSettings = - AnalyticsAdminServiceSettings.newHttpJsonBuilder().build(); - AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_Create_SetCredentialsProvider1_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..13135ccaa0d6 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_Create_UseHttpJsonTransport_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsAdminServiceSettings analyticsAdminServiceSettings = + AnalyticsAdminServiceSettings.newHttpJsonBuilder().build(); + AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_Create_UseHttpJsonTransport_sync] diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index af1be80f5382..087dd1346886 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.63.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json index 3e965eb95454..9cb17f34fef2 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json @@ -1484,6 +1484,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.SamplingLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.SamplingMetadata", "queryAllDeclaredConstructors": true, @@ -2375,6 +2384,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json index 226566ff7153..9ec4604e418d 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json @@ -1727,6 +1727,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java index e379a890cb5d..3c9f13b463a9 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java @@ -310,13 +310,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion\030\002 \001(\0132..google.analytics.data.v1alp" + "ha.FunnelSubReport\022D\n\016property_quota\030\003 \001" + "(\0132,.google.analytics.data.v1alpha.Prope" - + "rtyQuota\022\014\n\004kind\030\004 \001(\t\"\342\013\n\nReportTask\022\024\n" + + "rtyQuota\022\014\n\004kind\030\004 \001(\t\"\305\014\n\nReportTask\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022Z\n\021report_definition" + "\030\002 \001(\0132:.google.analytics.data.v1alpha.R" + "eportTask.ReportDefinitionB\003\340A\001\022V\n\017repor" + "t_metadata\030\003 \001(\01328.google.analytics.data" + ".v1alpha.ReportTask.ReportMetadataB\003\340A\003\032" - + "\257\005\n\020ReportDefinition\022A\n\ndimensions\030\002 \003(\013" + + "\222\006\n\020ReportDefinition\022A\n\ndimensions\030\002 \003(\013" + "2(.google.analytics.data.v1alpha.Dimensi" + "onB\003\340A\001\022;\n\007metrics\030\003 \003(\0132%.google.analyt" + "ics.data.v1alpha.MetricB\003\340A\001\022B\n\013date_ran" @@ -333,136 +333,139 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\001\022\032\n\rcurrency_code\030\013 \001(\tB\003\340A\001\022C\n\013cohort" + "_spec\030\014 \001(\0132).google.analytics.data.v1al" + "pha.CohortSpecB\003\340A\001\022\034\n\017keep_empty_rows\030\r" - + " \001(\010B\003\340A\001\032\337\003\n\016ReportMetadata\022W\n\005state\030\001 " - + "\001(\0162>.google.analytics.data.v1alpha.Repo" - + "rtTask.ReportMetadata.StateB\003\340A\003H\000\210\001\001\022A\n" - + "\023begin_creating_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003H\001\210\001\001\022*\n\035creation_quo" - + "ta_tokens_charged\030\003 \001(\005B\003\340A\003\022 \n\016task_row" - + "_count\030\004 \001(\005B\003\340A\003H\002\210\001\001\022\037\n\rerror_message\030" - + "\005 \001(\tB\003\340A\003H\003\210\001\001\022!\n\017total_row_count\030\006 \001(\005" - + "B\003\340A\003H\004\210\001\001\"D\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003" - + "B\010\n\006_stateB\026\n\024_begin_creating_timeB\021\n\017_t" - + "ask_row_countB\020\n\016_error_messageB\022\n\020_tota" - + "l_row_count:v\352As\n\'analyticsdata.googleap" - + "is.com/ReportTask\022/properties/{property}" - + "/reportTasks/{report_task}*\013reportTasks2" - + "\nreportTask\"\237\001\n\027CreateReportTaskRequest\022" - + "?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'analyticsdata.g" - + "oogleapis.com/ReportTask\022C\n\013report_task\030" - + "\002 \001(\0132).google.analytics.data.v1alpha.Re" - + "portTaskB\003\340A\002\"\024\n\022ReportTaskMetadata\"T\n\026Q" - + "ueryReportTaskRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\023\n\006offset\030\002 \001(\003B\003\340A\001\022\022\n\005limit\030\003 \001(\003B\003\340A" - + "\001\"\321\003\n\027QueryReportTaskResponse\022I\n\021dimensi" - + "on_headers\030\001 \003(\0132..google.analytics.data" - + ".v1alpha.DimensionHeader\022C\n\016metric_heade" - + "rs\030\002 \003(\0132+.google.analytics.data.v1alpha" - + ".MetricHeader\0220\n\004rows\030\003 \003(\0132\".google.ana" - + "lytics.data.v1alpha.Row\0222\n\006totals\030\004 \003(\0132" - + "\".google.analytics.data.v1alpha.Row\0224\n\010m" - + "aximums\030\005 \003(\0132\".google.analytics.data.v1" - + "alpha.Row\0224\n\010minimums\030\006 \003(\0132\".google.ana" - + "lytics.data.v1alpha.Row\022\021\n\trow_count\030\007 \001" - + "(\005\022A\n\010metadata\030\010 \001(\0132/.google.analytics." - + "data.v1alpha.ResponseMetaData\"U\n\024GetRepo" - + "rtTaskRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'ana" - + "lyticsdata.googleapis.com/ReportTask\"\212\001\n" - + "\026ListReportTasksRequest\022?\n\006parent\030\001 \001(\tB" - + "/\340A\002\372A)\022\'analyticsdata.googleapis.com/Re" - + "portTask\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"\214\001\n\027ListReportTasksRes" - + "ponse\022?\n\014report_tasks\030\001 \003(\0132).google.ana" - + "lytics.data.v1alpha.ReportTask\022\034\n\017next_p" - + "age_token\030\002 \001(\tH\000\210\001\001B\022\n\020_next_page_token" - + "2\305\031\n\022AlphaAnalyticsData\022\275\001\n\017RunFunnelRep" - + "ort\0225.google.analytics.data.v1alpha.RunF" - + "unnelReportRequest\0326.google.analytics.da" - + "ta.v1alpha.RunFunnelReportResponse\";\202\323\344\223" - + "\0025\"0/v1alpha/{property=properties/*}:run" - + "FunnelReport:\001*\022\361\001\n\022CreateAudienceList\0228" - + ".google.analytics.data.v1alpha.CreateAud" - + "ienceListRequest\032\035.google.longrunning.Op" - + "eration\"\201\001\312A$\n\014AudienceList\022\024AudienceLis" - + "tMetadata\332A\024parent,audience_list\202\323\344\223\002=\"," - + "/v1alpha/{parent=properties/*}/audienceL" - + "ists:\raudience_list\022\314\001\n\021QueryAudienceLis" - + "t\0227.google.analytics.data.v1alpha.QueryA" - + "udienceListRequest\0328.google.analytics.da" - + "ta.v1alpha.QueryAudienceListResponse\"D\332A" - + "\004name\202\323\344\223\0027\"2/v1alpha/{name=properties/*" - + "/audienceLists/*}:query:\001*\022\344\001\n\027SheetExpo" - + "rtAudienceList\022=.google.analytics.data.v" - + "1alpha.SheetExportAudienceListRequest\032>." - + "google.analytics.data.v1alpha.SheetExpor" - + "tAudienceListResponse\"J\332A\004name\202\323\344\223\002=\"8/v" - + "1alpha/{name=properties/*/audienceLists/" - + "*}:exportSheet:\001*\022\262\001\n\017GetAudienceList\0225." - + "google.analytics.data.v1alpha.GetAudienc" - + "eListRequest\032+.google.analytics.data.v1a" - + "lpha.AudienceList\";\332A\004name\202\323\344\223\002.\022,/v1alp" - + "ha/{name=properties/*/audienceLists/*}\022\305" - + "\001\n\021ListAudienceLists\0227.google.analytics." - + "data.v1alpha.ListAudienceListsRequest\0328." - + "google.analytics.data.v1alpha.ListAudien" - + "ceListsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alp" - + "ha/{parent=properties/*}/audienceLists\022\217" - + "\002\n\033CreateRecurringAudienceList\022A.google." - + "analytics.data.v1alpha.CreateRecurringAu" - + "dienceListRequest\0324.google.analytics.dat" - + "a.v1alpha.RecurringAudienceList\"w\332A\036pare" - + "nt,recurring_audience_list\202\323\344\223\002P\"5/v1alp" - + "ha/{parent=properties/*}/recurringAudien" - + "ceLists:\027recurring_audience_list\022\326\001\n\030Get" - + "RecurringAudienceList\022>.google.analytics" - + ".data.v1alpha.GetRecurringAudienceListRe" - + "quest\0324.google.analytics.data.v1alpha.Re" - + "curringAudienceList\"D\332A\004name\202\323\344\223\0027\0225/v1a" - + "lpha/{name=properties/*/recurringAudienc" - + "eLists/*}\022\351\001\n\032ListRecurringAudienceLists" - + "\022@.google.analytics.data.v1alpha.ListRec" - + "urringAudienceListsRequest\032A.google.anal" - + "ytics.data.v1alpha.ListRecurringAudience" - + "ListsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1alpha" - + "/{parent=properties/*}/recurringAudience" - + "Lists\022\327\001\n\031GetPropertyQuotasSnapshot\022?.go" - + "ogle.analytics.data.v1alpha.GetPropertyQ" - + "uotasSnapshotRequest\0325.google.analytics." - + "data.v1alpha.PropertyQuotasSnapshot\"B\332A\004" - + "name\202\323\344\223\0025\0223/v1alpha/{name=properties/*/" - + "propertyQuotasSnapshot}\022\342\001\n\020CreateReport" - + "Task\0226.google.analytics.data.v1alpha.Cre" - + "ateReportTaskRequest\032\035.google.longrunnin" - + "g.Operation\"w\312A \n\nReportTask\022\022ReportTask" - + "Metadata\332A\022parent,report_task\202\323\344\223\0029\"*/v1" - + "alpha/{parent=properties/*}/reportTasks:" - + "\013report_task\022\304\001\n\017QueryReportTask\0225.googl" - + "e.analytics.data.v1alpha.QueryReportTask" - + "Request\0326.google.analytics.data.v1alpha." - + "QueryReportTaskResponse\"B\332A\004name\202\323\344\223\0025\"0" - + "/v1alpha/{name=properties/*/reportTasks/" - + "*}:query:\001*\022\252\001\n\rGetReportTask\0223.google.a" - + "nalytics.data.v1alpha.GetReportTaskReque" - + "st\032).google.analytics.data.v1alpha.Repor" - + "tTask\"9\332A\004name\202\323\344\223\002,\022*/v1alpha/{name=pro" - + "perties/*/reportTasks/*}\022\275\001\n\017ListReportT" - + "asks\0225.google.analytics.data.v1alpha.Lis" - + "tReportTasksRequest\0326.google.analytics.d" - + "ata.v1alpha.ListReportTasksResponse\";\332A\006" - + "parent\202\323\344\223\002,\022*/v1alpha/{parent=propertie" - + "s/*}/reportTasks\032\375\001\312A\034analyticsdata.goog" - + "leapis.com\322A\332\001https://www.googleapis.com" - + "/auth/analytics,https://www.googleapis.c" - + "om/auth/analytics.readonly,https://www.g" - + "oogleapis.com/auth/drive,https://www.goo" - + "gleapis.com/auth/drive.file,https://www." - + "googleapis.com/auth/spreadsheetsB\301\001\n!com" - + ".google.analytics.data.v1alphaB\025Analytic" - + "sDataApiProtoP\001ZAgoogle.golang.org/genpr" - + "oto/googleapis/analytics/data/v1alpha;da" - + "ta\352A?\n&analyticsadmin.googleapis.com/Pro" - + "perty\022\025properties/{property}b\006proto3" + + " \001(\010B\003\340A\001\022N\n\016sampling_level\030\016 \001(\0162,.goog" + + "le.analytics.data.v1alpha.SamplingLevelB" + + "\003\340A\001H\000\210\001\001B\021\n\017_sampling_level\032\337\003\n\016ReportM" + + "etadata\022W\n\005state\030\001 \001(\0162>.google.analytic" + + "s.data.v1alpha.ReportTask.ReportMetadata" + + ".StateB\003\340A\003H\000\210\001\001\022A\n\023begin_creating_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001" + + "\210\001\001\022*\n\035creation_quota_tokens_charged\030\003 \001" + + "(\005B\003\340A\003\022 \n\016task_row_count\030\004 \001(\005B\003\340A\003H\002\210\001" + + "\001\022\037\n\rerror_message\030\005 \001(\tB\003\340A\003H\003\210\001\001\022!\n\017to" + + "tal_row_count\030\006 \001(\005B\003\340A\003H\004\210\001\001\"D\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006A" + + "CTIVE\020\002\022\n\n\006FAILED\020\003B\010\n\006_stateB\026\n\024_begin_" + + "creating_timeB\021\n\017_task_row_countB\020\n\016_err" + + "or_messageB\022\n\020_total_row_count:v\352As\n\'ana" + + "lyticsdata.googleapis.com/ReportTask\022/pr" + + "operties/{property}/reportTasks/{report_" + + "task}*\013reportTasks2\nreportTask\"\237\001\n\027Creat" + + "eReportTaskRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372" + + "A)\022\'analyticsdata.googleapis.com/ReportT" + + "ask\022C\n\013report_task\030\002 \001(\0132).google.analyt" + + "ics.data.v1alpha.ReportTaskB\003\340A\002\"\024\n\022Repo" + + "rtTaskMetadata\"T\n\026QueryReportTaskRequest" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006offset\030\002 \001(\003B\003\340A\001" + + "\022\022\n\005limit\030\003 \001(\003B\003\340A\001\"\321\003\n\027QueryReportTask" + + "Response\022I\n\021dimension_headers\030\001 \003(\0132..go" + + "ogle.analytics.data.v1alpha.DimensionHea" + + "der\022C\n\016metric_headers\030\002 \003(\0132+.google.ana" + + "lytics.data.v1alpha.MetricHeader\0220\n\004rows" + + "\030\003 \003(\0132\".google.analytics.data.v1alpha.R" + + "ow\0222\n\006totals\030\004 \003(\0132\".google.analytics.da" + + "ta.v1alpha.Row\0224\n\010maximums\030\005 \003(\0132\".googl" + + "e.analytics.data.v1alpha.Row\0224\n\010minimums" + + "\030\006 \003(\0132\".google.analytics.data.v1alpha.R" + + "ow\022\021\n\trow_count\030\007 \001(\005\022A\n\010metadata\030\010 \001(\0132" + + "/.google.analytics.data.v1alpha.Response" + + "MetaData\"U\n\024GetReportTaskRequest\022=\n\004name" + + "\030\001 \001(\tB/\340A\002\372A)\n\'analyticsdata.googleapis" + + ".com/ReportTask\"\212\001\n\026ListReportTasksReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'analyticsdat" + + "a.googleapis.com/ReportTask\022\026\n\tpage_size" + + "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\214\001\n" + + "\027ListReportTasksResponse\022?\n\014report_tasks" + + "\030\001 \003(\0132).google.analytics.data.v1alpha.R" + + "eportTask\022\034\n\017next_page_token\030\002 \001(\tH\000\210\001\001B" + + "\022\n\020_next_page_token2\305\031\n\022AlphaAnalyticsDa" + + "ta\022\275\001\n\017RunFunnelReport\0225.google.analytic" + + "s.data.v1alpha.RunFunnelReportRequest\0326." + + "google.analytics.data.v1alpha.RunFunnelR" + + "eportResponse\";\202\323\344\223\0025\"0/v1alpha/{propert" + + "y=properties/*}:runFunnelReport:\001*\022\361\001\n\022C" + + "reateAudienceList\0228.google.analytics.dat" + + "a.v1alpha.CreateAudienceListRequest\032\035.go" + + "ogle.longrunning.Operation\"\201\001\312A$\n\014Audien" + + "ceList\022\024AudienceListMetadata\332A\024parent,au" + + "dience_list\202\323\344\223\002=\",/v1alpha/{parent=prop" + + "erties/*}/audienceLists:\raudience_list\022\314" + + "\001\n\021QueryAudienceList\0227.google.analytics." + + "data.v1alpha.QueryAudienceListRequest\0328." + + "google.analytics.data.v1alpha.QueryAudie" + + "nceListResponse\"D\332A\004name\202\323\344\223\0027\"2/v1alpha" + + "/{name=properties/*/audienceLists/*}:que" + + "ry:\001*\022\344\001\n\027SheetExportAudienceList\022=.goog" + + "le.analytics.data.v1alpha.SheetExportAud" + + "ienceListRequest\032>.google.analytics.data" + + ".v1alpha.SheetExportAudienceListResponse" + + "\"J\332A\004name\202\323\344\223\002=\"8/v1alpha/{name=properti" + + "es/*/audienceLists/*}:exportSheet:\001*\022\262\001\n" + + "\017GetAudienceList\0225.google.analytics.data" + + ".v1alpha.GetAudienceListRequest\032+.google" + + ".analytics.data.v1alpha.AudienceList\";\332A" + + "\004name\202\323\344\223\002.\022,/v1alpha/{name=properties/*" + + "/audienceLists/*}\022\305\001\n\021ListAudienceLists\022" + + "7.google.analytics.data.v1alpha.ListAudi" + + "enceListsRequest\0328.google.analytics.data" + + ".v1alpha.ListAudienceListsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1alpha/{parent=properties" + + "/*}/audienceLists\022\217\002\n\033CreateRecurringAud" + + "ienceList\022A.google.analytics.data.v1alph" + + "a.CreateRecurringAudienceListRequest\0324.g" + + "oogle.analytics.data.v1alpha.RecurringAu" + + "dienceList\"w\332A\036parent,recurring_audience" + + "_list\202\323\344\223\002P\"5/v1alpha/{parent=properties" + + "/*}/recurringAudienceLists:\027recurring_au" + + "dience_list\022\326\001\n\030GetRecurringAudienceList" + + "\022>.google.analytics.data.v1alpha.GetRecu" + + "rringAudienceListRequest\0324.google.analyt" + + "ics.data.v1alpha.RecurringAudienceList\"D" + + "\332A\004name\202\323\344\223\0027\0225/v1alpha/{name=properties" + + "/*/recurringAudienceLists/*}\022\351\001\n\032ListRec" + + "urringAudienceLists\022@.google.analytics.d" + + "ata.v1alpha.ListRecurringAudienceListsRe" + + "quest\032A.google.analytics.data.v1alpha.Li" + + "stRecurringAudienceListsResponse\"F\332A\006par" + + "ent\202\323\344\223\0027\0225/v1alpha/{parent=properties/*" + + "}/recurringAudienceLists\022\327\001\n\031GetProperty" + + "QuotasSnapshot\022?.google.analytics.data.v" + + "1alpha.GetPropertyQuotasSnapshotRequest\032" + + "5.google.analytics.data.v1alpha.Property" + + "QuotasSnapshot\"B\332A\004name\202\323\344\223\0025\0223/v1alpha/" + + "{name=properties/*/propertyQuotasSnapsho" + + "t}\022\342\001\n\020CreateReportTask\0226.google.analyti" + + "cs.data.v1alpha.CreateReportTaskRequest\032" + + "\035.google.longrunning.Operation\"w\312A \n\nRep" + + "ortTask\022\022ReportTaskMetadata\332A\022parent,rep" + + "ort_task\202\323\344\223\0029\"*/v1alpha/{parent=propert" + + "ies/*}/reportTasks:\013report_task\022\304\001\n\017Quer" + + "yReportTask\0225.google.analytics.data.v1al" + + "pha.QueryReportTaskRequest\0326.google.anal" + + "ytics.data.v1alpha.QueryReportTaskRespon" + + "se\"B\332A\004name\202\323\344\223\0025\"0/v1alpha/{name=proper" + + "ties/*/reportTasks/*}:query:\001*\022\252\001\n\rGetRe" + + "portTask\0223.google.analytics.data.v1alpha" + + ".GetReportTaskRequest\032).google.analytics" + + ".data.v1alpha.ReportTask\"9\332A\004name\202\323\344\223\002,\022" + + "*/v1alpha/{name=properties/*/reportTasks" + + "/*}\022\275\001\n\017ListReportTasks\0225.google.analyti" + + "cs.data.v1alpha.ListReportTasksRequest\0326" + + ".google.analytics.data.v1alpha.ListRepor" + + "tTasksResponse\";\332A\006parent\202\323\344\223\002,\022*/v1alph" + + "a/{parent=properties/*}/reportTasks\032\375\001\312A" + + "\034analyticsdata.googleapis.com\322A\332\001https:/" + + "/www.googleapis.com/auth/analytics,https" + + "://www.googleapis.com/auth/analytics.rea" + + "donly,https://www.googleapis.com/auth/dr" + + "ive,https://www.googleapis.com/auth/driv" + + "e.file,https://www.googleapis.com/auth/s" + + "preadsheetsB\301\001\n!com.google.analytics.dat" + + "a.v1alphaB\025AnalyticsDataApiProtoP\001ZAgoog" + + "le.golang.org/genproto/googleapis/analyt" + + "ics/data/v1alpha;data\352A?\n&analyticsadmin" + + ".googleapis.com/Property\022\025properties/{pr" + + "operty}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -710,6 +713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CurrencyCode", "CohortSpec", "KeepEmptyRows", + "SamplingLevel", }); internal_static_google_analytics_data_v1alpha_ReportTask_ReportMetadata_descriptor = internal_static_google_analytics_data_v1alpha_ReportTask_descriptor.getNestedTypes().get(1); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java index 82f1d83983e4..82c00ac6dc29 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTask.java @@ -651,6 +651,49 @@ public interface ReportDefinitionOrBuilder * @return The keepEmptyRows. */ boolean getKeepEmptyRows(); + + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the samplingLevel field is set. + */ + boolean hasSamplingLevel(); + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for samplingLevel. + */ + int getSamplingLevelValue(); + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The samplingLevel. + */ + com.google.analytics.data.v1alpha.SamplingLevel getSamplingLevel(); } /** * @@ -678,6 +721,7 @@ private ReportDefinition() { metricAggregations_ = java.util.Collections.emptyList(); orderBys_ = java.util.Collections.emptyList(); currencyCode_ = ""; + samplingLevel_ = 0; } @java.lang.Override @@ -1488,6 +1532,62 @@ public boolean getKeepEmptyRows() { return keepEmptyRows_; } + public static final int SAMPLING_LEVEL_FIELD_NUMBER = 14; + private int samplingLevel_ = 0; + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the samplingLevel field is set. + */ + @java.lang.Override + public boolean hasSamplingLevel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for samplingLevel. + */ + @java.lang.Override + public int getSamplingLevelValue() { + return samplingLevel_; + } + /** + * + * + *
+     * Optional. The report's sampling level.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The samplingLevel. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingLevel getSamplingLevel() { + com.google.analytics.data.v1alpha.SamplingLevel result = + com.google.analytics.data.v1alpha.SamplingLevel.forNumber(samplingLevel_); + return result == null ? com.google.analytics.data.v1alpha.SamplingLevel.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1543,6 +1643,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (keepEmptyRows_ != false) { output.writeBool(13, keepEmptyRows_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(14, samplingLevel_); + } getUnknownFields().writeTo(output); } @@ -1599,6 +1702,9 @@ public int getSerializedSize() { if (keepEmptyRows_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, keepEmptyRows_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, samplingLevel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1636,6 +1742,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCohortSpec().equals(other.getCohortSpec())) return false; } if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; + if (hasSamplingLevel() != other.hasSamplingLevel()) return false; + if (hasSamplingLevel()) { + if (samplingLevel_ != other.samplingLevel_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1687,6 +1797,10 @@ public int hashCode() { } hash = (37 * hash) + KEEP_EMPTY_ROWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepEmptyRows()); + if (hasSamplingLevel()) { + hash = (37 * hash) + SAMPLING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + samplingLevel_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1893,6 +2007,7 @@ public Builder clear() { cohortSpecBuilder_ = null; } keepEmptyRows_ = false; + samplingLevel_ = 0; return this; } @@ -2005,6 +2120,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000800) != 0)) { result.keepEmptyRows_ = keepEmptyRows_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.samplingLevel_ = samplingLevel_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2199,6 +2318,9 @@ public Builder mergeFrom( if (other.getKeepEmptyRows() != false) { setKeepEmptyRows(other.getKeepEmptyRows()); } + if (other.hasSamplingLevel()) { + setSamplingLevel(other.getSamplingLevel()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2339,6 +2461,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 104 + case 112: + { + samplingLevel_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5271,6 +5399,125 @@ public Builder clearKeepEmptyRows() { return this; } + private int samplingLevel_ = 0; + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the samplingLevel field is set. + */ + @java.lang.Override + public boolean hasSamplingLevel() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for samplingLevel. + */ + @java.lang.Override + public int getSamplingLevelValue() { + return samplingLevel_; + } + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for samplingLevel to set. + * @return This builder for chaining. + */ + public Builder setSamplingLevelValue(int value) { + samplingLevel_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The samplingLevel. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingLevel getSamplingLevel() { + com.google.analytics.data.v1alpha.SamplingLevel result = + com.google.analytics.data.v1alpha.SamplingLevel.forNumber(samplingLevel_); + return result == null + ? com.google.analytics.data.v1alpha.SamplingLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The samplingLevel to set. + * @return This builder for chaining. + */ + public Builder setSamplingLevel(com.google.analytics.data.v1alpha.SamplingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + samplingLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The report's sampling level.
+       * 
+ * + * + * optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSamplingLevel() { + bitField0_ = (bitField0_ & ~0x00001000); + samplingLevel_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java index e549a114f012..afe3584fdded 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java @@ -678,11 +678,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "E_FEET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013TYPE_METERS\020" + "\014\022\023\n\017TYPE_KILOMETERS\020\r*_\n\024RestrictedMetr" + "icType\022&\n\"RESTRICTED_METRIC_TYPE_UNSPECI" - + "FIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA\020\002B" - + "{\n!com.google.analytics.data.v1alphaB\021Re" - + "portingApiProtoP\001ZAgoogle.golang.org/gen" - + "proto/googleapis/analytics/data/v1alpha;" - + "datab\006proto3" + + "FIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA\020\002*" + + "S\n\rSamplingLevel\022\036\n\032SAMPLING_LEVEL_UNSPE" + + "CIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\r\n\tUNSAMPL" + + "ED\020\003B{\n!com.google.analytics.data.v1alph" + + "aB\021ReportingApiProtoP\001ZAgoogle.golang.or" + + "g/genproto/googleapis/analytics/data/v1a" + + "lpha;datab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java new file mode 100644 index 000000000000..4b70209d3c0d --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingLevel.java @@ -0,0 +1,211 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/analytics/data/v1alpha/data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Categories of sampling levels for the requests.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.SamplingLevel} + */ +public enum SamplingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified type.
+   * 
+ * + * SAMPLING_LEVEL_UNSPECIFIED = 0; + */ + SAMPLING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * Applies a sampling level of 10 million to standard properties and
+   * 100 million to Google Analytics 360 properties.
+   * 
+ * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
+   * Exclusive to Google Analytics 360 properties with a sampling level of 1
+   * billion.
+   * 
+ * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
+   * Exclusive to Google Analytics 360 properties. Unsampled explorations are
+   * more accurate and can reveal insights that aren't visible in standard
+   * explorations. To learn more, see
+   * https://support.google.com/analytics/answer/10896953.
+   * 
+ * + * UNSAMPLED = 3; + */ + UNSAMPLED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified type.
+   * 
+ * + * SAMPLING_LEVEL_UNSPECIFIED = 0; + */ + public static final int SAMPLING_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Applies a sampling level of 10 million to standard properties and
+   * 100 million to Google Analytics 360 properties.
+   * 
+ * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + /** + * + * + *
+   * Exclusive to Google Analytics 360 properties with a sampling level of 1
+   * billion.
+   * 
+ * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * + * + *
+   * Exclusive to Google Analytics 360 properties. Unsampled explorations are
+   * more accurate and can reveal insights that aren't visible in standard
+   * explorations. To learn more, see
+   * https://support.google.com/analytics/answer/10896953.
+   * 
+ * + * UNSAMPLED = 3; + */ + public static final int UNSAMPLED_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 SamplingLevel 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 SamplingLevel forNumber(int value) { + switch (value) { + case 0: + return SAMPLING_LEVEL_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return UNSAMPLED; + 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 SamplingLevel findValueByNumber(int number) { + return SamplingLevel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(9); + } + + private static final SamplingLevel[] VALUES = values(); + + public static SamplingLevel 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 SamplingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.SamplingLevel) +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto index 3b2c2b0a989d..0b00c65a5731 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto @@ -1086,6 +1086,10 @@ message ReportTask { // the `eventName` dimension and `eventCount` metric will not have a row // containing eventName: "purchase" and eventCount: 0. bool keep_empty_rows = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The report's sampling level. + optional SamplingLevel sampling_level = 14 + [(google.api.field_behavior) = OPTIONAL]; } // The report metadata for a specific report task. diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto index 59612d666210..1ec409c3ca89 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -1573,3 +1573,23 @@ enum RestrictedMetricType { // Revenue metrics such as `purchaseRevenue`. REVENUE_DATA = 2; } + +// Categories of sampling levels for the requests. +enum SamplingLevel { + // Unspecified type. + SAMPLING_LEVEL_UNSPECIFIED = 0; + + // Applies a sampling level of 10 million to standard properties and + // 100 million to Google Analytics 360 properties. + LOW = 1; + + // Exclusive to Google Analytics 360 properties with a sampling level of 1 + // billion. + MEDIUM = 2; + + // Exclusive to Google Analytics 360 properties. Unsampled explorations are + // more accurate and can reveal insights that aren't visible in standard + // explorations. To learn more, see + // https://support.google.com/analytics/answer/10896953. + UNSAMPLED = 3; +} diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 84b255a10f62..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.samples; - -// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_Create_SetCredentialsProvider1_sync] -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AlphaAnalyticsDataSettings alphaAnalyticsDataSettings = - AlphaAnalyticsDataSettings.newHttpJsonBuilder().build(); - AlphaAnalyticsDataClient alphaAnalyticsDataClient = - AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings); - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_Create_SetCredentialsProvider1_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8b8db382a0bc --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1alpha/alphaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.samples; + +// [START analyticsdata_v1alpha_generated_AlphaAnalyticsData_Create_UseHttpJsonTransport_sync] +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient; +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlphaAnalyticsDataSettings alphaAnalyticsDataSettings = + AlphaAnalyticsDataSettings.newHttpJsonBuilder().build(); + AlphaAnalyticsDataClient alphaAnalyticsDataClient = + AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings); + } +} +// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_Create_UseHttpJsonTransport_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1385c84502b5..000000000000 --- a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.samples; - -// [START analyticsdata_v1beta_generated_BetaAnalyticsData_Create_SetCredentialsProvider1_sync] -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.BetaAnalyticsDataSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BetaAnalyticsDataSettings betaAnalyticsDataSettings = - BetaAnalyticsDataSettings.newHttpJsonBuilder().build(); - BetaAnalyticsDataClient betaAnalyticsDataClient = - BetaAnalyticsDataClient.create(betaAnalyticsDataSettings); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_Create_SetCredentialsProvider1_sync] diff --git a/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fff066592ac5 --- /dev/null +++ b/java-analytics-data/samples/snippets/generated/com/google/analytics/data/v1beta/betaanalyticsdata/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1beta.samples; + +// [START analyticsdata_v1beta_generated_BetaAnalyticsData_Create_UseHttpJsonTransport_sync] +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.BetaAnalyticsDataSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BetaAnalyticsDataSettings betaAnalyticsDataSettings = + BetaAnalyticsDataSettings.newHttpJsonBuilder().build(); + BetaAnalyticsDataClient betaAnalyticsDataClient = + BetaAnalyticsDataClient.create(betaAnalyticsDataSettings); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_Create_UseHttpJsonTransport_sync] diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index ec2ffb5b727b..1c118d079584 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json index 415dcfeabaa2..8e4b19998751 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json +++ b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ae4aea568952..000000000000 --- a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.analyticshub.v1.samples; - -// [START analyticshub_v1_generated_AnalyticsHubService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; -import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsHubServiceSettings analyticsHubServiceSettings = - AnalyticsHubServiceSettings.newHttpJsonBuilder().build(); - AnalyticsHubServiceClient analyticsHubServiceClient = - AnalyticsHubServiceClient.create(analyticsHubServiceSettings); - } -} -// [END analyticshub_v1_generated_AnalyticsHubService_Create_SetCredentialsProvider1_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..40d5c5d36201 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsHubServiceSettings analyticsHubServiceSettings = + AnalyticsHubServiceSettings.newHttpJsonBuilder().build(); + AnalyticsHubServiceClient analyticsHubServiceClient = + AnalyticsHubServiceClient.create(analyticsHubServiceSettings); + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_Create_UseHttpJsonTransport_sync] diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index becd9ce1e0ac..0b32b90d35f5 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/resources/META-INF/native-image/com.google.cloud.apigateway.v1/reflect-config.json b/java-api-gateway/google-cloud-api-gateway/src/main/resources/META-INF/native-image/com.google.cloud.apigateway.v1/reflect-config.json index afd681afe977..bda7518a5332 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/resources/META-INF/native-image/com.google.cloud.apigateway.v1/reflect-config.json +++ b/java-api-gateway/google-cloud-api-gateway/src/main/resources/META-INF/native-image/com.google.cloud.apigateway.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.apigateway.v1.Api", "queryAllDeclaredConstructors": true, diff --git a/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateSetCredentialsProvider1.java b/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 45042875efc9..000000000000 --- a/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.apigateway.v1.samples; - -// [START apigateway_v1_generated_ApiGatewayService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; -import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ApiGatewayServiceSettings apiGatewayServiceSettings = - ApiGatewayServiceSettings.newHttpJsonBuilder().build(); - ApiGatewayServiceClient apiGatewayServiceClient = - ApiGatewayServiceClient.create(apiGatewayServiceSettings); - } -} -// [END apigateway_v1_generated_ApiGatewayService_Create_SetCredentialsProvider1_sync] diff --git a/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateUseHttpJsonTransport.java b/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..62cd52966644 --- /dev/null +++ b/java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigateway.v1.samples; + +// [START apigateway_v1_generated_ApiGatewayService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ApiGatewayServiceSettings apiGatewayServiceSettings = + ApiGatewayServiceSettings.newHttpJsonBuilder().build(); + ApiGatewayServiceClient apiGatewayServiceClient = + ApiGatewayServiceClient.create(apiGatewayServiceSettings); + } +} +// [END apigateway_v1_generated_ApiGatewayService_Create_UseHttpJsonTransport_sync] diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 195659625033..aa1c5d4e22ea 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/resources/META-INF/native-image/com.google.cloud.apigeeconnect.v1/reflect-config.json b/java-apigee-connect/google-cloud-apigee-connect/src/main/resources/META-INF/native-image/com.google.cloud.apigeeconnect.v1/reflect-config.json index 9e906d933f28..68e4ae49cd66 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/resources/META-INF/native-image/com.google.cloud.apigeeconnect.v1/reflect-config.json +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/resources/META-INF/native-image/com.google.cloud.apigeeconnect.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.apigeeconnect.v1.Action", "queryAllDeclaredConstructors": true, diff --git a/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ac1853a95395..000000000000 --- a/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.apigeeconnect.v1.samples; - -// [START apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; -import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConnectionServiceSettings connectionServiceSettings = - ConnectionServiceSettings.newHttpJsonBuilder().build(); - ConnectionServiceClient connectionServiceClient = - ConnectionServiceClient.create(connectionServiceSettings); - } -} -// [END apigeeconnect_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] diff --git a/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java b/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dc6cd4edff5e --- /dev/null +++ b/java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newHttpJsonBuilder().build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END apigeeconnect_v1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 6a848543e4c0..905e63aa4b2d 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.52.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/google-cloud-apigee-registry/src/main/resources/META-INF/native-image/com.google.cloud.apigeeregistry.v1/reflect-config.json b/java-apigee-registry/google-cloud-apigee-registry/src/main/resources/META-INF/native-image/com.google.cloud.apigeeregistry.v1/reflect-config.json index 4a8985ae98ae..7165e13d5a89 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/src/main/resources/META-INF/native-image/com.google.cloud.apigeeregistry.v1/reflect-config.json +++ b/java-apigee-registry/google-cloud-apigee-registry/src/main/resources/META-INF/native-image/com.google.cloud.apigeeregistry.v1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.apigeeregistry.v1.Api", "queryAllDeclaredConstructors": true, diff --git a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateSetCredentialsProvider1.java b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 483935bffaf4..000000000000 --- a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.apigeeregistry.v1.samples; - -// [START apigeeregistry_v1_generated_Provisioning_Create_SetCredentialsProvider1_sync] -import com.google.cloud.apigeeregistry.v1.ProvisioningClient; -import com.google.cloud.apigeeregistry.v1.ProvisioningSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProvisioningSettings provisioningSettings = ProvisioningSettings.newHttpJsonBuilder().build(); - ProvisioningClient provisioningClient = ProvisioningClient.create(provisioningSettings); - } -} -// [END apigeeregistry_v1_generated_Provisioning_Create_SetCredentialsProvider1_sync] diff --git a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateUseHttpJsonTransport.java b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..be85199aaee4 --- /dev/null +++ b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/provisioning/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeregistry.v1.samples; + +// [START apigeeregistry_v1_generated_Provisioning_Create_UseHttpJsonTransport_sync] +import com.google.cloud.apigeeregistry.v1.ProvisioningClient; +import com.google.cloud.apigeeregistry.v1.ProvisioningSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProvisioningSettings provisioningSettings = ProvisioningSettings.newHttpJsonBuilder().build(); + ProvisioningClient provisioningClient = ProvisioningClient.create(provisioningSettings); + } +} +// [END apigeeregistry_v1_generated_Provisioning_Create_UseHttpJsonTransport_sync] diff --git a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateSetCredentialsProvider1.java b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 465d43c2d837..000000000000 --- a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.apigeeregistry.v1.samples; - -// [START apigeeregistry_v1_generated_Registry_Create_SetCredentialsProvider1_sync] -import com.google.cloud.apigeeregistry.v1.RegistryClient; -import com.google.cloud.apigeeregistry.v1.RegistrySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RegistrySettings registrySettings = RegistrySettings.newHttpJsonBuilder().build(); - RegistryClient registryClient = RegistryClient.create(registrySettings); - } -} -// [END apigeeregistry_v1_generated_Registry_Create_SetCredentialsProvider1_sync] diff --git a/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateUseHttpJsonTransport.java b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6196c9240f0a --- /dev/null +++ b/java-apigee-registry/samples/snippets/generated/com/google/cloud/apigeeregistry/v1/registry/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeregistry.v1.samples; + +// [START apigeeregistry_v1_generated_Registry_Create_UseHttpJsonTransport_sync] +import com.google.cloud.apigeeregistry.v1.RegistryClient; +import com.google.cloud.apigeeregistry.v1.RegistrySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RegistrySettings registrySettings = RegistrySettings.newHttpJsonBuilder().build(); + RegistryClient registryClient = RegistryClient.create(registrySettings); + } +} +// [END apigeeregistry_v1_generated_Registry_Create_UseHttpJsonTransport_sync] diff --git a/java-apihub/README.md b/java-apihub/README.md index baa9104a0aeb..ce68a09129c2 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.5.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.5.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/google-cloud-apihub/src/main/resources/META-INF/native-image/com.google.cloud.apihub.v1/reflect-config.json b/java-apihub/google-cloud-apihub/src/main/resources/META-INF/native-image/com.google.cloud.apihub.v1/reflect-config.json index 33eb834772a8..08949a8b0ed8 100644 --- a/java-apihub/google-cloud-apihub/src/main/resources/META-INF/native-image/com.google.cloud.apihub.v1/reflect-config.json +++ b/java-apihub/google-cloud-apihub/src/main/resources/META-INF/native-image/com.google.cloud.apihub.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.apihub.v1.Api", "queryAllDeclaredConstructors": true, diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 27a9637a4668..04d4b9fb71b4 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/google-cloud-apikeys/src/main/resources/META-INF/native-image/com.google.api.apikeys.v2/reflect-config.json b/java-apikeys/google-cloud-apikeys/src/main/resources/META-INF/native-image/com.google.api.apikeys.v2/reflect-config.json index 825af65108d1..2b8392366e62 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/resources/META-INF/native-image/com.google.api.apikeys.v2/reflect-config.json +++ b/java-apikeys/google-cloud-apikeys/src/main/resources/META-INF/native-image/com.google.api.apikeys.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.apikeys.v2.AndroidApplication", "queryAllDeclaredConstructors": true, diff --git a/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateSetCredentialsProvider1.java b/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1a7a8b60c0eb..000000000000 --- a/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.apikeys.v2.samples; - -// [START apikeys_v2_generated_ApiKeys_Create_SetCredentialsProvider1_sync] -import com.google.api.apikeys.v2.ApiKeysClient; -import com.google.api.apikeys.v2.ApiKeysSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ApiKeysSettings apiKeysSettings = ApiKeysSettings.newHttpJsonBuilder().build(); - ApiKeysClient apiKeysClient = ApiKeysClient.create(apiKeysSettings); - } -} -// [END apikeys_v2_generated_ApiKeys_Create_SetCredentialsProvider1_sync] diff --git a/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateUseHttpJsonTransport.java b/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dac11d2c373f --- /dev/null +++ b/java-apikeys/samples/snippets/generated/com/google/api/apikeys/v2/apikeys/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.apikeys.v2.samples; + +// [START apikeys_v2_generated_ApiKeys_Create_UseHttpJsonTransport_sync] +import com.google.api.apikeys.v2.ApiKeysClient; +import com.google.api.apikeys.v2.ApiKeysSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ApiKeysSettings apiKeysSettings = ApiKeysSettings.newHttpJsonBuilder().build(); + ApiKeysClient apiKeysClient = ApiKeysClient.create(apiKeysSettings); + } +} +// [END apikeys_v2_generated_ApiKeys_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index bb555f189bc4..686f9939e37f 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/resources/META-INF/native-image/com.google.appengine.v1/reflect-config.json b/java-appengine-admin/google-cloud-appengine-admin/src/main/resources/META-INF/native-image/com.google.appengine.v1/reflect-config.json index b27c62ef693e..89266b2c156f 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/resources/META-INF/native-image/com.google.appengine.v1/reflect-config.json +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/resources/META-INF/native-image/com.google.appengine.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.appengine.v1.ApiConfigHandler", "queryAllDeclaredConstructors": true, diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index da2e5c1c6099..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_Applications_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.ApplicationsClient; -import com.google.appengine.v1.ApplicationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ApplicationsSettings applicationsSettings = ApplicationsSettings.newHttpJsonBuilder().build(); - ApplicationsClient applicationsClient = ApplicationsClient.create(applicationsSettings); - } -} -// [END appengine_v1_generated_Applications_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..207c6fc8729e --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/applications/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_Applications_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.ApplicationsClient; +import com.google.appengine.v1.ApplicationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ApplicationsSettings applicationsSettings = ApplicationsSettings.newHttpJsonBuilder().build(); + ApplicationsClient applicationsClient = ApplicationsClient.create(applicationsSettings); + } +} +// [END appengine_v1_generated_Applications_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1be94fb7adf8..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_AuthorizedCertificates_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.AuthorizedCertificatesClient; -import com.google.appengine.v1.AuthorizedCertificatesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AuthorizedCertificatesSettings authorizedCertificatesSettings = - AuthorizedCertificatesSettings.newHttpJsonBuilder().build(); - AuthorizedCertificatesClient authorizedCertificatesClient = - AuthorizedCertificatesClient.create(authorizedCertificatesSettings); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ba5fa0c083fe --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizedcertificates/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_AuthorizedCertificates_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.AuthorizedCertificatesClient; +import com.google.appengine.v1.AuthorizedCertificatesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AuthorizedCertificatesSettings authorizedCertificatesSettings = + AuthorizedCertificatesSettings.newHttpJsonBuilder().build(); + AuthorizedCertificatesClient authorizedCertificatesClient = + AuthorizedCertificatesClient.create(authorizedCertificatesSettings); + } +} +// [END appengine_v1_generated_AuthorizedCertificates_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5f840e1a6f1f..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_AuthorizedDomains_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.AuthorizedDomainsClient; -import com.google.appengine.v1.AuthorizedDomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AuthorizedDomainsSettings authorizedDomainsSettings = - AuthorizedDomainsSettings.newHttpJsonBuilder().build(); - AuthorizedDomainsClient authorizedDomainsClient = - AuthorizedDomainsClient.create(authorizedDomainsSettings); - } -} -// [END appengine_v1_generated_AuthorizedDomains_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..31435c323922 --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/authorizeddomains/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_AuthorizedDomains_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.AuthorizedDomainsClient; +import com.google.appengine.v1.AuthorizedDomainsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AuthorizedDomainsSettings authorizedDomainsSettings = + AuthorizedDomainsSettings.newHttpJsonBuilder().build(); + AuthorizedDomainsClient authorizedDomainsClient = + AuthorizedDomainsClient.create(authorizedDomainsSettings); + } +} +// [END appengine_v1_generated_AuthorizedDomains_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 09b83769a41c..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_DomainMappings_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.DomainMappingsClient; -import com.google.appengine.v1.DomainMappingsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainMappingsSettings domainMappingsSettings = - DomainMappingsSettings.newHttpJsonBuilder().build(); - DomainMappingsClient domainMappingsClient = DomainMappingsClient.create(domainMappingsSettings); - } -} -// [END appengine_v1_generated_DomainMappings_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..65eeb5020b46 --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/domainmappings/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_DomainMappings_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.DomainMappingsClient; +import com.google.appengine.v1.DomainMappingsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DomainMappingsSettings domainMappingsSettings = + DomainMappingsSettings.newHttpJsonBuilder().build(); + DomainMappingsClient domainMappingsClient = DomainMappingsClient.create(domainMappingsSettings); + } +} +// [END appengine_v1_generated_DomainMappings_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e8148a41ebf2..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_Firewall_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.FirewallClient; -import com.google.appengine.v1.FirewallSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FirewallSettings firewallSettings = FirewallSettings.newHttpJsonBuilder().build(); - FirewallClient firewallClient = FirewallClient.create(firewallSettings); - } -} -// [END appengine_v1_generated_Firewall_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b2f97ae9441b --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/firewall/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_Firewall_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.FirewallClient; +import com.google.appengine.v1.FirewallSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallSettings firewallSettings = FirewallSettings.newHttpJsonBuilder().build(); + FirewallClient firewallClient = FirewallClient.create(firewallSettings); + } +} +// [END appengine_v1_generated_Firewall_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a5296806411a..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_Instances_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.InstancesClient; -import com.google.appengine.v1.InstancesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - InstancesSettings instancesSettings = InstancesSettings.newHttpJsonBuilder().build(); - InstancesClient instancesClient = InstancesClient.create(instancesSettings); - } -} -// [END appengine_v1_generated_Instances_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c619eb577caa --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/instances/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_Instances_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.InstancesClient; +import com.google.appengine.v1.InstancesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InstancesSettings instancesSettings = InstancesSettings.newHttpJsonBuilder().build(); + InstancesClient instancesClient = InstancesClient.create(instancesSettings); + } +} +// [END appengine_v1_generated_Instances_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f6eca8b6fa17..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_Services_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.ServicesClient; -import com.google.appengine.v1.ServicesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); - ServicesClient servicesClient = ServicesClient.create(servicesSettings); - } -} -// [END appengine_v1_generated_Services_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f195d77a9bea --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/services/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_Services_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.ServicesClient; +import com.google.appengine.v1.ServicesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); + ServicesClient servicesClient = ServicesClient.create(servicesSettings); + } +} +// [END appengine_v1_generated_Services_Create_UseHttpJsonTransport_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateSetCredentialsProvider1.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 61731e92a2ce..000000000000 --- a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.appengine.v1.samples; - -// [START appengine_v1_generated_Versions_Create_SetCredentialsProvider1_sync] -import com.google.appengine.v1.VersionsClient; -import com.google.appengine.v1.VersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); - VersionsClient versionsClient = VersionsClient.create(versionsSettings); - } -} -// [END appengine_v1_generated_Versions_Create_SetCredentialsProvider1_sync] diff --git a/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateUseHttpJsonTransport.java b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..01c4eb91be56 --- /dev/null +++ b/java-appengine-admin/samples/snippets/generated/com/google/appengine/v1/versions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.appengine.v1.samples; + +// [START appengine_v1_generated_Versions_Create_UseHttpJsonTransport_sync] +import com.google.appengine.v1.VersionsClient; +import com.google.appengine.v1.VersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); + VersionsClient versionsClient = VersionsClient.create(versionsSettings); + } +} +// [END appengine_v1_generated_Versions_Create_UseHttpJsonTransport_sync] diff --git a/java-apphub/README.md b/java-apphub/README.md index e511e5dd36be..2db856c12592 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.16.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json b/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json index 97f1e01b53f9..21ac866157af 100644 --- a/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json +++ b/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateSetCredentialsProvider1.java b/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index df34ec2b2dac..000000000000 --- a/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.apphub.v1.samples; - -// [START apphub_v1_generated_AppHub_Create_SetCredentialsProvider1_sync] -import com.google.cloud.apphub.v1.AppHubClient; -import com.google.cloud.apphub.v1.AppHubSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AppHubSettings appHubSettings = AppHubSettings.newHttpJsonBuilder().build(); - AppHubClient appHubClient = AppHubClient.create(appHubSettings); - } -} -// [END apphub_v1_generated_AppHub_Create_SetCredentialsProvider1_sync] diff --git a/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateUseHttpJsonTransport.java b/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b4e18ffab97b --- /dev/null +++ b/java-apphub/samples/snippets/generated/com/google/cloud/apphub/v1/apphub/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apphub.v1.samples; + +// [START apphub_v1_generated_AppHub_Create_UseHttpJsonTransport_sync] +import com.google.cloud.apphub.v1.AppHubClient; +import com.google.cloud.apphub.v1.AppHubSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AppHubSettings appHubSettings = AppHubSettings.newHttpJsonBuilder().build(); + AppHubClient appHubClient = AppHubClient.create(appHubSettings); + } +} +// [END apphub_v1_generated_AppHub_Create_UseHttpJsonTransport_sync] diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 07b420e30db9..66cd6d92eec5 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.56.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/google-area120-tables/src/main/resources/META-INF/native-image/com.google.area120.tables.v1alpha/reflect-config.json b/java-area120-tables/google-area120-tables/src/main/resources/META-INF/native-image/com.google.area120.tables.v1alpha/reflect-config.json index 85573a04c806..cf35fbc61c32 100644 --- a/java-area120-tables/google-area120-tables/src/main/resources/META-INF/native-image/com.google.area120.tables.v1alpha/reflect-config.json +++ b/java-area120-tables/google-area120-tables/src/main/resources/META-INF/native-image/com.google.area120.tables.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.area120.tables.v1alpha1.BatchCreateRowsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateSetCredentialsProvider1.java b/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f76006c9e453..000000000000 --- a/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.area120.tables.v1alpha.samples; - -// [START area120tables_v1alpha1_generated_TablesService_Create_SetCredentialsProvider1_sync] -import com.google.area120.tables.v1alpha.TablesServiceClient; -import com.google.area120.tables.v1alpha.TablesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TablesServiceSettings tablesServiceSettings = - TablesServiceSettings.newHttpJsonBuilder().build(); - TablesServiceClient tablesServiceClient = TablesServiceClient.create(tablesServiceSettings); - } -} -// [END area120tables_v1alpha1_generated_TablesService_Create_SetCredentialsProvider1_sync] diff --git a/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateUseHttpJsonTransport.java b/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3d2715bd83e9 --- /dev/null +++ b/java-area120-tables/samples/snippets/generated/com/google/area120/tables/v1alpha/tablesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.area120.tables.v1alpha.samples; + +// [START area120tables_v1alpha1_generated_TablesService_Create_UseHttpJsonTransport_sync] +import com.google.area120.tables.v1alpha.TablesServiceClient; +import com.google.area120.tables.v1alpha.TablesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TablesServiceSettings tablesServiceSettings = + TablesServiceSettings.newHttpJsonBuilder().build(); + TablesServiceClient tablesServiceClient = TablesServiceClient.create(tablesServiceSettings); + } +} +// [END area120tables_v1alpha1_generated_TablesService_Create_UseHttpJsonTransport_sync] diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 70f59ba80a40..16cf8d8be0a7 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java index 36948e77e0ba..41b4d8ab4059 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java @@ -510,6 +510,24 @@ * * * + *

UpdateVersion + *

Updates a version. + * + *

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

+ *
    + *
  • updateVersion(UpdateVersionRequest request) + *

+ *

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

+ *
    + *
  • updateVersion(Version version, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateVersionCallable() + *

+ * + * + * *

ListFiles *

Lists files. * @@ -549,6 +567,44 @@ * * * + *

DeleteFile + *

Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted. + * + *

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

+ *
    + *
  • deleteFileAsync(DeleteFileRequest request) + *

+ *

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

+ *
    + *
  • deleteFileAsync(FileName name) + *

  • deleteFileAsync(String name) + *

+ *

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

+ *
    + *
  • deleteFileOperationCallable() + *

  • deleteFileCallable() + *

+ * + * + * + *

UpdateFile + *

Updates a file. + * + *

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

+ *
    + *
  • updateFile(UpdateFileRequest request) + *

+ *

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

+ *
    + *
  • updateFile(File file, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateFileCallable() + *

+ * + * + * *

ListTags *

Lists tags. * @@ -640,6 +696,101 @@ * * * + *

CreateRule + *

Creates a rule. + * + *

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

+ *
    + *
  • createRule(CreateRuleRequest request) + *

+ *

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

+ *
    + *
  • createRule(RepositoryName parent, Rule rule, String ruleId) + *

  • createRule(String parent, Rule rule, String ruleId) + *

+ *

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

+ *
    + *
  • createRuleCallable() + *

+ * + * + * + *

ListRules + *

Lists rules. + * + *

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

+ *
    + *
  • listRules(ListRulesRequest request) + *

+ *

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

+ *
    + *
  • listRules(RepositoryName parent) + *

  • listRules(String parent) + *

+ *

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

+ *
    + *
  • listRulesPagedCallable() + *

  • listRulesCallable() + *

+ * + * + * + *

GetRule + *

Gets a rule. + * + *

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

+ *
    + *
  • getRule(GetRuleRequest request) + *

+ *

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

+ *
    + *
  • getRule(RuleName name) + *

  • getRule(String name) + *

+ *

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

+ *
    + *
  • getRuleCallable() + *

+ * + * + * + *

UpdateRule + *

Updates a rule. + * + *

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

+ *
    + *
  • updateRule(UpdateRuleRequest request) + *

+ *

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

+ *
    + *
  • updateRule(Rule rule, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateRuleCallable() + *

+ * + * + * + *

DeleteRule + *

Deletes a rule. + * + *

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

+ *
    + *
  • deleteRule(DeleteRuleRequest request) + *

+ *

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

+ *
    + *
  • deleteRule(RuleName name) + *

  • deleteRule(String name) + *

+ *

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

+ *
    + *
  • deleteRuleCallable() + *

+ * + * + * *

SetIamPolicy *

Updates the IAM policy for a given resource. * @@ -756,6 +907,103 @@ * * * + *

UpdatePackage + *

Updates a package. + * + *

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

+ *
    + *
  • updatePackage(UpdatePackageRequest request) + *

+ *

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

+ *
    + *
  • updatePackage(Package package_, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updatePackageCallable() + *

+ * + * + * + *

ListAttachments + *

Lists attachments. + * + *

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

+ *
    + *
  • listAttachments(ListAttachmentsRequest request) + *

+ *

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

+ *
    + *
  • listAttachments(RepositoryName parent) + *

  • listAttachments(String parent) + *

+ *

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

+ *
    + *
  • listAttachmentsPagedCallable() + *

  • listAttachmentsCallable() + *

+ * + * + * + *

GetAttachment + *

Gets an attachment. + * + *

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

+ *
    + *
  • getAttachment(GetAttachmentRequest request) + *

+ *

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

+ *
    + *
  • getAttachment(AttachmentName name) + *

  • getAttachment(String name) + *

+ *

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

+ *
    + *
  • getAttachmentCallable() + *

+ * + * + * + *

CreateAttachment + *

Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment. + * + *

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

+ *
    + *
  • createAttachmentAsync(CreateAttachmentRequest request) + *

+ *

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

+ *
    + *
  • createAttachmentAsync(RepositoryName parent, Attachment attachment, String attachmentId) + *

  • createAttachmentAsync(String parent, Attachment attachment, String attachmentId) + *

+ *

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

+ *
    + *
  • createAttachmentOperationCallable() + *

  • createAttachmentCallable() + *

+ * + * + * + *

DeleteAttachment + *

Deletes an attachment. The returned Operation will finish once the attachments has been deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` response. + * + *

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

+ *
    + *
  • deleteAttachmentAsync(DeleteAttachmentRequest request) + *

+ *

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

+ *
    + *
  • deleteAttachmentAsync(AttachmentName name) + *

  • deleteAttachmentAsync(String name) + *

+ *

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

+ *
    + *
  • deleteAttachmentOperationCallable() + *

  • deleteAttachmentCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -2273,6 +2521,8 @@ public final ListRepositoriesPagedResponse listRepositories(String parent) { * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * for (Repository element : artifactRegistryClient.listRepositories(request).iterateAll()) { * // doThingsWith(element); @@ -2305,6 +2555,8 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * ApiFuture future = * artifactRegistryClient.listRepositoriesPagedCallable().futureCall(request); @@ -2338,6 +2590,8 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { * ListRepositoriesResponse response = @@ -2958,6 +3212,8 @@ public final ListPackagesPagedResponse listPackages(String parent) { * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * for (Package element : artifactRegistryClient.listPackages(request).iterateAll()) { * // doThingsWith(element); @@ -2990,6 +3246,8 @@ public final ListPackagesPagedResponse listPackages(ListPackagesRequest request) * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * ApiFuture future = * artifactRegistryClient.listPackagesPagedCallable().futureCall(request); @@ -3023,6 +3281,8 @@ public final ListPackagesPagedResponse listPackages(ListPackagesRequest request) * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { * ListPackagesResponse response = artifactRegistryClient.listPackagesCallable().call(request); @@ -3350,6 +3610,7 @@ public final ListVersionsPagedResponse listVersions(String parent) { * .setPageToken("pageToken873572522") * .setView(VersionView.forNumber(0)) * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * for (Version element : artifactRegistryClient.listVersions(request).iterateAll()) { * // doThingsWith(element); @@ -3384,6 +3645,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request) * .setPageToken("pageToken873572522") * .setView(VersionView.forNumber(0)) * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * artifactRegistryClient.listVersionsPagedCallable().futureCall(request); @@ -3419,6 +3681,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request) * .setPageToken("pageToken873572522") * .setView(VersionView.forNumber(0)) * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { * ListVersionsResponse response = artifactRegistryClient.listVersionsCallable().call(request); @@ -3798,6 +4061,94 @@ public final UnaryCallable batchDeleteVer return stub.batchDeleteVersionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   Version version = Version.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Version response = artifactRegistryClient.updateVersion(version, updateMask);
+   * }
+   * }
+ * + * @param version Required. The Version that replaces the resource on the server. + * @param updateMask The update mask applies to the resource. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Version updateVersion(Version version, FieldMask updateMask) { + UpdateVersionRequest request = + UpdateVersionRequest.newBuilder().setVersion(version).setUpdateMask(updateMask).build(); + return updateVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateVersionRequest request =
+   *       UpdateVersionRequest.newBuilder()
+   *           .setVersion(Version.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Version response = artifactRegistryClient.updateVersion(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Version updateVersion(UpdateVersionRequest request) { + return updateVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateVersionRequest request =
+   *       UpdateVersionRequest.newBuilder()
+   *           .setVersion(Version.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.updateVersionCallable().futureCall(request);
+   *   // Do something.
+   *   Version response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateVersionCallable() { + return stub.updateVersionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists files. @@ -4074,7 +4425,8 @@ public final UnaryCallable getFileCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists tags. + * Deletes a file and all of its content. It is only allowed on generic repositories. The returned + * operation will complete once the file has been deleted. * *

Sample code: * @@ -4085,10 +4437,240 @@ public final UnaryCallable getFileCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * String parent = "parent-995424086"; - * for (Tag element : artifactRegistryClient.listTags(parent).iterateAll()) { - * // doThingsWith(element); - * } + * FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + * artifactRegistryClient.deleteFileAsync(name).get(); + * } + * }

+ * + * @param name Required. The name of the file to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFileAsync(FileName name) { + DeleteFileRequest request = + DeleteFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file and all of its content. It is only allowed on generic repositories. The returned + * operation will complete once the file has been deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString();
+   *   artifactRegistryClient.deleteFileAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the file to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFileAsync(String name) { + DeleteFileRequest request = DeleteFileRequest.newBuilder().setName(name).build(); + return deleteFileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file and all of its content. It is only allowed on generic repositories. The returned + * operation will complete once the file has been deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   DeleteFileRequest request =
+   *       DeleteFileRequest.newBuilder()
+   *           .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString())
+   *           .build();
+   *   artifactRegistryClient.deleteFileAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFileAsync( + DeleteFileRequest request) { + return deleteFileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file and all of its content. It is only allowed on generic repositories. The returned + * operation will complete once the file has been deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   DeleteFileRequest request =
+   *       DeleteFileRequest.newBuilder()
+   *           .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       artifactRegistryClient.deleteFileOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteFileOperationCallable() { + return stub.deleteFileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file and all of its content. It is only allowed on generic repositories. The returned + * operation will complete once the file has been deleted. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   File file = File.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   File response = artifactRegistryClient.updateFile(file, updateMask);
+   * }
+   * }
+ * + * @param file Required. The File that replaces the resource on the server. + * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final File updateFile(File file, FieldMask updateMask) { + UpdateFileRequest request = + UpdateFileRequest.newBuilder().setFile(file).setUpdateMask(updateMask).build(); + return updateFile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateFileRequest request =
+   *       UpdateFileRequest.newBuilder()
+   *           .setFile(File.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   File response = artifactRegistryClient.updateFile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final File updateFile(UpdateFileRequest request) { + return updateFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateFileRequest request =
+   *       UpdateFileRequest.newBuilder()
+   *           .setFile(File.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.updateFileCallable().futureCall(request);
+   *   // Do something.
+   *   File response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateFileCallable() { + return stub.updateFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tags. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (Tag element : artifactRegistryClient.listTags(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * }
* @@ -4534,7 +5116,7 @@ public final UnaryCallable deleteTagCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the IAM policy for a given resource. + * Creates a rule. * *

Sample code: * @@ -4545,26 +5127,31 @@ public final UnaryCallable deleteTagCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Policy response = artifactRegistryClient.setIamPolicy(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * Rule rule = Rule.newBuilder().build(); + * String ruleId = "ruleId-919875273"; + * Rule response = artifactRegistryClient.createRule(parent, rule, ruleId); * } * }

* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The name of the parent resource where the rule will be created. + * @param rule The rule to be created. + * @param ruleId The rule id to use for this repository. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final Rule createRule(RepositoryName parent, Rule rule, String ruleId) { + CreateRuleRequest request = + CreateRuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRule(rule) + .setRuleId(ruleId) + .build(); + return createRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the IAM policy for a given resource. + * Creates a rule. * *

Sample code: * @@ -4575,25 +5162,27 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = artifactRegistryClient.setIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Rule rule = Rule.newBuilder().build(); + * String ruleId = "ruleId-919875273"; + * Rule response = artifactRegistryClient.createRule(parent, rule, ruleId); * } * }

+ * + * @param parent Required. The name of the parent resource where the rule will be created. + * @param rule The rule to be created. + * @param ruleId The rule id to use for this repository. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final Rule createRule(String parent, Rule rule, String ruleId) { + CreateRuleRequest request = + CreateRuleRequest.newBuilder().setParent(parent).setRule(rule).setRuleId(ruleId).build(); + return createRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a given resource. + * Creates a rule. * *

Sample code: * @@ -4604,25 +5193,26 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * CreateRuleRequest request = + * CreateRuleRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setRuleId("ruleId-919875273") + * .setRule(Rule.newBuilder().build()) * .build(); - * Policy response = artifactRegistryClient.getIamPolicy(request); + * Rule response = artifactRegistryClient.createRule(request); * } * }

* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final Rule createRule(CreateRuleRequest request) { + return createRuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a given resource. + * Creates a rule. * *

Sample code: * @@ -4633,24 +5223,25 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * CreateRuleRequest request = + * CreateRuleRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setRuleId("ruleId-919875273") + * .setRule(Rule.newBuilder().build()) * .build(); - * ApiFuture future = artifactRegistryClient.getIamPolicyCallable().futureCall(request); + * ApiFuture future = artifactRegistryClient.createRuleCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * Rule response = future.get(); * } * }

*/ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final UnaryCallable createRuleCallable() { + return stub.createRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tests if the caller has a list of permissions on a resource. + * Lists rules. * *

Sample code: * @@ -4661,25 +5252,26 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * TestIamPermissionsResponse response = artifactRegistryClient.testIamPermissions(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (Rule element : artifactRegistryClient.listRules(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * }

* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The name of the parent repository whose rules will be listed. For + * example: `projects/p1/locations/us-central1/repositories/repo1`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final ListRulesPagedResponse listRules(RepositoryName parent) { + ListRulesRequest request = + ListRulesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listRules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tests if the caller has a list of permissions on a resource. + * Lists rules. * *

Sample code: * @@ -4690,26 +5282,1264 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * ApiFuture future = - * artifactRegistryClient.testIamPermissionsCallable().futureCall(request); - * // Do something. - * TestIamPermissionsResponse response = future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (Rule element : artifactRegistryClient.listRules(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }

+ * + * @param parent Required. The name of the parent repository whose rules will be listed. For + * example: `projects/p1/locations/us-central1/repositories/repo1`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRulesPagedResponse listRules(String parent) { + ListRulesRequest request = ListRulesRequest.newBuilder().setParent(parent).build(); + return listRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListRulesRequest request =
+   *       ListRulesRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Rule element : artifactRegistryClient.listRules(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRulesPagedResponse listRules(ListRulesRequest request) { + return listRulesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListRulesRequest request =
+   *       ListRulesRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.listRulesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Rule element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRulesPagedCallable() { + return stub.listRulesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListRulesRequest request =
+   *       ListRulesRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListRulesResponse response = artifactRegistryClient.listRulesCallable().call(request);
+   *     for (Rule element : response.getRulesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRulesCallable() { + return stub.listRulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
+   *   Rule response = artifactRegistryClient.getRule(name);
+   * }
+   * }
+ * + * @param name Required. The name of the rule to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rule getRule(RuleName name) { + GetRuleRequest request = + GetRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString();
+   *   Rule response = artifactRegistryClient.getRule(name);
+   * }
+   * }
+ * + * @param name Required. The name of the rule to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rule getRule(String name) { + GetRuleRequest request = GetRuleRequest.newBuilder().setName(name).build(); + return getRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a rule. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   Rule rule = Rule.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Rule response = artifactRegistryClient.updateRule(rule, updateMask);
+   * }
+   * }
+ * + * @param rule The rule that replaces the resource on the server. + * @param updateMask The update mask applies to the resource. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rule updateRule(Rule rule, FieldMask updateMask) { + UpdateRuleRequest request = + UpdateRuleRequest.newBuilder().setRule(rule).setUpdateMask(updateMask).build(); + return updateRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateRuleRequest request =
+   *       UpdateRuleRequest.newBuilder()
+   *           .setRule(Rule.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Rule response = artifactRegistryClient.updateRule(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rule updateRule(UpdateRuleRequest request) { + return updateRuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateRuleRequest request =
+   *       UpdateRuleRequest.newBuilder()
+   *           .setRule(Rule.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.updateRuleCallable().futureCall(request);
+   *   // Do something.
+   *   Rule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateRuleCallable() { + return stub.updateRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
+   *   artifactRegistryClient.deleteRule(name);
+   * }
+   * }
+ * + * @param name Required. The name of the rule to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRule(RuleName name) { + DeleteRuleRequest request = + DeleteRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString();
+   *   artifactRegistryClient.deleteRule(name);
+   * }
+   * }
+ * + * @param name Required. The name of the rule to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRule(String name) { + DeleteRuleRequest request = DeleteRuleRequest.newBuilder().setName(name).build(); + deleteRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   DeleteRuleRequest request =
+   *       DeleteRuleRequest.newBuilder()
+   *           .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString())
+   *           .build();
+   *   artifactRegistryClient.deleteRule(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRule(DeleteRuleRequest request) { + deleteRuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   DeleteRuleRequest request =
+   *       DeleteRuleRequest.newBuilder()
+   *           .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString())
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.deleteRuleCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRuleCallable() { + return stub.deleteRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the IAM policy for a given resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = artifactRegistryClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the IAM policy for a given resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM policy for a given resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = artifactRegistryClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM policy for a given resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = artifactRegistryClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Tests if the caller has a list of permissions on a resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = artifactRegistryClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Tests if the caller has a list of permissions on a resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the Settings for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]");
+   *   ProjectSettings response = artifactRegistryClient.getProjectSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the projectSettings resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectSettings getProjectSettings(ProjectSettingsName name) { + GetProjectSettingsRequest request = + GetProjectSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getProjectSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the Settings for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String name = ProjectSettingsName.of("[PROJECT]").toString();
+   *   ProjectSettings response = artifactRegistryClient.getProjectSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the projectSettings resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectSettings getProjectSettings(String name) { + GetProjectSettingsRequest request = + GetProjectSettingsRequest.newBuilder().setName(name).build(); + return getProjectSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the Settings for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   GetProjectSettingsRequest request =
+   *       GetProjectSettingsRequest.newBuilder()
+   *           .setName(ProjectSettingsName.of("[PROJECT]").toString())
+   *           .build();
+   *   ProjectSettings response = artifactRegistryClient.getProjectSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectSettings getProjectSettings(GetProjectSettingsRequest request) { + return getProjectSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the Settings for the Project. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ProjectSettings projectSettings = ProjectSettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ProjectSettings response =
+   *       artifactRegistryClient.updateProjectSettings(projectSettings, updateMask);
+   * }
+   * }
+ * + * @param projectSettings The project settings. + * @param updateMask Field mask to support partial updates. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectSettings updateProjectSettings( + ProjectSettings projectSettings, FieldMask updateMask) { + UpdateProjectSettingsRequest request = + UpdateProjectSettingsRequest.newBuilder() + .setProjectSettings(projectSettings) + .setUpdateMask(updateMask) + .build(); + return updateProjectSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Settings for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateProjectSettingsRequest request =
+   *       UpdateProjectSettingsRequest.newBuilder()
+   *           .setProjectSettings(ProjectSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ProjectSettings response = artifactRegistryClient.updateProjectSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest request) { + return updateProjectSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Settings for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateProjectSettingsRequest request =
+   *       UpdateProjectSettingsRequest.newBuilder()
+   *           .setProjectSettings(ProjectSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.updateProjectSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   ProjectSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateProjectSettingsCallable() { + return stub.updateProjectSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the VPCSC Config for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]");
+   *   VPCSCConfig response = artifactRegistryClient.getVPCSCConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the VPCSCConfig resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VPCSCConfig getVPCSCConfig(VpcscConfigName name) { + GetVPCSCConfigRequest request = + GetVPCSCConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getVPCSCConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the VPCSC Config for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String name = VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VPCSCConfig response = artifactRegistryClient.getVPCSCConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the VPCSCConfig resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VPCSCConfig getVPCSCConfig(String name) { + GetVPCSCConfigRequest request = GetVPCSCConfigRequest.newBuilder().setName(name).build(); + return getVPCSCConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the VPCSC Config for the Project. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   VPCSCConfig response = artifactRegistryClient.updateVPCSCConfig(vpcscConfig, updateMask);
+   * }
+   * }
+ * + * @param vpcscConfig The project config. + * @param updateMask Field mask to support partial updates. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VPCSCConfig updateVPCSCConfig(VPCSCConfig vpcscConfig, FieldMask updateMask) { + UpdateVPCSCConfigRequest request = + UpdateVPCSCConfigRequest.newBuilder() + .setVpcscConfig(vpcscConfig) + .setUpdateMask(updateMask) + .build(); + return updateVPCSCConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the VPCSC Config for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateVPCSCConfigRequest request =
+   *       UpdateVPCSCConfigRequest.newBuilder()
+   *           .setVpcscConfig(VPCSCConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   VPCSCConfig response = artifactRegistryClient.updateVPCSCConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VPCSCConfig updateVPCSCConfig(UpdateVPCSCConfigRequest request) { + return updateVPCSCConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the VPCSC Config for the Project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdateVPCSCConfigRequest request =
+   *       UpdateVPCSCConfigRequest.newBuilder()
+   *           .setVpcscConfig(VPCSCConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.updateVPCSCConfigCallable().futureCall(request);
+   *   // Do something.
+   *   VPCSCConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateVPCSCConfigCallable() { + return stub.updateVPCSCConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a package. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   Package package_ = Package.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Package response = artifactRegistryClient.updatePackage(package_, updateMask);
+   * }
+   * }
+ * + * @param package_ The package that replaces the resource on the server. + * @param updateMask The update mask applies to the resource. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Package updatePackage(Package package_, FieldMask updateMask) { + UpdatePackageRequest request = + UpdatePackageRequest.newBuilder().setPackage(package_).setUpdateMask(updateMask).build(); + return updatePackage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a package. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdatePackageRequest request =
+   *       UpdatePackageRequest.newBuilder()
+   *           .setPackage(Package.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Package response = artifactRegistryClient.updatePackage(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Package updatePackage(UpdatePackageRequest request) { + return updatePackageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a package. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   UpdatePackageRequest request =
+   *       UpdatePackageRequest.newBuilder()
+   *           .setPackage(Package.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.updatePackageCallable().futureCall(request);
+   *   // Do something.
+   *   Package response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updatePackageCallable() { + return stub.updatePackageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists attachments. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   for (Attachment element : artifactRegistryClient.listAttachments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent resource whose attachments will be listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAttachmentsPagedResponse listAttachments(RepositoryName parent) { + ListAttachmentsRequest request = + ListAttachmentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAttachments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists attachments. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   for (Attachment element : artifactRegistryClient.listAttachments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent resource whose attachments will be listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAttachmentsPagedResponse listAttachments(String parent) { + ListAttachmentsRequest request = ListAttachmentsRequest.newBuilder().setParent(parent).build(); + return listAttachments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists attachments. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListAttachmentsRequest request =
+   *       ListAttachmentsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Attachment element : artifactRegistryClient.listAttachments(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAttachmentsPagedResponse listAttachments(ListAttachmentsRequest request) { + return listAttachmentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists attachments. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListAttachmentsRequest request =
+   *       ListAttachmentsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.listAttachmentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Attachment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAttachmentsPagedCallable() { + return stub.listAttachmentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists attachments. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ListAttachmentsRequest request =
+   *       ListAttachmentsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAttachmentsResponse response =
+   *         artifactRegistryClient.listAttachmentsCallable().call(request);
+   *     for (Attachment element : response.getAttachmentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
    * }
    * }
*/ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); + public final UnaryCallable + listAttachmentsCallable() { + return stub.listAttachmentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the Settings for the Project. + * Gets an attachment. * *

Sample code: * @@ -4720,25 +6550,24 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); - * ProjectSettings response = artifactRegistryClient.getProjectSettings(name); + * AttachmentName name = + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + * Attachment response = artifactRegistryClient.getAttachment(name); * } * }

* - * @param name Required. The name of the projectSettings resource. + * @param name Required. The name of the attachment to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings getProjectSettings(ProjectSettingsName name) { - GetProjectSettingsRequest request = - GetProjectSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getProjectSettings(request); + public final Attachment getAttachment(AttachmentName name) { + GetAttachmentRequest request = + GetAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAttachment(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the Settings for the Project. + * Gets an attachment. * *

Sample code: * @@ -4749,23 +6578,23 @@ public final ProjectSettings getProjectSettings(ProjectSettingsName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * String name = ProjectSettingsName.of("[PROJECT]").toString(); - * ProjectSettings response = artifactRegistryClient.getProjectSettings(name); + * String name = + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]").toString(); + * Attachment response = artifactRegistryClient.getAttachment(name); * } * }

* - * @param name Required. The name of the projectSettings resource. + * @param name Required. The name of the attachment to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings getProjectSettings(String name) { - GetProjectSettingsRequest request = - GetProjectSettingsRequest.newBuilder().setName(name).build(); - return getProjectSettings(request); + public final Attachment getAttachment(String name) { + GetAttachmentRequest request = GetAttachmentRequest.newBuilder().setName(name).build(); + return getAttachment(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the Settings for the Project. + * Gets an attachment. * *

Sample code: * @@ -4776,24 +6605,26 @@ public final ProjectSettings getProjectSettings(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetProjectSettingsRequest request = - * GetProjectSettingsRequest.newBuilder() - * .setName(ProjectSettingsName.of("[PROJECT]").toString()) + * GetAttachmentRequest request = + * GetAttachmentRequest.newBuilder() + * .setName( + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + * .toString()) * .build(); - * ProjectSettings response = artifactRegistryClient.getProjectSettings(request); + * Attachment response = artifactRegistryClient.getAttachment(request); * } * }

* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings getProjectSettings(GetProjectSettingsRequest request) { - return getProjectSettingsCallable().call(request); + public final Attachment getAttachment(GetAttachmentRequest request) { + return getAttachmentCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the Settings for the Project. + * Gets an attachment. * *

Sample code: * @@ -4804,25 +6635,27 @@ public final ProjectSettings getProjectSettings(GetProjectSettingsRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetProjectSettingsRequest request = - * GetProjectSettingsRequest.newBuilder() - * .setName(ProjectSettingsName.of("[PROJECT]").toString()) + * GetAttachmentRequest request = + * GetAttachmentRequest.newBuilder() + * .setName( + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + * .toString()) * .build(); - * ApiFuture future = - * artifactRegistryClient.getProjectSettingsCallable().futureCall(request); + * ApiFuture future = + * artifactRegistryClient.getAttachmentCallable().futureCall(request); * // Do something. - * ProjectSettings response = future.get(); + * Attachment response = future.get(); * } * }

*/ - public final UnaryCallable - getProjectSettingsCallable() { - return stub.getProjectSettingsCallable(); + public final UnaryCallable getAttachmentCallable() { + return stub.getAttachmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the Settings for the Project. + * Creates an attachment. The returned Operation will finish once the attachment has been created. + * Its response will be the created attachment. * *

Sample code: * @@ -4833,30 +6666,34 @@ public final ProjectSettings getProjectSettings(GetProjectSettingsRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * ProjectSettings projectSettings = ProjectSettings.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ProjectSettings response = - * artifactRegistryClient.updateProjectSettings(projectSettings, updateMask); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * Attachment attachment = Attachment.newBuilder().build(); + * String attachmentId = "attachmentId-1434081890"; + * Attachment response = + * artifactRegistryClient.createAttachmentAsync(parent, attachment, attachmentId).get(); * } * }

* - * @param projectSettings The project settings. - * @param updateMask Field mask to support partial updates. + * @param parent Required. The name of the parent resource where the attachment will be created. + * @param attachment Required. The attachment to be created. + * @param attachmentId Required. The attachment id to use for this attachment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings updateProjectSettings( - ProjectSettings projectSettings, FieldMask updateMask) { - UpdateProjectSettingsRequest request = - UpdateProjectSettingsRequest.newBuilder() - .setProjectSettings(projectSettings) - .setUpdateMask(updateMask) + public final OperationFuture createAttachmentAsync( + RepositoryName parent, Attachment attachment, String attachmentId) { + CreateAttachmentRequest request = + CreateAttachmentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAttachment(attachment) + .setAttachmentId(attachmentId) .build(); - return updateProjectSettings(request); + return createAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the Settings for the Project. + * Creates an attachment. The returned Operation will finish once the attachment has been created. + * Its response will be the created attachment. * *

Sample code: * @@ -4867,25 +6704,34 @@ public final ProjectSettings updateProjectSettings( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * UpdateProjectSettingsRequest request = - * UpdateProjectSettingsRequest.newBuilder() - * .setProjectSettings(ProjectSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ProjectSettings response = artifactRegistryClient.updateProjectSettings(request); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Attachment attachment = Attachment.newBuilder().build(); + * String attachmentId = "attachmentId-1434081890"; + * Attachment response = + * artifactRegistryClient.createAttachmentAsync(parent, attachment, attachmentId).get(); * } * }

* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The name of the parent resource where the attachment will be created. + * @param attachment Required. The attachment to be created. + * @param attachmentId Required. The attachment id to use for this attachment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest request) { - return updateProjectSettingsCallable().call(request); + public final OperationFuture createAttachmentAsync( + String parent, Attachment attachment, String attachmentId) { + CreateAttachmentRequest request = + CreateAttachmentRequest.newBuilder() + .setParent(parent) + .setAttachment(attachment) + .setAttachmentId(attachmentId) + .build(); + return createAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the Settings for the Project. + * Creates an attachment. The returned Operation will finish once the attachment has been created. + * Its response will be the created attachment. * *

Sample code: * @@ -4896,26 +6742,28 @@ public final ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * UpdateProjectSettingsRequest request = - * UpdateProjectSettingsRequest.newBuilder() - * .setProjectSettings(ProjectSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * CreateAttachmentRequest request = + * CreateAttachmentRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setAttachmentId("attachmentId-1434081890") + * .setAttachment(Attachment.newBuilder().build()) * .build(); - * ApiFuture future = - * artifactRegistryClient.updateProjectSettingsCallable().futureCall(request); - * // Do something. - * ProjectSettings response = future.get(); + * Attachment response = artifactRegistryClient.createAttachmentAsync(request).get(); * } * }

+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateProjectSettingsCallable() { - return stub.updateProjectSettingsCallable(); + public final OperationFuture createAttachmentAsync( + CreateAttachmentRequest request) { + return createAttachmentOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the VPCSC Config for the Project. + * Creates an attachment. The returned Operation will finish once the attachment has been created. + * Its response will be the created attachment. * *

Sample code: * @@ -4926,23 +6774,28 @@ public final ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); - * VPCSCConfig response = artifactRegistryClient.getVPCSCConfig(name); + * CreateAttachmentRequest request = + * CreateAttachmentRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setAttachmentId("attachmentId-1434081890") + * .setAttachment(Attachment.newBuilder().build()) + * .build(); + * OperationFuture future = + * artifactRegistryClient.createAttachmentOperationCallable().futureCall(request); + * // Do something. + * Attachment response = future.get(); * } * }

- * - * @param name Required. The name of the VPCSCConfig resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig getVPCSCConfig(VpcscConfigName name) { - GetVPCSCConfigRequest request = - GetVPCSCConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getVPCSCConfig(request); + public final OperationCallable + createAttachmentOperationCallable() { + return stub.createAttachmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the VPCSC Config for the Project. + * Creates an attachment. The returned Operation will finish once the attachment has been created. + * Its response will be the created attachment. * *

Sample code: * @@ -4953,22 +6806,28 @@ public final VPCSCConfig getVPCSCConfig(VpcscConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * String name = VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString(); - * VPCSCConfig response = artifactRegistryClient.getVPCSCConfig(name); + * CreateAttachmentRequest request = + * CreateAttachmentRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setAttachmentId("attachmentId-1434081890") + * .setAttachment(Attachment.newBuilder().build()) + * .build(); + * ApiFuture future = + * artifactRegistryClient.createAttachmentCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * }

- * - * @param name Required. The name of the VPCSCConfig resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig getVPCSCConfig(String name) { - GetVPCSCConfigRequest request = GetVPCSCConfigRequest.newBuilder().setName(name).build(); - return getVPCSCConfig(request); + public final UnaryCallable createAttachmentCallable() { + return stub.createAttachmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the VPCSC Config for the Project. + * Deletes an attachment. The returned Operation will finish once the attachments has been + * deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` + * response. * *

Sample code: * @@ -4979,24 +6838,27 @@ public final VPCSCConfig getVPCSCConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetVPCSCConfigRequest request = - * GetVPCSCConfigRequest.newBuilder() - * .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) - * .build(); - * VPCSCConfig response = artifactRegistryClient.getVPCSCConfig(request); + * AttachmentName name = + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + * artifactRegistryClient.deleteAttachmentAsync(name).get(); * } * }

* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the attachment to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig getVPCSCConfig(GetVPCSCConfigRequest request) { - return getVPCSCConfigCallable().call(request); + public final OperationFuture deleteAttachmentAsync( + AttachmentName name) { + DeleteAttachmentRequest request = + DeleteAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves the VPCSC Config for the Project. + * Deletes an attachment. The returned Operation will finish once the attachments has been + * deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` + * response. * *

Sample code: * @@ -5007,24 +6869,25 @@ public final VPCSCConfig getVPCSCConfig(GetVPCSCConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * GetVPCSCConfigRequest request = - * GetVPCSCConfigRequest.newBuilder() - * .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) - * .build(); - * ApiFuture future = - * artifactRegistryClient.getVPCSCConfigCallable().futureCall(request); - * // Do something. - * VPCSCConfig response = future.get(); + * String name = + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]").toString(); + * artifactRegistryClient.deleteAttachmentAsync(name).get(); * } * }

+ * + * @param name Required. The name of the attachment to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getVPCSCConfigCallable() { - return stub.getVPCSCConfigCallable(); + public final OperationFuture deleteAttachmentAsync(String name) { + DeleteAttachmentRequest request = DeleteAttachmentRequest.newBuilder().setName(name).build(); + return deleteAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the VPCSC Config for the Project. + * Deletes an attachment. The returned Operation will finish once the attachments has been + * deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` + * response. * *

Sample code: * @@ -5035,28 +6898,29 @@ public final UnaryCallable getVPCSCConfigCal * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * VPCSCConfig response = artifactRegistryClient.updateVPCSCConfig(vpcscConfig, updateMask); + * DeleteAttachmentRequest request = + * DeleteAttachmentRequest.newBuilder() + * .setName( + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + * .toString()) + * .build(); + * artifactRegistryClient.deleteAttachmentAsync(request).get(); * } * }

* - * @param vpcscConfig The project config. - * @param updateMask Field mask to support partial updates. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig updateVPCSCConfig(VPCSCConfig vpcscConfig, FieldMask updateMask) { - UpdateVPCSCConfigRequest request = - UpdateVPCSCConfigRequest.newBuilder() - .setVpcscConfig(vpcscConfig) - .setUpdateMask(updateMask) - .build(); - return updateVPCSCConfig(request); + public final OperationFuture deleteAttachmentAsync( + DeleteAttachmentRequest request) { + return deleteAttachmentOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the VPCSC Config for the Project. + * Deletes an attachment. The returned Operation will finish once the attachments has been + * deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` + * response. * *

Sample code: * @@ -5067,25 +6931,29 @@ public final VPCSCConfig updateVPCSCConfig(VPCSCConfig vpcscConfig, FieldMask up * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * UpdateVPCSCConfigRequest request = - * UpdateVPCSCConfigRequest.newBuilder() - * .setVpcscConfig(VPCSCConfig.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * DeleteAttachmentRequest request = + * DeleteAttachmentRequest.newBuilder() + * .setName( + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + * .toString()) * .build(); - * VPCSCConfig response = artifactRegistryClient.updateVPCSCConfig(request); + * OperationFuture future = + * artifactRegistryClient.deleteAttachmentOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * }

- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig updateVPCSCConfig(UpdateVPCSCConfigRequest request) { - return updateVPCSCConfigCallable().call(request); + public final OperationCallable + deleteAttachmentOperationCallable() { + return stub.deleteAttachmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the VPCSC Config for the Project. + * Deletes an attachment. The returned Operation will finish once the attachments has been + * deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` + * response. * *

Sample code: * @@ -5096,20 +6964,21 @@ public final VPCSCConfig updateVPCSCConfig(UpdateVPCSCConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { - * UpdateVPCSCConfigRequest request = - * UpdateVPCSCConfigRequest.newBuilder() - * .setVpcscConfig(VPCSCConfig.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * DeleteAttachmentRequest request = + * DeleteAttachmentRequest.newBuilder() + * .setName( + * AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + * .toString()) * .build(); - * ApiFuture future = - * artifactRegistryClient.updateVPCSCConfigCallable().futureCall(request); + * ApiFuture future = + * artifactRegistryClient.deleteAttachmentCallable().futureCall(request); * // Do something. - * VPCSCConfig response = future.get(); + * future.get(); * } * }

*/ - public final UnaryCallable updateVPCSCConfigCallable() { - return stub.updateVPCSCConfigCallable(); + public final UnaryCallable deleteAttachmentCallable() { + return stub.deleteAttachmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -5967,6 +7836,148 @@ protected ListTagsFixedSizeCollection createCollection( } } + public static class ListRulesPagedResponse + extends AbstractPagedListResponse< + ListRulesRequest, ListRulesResponse, Rule, ListRulesPage, ListRulesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRulesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListRulesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListRulesPagedResponse(ListRulesPage page) { + super(page, ListRulesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRulesPage + extends AbstractPage { + + private ListRulesPage( + PageContext context, + ListRulesResponse response) { + super(context, response); + } + + private static ListRulesPage createEmptyPage() { + return new ListRulesPage(null, null); + } + + @Override + protected ListRulesPage createPage( + PageContext context, + ListRulesResponse response) { + return new ListRulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRulesRequest, ListRulesResponse, Rule, ListRulesPage, ListRulesFixedSizeCollection> { + + private ListRulesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRulesFixedSizeCollection createEmptyCollection() { + return new ListRulesFixedSizeCollection(null, 0); + } + + @Override + protected ListRulesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRulesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAttachmentsPagedResponse + extends AbstractPagedListResponse< + ListAttachmentsRequest, + ListAttachmentsResponse, + Attachment, + ListAttachmentsPage, + ListAttachmentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAttachmentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAttachmentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAttachmentsPagedResponse(ListAttachmentsPage page) { + super(page, ListAttachmentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAttachmentsPage + extends AbstractPage< + ListAttachmentsRequest, ListAttachmentsResponse, Attachment, ListAttachmentsPage> { + + private ListAttachmentsPage( + PageContext context, + ListAttachmentsResponse response) { + super(context, response); + } + + private static ListAttachmentsPage createEmptyPage() { + return new ListAttachmentsPage(null, null); + } + + @Override + protected ListAttachmentsPage createPage( + PageContext context, + ListAttachmentsResponse response) { + return new ListAttachmentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAttachmentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAttachmentsRequest, + ListAttachmentsResponse, + Attachment, + ListAttachmentsPage, + ListAttachmentsFixedSizeCollection> { + + private ListAttachmentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAttachmentsFixedSizeCollection createEmptyCollection() { + return new ListAttachmentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAttachmentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAttachmentsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java index 00b36394ee49..d16b47f4824b 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -303,6 +305,11 @@ public UnaryCallSettings batchDeleteVersi .batchDeleteVersionsOperationSettings(); } + /** Returns the object with the settings used for calls to updateVersion. */ + public UnaryCallSettings updateVersionSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).updateVersionSettings(); + } + /** Returns the object with the settings used for calls to listFiles. */ public PagedCallSettings listFilesSettings() { @@ -314,6 +321,22 @@ public UnaryCallSettings getFileSettings() { return ((ArtifactRegistryStubSettings) getStubSettings()).getFileSettings(); } + /** Returns the object with the settings used for calls to deleteFile. */ + public UnaryCallSettings deleteFileSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).deleteFileSettings(); + } + + /** Returns the object with the settings used for calls to deleteFile. */ + public OperationCallSettings + deleteFileOperationSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).deleteFileOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateFile. */ + public UnaryCallSettings updateFileSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).updateFileSettings(); + } + /** Returns the object with the settings used for calls to listTags. */ public PagedCallSettings listTagsSettings() { @@ -340,6 +363,32 @@ public UnaryCallSettings deleteTagSettings() { return ((ArtifactRegistryStubSettings) getStubSettings()).deleteTagSettings(); } + /** Returns the object with the settings used for calls to createRule. */ + public UnaryCallSettings createRuleSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).createRuleSettings(); + } + + /** Returns the object with the settings used for calls to listRules. */ + public PagedCallSettings + listRulesSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).listRulesSettings(); + } + + /** Returns the object with the settings used for calls to getRule. */ + public UnaryCallSettings getRuleSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).getRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateRule. */ + public UnaryCallSettings updateRuleSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).updateRuleSettings(); + } + + /** Returns the object with the settings used for calls to deleteRule. */ + public UnaryCallSettings deleteRuleSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).deleteRuleSettings(); + } + /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return ((ArtifactRegistryStubSettings) getStubSettings()).setIamPolicySettings(); @@ -378,6 +427,45 @@ public UnaryCallSettings updateVPCSCConfi return ((ArtifactRegistryStubSettings) getStubSettings()).updateVPCSCConfigSettings(); } + /** Returns the object with the settings used for calls to updatePackage. */ + public UnaryCallSettings updatePackageSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).updatePackageSettings(); + } + + /** Returns the object with the settings used for calls to listAttachments. */ + public PagedCallSettings< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).listAttachmentsSettings(); + } + + /** Returns the object with the settings used for calls to getAttachment. */ + public UnaryCallSettings getAttachmentSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).getAttachmentSettings(); + } + + /** Returns the object with the settings used for calls to createAttachment. */ + public UnaryCallSettings createAttachmentSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).createAttachmentSettings(); + } + + /** Returns the object with the settings used for calls to createAttachment. */ + public OperationCallSettings + createAttachmentOperationSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).createAttachmentOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAttachment. */ + public UnaryCallSettings deleteAttachmentSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).deleteAttachmentSettings(); + } + + /** Returns the object with the settings used for calls to deleteAttachment. */ + public OperationCallSettings + deleteAttachmentOperationSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).deleteAttachmentOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -678,6 +766,11 @@ public UnaryCallSettings.Builder deleteVersionS return getStubSettingsBuilder().batchDeleteVersionsOperationSettings(); } + /** Returns the builder for the settings used for calls to updateVersion. */ + public UnaryCallSettings.Builder updateVersionSettings() { + return getStubSettingsBuilder().updateVersionSettings(); + } + /** Returns the builder for the settings used for calls to listFiles. */ public PagedCallSettings.Builder listFilesSettings() { @@ -689,6 +782,22 @@ public UnaryCallSettings.Builder getFileSettings() { return getStubSettingsBuilder().getFileSettings(); } + /** Returns the builder for the settings used for calls to deleteFile. */ + public UnaryCallSettings.Builder deleteFileSettings() { + return getStubSettingsBuilder().deleteFileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFile. */ + public OperationCallSettings.Builder + deleteFileOperationSettings() { + return getStubSettingsBuilder().deleteFileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateFile. */ + public UnaryCallSettings.Builder updateFileSettings() { + return getStubSettingsBuilder().updateFileSettings(); + } + /** Returns the builder for the settings used for calls to listTags. */ public PagedCallSettings.Builder listTagsSettings() { @@ -715,6 +824,32 @@ public UnaryCallSettings.Builder deleteTagSettings() { return getStubSettingsBuilder().deleteTagSettings(); } + /** Returns the builder for the settings used for calls to createRule. */ + public UnaryCallSettings.Builder createRuleSettings() { + return getStubSettingsBuilder().createRuleSettings(); + } + + /** Returns the builder for the settings used for calls to listRules. */ + public PagedCallSettings.Builder + listRulesSettings() { + return getStubSettingsBuilder().listRulesSettings(); + } + + /** Returns the builder for the settings used for calls to getRule. */ + public UnaryCallSettings.Builder getRuleSettings() { + return getStubSettingsBuilder().getRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateRule. */ + public UnaryCallSettings.Builder updateRuleSettings() { + return getStubSettingsBuilder().updateRuleSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRule. */ + public UnaryCallSettings.Builder deleteRuleSettings() { + return getStubSettingsBuilder().deleteRuleSettings(); + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return getStubSettingsBuilder().setIamPolicySettings(); @@ -754,6 +889,47 @@ public UnaryCallSettings.Builder getVPCSCCon return getStubSettingsBuilder().updateVPCSCConfigSettings(); } + /** Returns the builder for the settings used for calls to updatePackage. */ + public UnaryCallSettings.Builder updatePackageSettings() { + return getStubSettingsBuilder().updatePackageSettings(); + } + + /** Returns the builder for the settings used for calls to listAttachments. */ + public PagedCallSettings.Builder< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings() { + return getStubSettingsBuilder().listAttachmentsSettings(); + } + + /** Returns the builder for the settings used for calls to getAttachment. */ + public UnaryCallSettings.Builder getAttachmentSettings() { + return getStubSettingsBuilder().getAttachmentSettings(); + } + + /** Returns the builder for the settings used for calls to createAttachment. */ + public UnaryCallSettings.Builder + createAttachmentSettings() { + return getStubSettingsBuilder().createAttachmentSettings(); + } + + /** Returns the builder for the settings used for calls to createAttachment. */ + public OperationCallSettings.Builder + createAttachmentOperationSettings() { + return getStubSettingsBuilder().createAttachmentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAttachment. */ + public UnaryCallSettings.Builder + deleteAttachmentSettings() { + return getStubSettingsBuilder().deleteAttachmentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAttachment. */ + public OperationCallSettings.Builder + deleteAttachmentOperationSettings() { + return getStubSettingsBuilder().deleteAttachmentOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json index ba9e13ebca02..8fa82a3cfce5 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json @@ -13,24 +13,42 @@ "BatchDeleteVersions": { "methods": ["batchDeleteVersionsAsync", "batchDeleteVersionsAsync", "batchDeleteVersionsAsync", "batchDeleteVersionsOperationCallable", "batchDeleteVersionsCallable"] }, + "CreateAttachment": { + "methods": ["createAttachmentAsync", "createAttachmentAsync", "createAttachmentAsync", "createAttachmentOperationCallable", "createAttachmentCallable"] + }, "CreateRepository": { "methods": ["createRepositoryAsync", "createRepositoryAsync", "createRepositoryAsync", "createRepositoryOperationCallable", "createRepositoryCallable"] }, + "CreateRule": { + "methods": ["createRule", "createRule", "createRule", "createRuleCallable"] + }, "CreateTag": { "methods": ["createTag", "createTag", "createTagCallable"] }, + "DeleteAttachment": { + "methods": ["deleteAttachmentAsync", "deleteAttachmentAsync", "deleteAttachmentAsync", "deleteAttachmentOperationCallable", "deleteAttachmentCallable"] + }, + "DeleteFile": { + "methods": ["deleteFileAsync", "deleteFileAsync", "deleteFileAsync", "deleteFileOperationCallable", "deleteFileCallable"] + }, "DeletePackage": { "methods": ["deletePackageAsync", "deletePackageAsync", "deletePackageAsync", "deletePackageOperationCallable", "deletePackageCallable"] }, "DeleteRepository": { "methods": ["deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryOperationCallable", "deleteRepositoryCallable"] }, + "DeleteRule": { + "methods": ["deleteRule", "deleteRule", "deleteRule", "deleteRuleCallable"] + }, "DeleteTag": { "methods": ["deleteTag", "deleteTag", "deleteTagCallable"] }, "DeleteVersion": { "methods": ["deleteVersionAsync", "deleteVersionAsync", "deleteVersionOperationCallable", "deleteVersionCallable"] }, + "GetAttachment": { + "methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"] + }, "GetDockerImage": { "methods": ["getDockerImage", "getDockerImage", "getDockerImage", "getDockerImageCallable"] }, @@ -61,6 +79,9 @@ "GetRepository": { "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] }, + "GetRule": { + "methods": ["getRule", "getRule", "getRule", "getRuleCallable"] + }, "GetTag": { "methods": ["getTag", "getTag", "getTagCallable"] }, @@ -76,6 +97,9 @@ "ImportYumArtifacts": { "methods": ["importYumArtifactsAsync", "importYumArtifactsOperationCallable", "importYumArtifactsCallable"] }, + "ListAttachments": { + "methods": ["listAttachments", "listAttachments", "listAttachments", "listAttachmentsPagedCallable", "listAttachmentsCallable"] + }, "ListDockerImages": { "methods": ["listDockerImages", "listDockerImages", "listDockerImagesPagedCallable", "listDockerImagesCallable"] }, @@ -100,6 +124,9 @@ "ListRepositories": { "methods": ["listRepositories", "listRepositories", "listRepositories", "listRepositoriesPagedCallable", "listRepositoriesCallable"] }, + "ListRules": { + "methods": ["listRules", "listRules", "listRules", "listRulesPagedCallable", "listRulesCallable"] + }, "ListTags": { "methods": ["listTags", "listTags", "listTagsPagedCallable", "listTagsCallable"] }, @@ -112,17 +139,29 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, + "UpdateFile": { + "methods": ["updateFile", "updateFile", "updateFileCallable"] + }, + "UpdatePackage": { + "methods": ["updatePackage", "updatePackage", "updatePackageCallable"] + }, "UpdateProjectSettings": { "methods": ["updateProjectSettings", "updateProjectSettings", "updateProjectSettingsCallable"] }, "UpdateRepository": { "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] }, + "UpdateRule": { + "methods": ["updateRule", "updateRule", "updateRuleCallable"] + }, "UpdateTag": { "methods": ["updateTag", "updateTag", "updateTagCallable"] }, "UpdateVPCSCConfig": { "methods": ["updateVPCSCConfig", "updateVPCSCConfig", "updateVPCSCConfigCallable"] + }, + "UpdateVersion": { + "methods": ["updateVersion", "updateVersion", "updateVersionCallable"] } } } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java index c7ebc4fffb19..98c9a63b9737 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1.stub; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -34,16 +36,23 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.devtools.artifactregistry.v1.Attachment; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; import com.google.devtools.artifactregistry.v1.CreateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; import com.google.devtools.artifactregistry.v1.CreateTagRequest; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; import com.google.devtools.artifactregistry.v1.DeletePackageRequest; import com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; import com.google.devtools.artifactregistry.v1.GetFileRequest; import com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest; @@ -52,6 +61,7 @@ import com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.GetPythonPackageRequest; import com.google.devtools.artifactregistry.v1.GetRepositoryRequest; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; import com.google.devtools.artifactregistry.v1.GetTagRequest; import com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; import com.google.devtools.artifactregistry.v1.GetVersionRequest; @@ -61,6 +71,8 @@ import com.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.ListAttachmentsResponse; import com.google.devtools.artifactregistry.v1.ListDockerImagesRequest; import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse; import com.google.devtools.artifactregistry.v1.ListFilesRequest; @@ -75,6 +87,8 @@ import com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse; import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest; import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.ListRulesResponse; import com.google.devtools.artifactregistry.v1.ListTagsRequest; import com.google.devtools.artifactregistry.v1.ListTagsResponse; import com.google.devtools.artifactregistry.v1.ListVersionsRequest; @@ -86,11 +100,16 @@ import com.google.devtools.artifactregistry.v1.ProjectSettings; import com.google.devtools.artifactregistry.v1.PythonPackage; import com.google.devtools.artifactregistry.v1.Repository; +import com.google.devtools.artifactregistry.v1.Rule; import com.google.devtools.artifactregistry.v1.Tag; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; import com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; import com.google.devtools.artifactregistry.v1.UpdateTagRequest; import com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; import com.google.devtools.artifactregistry.v1.VPCSCConfig; import com.google.devtools.artifactregistry.v1.Version; import com.google.iam.v1.GetIamPolicyRequest; @@ -285,6 +304,10 @@ public UnaryCallable batchDeleteVersionsC throw new UnsupportedOperationException("Not implemented: batchDeleteVersionsCallable()"); } + public UnaryCallable updateVersionCallable() { + throw new UnsupportedOperationException("Not implemented: updateVersionCallable()"); + } + public UnaryCallable listFilesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listFilesPagedCallable()"); } @@ -297,6 +320,19 @@ public UnaryCallable getFileCallable() { throw new UnsupportedOperationException("Not implemented: getFileCallable()"); } + public OperationCallable + deleteFileOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFileOperationCallable()"); + } + + public UnaryCallable deleteFileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFileCallable()"); + } + + public UnaryCallable updateFileCallable() { + throw new UnsupportedOperationException("Not implemented: updateFileCallable()"); + } + public UnaryCallable listTagsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listTagsPagedCallable()"); } @@ -321,6 +357,30 @@ public UnaryCallable deleteTagCallable() { throw new UnsupportedOperationException("Not implemented: deleteTagCallable()"); } + public UnaryCallable createRuleCallable() { + throw new UnsupportedOperationException("Not implemented: createRuleCallable()"); + } + + public UnaryCallable listRulesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRulesPagedCallable()"); + } + + public UnaryCallable listRulesCallable() { + throw new UnsupportedOperationException("Not implemented: listRulesCallable()"); + } + + public UnaryCallable getRuleCallable() { + throw new UnsupportedOperationException("Not implemented: getRuleCallable()"); + } + + public UnaryCallable updateRuleCallable() { + throw new UnsupportedOperationException("Not implemented: updateRuleCallable()"); + } + + public UnaryCallable deleteRuleCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRuleCallable()"); + } + public UnaryCallable setIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); } @@ -351,6 +411,41 @@ public UnaryCallable updateVPCSCConfigCal throw new UnsupportedOperationException("Not implemented: updateVPCSCConfigCallable()"); } + public UnaryCallable updatePackageCallable() { + throw new UnsupportedOperationException("Not implemented: updatePackageCallable()"); + } + + public UnaryCallable + listAttachmentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAttachmentsPagedCallable()"); + } + + public UnaryCallable listAttachmentsCallable() { + throw new UnsupportedOperationException("Not implemented: listAttachmentsCallable()"); + } + + public UnaryCallable getAttachmentCallable() { + throw new UnsupportedOperationException("Not implemented: getAttachmentCallable()"); + } + + public OperationCallable + createAttachmentOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createAttachmentOperationCallable()"); + } + + public UnaryCallable createAttachmentCallable() { + throw new UnsupportedOperationException("Not implemented: createAttachmentCallable()"); + } + + public OperationCallable + deleteAttachmentOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAttachmentOperationCallable()"); + } + + public UnaryCallable deleteAttachmentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAttachmentCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java index 46218c915586..f0926a19e45b 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1.stub; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -65,16 +67,23 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.devtools.artifactregistry.v1.Attachment; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; import com.google.devtools.artifactregistry.v1.CreateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; import com.google.devtools.artifactregistry.v1.CreateTagRequest; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; import com.google.devtools.artifactregistry.v1.DeletePackageRequest; import com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; import com.google.devtools.artifactregistry.v1.GetFileRequest; import com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest; @@ -83,6 +92,7 @@ import com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.GetPythonPackageRequest; import com.google.devtools.artifactregistry.v1.GetRepositoryRequest; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; import com.google.devtools.artifactregistry.v1.GetTagRequest; import com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; import com.google.devtools.artifactregistry.v1.GetVersionRequest; @@ -92,6 +102,8 @@ import com.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.ListAttachmentsResponse; import com.google.devtools.artifactregistry.v1.ListDockerImagesRequest; import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse; import com.google.devtools.artifactregistry.v1.ListFilesRequest; @@ -106,6 +118,8 @@ import com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse; import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest; import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.ListRulesResponse; import com.google.devtools.artifactregistry.v1.ListTagsRequest; import com.google.devtools.artifactregistry.v1.ListTagsResponse; import com.google.devtools.artifactregistry.v1.ListVersionsRequest; @@ -117,11 +131,16 @@ import com.google.devtools.artifactregistry.v1.ProjectSettings; import com.google.devtools.artifactregistry.v1.PythonPackage; import com.google.devtools.artifactregistry.v1.Repository; +import com.google.devtools.artifactregistry.v1.Rule; import com.google.devtools.artifactregistry.v1.Tag; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; import com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; import com.google.devtools.artifactregistry.v1.UpdateTagRequest; import com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; import com.google.devtools.artifactregistry.v1.VPCSCConfig; import com.google.devtools.artifactregistry.v1.Version; import com.google.iam.v1.GetIamPolicyRequest; @@ -276,15 +295,26 @@ public class ArtifactRegistryStubSettings extends StubSettings batchDeleteVersionsOperationSettings; + private final UnaryCallSettings updateVersionSettings; private final PagedCallSettings listFilesSettings; private final UnaryCallSettings getFileSettings; + private final UnaryCallSettings deleteFileSettings; + private final OperationCallSettings + deleteFileOperationSettings; + private final UnaryCallSettings updateFileSettings; private final PagedCallSettings listTagsSettings; private final UnaryCallSettings getTagSettings; private final UnaryCallSettings createTagSettings; private final UnaryCallSettings updateTagSettings; private final UnaryCallSettings deleteTagSettings; + private final UnaryCallSettings createRuleSettings; + private final PagedCallSettings + listRulesSettings; + private final UnaryCallSettings getRuleSettings; + private final UnaryCallSettings updateRuleSettings; + private final UnaryCallSettings deleteRuleSettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings @@ -295,6 +325,17 @@ public class ArtifactRegistryStubSettings extends StubSettings getVPCSCConfigSettings; private final UnaryCallSettings updateVPCSCConfigSettings; + private final UnaryCallSettings updatePackageSettings; + private final PagedCallSettings< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings; + private final UnaryCallSettings getAttachmentSettings; + private final UnaryCallSettings createAttachmentSettings; + private final OperationCallSettings + createAttachmentOperationSettings; + private final UnaryCallSettings deleteAttachmentSettings; + private final OperationCallSettings + deleteAttachmentOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -624,6 +665,77 @@ public Iterable extractResources(ListTagsResponse payload) { } }; + private static final PagedListDescriptor + LIST_RULES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRulesRequest injectToken(ListRulesRequest payload, String token) { + return ListRulesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRulesRequest injectPageSize(ListRulesRequest payload, int pageSize) { + return ListRulesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRulesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRulesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRulesResponse payload) { + return payload.getRulesList(); + } + }; + + private static final PagedListDescriptor< + ListAttachmentsRequest, ListAttachmentsResponse, Attachment> + LIST_ATTACHMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAttachmentsRequest injectToken( + ListAttachmentsRequest payload, String token) { + return ListAttachmentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAttachmentsRequest injectPageSize( + ListAttachmentsRequest payload, int pageSize) { + return ListAttachmentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAttachmentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAttachmentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAttachmentsResponse payload) { + return payload.getAttachmentsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -822,6 +934,40 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListRulesRequest, ListRulesResponse, ListRulesPagedResponse> + LIST_RULES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRulesRequest, ListRulesResponse, ListRulesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRulesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_RULES_PAGE_STR_DESC, request, context); + return ListRulesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + LIST_ATTACHMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAttachmentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ATTACHMENTS_PAGE_STR_DESC, request, context); + return ListAttachmentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -1005,6 +1151,11 @@ public UnaryCallSettings batchDeleteVersi return batchDeleteVersionsOperationSettings; } + /** Returns the object with the settings used for calls to updateVersion. */ + public UnaryCallSettings updateVersionSettings() { + return updateVersionSettings; + } + /** Returns the object with the settings used for calls to listFiles. */ public PagedCallSettings listFilesSettings() { @@ -1016,6 +1167,22 @@ public UnaryCallSettings getFileSettings() { return getFileSettings; } + /** Returns the object with the settings used for calls to deleteFile. */ + public UnaryCallSettings deleteFileSettings() { + return deleteFileSettings; + } + + /** Returns the object with the settings used for calls to deleteFile. */ + public OperationCallSettings + deleteFileOperationSettings() { + return deleteFileOperationSettings; + } + + /** Returns the object with the settings used for calls to updateFile. */ + public UnaryCallSettings updateFileSettings() { + return updateFileSettings; + } + /** Returns the object with the settings used for calls to listTags. */ public PagedCallSettings listTagsSettings() { @@ -1042,6 +1209,32 @@ public UnaryCallSettings deleteTagSettings() { return deleteTagSettings; } + /** Returns the object with the settings used for calls to createRule. */ + public UnaryCallSettings createRuleSettings() { + return createRuleSettings; + } + + /** Returns the object with the settings used for calls to listRules. */ + public PagedCallSettings + listRulesSettings() { + return listRulesSettings; + } + + /** Returns the object with the settings used for calls to getRule. */ + public UnaryCallSettings getRuleSettings() { + return getRuleSettings; + } + + /** Returns the object with the settings used for calls to updateRule. */ + public UnaryCallSettings updateRuleSettings() { + return updateRuleSettings; + } + + /** Returns the object with the settings used for calls to deleteRule. */ + public UnaryCallSettings deleteRuleSettings() { + return deleteRuleSettings; + } + /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; @@ -1080,6 +1273,45 @@ public UnaryCallSettings updateVPCSCConfi return updateVPCSCConfigSettings; } + /** Returns the object with the settings used for calls to updatePackage. */ + public UnaryCallSettings updatePackageSettings() { + return updatePackageSettings; + } + + /** Returns the object with the settings used for calls to listAttachments. */ + public PagedCallSettings< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings() { + return listAttachmentsSettings; + } + + /** Returns the object with the settings used for calls to getAttachment. */ + public UnaryCallSettings getAttachmentSettings() { + return getAttachmentSettings; + } + + /** Returns the object with the settings used for calls to createAttachment. */ + public UnaryCallSettings createAttachmentSettings() { + return createAttachmentSettings; + } + + /** Returns the object with the settings used for calls to createAttachment. */ + public OperationCallSettings + createAttachmentOperationSettings() { + return createAttachmentOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAttachment. */ + public UnaryCallSettings deleteAttachmentSettings() { + return deleteAttachmentSettings; + } + + /** Returns the object with the settings used for calls to deleteAttachment. */ + public OperationCallSettings + deleteAttachmentOperationSettings() { + return deleteAttachmentOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1234,13 +1466,22 @@ protected ArtifactRegistryStubSettings(Builder settingsBuilder) throws IOExcepti batchDeleteVersionsSettings = settingsBuilder.batchDeleteVersionsSettings().build(); batchDeleteVersionsOperationSettings = settingsBuilder.batchDeleteVersionsOperationSettings().build(); + updateVersionSettings = settingsBuilder.updateVersionSettings().build(); listFilesSettings = settingsBuilder.listFilesSettings().build(); getFileSettings = settingsBuilder.getFileSettings().build(); + deleteFileSettings = settingsBuilder.deleteFileSettings().build(); + deleteFileOperationSettings = settingsBuilder.deleteFileOperationSettings().build(); + updateFileSettings = settingsBuilder.updateFileSettings().build(); listTagsSettings = settingsBuilder.listTagsSettings().build(); getTagSettings = settingsBuilder.getTagSettings().build(); createTagSettings = settingsBuilder.createTagSettings().build(); updateTagSettings = settingsBuilder.updateTagSettings().build(); deleteTagSettings = settingsBuilder.deleteTagSettings().build(); + createRuleSettings = settingsBuilder.createRuleSettings().build(); + listRulesSettings = settingsBuilder.listRulesSettings().build(); + getRuleSettings = settingsBuilder.getRuleSettings().build(); + updateRuleSettings = settingsBuilder.updateRuleSettings().build(); + deleteRuleSettings = settingsBuilder.deleteRuleSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); @@ -1248,6 +1489,13 @@ protected ArtifactRegistryStubSettings(Builder settingsBuilder) throws IOExcepti updateProjectSettingsSettings = settingsBuilder.updateProjectSettingsSettings().build(); getVPCSCConfigSettings = settingsBuilder.getVPCSCConfigSettings().build(); updateVPCSCConfigSettings = settingsBuilder.updateVPCSCConfigSettings().build(); + updatePackageSettings = settingsBuilder.updatePackageSettings().build(); + listAttachmentsSettings = settingsBuilder.listAttachmentsSettings().build(); + getAttachmentSettings = settingsBuilder.getAttachmentSettings().build(); + createAttachmentSettings = settingsBuilder.createAttachmentSettings().build(); + createAttachmentOperationSettings = settingsBuilder.createAttachmentOperationSettings().build(); + deleteAttachmentSettings = settingsBuilder.deleteAttachmentSettings().build(); + deleteAttachmentOperationSettings = settingsBuilder.deleteAttachmentOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1318,10 +1566,15 @@ public static class Builder extends StubSettings.Builder batchDeleteVersionsOperationSettings; + private final UnaryCallSettings.Builder updateVersionSettings; private final PagedCallSettings.Builder< ListFilesRequest, ListFilesResponse, ListFilesPagedResponse> listFilesSettings; private final UnaryCallSettings.Builder getFileSettings; + private final UnaryCallSettings.Builder deleteFileSettings; + private final OperationCallSettings.Builder + deleteFileOperationSettings; + private final UnaryCallSettings.Builder updateFileSettings; private final PagedCallSettings.Builder< ListTagsRequest, ListTagsResponse, ListTagsPagedResponse> listTagsSettings; @@ -1329,6 +1582,13 @@ public static class Builder extends StubSettings.Builder createTagSettings; private final UnaryCallSettings.Builder updateTagSettings; private final UnaryCallSettings.Builder deleteTagSettings; + private final UnaryCallSettings.Builder createRuleSettings; + private final PagedCallSettings.Builder< + ListRulesRequest, ListRulesResponse, ListRulesPagedResponse> + listRulesSettings; + private final UnaryCallSettings.Builder getRuleSettings; + private final UnaryCallSettings.Builder updateRuleSettings; + private final UnaryCallSettings.Builder deleteRuleSettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder @@ -1341,6 +1601,20 @@ public static class Builder extends StubSettings.Builder updateVPCSCConfigSettings; + private final UnaryCallSettings.Builder updatePackageSettings; + private final PagedCallSettings.Builder< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings; + private final UnaryCallSettings.Builder getAttachmentSettings; + private final UnaryCallSettings.Builder + createAttachmentSettings; + private final OperationCallSettings.Builder< + CreateAttachmentRequest, Attachment, OperationMetadata> + createAttachmentOperationSettings; + private final UnaryCallSettings.Builder + deleteAttachmentSettings; + private final OperationCallSettings.Builder + deleteAttachmentOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1408,13 +1682,22 @@ protected Builder(ClientContext clientContext) { deleteVersionOperationSettings = OperationCallSettings.newBuilder(); batchDeleteVersionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); batchDeleteVersionsOperationSettings = OperationCallSettings.newBuilder(); + updateVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFilesSettings = PagedCallSettings.newBuilder(LIST_FILES_PAGE_STR_FACT); getFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFileOperationSettings = OperationCallSettings.newBuilder(); + updateFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listTagsSettings = PagedCallSettings.newBuilder(LIST_TAGS_PAGE_STR_FACT); getTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRulesSettings = PagedCallSettings.newBuilder(LIST_RULES_PAGE_STR_FACT); + getRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1422,6 +1705,13 @@ protected Builder(ClientContext clientContext) { updateProjectSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getVPCSCConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateVPCSCConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePackageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAttachmentsSettings = PagedCallSettings.newBuilder(LIST_ATTACHMENTS_PAGE_STR_FACT); + getAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAttachmentOperationSettings = OperationCallSettings.newBuilder(); + deleteAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAttachmentOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1449,13 +1739,21 @@ protected Builder(ClientContext clientContext) { getVersionSettings, deleteVersionSettings, batchDeleteVersionsSettings, + updateVersionSettings, listFilesSettings, getFileSettings, + deleteFileSettings, + updateFileSettings, listTagsSettings, getTagSettings, createTagSettings, updateTagSettings, deleteTagSettings, + createRuleSettings, + listRulesSettings, + getRuleSettings, + updateRuleSettings, + deleteRuleSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings, @@ -1463,6 +1761,11 @@ protected Builder(ClientContext clientContext) { updateProjectSettingsSettings, getVPCSCConfigSettings, updateVPCSCConfigSettings, + updatePackageSettings, + listAttachmentsSettings, + getAttachmentSettings, + createAttachmentSettings, + deleteAttachmentSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1503,13 +1806,22 @@ protected Builder(ArtifactRegistryStubSettings settings) { batchDeleteVersionsSettings = settings.batchDeleteVersionsSettings.toBuilder(); batchDeleteVersionsOperationSettings = settings.batchDeleteVersionsOperationSettings.toBuilder(); + updateVersionSettings = settings.updateVersionSettings.toBuilder(); listFilesSettings = settings.listFilesSettings.toBuilder(); getFileSettings = settings.getFileSettings.toBuilder(); + deleteFileSettings = settings.deleteFileSettings.toBuilder(); + deleteFileOperationSettings = settings.deleteFileOperationSettings.toBuilder(); + updateFileSettings = settings.updateFileSettings.toBuilder(); listTagsSettings = settings.listTagsSettings.toBuilder(); getTagSettings = settings.getTagSettings.toBuilder(); createTagSettings = settings.createTagSettings.toBuilder(); updateTagSettings = settings.updateTagSettings.toBuilder(); deleteTagSettings = settings.deleteTagSettings.toBuilder(); + createRuleSettings = settings.createRuleSettings.toBuilder(); + listRulesSettings = settings.listRulesSettings.toBuilder(); + getRuleSettings = settings.getRuleSettings.toBuilder(); + updateRuleSettings = settings.updateRuleSettings.toBuilder(); + deleteRuleSettings = settings.deleteRuleSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); @@ -1517,6 +1829,13 @@ protected Builder(ArtifactRegistryStubSettings settings) { updateProjectSettingsSettings = settings.updateProjectSettingsSettings.toBuilder(); getVPCSCConfigSettings = settings.getVPCSCConfigSettings.toBuilder(); updateVPCSCConfigSettings = settings.updateVPCSCConfigSettings.toBuilder(); + updatePackageSettings = settings.updatePackageSettings.toBuilder(); + listAttachmentsSettings = settings.listAttachmentsSettings.toBuilder(); + getAttachmentSettings = settings.getAttachmentSettings.toBuilder(); + createAttachmentSettings = settings.createAttachmentSettings.toBuilder(); + createAttachmentOperationSettings = settings.createAttachmentOperationSettings.toBuilder(); + deleteAttachmentSettings = settings.deleteAttachmentSettings.toBuilder(); + deleteAttachmentOperationSettings = settings.deleteAttachmentOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1544,13 +1863,21 @@ protected Builder(ArtifactRegistryStubSettings settings) { getVersionSettings, deleteVersionSettings, batchDeleteVersionsSettings, + updateVersionSettings, listFilesSettings, getFileSettings, + deleteFileSettings, + updateFileSettings, listTagsSettings, getTagSettings, createTagSettings, updateTagSettings, deleteTagSettings, + createRuleSettings, + listRulesSettings, + getRuleSettings, + updateRuleSettings, + deleteRuleSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings, @@ -1558,6 +1885,11 @@ protected Builder(ArtifactRegistryStubSettings settings) { updateProjectSettingsSettings, getVPCSCConfigSettings, updateVPCSCConfigSettings, + updatePackageSettings, + listAttachmentsSettings, + getAttachmentSettings, + createAttachmentSettings, + deleteAttachmentSettings, listLocationsSettings, getLocationSettings); } @@ -1697,6 +2029,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .updateVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listFilesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1707,6 +2044,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .deleteFileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateFileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listTagsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1732,6 +2079,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .createRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1767,6 +2139,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .updatePackageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listAttachmentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAttachmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createAttachmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteAttachmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1950,6 +2347,77 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deleteFileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createAttachmentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Attachment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAttachmentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -2145,6 +2613,11 @@ public UnaryCallSettings.Builder deleteVersionS return batchDeleteVersionsOperationSettings; } + /** Returns the builder for the settings used for calls to updateVersion. */ + public UnaryCallSettings.Builder updateVersionSettings() { + return updateVersionSettings; + } + /** Returns the builder for the settings used for calls to listFiles. */ public PagedCallSettings.Builder listFilesSettings() { @@ -2156,6 +2629,22 @@ public UnaryCallSettings.Builder getFileSettings() { return getFileSettings; } + /** Returns the builder for the settings used for calls to deleteFile. */ + public UnaryCallSettings.Builder deleteFileSettings() { + return deleteFileSettings; + } + + /** Returns the builder for the settings used for calls to deleteFile. */ + public OperationCallSettings.Builder + deleteFileOperationSettings() { + return deleteFileOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateFile. */ + public UnaryCallSettings.Builder updateFileSettings() { + return updateFileSettings; + } + /** Returns the builder for the settings used for calls to listTags. */ public PagedCallSettings.Builder listTagsSettings() { @@ -2182,6 +2671,32 @@ public UnaryCallSettings.Builder deleteTagSettings() { return deleteTagSettings; } + /** Returns the builder for the settings used for calls to createRule. */ + public UnaryCallSettings.Builder createRuleSettings() { + return createRuleSettings; + } + + /** Returns the builder for the settings used for calls to listRules. */ + public PagedCallSettings.Builder + listRulesSettings() { + return listRulesSettings; + } + + /** Returns the builder for the settings used for calls to getRule. */ + public UnaryCallSettings.Builder getRuleSettings() { + return getRuleSettings; + } + + /** Returns the builder for the settings used for calls to updateRule. */ + public UnaryCallSettings.Builder updateRuleSettings() { + return updateRuleSettings; + } + + /** Returns the builder for the settings used for calls to deleteRule. */ + public UnaryCallSettings.Builder deleteRuleSettings() { + return deleteRuleSettings; + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return setIamPolicySettings; @@ -2221,6 +2736,47 @@ public UnaryCallSettings.Builder getVPCSCCon return updateVPCSCConfigSettings; } + /** Returns the builder for the settings used for calls to updatePackage. */ + public UnaryCallSettings.Builder updatePackageSettings() { + return updatePackageSettings; + } + + /** Returns the builder for the settings used for calls to listAttachments. */ + public PagedCallSettings.Builder< + ListAttachmentsRequest, ListAttachmentsResponse, ListAttachmentsPagedResponse> + listAttachmentsSettings() { + return listAttachmentsSettings; + } + + /** Returns the builder for the settings used for calls to getAttachment. */ + public UnaryCallSettings.Builder getAttachmentSettings() { + return getAttachmentSettings; + } + + /** Returns the builder for the settings used for calls to createAttachment. */ + public UnaryCallSettings.Builder + createAttachmentSettings() { + return createAttachmentSettings; + } + + /** Returns the builder for the settings used for calls to createAttachment. */ + public OperationCallSettings.Builder + createAttachmentOperationSettings() { + return createAttachmentOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAttachment. */ + public UnaryCallSettings.Builder + deleteAttachmentSettings() { + return deleteAttachmentSettings; + } + + /** Returns the builder for the settings used for calls to deleteAttachment. */ + public OperationCallSettings.Builder + deleteAttachmentOperationSettings() { + return deleteAttachmentOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java index 0c231699c5d0..046f6993b834 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1.stub; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -39,16 +41,23 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.devtools.artifactregistry.v1.Attachment; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; import com.google.devtools.artifactregistry.v1.CreateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; import com.google.devtools.artifactregistry.v1.CreateTagRequest; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; import com.google.devtools.artifactregistry.v1.DeletePackageRequest; import com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; import com.google.devtools.artifactregistry.v1.GetFileRequest; import com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest; @@ -57,6 +66,7 @@ import com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.GetPythonPackageRequest; import com.google.devtools.artifactregistry.v1.GetRepositoryRequest; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; import com.google.devtools.artifactregistry.v1.GetTagRequest; import com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; import com.google.devtools.artifactregistry.v1.GetVersionRequest; @@ -66,6 +76,8 @@ import com.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.ListAttachmentsResponse; import com.google.devtools.artifactregistry.v1.ListDockerImagesRequest; import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse; import com.google.devtools.artifactregistry.v1.ListFilesRequest; @@ -80,6 +92,8 @@ import com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse; import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest; import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.ListRulesResponse; import com.google.devtools.artifactregistry.v1.ListTagsRequest; import com.google.devtools.artifactregistry.v1.ListTagsResponse; import com.google.devtools.artifactregistry.v1.ListVersionsRequest; @@ -91,11 +105,16 @@ import com.google.devtools.artifactregistry.v1.ProjectSettings; import com.google.devtools.artifactregistry.v1.PythonPackage; import com.google.devtools.artifactregistry.v1.Repository; +import com.google.devtools.artifactregistry.v1.Rule; import com.google.devtools.artifactregistry.v1.Tag; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; import com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; import com.google.devtools.artifactregistry.v1.UpdateTagRequest; import com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; import com.google.devtools.artifactregistry.v1.VPCSCConfig; import com.google.devtools.artifactregistry.v1.Version; import com.google.iam.v1.GetIamPolicyRequest; @@ -361,6 +380,17 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Version.getDefaultInstance())) + .build(); + private static final MethodDescriptor listFilesMethodDescriptor = MethodDescriptor.newBuilder() @@ -378,6 +408,22 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { .setResponseMarshaller(ProtoUtils.marshaller(File.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteFile") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateFile") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(File.getDefaultInstance())) + .build(); + private static final MethodDescriptor listTagsMethodDescriptor = MethodDescriptor.newBuilder() @@ -419,6 +465,47 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor createRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/CreateRule") + .setRequestMarshaller(ProtoUtils.marshaller(CreateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRulesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/ListRules") + .setRequestMarshaller(ProtoUtils.marshaller(ListRulesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListRulesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/GetRule") + .setRequestMarshaller(ProtoUtils.marshaller(GetRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateRule") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteRule") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -491,6 +578,62 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { .setResponseMarshaller(ProtoUtils.marshaller(VPCSCConfig.getDefaultInstance())) .build(); + private static final MethodDescriptor + updatePackageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdatePackage") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdatePackageRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Package.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAttachmentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/ListAttachments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAttachmentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAttachmentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAttachmentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/GetAttachment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAttachmentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Attachment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createAttachmentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/CreateAttachment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAttachmentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteAttachmentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteAttachment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAttachmentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -567,15 +710,26 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { private final UnaryCallable batchDeleteVersionsCallable; private final OperationCallable batchDeleteVersionsOperationCallable; + private final UnaryCallable updateVersionCallable; private final UnaryCallable listFilesCallable; private final UnaryCallable listFilesPagedCallable; private final UnaryCallable getFileCallable; + private final UnaryCallable deleteFileCallable; + private final OperationCallable + deleteFileOperationCallable; + private final UnaryCallable updateFileCallable; private final UnaryCallable listTagsCallable; private final UnaryCallable listTagsPagedCallable; private final UnaryCallable getTagCallable; private final UnaryCallable createTagCallable; private final UnaryCallable updateTagCallable; private final UnaryCallable deleteTagCallable; + private final UnaryCallable createRuleCallable; + private final UnaryCallable listRulesCallable; + private final UnaryCallable listRulesPagedCallable; + private final UnaryCallable getRuleCallable; + private final UnaryCallable updateRuleCallable; + private final UnaryCallable deleteRuleCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable @@ -586,6 +740,18 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { updateProjectSettingsCallable; private final UnaryCallable getVPCSCConfigCallable; private final UnaryCallable updateVPCSCConfigCallable; + private final UnaryCallable updatePackageCallable; + private final UnaryCallable + listAttachmentsCallable; + private final UnaryCallable + listAttachmentsPagedCallable; + private final UnaryCallable getAttachmentCallable; + private final UnaryCallable createAttachmentCallable; + private final OperationCallable + createAttachmentOperationCallable; + private final UnaryCallable deleteAttachmentCallable; + private final OperationCallable + deleteAttachmentOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -860,6 +1026,16 @@ protected GrpcArtifactRegistryStub( return builder.build(); }) .build(); + GrpcCallSettings updateVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("version.name", String.valueOf(request.getVersion().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listFilesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listFilesMethodDescriptor) @@ -880,6 +1056,26 @@ protected GrpcArtifactRegistryStub( return builder.build(); }) .build(); + GrpcCallSettings deleteFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("file.name", String.valueOf(request.getFile().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listTagsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTagsMethodDescriptor) @@ -930,6 +1126,56 @@ protected GrpcArtifactRegistryStub( return builder.build(); }) .build(); + GrpcCallSettings createRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listRulesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("rule.name", String.valueOf(request.getRule().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) @@ -1006,6 +1252,57 @@ protected GrpcArtifactRegistryStub( return builder.build(); }) .build(); + GrpcCallSettings updatePackageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePackageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("package.name", String.valueOf(request.getPackage().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAttachmentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAttachmentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAttachmentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAttachmentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAttachmentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAttachmentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAttachmentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAttachmentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1170,6 +1467,9 @@ protected GrpcArtifactRegistryStub( settings.batchDeleteVersionsOperationSettings(), clientContext, operationsStub); + this.updateVersionCallable = + callableFactory.createUnaryCallable( + updateVersionTransportSettings, settings.updateVersionSettings(), clientContext); this.listFilesCallable = callableFactory.createUnaryCallable( listFilesTransportSettings, settings.listFilesSettings(), clientContext); @@ -1179,6 +1479,18 @@ protected GrpcArtifactRegistryStub( this.getFileCallable = callableFactory.createUnaryCallable( getFileTransportSettings, settings.getFileSettings(), clientContext); + this.deleteFileCallable = + callableFactory.createUnaryCallable( + deleteFileTransportSettings, settings.deleteFileSettings(), clientContext); + this.deleteFileOperationCallable = + callableFactory.createOperationCallable( + deleteFileTransportSettings, + settings.deleteFileOperationSettings(), + clientContext, + operationsStub); + this.updateFileCallable = + callableFactory.createUnaryCallable( + updateFileTransportSettings, settings.updateFileSettings(), clientContext); this.listTagsCallable = callableFactory.createUnaryCallable( listTagsTransportSettings, settings.listTagsSettings(), clientContext); @@ -1197,6 +1509,24 @@ protected GrpcArtifactRegistryStub( this.deleteTagCallable = callableFactory.createUnaryCallable( deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); + this.createRuleCallable = + callableFactory.createUnaryCallable( + createRuleTransportSettings, settings.createRuleSettings(), clientContext); + this.listRulesCallable = + callableFactory.createUnaryCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.listRulesPagedCallable = + callableFactory.createPagedCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.getRuleCallable = + callableFactory.createUnaryCallable( + getRuleTransportSettings, settings.getRuleSettings(), clientContext); + this.updateRuleCallable = + callableFactory.createUnaryCallable( + updateRuleTransportSettings, settings.updateRuleSettings(), clientContext); + this.deleteRuleCallable = + callableFactory.createUnaryCallable( + deleteRuleTransportSettings, settings.deleteRuleSettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); @@ -1226,6 +1556,36 @@ protected GrpcArtifactRegistryStub( updateVPCSCConfigTransportSettings, settings.updateVPCSCConfigSettings(), clientContext); + this.updatePackageCallable = + callableFactory.createUnaryCallable( + updatePackageTransportSettings, settings.updatePackageSettings(), clientContext); + this.listAttachmentsCallable = + callableFactory.createUnaryCallable( + listAttachmentsTransportSettings, settings.listAttachmentsSettings(), clientContext); + this.listAttachmentsPagedCallable = + callableFactory.createPagedCallable( + listAttachmentsTransportSettings, settings.listAttachmentsSettings(), clientContext); + this.getAttachmentCallable = + callableFactory.createUnaryCallable( + getAttachmentTransportSettings, settings.getAttachmentSettings(), clientContext); + this.createAttachmentCallable = + callableFactory.createUnaryCallable( + createAttachmentTransportSettings, settings.createAttachmentSettings(), clientContext); + this.createAttachmentOperationCallable = + callableFactory.createOperationCallable( + createAttachmentTransportSettings, + settings.createAttachmentOperationSettings(), + clientContext, + operationsStub); + this.deleteAttachmentCallable = + callableFactory.createUnaryCallable( + deleteAttachmentTransportSettings, settings.deleteAttachmentSettings(), clientContext); + this.deleteAttachmentOperationCallable = + callableFactory.createOperationCallable( + deleteAttachmentTransportSettings, + settings.deleteAttachmentOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1442,6 +1802,11 @@ public UnaryCallable batchDeleteVersionsC return batchDeleteVersionsOperationCallable; } + @Override + public UnaryCallable updateVersionCallable() { + return updateVersionCallable; + } + @Override public UnaryCallable listFilesCallable() { return listFilesCallable; @@ -1457,6 +1822,22 @@ public UnaryCallable getFileCallable() { return getFileCallable; } + @Override + public UnaryCallable deleteFileCallable() { + return deleteFileCallable; + } + + @Override + public OperationCallable + deleteFileOperationCallable() { + return deleteFileOperationCallable; + } + + @Override + public UnaryCallable updateFileCallable() { + return updateFileCallable; + } + @Override public UnaryCallable listTagsCallable() { return listTagsCallable; @@ -1487,6 +1868,36 @@ public UnaryCallable deleteTagCallable() { return deleteTagCallable; } + @Override + public UnaryCallable createRuleCallable() { + return createRuleCallable; + } + + @Override + public UnaryCallable listRulesCallable() { + return listRulesCallable; + } + + @Override + public UnaryCallable listRulesPagedCallable() { + return listRulesPagedCallable; + } + + @Override + public UnaryCallable getRuleCallable() { + return getRuleCallable; + } + + @Override + public UnaryCallable updateRuleCallable() { + return updateRuleCallable; + } + + @Override + public UnaryCallable deleteRuleCallable() { + return deleteRuleCallable; + } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; @@ -1524,6 +1935,49 @@ public UnaryCallable updateVPCSCConfigCal return updateVPCSCConfigCallable; } + @Override + public UnaryCallable updatePackageCallable() { + return updatePackageCallable; + } + + @Override + public UnaryCallable listAttachmentsCallable() { + return listAttachmentsCallable; + } + + @Override + public UnaryCallable + listAttachmentsPagedCallable() { + return listAttachmentsPagedCallable; + } + + @Override + public UnaryCallable getAttachmentCallable() { + return getAttachmentCallable; + } + + @Override + public UnaryCallable createAttachmentCallable() { + return createAttachmentCallable; + } + + @Override + public OperationCallable + createAttachmentOperationCallable() { + return createAttachmentOperationCallable; + } + + @Override + public UnaryCallable deleteAttachmentCallable() { + return deleteAttachmentCallable; + } + + @Override + public OperationCallable + deleteAttachmentOperationCallable() { + return deleteAttachmentOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java index 0da5a7d85eae..536f54095b11 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1.stub; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -48,16 +50,23 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.common.collect.ImmutableMap; +import com.google.devtools.artifactregistry.v1.Attachment; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; import com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; import com.google.devtools.artifactregistry.v1.CreateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; import com.google.devtools.artifactregistry.v1.CreateTagRequest; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; import com.google.devtools.artifactregistry.v1.DeletePackageRequest; import com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; import com.google.devtools.artifactregistry.v1.GetFileRequest; import com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest; @@ -66,6 +75,7 @@ import com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.GetPythonPackageRequest; import com.google.devtools.artifactregistry.v1.GetRepositoryRequest; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; import com.google.devtools.artifactregistry.v1.GetTagRequest; import com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; import com.google.devtools.artifactregistry.v1.GetVersionRequest; @@ -75,6 +85,8 @@ import com.google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest; import com.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.ListAttachmentsResponse; import com.google.devtools.artifactregistry.v1.ListDockerImagesRequest; import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse; import com.google.devtools.artifactregistry.v1.ListFilesRequest; @@ -89,6 +101,8 @@ import com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse; import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest; import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.ListRulesResponse; import com.google.devtools.artifactregistry.v1.ListTagsRequest; import com.google.devtools.artifactregistry.v1.ListTagsResponse; import com.google.devtools.artifactregistry.v1.ListVersionsRequest; @@ -100,11 +114,16 @@ import com.google.devtools.artifactregistry.v1.ProjectSettings; import com.google.devtools.artifactregistry.v1.PythonPackage; import com.google.devtools.artifactregistry.v1.Repository; +import com.google.devtools.artifactregistry.v1.Rule; import com.google.devtools.artifactregistry.v1.Tag; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; import com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; import com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; import com.google.devtools.artifactregistry.v1.UpdateTagRequest; import com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; import com.google.devtools.artifactregistry.v1.VPCSCConfig; import com.google.devtools.artifactregistry.v1.Version; import com.google.iam.v1.GetIamPolicyRequest; @@ -134,6 +153,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(BatchDeleteVersionsMetadata.getDescriptor()) + .add(Attachment.getDescriptor()) .add(Empty.getDescriptor()) .add(ImportYumArtifactsResponse.getDescriptor()) .add(ImportAptArtifactsResponse.getDescriptor()) @@ -537,6 +557,8 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -730,6 +752,8 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -838,6 +862,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -968,6 +993,46 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVersion") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "version.name", request.getVersion().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("version", request.getVersion(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Version.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listFilesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1039,6 +1104,79 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { .build()) .build(); + private static final ApiMethodDescriptor + deleteFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteFile") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*/files/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFileRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor updateFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateFile") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{file.name=projects/*/locations/*/repositories/*/files/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "file.name", request.getFile().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("file", request.getFile(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(File.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listTagsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1212,6 +1350,180 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { .build()) .build(); + private static final ApiMethodDescriptor createRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/CreateRule") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/rules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "ruleId", request.getRuleId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("rule", request.getRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRulesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/ListRules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/rules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRulesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/GetRule") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*/rules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateRule") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "rule.name", request.getRule().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("rule", request.getRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteRule") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*/rules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor setIamPolicyMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1345,135 +1657,329 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProjectSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateProjectSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateProjectSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{projectSettings.name=projects/*/projectSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "projectSettings.name", + request.getProjectSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("projectSettings", request.getProjectSettings(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProjectSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getVPCSCConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/GetVPCSCConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/vpcscConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VPCSCConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateVPCSCConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVPCSCConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{vpcscConfig.name=projects/*/locations/*/vpcscConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "vpcscConfig.name", request.getVpcscConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("vpcscConfig", request.getVpcscConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VPCSCConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePackageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdatePackage") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "package.name", request.getPackage().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("package_", request.getPackage(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Package.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAttachmentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/ListAttachments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/attachments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ProjectSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAttachmentsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateProjectSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getAttachmentMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateProjectSettings") - .setHttpMethod("PATCH") + "google.devtools.artifactregistry.v1.ArtifactRegistry/GetAttachment") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{projectSettings.name=projects/*/projectSettings}", + "/v1/{name=projects/*/locations/*/repositories/*/attachments/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "projectSettings.name", - request.getProjectSettings().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("projectSettings", request.getProjectSettings(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ProjectSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Attachment.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getVPCSCConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createAttachmentMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.devtools.artifactregistry.v1.ArtifactRegistry/GetVPCSCConfig") - .setHttpMethod("GET") + "google.devtools.artifactregistry.v1.ArtifactRegistry/CreateAttachment") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*/vpcscConfig}", + "/v1/{parent=projects/*/locations/*/repositories/*}/attachments", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "attachmentId", request.getAttachmentId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attachment", request.getAttachment(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(VPCSCConfig.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) + .setOperationSnapshotFactory( + (CreateAttachmentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - updateVPCSCConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteAttachmentMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVPCSCConfig") - .setHttpMethod("PATCH") + "google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteAttachment") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{vpcscConfig.name=projects/*/locations/*/vpcscConfig}", + "/v1/{name=projects/*/locations/*/repositories/*/attachments/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "vpcscConfig.name", request.getVpcscConfig().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("vpcscConfig", request.getVpcscConfig(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(VPCSCConfig.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) + .setOperationSnapshotFactory( + (DeleteAttachmentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor @@ -1601,15 +2107,26 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { private final UnaryCallable batchDeleteVersionsCallable; private final OperationCallable batchDeleteVersionsOperationCallable; + private final UnaryCallable updateVersionCallable; private final UnaryCallable listFilesCallable; private final UnaryCallable listFilesPagedCallable; private final UnaryCallable getFileCallable; + private final UnaryCallable deleteFileCallable; + private final OperationCallable + deleteFileOperationCallable; + private final UnaryCallable updateFileCallable; private final UnaryCallable listTagsCallable; private final UnaryCallable listTagsPagedCallable; private final UnaryCallable getTagCallable; private final UnaryCallable createTagCallable; private final UnaryCallable updateTagCallable; private final UnaryCallable deleteTagCallable; + private final UnaryCallable createRuleCallable; + private final UnaryCallable listRulesCallable; + private final UnaryCallable listRulesPagedCallable; + private final UnaryCallable getRuleCallable; + private final UnaryCallable updateRuleCallable; + private final UnaryCallable deleteRuleCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable @@ -1620,6 +2137,18 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { updateProjectSettingsCallable; private final UnaryCallable getVPCSCConfigCallable; private final UnaryCallable updateVPCSCConfigCallable; + private final UnaryCallable updatePackageCallable; + private final UnaryCallable + listAttachmentsCallable; + private final UnaryCallable + listAttachmentsPagedCallable; + private final UnaryCallable getAttachmentCallable; + private final UnaryCallable createAttachmentCallable; + private final OperationCallable + createAttachmentOperationCallable; + private final UnaryCallable deleteAttachmentCallable; + private final OperationCallable + deleteAttachmentOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1928,6 +2457,17 @@ protected HttpJsonArtifactRegistryStub( return builder.build(); }) .build(); + HttpJsonCallSettings updateVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("version.name", String.valueOf(request.getVersion().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listFilesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listFilesMethodDescriptor) @@ -1950,6 +2490,28 @@ protected HttpJsonArtifactRegistryStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("file.name", String.valueOf(request.getFile().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listTagsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listTagsMethodDescriptor) @@ -2005,6 +2567,61 @@ protected HttpJsonArtifactRegistryStub( return builder.build(); }) .build(); + HttpJsonCallSettings createRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listRulesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("rule.name", String.valueOf(request.getRule().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) @@ -2088,6 +2705,62 @@ protected HttpJsonArtifactRegistryStub( return builder.build(); }) .build(); + HttpJsonCallSettings updatePackageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePackageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("package.name", String.valueOf(request.getPackage().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAttachmentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAttachmentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAttachmentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttachmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createAttachmentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAttachmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAttachmentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAttachmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2255,6 +2928,9 @@ protected HttpJsonArtifactRegistryStub( settings.batchDeleteVersionsOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateVersionCallable = + callableFactory.createUnaryCallable( + updateVersionTransportSettings, settings.updateVersionSettings(), clientContext); this.listFilesCallable = callableFactory.createUnaryCallable( listFilesTransportSettings, settings.listFilesSettings(), clientContext); @@ -2264,6 +2940,18 @@ protected HttpJsonArtifactRegistryStub( this.getFileCallable = callableFactory.createUnaryCallable( getFileTransportSettings, settings.getFileSettings(), clientContext); + this.deleteFileCallable = + callableFactory.createUnaryCallable( + deleteFileTransportSettings, settings.deleteFileSettings(), clientContext); + this.deleteFileOperationCallable = + callableFactory.createOperationCallable( + deleteFileTransportSettings, + settings.deleteFileOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateFileCallable = + callableFactory.createUnaryCallable( + updateFileTransportSettings, settings.updateFileSettings(), clientContext); this.listTagsCallable = callableFactory.createUnaryCallable( listTagsTransportSettings, settings.listTagsSettings(), clientContext); @@ -2282,6 +2970,24 @@ protected HttpJsonArtifactRegistryStub( this.deleteTagCallable = callableFactory.createUnaryCallable( deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); + this.createRuleCallable = + callableFactory.createUnaryCallable( + createRuleTransportSettings, settings.createRuleSettings(), clientContext); + this.listRulesCallable = + callableFactory.createUnaryCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.listRulesPagedCallable = + callableFactory.createPagedCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.getRuleCallable = + callableFactory.createUnaryCallable( + getRuleTransportSettings, settings.getRuleSettings(), clientContext); + this.updateRuleCallable = + callableFactory.createUnaryCallable( + updateRuleTransportSettings, settings.updateRuleSettings(), clientContext); + this.deleteRuleCallable = + callableFactory.createUnaryCallable( + deleteRuleTransportSettings, settings.deleteRuleSettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); @@ -2311,6 +3017,36 @@ protected HttpJsonArtifactRegistryStub( updateVPCSCConfigTransportSettings, settings.updateVPCSCConfigSettings(), clientContext); + this.updatePackageCallable = + callableFactory.createUnaryCallable( + updatePackageTransportSettings, settings.updatePackageSettings(), clientContext); + this.listAttachmentsCallable = + callableFactory.createUnaryCallable( + listAttachmentsTransportSettings, settings.listAttachmentsSettings(), clientContext); + this.listAttachmentsPagedCallable = + callableFactory.createPagedCallable( + listAttachmentsTransportSettings, settings.listAttachmentsSettings(), clientContext); + this.getAttachmentCallable = + callableFactory.createUnaryCallable( + getAttachmentTransportSettings, settings.getAttachmentSettings(), clientContext); + this.createAttachmentCallable = + callableFactory.createUnaryCallable( + createAttachmentTransportSettings, settings.createAttachmentSettings(), clientContext); + this.createAttachmentOperationCallable = + callableFactory.createOperationCallable( + createAttachmentTransportSettings, + settings.createAttachmentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAttachmentCallable = + callableFactory.createUnaryCallable( + deleteAttachmentTransportSettings, settings.deleteAttachmentSettings(), clientContext); + this.deleteAttachmentOperationCallable = + callableFactory.createOperationCallable( + deleteAttachmentTransportSettings, + settings.deleteAttachmentOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2350,13 +3086,21 @@ public static List getMethodDescriptors() { methodDescriptors.add(getVersionMethodDescriptor); methodDescriptors.add(deleteVersionMethodDescriptor); methodDescriptors.add(batchDeleteVersionsMethodDescriptor); + methodDescriptors.add(updateVersionMethodDescriptor); methodDescriptors.add(listFilesMethodDescriptor); methodDescriptors.add(getFileMethodDescriptor); + methodDescriptors.add(deleteFileMethodDescriptor); + methodDescriptors.add(updateFileMethodDescriptor); methodDescriptors.add(listTagsMethodDescriptor); methodDescriptors.add(getTagMethodDescriptor); methodDescriptors.add(createTagMethodDescriptor); methodDescriptors.add(updateTagMethodDescriptor); methodDescriptors.add(deleteTagMethodDescriptor); + methodDescriptors.add(createRuleMethodDescriptor); + methodDescriptors.add(listRulesMethodDescriptor); + methodDescriptors.add(getRuleMethodDescriptor); + methodDescriptors.add(updateRuleMethodDescriptor); + methodDescriptors.add(deleteRuleMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); @@ -2364,6 +3108,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateProjectSettingsMethodDescriptor); methodDescriptors.add(getVPCSCConfigMethodDescriptor); methodDescriptors.add(updateVPCSCConfigMethodDescriptor); + methodDescriptors.add(updatePackageMethodDescriptor); + methodDescriptors.add(listAttachmentsMethodDescriptor); + methodDescriptors.add(getAttachmentMethodDescriptor); + methodDescriptors.add(createAttachmentMethodDescriptor); + methodDescriptors.add(deleteAttachmentMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2571,6 +3320,11 @@ public UnaryCallable batchDeleteVersionsC return batchDeleteVersionsOperationCallable; } + @Override + public UnaryCallable updateVersionCallable() { + return updateVersionCallable; + } + @Override public UnaryCallable listFilesCallable() { return listFilesCallable; @@ -2586,6 +3340,22 @@ public UnaryCallable getFileCallable() { return getFileCallable; } + @Override + public UnaryCallable deleteFileCallable() { + return deleteFileCallable; + } + + @Override + public OperationCallable + deleteFileOperationCallable() { + return deleteFileOperationCallable; + } + + @Override + public UnaryCallable updateFileCallable() { + return updateFileCallable; + } + @Override public UnaryCallable listTagsCallable() { return listTagsCallable; @@ -2616,6 +3386,36 @@ public UnaryCallable deleteTagCallable() { return deleteTagCallable; } + @Override + public UnaryCallable createRuleCallable() { + return createRuleCallable; + } + + @Override + public UnaryCallable listRulesCallable() { + return listRulesCallable; + } + + @Override + public UnaryCallable listRulesPagedCallable() { + return listRulesPagedCallable; + } + + @Override + public UnaryCallable getRuleCallable() { + return getRuleCallable; + } + + @Override + public UnaryCallable updateRuleCallable() { + return updateRuleCallable; + } + + @Override + public UnaryCallable deleteRuleCallable() { + return deleteRuleCallable; + } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; @@ -2653,6 +3453,49 @@ public UnaryCallable updateVPCSCConfigCal return updateVPCSCConfigCallable; } + @Override + public UnaryCallable updatePackageCallable() { + return updatePackageCallable; + } + + @Override + public UnaryCallable listAttachmentsCallable() { + return listAttachmentsCallable; + } + + @Override + public UnaryCallable + listAttachmentsPagedCallable() { + return listAttachmentsPagedCallable; + } + + @Override + public UnaryCallable getAttachmentCallable() { + return getAttachmentCallable; + } + + @Override + public UnaryCallable createAttachmentCallable() { + return createAttachmentCallable; + } + + @Override + public OperationCallable + createAttachmentOperationCallable() { + return createAttachmentOperationCallable; + } + + @Override + public UnaryCallable deleteAttachmentCallable() { + return deleteAttachmentCallable; + } + + @Override + public OperationCallable + deleteAttachmentOperationCallable() { + return deleteAttachmentOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json index a2b753b08358..1ce42aa8f42e 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -494,6 +512,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.Attachment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Attachment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata", "queryAllDeclaredConstructors": true, @@ -602,6 +638,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.CreateAttachmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.CreateAttachmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.CreateRepositoryRequest", "queryAllDeclaredConstructors": true, @@ -620,6 +674,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.CreateRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.CreateRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.CreateTagRequest", "queryAllDeclaredConstructors": true, @@ -638,6 +710,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.DeletePackageRequest", "queryAllDeclaredConstructors": true, @@ -674,6 +782,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.DeleteRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.DeleteTagRequest", "queryAllDeclaredConstructors": true, @@ -746,6 +872,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.GenericArtifact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.GenericArtifact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.GetAttachmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.GetAttachmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.GetDockerImageRequest", "queryAllDeclaredConstructors": true, @@ -890,6 +1052,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.GetRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.GetRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.GetTagRequest", "queryAllDeclaredConstructors": true, @@ -1151,6 +1331,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.ListAttachmentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListAttachmentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListAttachmentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListAttachmentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.ListDockerImagesRequest", "queryAllDeclaredConstructors": true, @@ -1403,6 +1619,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.ListRulesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListRulesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListRulesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ListRulesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.ListTagsRequest", "queryAllDeclaredConstructors": true, @@ -1619,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$AptRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$AptRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$AptRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1655,6 +1925,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$CommonRemoteRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$CommonRemoteRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$DockerRepository", "queryAllDeclaredConstructors": true, @@ -1673,6 +1961,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$DockerRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$DockerRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$DockerRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1700,6 +2006,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$MavenRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$MavenRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$MavenRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1727,6 +2051,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$NpmRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$NpmRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$NpmRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1754,6 +2096,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$PythonRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$PythonRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$PythonRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1817,6 +2177,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$YumRepository$CustomRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$YumRepository$CustomRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig$YumRepository$PublicRepository", "queryAllDeclaredConstructors": true, @@ -1925,6 +2303,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.Repository$VulnerabilityScanningConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Repository$VulnerabilityScanningConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Repository$VulnerabilityScanningConfig$EnablementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Repository$VulnerabilityScanningConfig$EnablementState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Rule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Rule$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Rule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.Rule$Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.Tag", "queryAllDeclaredConstructors": true, @@ -1943,6 +2393,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdatePackageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdatePackageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest", "queryAllDeclaredConstructors": true, @@ -1979,6 +2465,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.UpdateTagRequest", "queryAllDeclaredConstructors": true, @@ -2015,6 +2519,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.UpdateVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.UpstreamPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1beta2/reflect-config.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1beta2/reflect-config.json index 210f1a29260a..d7b72555c7f2 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1beta2/reflect-config.json +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1beta2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java index eacbb50a3eb9..813031151800 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -57,6 +59,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; import com.google.protobuf.Timestamp; +import com.google.type.Expr; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -1116,6 +1119,10 @@ public void getRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -1169,6 +1176,10 @@ public void getRepositoryTest2() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -1222,6 +1233,10 @@ public void createRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1285,6 +1300,10 @@ public void createRepositoryTest2() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1348,6 +1367,10 @@ public void updateRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -1363,6 +1386,10 @@ public void updateRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1404,6 +1431,10 @@ public void updateRepositoryExceptionTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateRepository(repository, updateMask); @@ -1612,6 +1643,7 @@ public void getPackageTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -1660,6 +1692,7 @@ public void getPackageTest2() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -1857,6 +1890,7 @@ public void getVersionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .addAllRelatedTags(new ArrayList()) .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2041,6 +2075,83 @@ public void batchDeleteVersionsExceptionTest2() throws Exception { } } + @Test + public void updateVersionTest() throws Exception { + Version expectedResponse = + Version.newBuilder() + .setName( + VersionName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRelatedTags(new ArrayList()) + .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Version version = + Version.newBuilder() + .setName( + VersionName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRelatedTags(new ArrayList()) + .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Version actualResponse = client.updateVersion(version, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Version version = + Version.newBuilder() + .setName( + VersionName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRelatedTags(new ArrayList()) + .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVersion(version, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFilesTest() throws Exception { File responsesElement = File.newBuilder().build(); @@ -2152,6 +2263,7 @@ public void getFileTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setOwner("owner106164915") .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2202,6 +2314,7 @@ public void getFileTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setOwner("owner106164915") .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2243,6 +2356,171 @@ public void getFileExceptionTest2() throws Exception { } } + @Test + public void deleteFileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + + client.deleteFileAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + client.deleteFileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9797/locations/location-9797/repositories/repositorie-9797/files/file-9797"; + + client.deleteFileAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9797/locations/location-9797/repositories/repositorie-9797/files/file-9797"; + client.deleteFileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateFileTest() throws Exception { + File expectedResponse = + File.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .setSizeBytes(-1796325715) + .addAllHashes(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setOwner("owner106164915") + .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + File file = + File.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .setSizeBytes(-1796325715) + .addAllHashes(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setOwner("owner106164915") + .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + File actualResponse = client.updateFile(file, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + File file = + File.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .setSizeBytes(-1796325715) + .addAllHashes(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setOwner("owner106164915") + .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFile(file, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listTagsTest() throws Exception { Tag responsesElement = Tag.newBuilder().build(); @@ -2484,24 +2762,20 @@ public void deleteTagExceptionTest() throws Exception { } @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) + public void createRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockService.addResponse(expectedResponse); - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; - Policy actualResponse = client.setIamPolicy(request); + Rule actualResponse = client.createRule(parent, rule, ruleId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2520,20 +2794,17 @@ public void setIamPolicyTest() throws Exception { } @Test - public void setIamPolicyExceptionTest() throws Exception { + public void createRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.setIamPolicy(request); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + client.createRule(parent, rule, ruleId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2541,23 +2812,20 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) + public void createRuleTest2() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockService.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; - Policy actualResponse = client.getIamPolicy(request); + Rule actualResponse = client.createRule(parent, rule, ruleId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2576,19 +2844,17 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void createRuleExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(request); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + client.createRule(parent, rule, ruleId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2596,19 +2862,73 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + public void listRulesTest() throws Exception { + Rule responsesElement = Rule.newBuilder().build(); + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder() + .setNextPageToken("") + .addAllRules(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListRulesPagedResponse pagedListResponse = client.listRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRulesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRulesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRulesTest2() throws Exception { + Rule responsesElement = Rule.newBuilder().build(); + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder() + .setNextPageToken("") + .addAllRules(Arrays.asList(responsesElement)) .build(); + mockService.addResponse(expectedResponse); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + + ListRulesPagedResponse pagedListResponse = client.listRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRulesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2626,19 +2946,15 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void listRulesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + client.listRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2646,16 +2962,18 @@ public void testIamPermissionsExceptionTest() throws Exception { } @Test - public void getProjectSettingsTest() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void getRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockService.addResponse(expectedResponse); - ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); - ProjectSettings actualResponse = client.getProjectSettings(name); + Rule actualResponse = client.getRule(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2674,15 +2992,15 @@ public void getProjectSettingsTest() throws Exception { } @Test - public void getProjectSettingsExceptionTest() throws Exception { + public void getRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); - client.getProjectSettings(name); + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + client.getRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2690,16 +3008,19 @@ public void getProjectSettingsExceptionTest() throws Exception { } @Test - public void getProjectSettingsTest2() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void getRuleTest2() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-9549/projectSettings"; + String name = + "projects/project-7701/locations/location-7701/repositories/repositorie-7701/rules/rule-7701"; - ProjectSettings actualResponse = client.getProjectSettings(name); + Rule actualResponse = client.getRule(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2718,15 +3039,16 @@ public void getProjectSettingsTest2() throws Exception { } @Test - public void getProjectSettingsExceptionTest2() throws Exception { + public void getRuleExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-9549/projectSettings"; - client.getProjectSettings(name); + String name = + "projects/project-7701/locations/location-7701/repositories/repositorie-7701/rules/rule-7701"; + client.getRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2734,20 +3056,24 @@ public void getProjectSettingsExceptionTest2() throws Exception { } @Test - public void updateProjectSettingsTest() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void updateRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockService.addResponse(expectedResponse); - ProjectSettings projectSettings = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + Rule rule = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - ProjectSettings actualResponse = client.updateProjectSettings(projectSettings, updateMask); + Rule actualResponse = client.updateRule(rule, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2766,19 +3092,21 @@ public void updateProjectSettingsTest() throws Exception { } @Test - public void updateProjectSettingsExceptionTest() throws Exception { + public void updateRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ProjectSettings projectSettings = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + Rule rule = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProjectSettings(projectSettings, updateMask); + client.updateRule(rule, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2786,16 +3114,106 @@ public void updateProjectSettingsExceptionTest() throws Exception { } @Test - public void getVPCSCConfigTest() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + public void deleteRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + + client.deleteRule(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + client.deleteRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7701/locations/location-7701/repositories/repositorie-7701/rules/rule-7701"; + + client.deleteRule(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7701/locations/location-7701/repositories/repositorie-7701/rules/rule-7701"; + client.deleteRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); - VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2814,15 +3232,20 @@ public void getVPCSCConfigTest() throws Exception { } @Test - public void getVPCSCConfigExceptionTest() throws Exception { + public void setIamPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); - client.getVPCSCConfig(name); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2830,16 +3253,23 @@ public void getVPCSCConfigExceptionTest() throws Exception { } @Test - public void getVPCSCConfigTest2() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-2118/locations/location-2118/vpcscConfig"; + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); - VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Policy actualResponse = client.getIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2858,15 +3288,19 @@ public void getVPCSCConfigTest2() throws Exception { } @Test - public void getVPCSCConfigExceptionTest2() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-2118/locations/location-2118/vpcscConfig"; - client.getVPCSCConfig(name); + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2874,20 +3308,18 @@ public void getVPCSCConfigExceptionTest2() throws Exception { } @Test - public void updateVPCSCConfigTest() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); mockService.addResponse(expectedResponse); - VPCSCConfig vpcscConfig = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - VPCSCConfig actualResponse = client.updateVPCSCConfig(vpcscConfig, updateMask); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2906,25 +3338,811 @@ public void updateVPCSCConfigTest() throws Exception { } @Test - public void updateVPCSCConfigExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - VPCSCConfig vpcscConfig = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateVPCSCConfig(vpcscConfig, updateMask); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } + @Test + public void getProjectSettingsTest() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockService.addResponse(expectedResponse); + + ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + + ProjectSettings actualResponse = client.getProjectSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + client.getProjectSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectSettingsTest2() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9549/projectSettings"; + + ProjectSettings actualResponse = client.getProjectSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9549/projectSettings"; + client.getProjectSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateProjectSettingsTest() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockService.addResponse(expectedResponse); + + ProjectSettings projectSettings = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ProjectSettings actualResponse = client.updateProjectSettings(projectSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateProjectSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectSettings projectSettings = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateProjectSettings(projectSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVPCSCConfigTest() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + + VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVPCSCConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + client.getVPCSCConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVPCSCConfigTest2() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2118/locations/location-2118/vpcscConfig"; + + VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVPCSCConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2118/locations/location-2118/vpcscConfig"; + client.getVPCSCConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateVPCSCConfigTest() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + VPCSCConfig vpcscConfig = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VPCSCConfig actualResponse = client.updateVPCSCConfig(vpcscConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateVPCSCConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VPCSCConfig vpcscConfig = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVPCSCConfig(vpcscConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePackageTest() throws Exception { + Package expectedResponse = + Package.newBuilder() + .setName( + PackageName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Package package_ = + Package.newBuilder() + .setName( + PackageName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Package actualResponse = client.updatePackage(package_, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePackageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Package package_ = + Package.newBuilder() + .setName( + PackageName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePackage(package_, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachmentsTest() throws Exception { + Attachment responsesElement = Attachment.newBuilder().build(); + ListAttachmentsResponse expectedResponse = + ListAttachmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAttachments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListAttachmentsPagedResponse pagedListResponse = client.listAttachments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachmentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttachmentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listAttachments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachmentsTest2() throws Exception { + Attachment responsesElement = Attachment.newBuilder().build(); + ListAttachmentsResponse expectedResponse = + ListAttachmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAttachments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + + ListAttachmentsPagedResponse pagedListResponse = client.listAttachments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachmentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttachmentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + client.listAttachments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachmentTest() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + mockService.addResponse(expectedResponse); + + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + + Attachment actualResponse = client.getAttachment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttachmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + client.getAttachment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachmentTest2() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9108/locations/location-9108/repositories/repositorie-9108/attachments/attachment-9108"; + + Attachment actualResponse = client.getAttachment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttachmentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9108/locations/location-9108/repositories/repositorie-9108/attachments/attachment-9108"; + client.getAttachment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttachmentTest() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + + Attachment actualResponse = + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttachmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAttachmentTest2() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + + Attachment actualResponse = + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttachmentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAttachmentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + + client.deleteAttachmentAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttachmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + client.deleteAttachmentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAttachmentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9108/locations/location-9108/repositories/repositorie-9108/attachments/attachment-9108"; + + client.deleteAttachmentAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttachmentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9108/locations/location-9108/repositories/repositorie-9108/attachments/attachment-9108"; + client.deleteAttachmentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java index 3c4026c851c9..a139ddb88b7f 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java @@ -16,6 +16,7 @@ package com.google.devtools.artifactregistry.v1; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListAttachmentsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse; +import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRulesPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse; import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse; @@ -56,6 +58,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; import com.google.protobuf.Timestamp; +import com.google.type.Expr; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -997,6 +1000,10 @@ public void getRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1044,6 +1051,10 @@ public void getRepositoryTest2() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1091,6 +1102,10 @@ public void createRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1153,6 +1168,10 @@ public void createRepositoryTest2() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1215,6 +1234,10 @@ public void updateRepositoryTest() throws Exception { .setSizeBytes(-1796325715) .setSatisfiesPzs(true) .setCleanupPolicyDryRun(true) + .setVulnerabilityScanningConfig( + Repository.VulnerabilityScanningConfig.newBuilder().build()) + .setDisallowUnspecifiedMode(true) + .setSatisfiesPzi(true) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1432,6 +1455,7 @@ public void getPackageTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1474,6 +1498,7 @@ public void getPackageTest2() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1647,6 +1672,7 @@ public void getVersionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .addAllRelatedTags(new ArrayList()) .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1812,6 +1838,55 @@ public void batchDeleteVersionsExceptionTest2() throws Exception { } } + @Test + public void updateVersionTest() throws Exception { + Version expectedResponse = + Version.newBuilder() + .setName( + VersionName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRelatedTags(new ArrayList()) + .setMetadata(Struct.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + Version version = Version.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Version actualResponse = client.updateVersion(version, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVersionRequest actualRequest = ((UpdateVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(version, actualRequest.getVersion()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + Version version = Version.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVersion(version, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFilesTest() throws Exception { File responsesElement = File.newBuilder().build(); @@ -1911,6 +1986,7 @@ public void getFileTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setOwner("owner106164915") .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1955,6 +2031,7 @@ public void getFileTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setOwner("owner106164915") .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -1988,6 +2065,138 @@ public void getFileExceptionTest2() throws Exception { } } + @Test + public void deleteFileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + + client.deleteFileAsync(name).get(); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFileRequest actualRequest = ((DeleteFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + client.deleteFileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFileAsync(name).get(); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFileRequest actualRequest = ((DeleteFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteFileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateFileTest() throws Exception { + File expectedResponse = + File.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .setSizeBytes(-1796325715) + .addAllHashes(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setOwner("owner106164915") + .setFetchTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + File file = File.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + File actualResponse = client.updateFile(file, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFileRequest actualRequest = ((UpdateFileRequest) actualRequests.get(0)); + + Assert.assertEquals(file, actualRequest.getFile()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + File file = File.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFile(file, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listTagsTest() throws Exception { Tag responsesElement = Tag.newBuilder().build(); @@ -2184,33 +2393,29 @@ public void deleteTagExceptionTest() throws Exception { } @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) + public void createRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockArtifactRegistry.addResponse(expectedResponse); - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; - Policy actualResponse = client.setIamPolicy(request); + Rule actualResponse = client.createRule(parent, rule, ruleId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + CreateRuleRequest actualRequest = ((CreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rule, actualRequest.getRule()); + Assert.assertEquals(ruleId, actualRequest.getRuleId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2218,18 +2423,15 @@ public void setIamPolicyTest() throws Exception { } @Test - public void setIamPolicyExceptionTest() throws Exception { + public void createRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.setIamPolicy(request); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + client.createRule(parent, rule, ruleId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2237,31 +2439,29 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) + public void createRuleTest2() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockArtifactRegistry.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); + String parent = "parent-995424086"; + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; - Policy actualResponse = client.getIamPolicy(request); + Rule actualResponse = client.createRule(parent, rule, ruleId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + CreateRuleRequest actualRequest = ((CreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rule, actualRequest.getRule()); + Assert.assertEquals(ruleId, actualRequest.getRuleId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2269,17 +2469,15 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void createRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(request); + String parent = "parent-995424086"; + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + client.createRule(parent, rule, ruleId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2287,26 +2485,29 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + public void listRulesTest() throws Exception { + Rule responsesElement = Rule.newBuilder().build(); + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder() + .setNextPageToken("") + .addAllRules(Arrays.asList(responsesElement)) + .build(); mockArtifactRegistry.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); + ListRulesPagedResponse pagedListResponse = client.listRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRulesList().get(0), resources.get(0)); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + ListRulesRequest actualRequest = ((ListRulesRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2314,17 +2515,13 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void listRulesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2332,23 +2529,29 @@ public void testIamPermissionsExceptionTest() throws Exception { } @Test - public void getProjectSettingsTest() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void listRulesTest2() throws Exception { + Rule responsesElement = Rule.newBuilder().build(); + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder() + .setNextPageToken("") + .addAllRules(Arrays.asList(responsesElement)) .build(); mockArtifactRegistry.addResponse(expectedResponse); - ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + String parent = "parent-995424086"; - ProjectSettings actualResponse = client.getProjectSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListRulesPagedResponse pagedListResponse = client.listRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRulesList().get(0), resources.get(0)); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetProjectSettingsRequest actualRequest = ((GetProjectSettingsRequest) actualRequests.get(0)); + ListRulesRequest actualRequest = ((ListRulesRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2356,13 +2559,13 @@ public void getProjectSettingsTest() throws Exception { } @Test - public void getProjectSettingsExceptionTest() throws Exception { + public void listRulesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); - client.getProjectSettings(name); + String parent = "parent-995424086"; + client.listRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2370,21 +2573,63 @@ public void getProjectSettingsExceptionTest() throws Exception { } @Test - public void getProjectSettingsTest2() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void getRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + + Rule actualResponse = client.getRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRuleRequest actualRequest = ((GetRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + client.getRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRuleTest2() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockArtifactRegistry.addResponse(expectedResponse); String name = "name3373707"; - ProjectSettings actualResponse = client.getProjectSettings(name); + Rule actualResponse = client.getRule(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetProjectSettingsRequest actualRequest = ((GetProjectSettingsRequest) actualRequests.get(0)); + GetRuleRequest actualRequest = ((GetRuleRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2394,13 +2639,13 @@ public void getProjectSettingsTest2() throws Exception { } @Test - public void getProjectSettingsExceptionTest2() throws Exception { + public void getRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { String name = "name3373707"; - client.getProjectSettings(name); + client.getRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2408,25 +2653,26 @@ public void getProjectSettingsExceptionTest2() throws Exception { } @Test - public void updateProjectSettingsTest() throws Exception { - ProjectSettings expectedResponse = - ProjectSettings.newBuilder() - .setName(ProjectSettingsName.of("[PROJECT]").toString()) + public void updateRuleTest() throws Exception { + Rule expectedResponse = + Rule.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .setCondition(Expr.newBuilder().build()) + .setPackageId("packageId1802060801") .build(); mockArtifactRegistry.addResponse(expectedResponse); - ProjectSettings projectSettings = ProjectSettings.newBuilder().build(); + Rule rule = Rule.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - ProjectSettings actualResponse = client.updateProjectSettings(projectSettings, updateMask); + Rule actualResponse = client.updateRule(rule, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateProjectSettingsRequest actualRequest = - ((UpdateProjectSettingsRequest) actualRequests.get(0)); + UpdateRuleRequest actualRequest = ((UpdateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(projectSettings, actualRequest.getProjectSettings()); + Assert.assertEquals(rule, actualRequest.getRule()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -2435,14 +2681,14 @@ public void updateProjectSettingsTest() throws Exception { } @Test - public void updateProjectSettingsExceptionTest() throws Exception { + public void updateRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - ProjectSettings projectSettings = ProjectSettings.newBuilder().build(); + Rule rule = Rule.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProjectSettings(projectSettings, updateMask); + client.updateRule(rule, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2450,21 +2696,17 @@ public void updateProjectSettingsExceptionTest() throws Exception { } @Test - public void getVPCSCConfigTest() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); + public void deleteRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockArtifactRegistry.addResponse(expectedResponse); - VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); - VPCSCConfig actualResponse = client.getVPCSCConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteRule(name); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVPCSCConfigRequest actualRequest = ((GetVPCSCConfigRequest) actualRequests.get(0)); + DeleteRuleRequest actualRequest = ((DeleteRuleRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -2474,13 +2716,13 @@ public void getVPCSCConfigTest() throws Exception { } @Test - public void getVPCSCConfigExceptionTest() throws Exception { + public void deleteRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); - client.getVPCSCConfig(name); + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + client.deleteRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2488,21 +2730,17 @@ public void getVPCSCConfigExceptionTest() throws Exception { } @Test - public void getVPCSCConfigTest2() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); + public void deleteRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockArtifactRegistry.addResponse(expectedResponse); String name = "name3373707"; - VPCSCConfig actualResponse = client.getVPCSCConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteRule(name); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVPCSCConfigRequest actualRequest = ((GetVPCSCConfigRequest) actualRequests.get(0)); + DeleteRuleRequest actualRequest = ((DeleteRuleRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2512,13 +2750,13 @@ public void getVPCSCConfigTest2() throws Exception { } @Test - public void getVPCSCConfigExceptionTest2() throws Exception { + public void deleteRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { String name = "name3373707"; - client.getVPCSCConfig(name); + client.deleteRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2526,25 +2764,33 @@ public void getVPCSCConfigExceptionTest2() throws Exception { } @Test - public void updateVPCSCConfigTest() throws Exception { - VPCSCConfig expectedResponse = - VPCSCConfig.newBuilder() - .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockArtifactRegistry.addResponse(expectedResponse); - VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); - VPCSCConfig actualResponse = client.updateVPCSCConfig(vpcscConfig, updateMask); + Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockArtifactRegistry.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateVPCSCConfigRequest actualRequest = ((UpdateVPCSCConfigRequest) actualRequests.get(0)); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(vpcscConfig, actualRequest.getVpcscConfig()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2552,20 +2798,801 @@ public void updateVPCSCConfigTest() throws Exception { } @Test - public void updateVPCSCConfigExceptionTest() throws Exception { + public void setIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockArtifactRegistry.addException(exception); try { - VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateVPCSCConfig(vpcscConfig, updateMask); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockArtifactRegistry.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectSettingsTest() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + + ProjectSettings actualResponse = client.getProjectSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectSettingsRequest actualRequest = ((GetProjectSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + ProjectSettingsName name = ProjectSettingsName.of("[PROJECT]"); + client.getProjectSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } + @Test + public void getProjectSettingsTest2() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + ProjectSettings actualResponse = client.getProjectSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectSettingsRequest actualRequest = ((GetProjectSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getProjectSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateProjectSettingsTest() throws Exception { + ProjectSettings expectedResponse = + ProjectSettings.newBuilder() + .setName(ProjectSettingsName.of("[PROJECT]").toString()) + .setPullPercent(1781572683) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + ProjectSettings projectSettings = ProjectSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ProjectSettings actualResponse = client.updateProjectSettings(projectSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateProjectSettingsRequest actualRequest = + ((UpdateProjectSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectSettings, actualRequest.getProjectSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateProjectSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + ProjectSettings projectSettings = ProjectSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateProjectSettings(projectSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVPCSCConfigTest() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + + VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVPCSCConfigRequest actualRequest = ((GetVPCSCConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVPCSCConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + VpcscConfigName name = VpcscConfigName.of("[PROJECT]", "[LOCATION]"); + client.getVPCSCConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVPCSCConfigTest2() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + VPCSCConfig actualResponse = client.getVPCSCConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVPCSCConfigRequest actualRequest = ((GetVPCSCConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVPCSCConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getVPCSCConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateVPCSCConfigTest() throws Exception { + VPCSCConfig expectedResponse = + VPCSCConfig.newBuilder() + .setName(VpcscConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VPCSCConfig actualResponse = client.updateVPCSCConfig(vpcscConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVPCSCConfigRequest actualRequest = ((UpdateVPCSCConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(vpcscConfig, actualRequest.getVpcscConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVPCSCConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + VPCSCConfig vpcscConfig = VPCSCConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVPCSCConfig(vpcscConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePackageTest() throws Exception { + Package expectedResponse = + Package.newBuilder() + .setName( + PackageName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + Package package_ = Package.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Package actualResponse = client.updatePackage(package_, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdatePackageRequest actualRequest = ((UpdatePackageRequest) actualRequests.get(0)); + + Assert.assertEquals(package_, actualRequest.getPackage()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updatePackageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + Package package_ = Package.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePackage(package_, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachmentsTest() throws Exception { + Attachment responsesElement = Attachment.newBuilder().build(); + ListAttachmentsResponse expectedResponse = + ListAttachmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAttachments(Arrays.asList(responsesElement)) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListAttachmentsPagedResponse pagedListResponse = client.listAttachments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachmentsList().get(0), resources.get(0)); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAttachmentsRequest actualRequest = ((ListAttachmentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAttachmentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listAttachments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachmentsTest2() throws Exception { + Attachment responsesElement = Attachment.newBuilder().build(); + ListAttachmentsResponse expectedResponse = + ListAttachmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAttachments(Arrays.asList(responsesElement)) + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAttachmentsPagedResponse pagedListResponse = client.listAttachments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachmentsList().get(0), resources.get(0)); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAttachmentsRequest actualRequest = ((ListAttachmentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAttachmentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAttachments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachmentTest() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + + Attachment actualResponse = client.getAttachment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachmentRequest actualRequest = ((GetAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachmentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + client.getAttachment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachmentTest2() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + mockArtifactRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Attachment actualResponse = client.getAttachment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachmentRequest actualRequest = ((GetAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachmentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAttachment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttachmentTest() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + + Attachment actualResponse = + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAttachmentRequest actualRequest = ((CreateAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(attachment, actualRequest.getAttachment()); + Assert.assertEquals(attachmentId, actualRequest.getAttachmentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAttachmentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAttachmentTest2() throws Exception { + Attachment expectedResponse = + Attachment.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .setTarget("target-880905839") + .setType("type3575610") + .setAttachmentNamespace("attachmentNamespace-1956859016") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFiles(new ArrayList()) + .setOciVersionName("ociVersionName-533968082") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + String parent = "parent-995424086"; + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + + Attachment actualResponse = + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAttachmentRequest actualRequest = ((CreateAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(attachment, actualRequest.getAttachment()); + Assert.assertEquals(attachmentId, actualRequest.getAttachmentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAttachmentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + client.createAttachmentAsync(parent, attachment, attachmentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAttachmentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + + client.deleteAttachmentAsync(name).get(); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAttachmentRequest actualRequest = ((DeleteAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAttachmentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + client.deleteAttachmentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAttachmentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAttachmentAsync(name).get(); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAttachmentRequest actualRequest = ((DeleteAttachmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAttachmentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteAttachmentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java index f01bfcd5323b..c61ca2ef2e96 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java @@ -527,6 +527,27 @@ public void batchDeleteVersions( } } + @Override + public void updateVersion( + UpdateVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Version) { + requests.add(request); + responseObserver.onNext(((Version) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Version.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listFiles( ListFilesRequest request, StreamObserver responseObserver) { @@ -568,6 +589,46 @@ public void getFile(GetFileRequest request, StreamObserver responseObserve } } + @Override + public void deleteFile(DeleteFileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFile(UpdateFileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof File) { + requests.add(request); + responseObserver.onNext(((File) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + File.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listTags(ListTagsRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -668,6 +729,107 @@ public void deleteTag(DeleteTagRequest request, StreamObserver responseOb } } + @Override + public void createRule(CreateRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rule) { + requests.add(request); + responseObserver.onNext(((Rule) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRules( + ListRulesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRulesResponse) { + requests.add(request); + responseObserver.onNext(((ListRulesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRules, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRulesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRule(GetRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rule) { + requests.add(request); + responseObserver.onNext(((Rule) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRule(UpdateRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rule) { + requests.add(request); + responseObserver.onNext(((Rule) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRule(DeleteRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -813,4 +975,109 @@ public void updateVPCSCConfig( Exception.class.getName()))); } } + + @Override + public void updatePackage( + UpdatePackageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Package) { + requests.add(request); + responseObserver.onNext(((Package) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdatePackage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Package.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAttachments( + ListAttachmentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAttachmentsResponse) { + requests.add(request); + responseObserver.onNext(((ListAttachmentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAttachments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAttachmentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAttachment( + GetAttachmentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Attachment) { + requests.add(request); + responseObserver.onNext(((Attachment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAttachment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Attachment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAttachment( + CreateAttachmentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAttachment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAttachment( + DeleteAttachmentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAttachment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java index 1f985d360a0a..869308b14547 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java @@ -1077,6 +1077,52 @@ private ArtifactRegistryGrpc() {} return getBatchDeleteVersionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateVersionRequest, + com.google.devtools.artifactregistry.v1.Version> + getUpdateVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVersion", + requestType = com.google.devtools.artifactregistry.v1.UpdateVersionRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Version.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateVersionRequest, + com.google.devtools.artifactregistry.v1.Version> + getUpdateVersionMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateVersionRequest, + com.google.devtools.artifactregistry.v1.Version> + getUpdateVersionMethod; + if ((getUpdateVersionMethod = ArtifactRegistryGrpc.getUpdateVersionMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getUpdateVersionMethod = ArtifactRegistryGrpc.getUpdateVersionMethod) == null) { + ArtifactRegistryGrpc.getUpdateVersionMethod = + getUpdateVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Version.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("UpdateVersion")) + .build(); + } + } + } + return getUpdateVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.devtools.artifactregistry.v1.ListFilesRequest, com.google.devtools.artifactregistry.v1.ListFilesResponse> @@ -1169,6 +1215,98 @@ private ArtifactRegistryGrpc() {} return getGetFileMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteFileRequest, + com.google.longrunning.Operation> + getDeleteFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFile", + requestType = com.google.devtools.artifactregistry.v1.DeleteFileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteFileRequest, + com.google.longrunning.Operation> + getDeleteFileMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteFileRequest, + com.google.longrunning.Operation> + getDeleteFileMethod; + if ((getDeleteFileMethod = ArtifactRegistryGrpc.getDeleteFileMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getDeleteFileMethod = ArtifactRegistryGrpc.getDeleteFileMethod) == null) { + ArtifactRegistryGrpc.getDeleteFileMethod = + getDeleteFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.DeleteFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("DeleteFile")) + .build(); + } + } + } + return getDeleteFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateFileRequest, + com.google.devtools.artifactregistry.v1.File> + getUpdateFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFile", + requestType = com.google.devtools.artifactregistry.v1.UpdateFileRequest.class, + responseType = com.google.devtools.artifactregistry.v1.File.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateFileRequest, + com.google.devtools.artifactregistry.v1.File> + getUpdateFileMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateFileRequest, + com.google.devtools.artifactregistry.v1.File> + getUpdateFileMethod; + if ((getUpdateFileMethod = ArtifactRegistryGrpc.getUpdateFileMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getUpdateFileMethod = ArtifactRegistryGrpc.getUpdateFileMethod) == null) { + ArtifactRegistryGrpc.getUpdateFileMethod = + getUpdateFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.UpdateFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.File.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("UpdateFile")) + .build(); + } + } + } + return getUpdateFileMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.devtools.artifactregistry.v1.ListTagsRequest, com.google.devtools.artifactregistry.v1.ListTagsResponse> @@ -1395,6 +1533,233 @@ private ArtifactRegistryGrpc() {} return getDeleteTagMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getCreateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRule", + requestType = com.google.devtools.artifactregistry.v1.CreateRuleRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Rule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getCreateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getCreateRuleMethod; + if ((getCreateRuleMethod = ArtifactRegistryGrpc.getCreateRuleMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getCreateRuleMethod = ArtifactRegistryGrpc.getCreateRuleMethod) == null) { + ArtifactRegistryGrpc.getCreateRuleMethod = + getCreateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.CreateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("CreateRule")) + .build(); + } + } + } + return getCreateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListRulesRequest, + com.google.devtools.artifactregistry.v1.ListRulesResponse> + getListRulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRules", + requestType = com.google.devtools.artifactregistry.v1.ListRulesRequest.class, + responseType = com.google.devtools.artifactregistry.v1.ListRulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListRulesRequest, + com.google.devtools.artifactregistry.v1.ListRulesResponse> + getListRulesMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListRulesRequest, + com.google.devtools.artifactregistry.v1.ListRulesResponse> + getListRulesMethod; + if ((getListRulesMethod = ArtifactRegistryGrpc.getListRulesMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getListRulesMethod = ArtifactRegistryGrpc.getListRulesMethod) == null) { + ArtifactRegistryGrpc.getListRulesMethod = + getListRulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.ListRulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.ListRulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("ListRules")) + .build(); + } + } + } + return getListRulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getGetRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRule", + requestType = com.google.devtools.artifactregistry.v1.GetRuleRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Rule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getGetRuleMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getGetRuleMethod; + if ((getGetRuleMethod = ArtifactRegistryGrpc.getGetRuleMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getGetRuleMethod = ArtifactRegistryGrpc.getGetRuleMethod) == null) { + ArtifactRegistryGrpc.getGetRuleMethod = + getGetRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.GetRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance())) + .setSchemaDescriptor(new ArtifactRegistryMethodDescriptorSupplier("GetRule")) + .build(); + } + } + } + return getGetRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getUpdateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRule", + requestType = com.google.devtools.artifactregistry.v1.UpdateRuleRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Rule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getUpdateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule> + getUpdateRuleMethod; + if ((getUpdateRuleMethod = ArtifactRegistryGrpc.getUpdateRuleMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getUpdateRuleMethod = ArtifactRegistryGrpc.getUpdateRuleMethod) == null) { + ArtifactRegistryGrpc.getUpdateRuleMethod = + getUpdateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("UpdateRule")) + .build(); + } + } + } + return getUpdateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteRuleRequest, com.google.protobuf.Empty> + getDeleteRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRule", + requestType = com.google.devtools.artifactregistry.v1.DeleteRuleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteRuleRequest, com.google.protobuf.Empty> + getDeleteRuleMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteRuleRequest, com.google.protobuf.Empty> + getDeleteRuleMethod; + if ((getDeleteRuleMethod = ArtifactRegistryGrpc.getDeleteRuleMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getDeleteRuleMethod = ArtifactRegistryGrpc.getDeleteRuleMethod) == null) { + ArtifactRegistryGrpc.getDeleteRuleMethod = + getDeleteRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("DeleteRule")) + .build(); + } + } + } + return getDeleteRuleMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; @@ -1710,6 +2075,238 @@ private ArtifactRegistryGrpc() {} return getUpdateVPCSCConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdatePackageRequest, + com.google.devtools.artifactregistry.v1.Package> + getUpdatePackageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePackage", + requestType = com.google.devtools.artifactregistry.v1.UpdatePackageRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Package.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdatePackageRequest, + com.google.devtools.artifactregistry.v1.Package> + getUpdatePackageMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.UpdatePackageRequest, + com.google.devtools.artifactregistry.v1.Package> + getUpdatePackageMethod; + if ((getUpdatePackageMethod = ArtifactRegistryGrpc.getUpdatePackageMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getUpdatePackageMethod = ArtifactRegistryGrpc.getUpdatePackageMethod) == null) { + ArtifactRegistryGrpc.getUpdatePackageMethod = + getUpdatePackageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePackage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Package.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("UpdatePackage")) + .build(); + } + } + } + return getUpdatePackageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse> + getListAttachmentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAttachments", + requestType = com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.class, + responseType = com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse> + getListAttachmentsMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse> + getListAttachmentsMethod; + if ((getListAttachmentsMethod = ArtifactRegistryGrpc.getListAttachmentsMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getListAttachmentsMethod = ArtifactRegistryGrpc.getListAttachmentsMethod) == null) { + ArtifactRegistryGrpc.getListAttachmentsMethod = + getListAttachmentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttachments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("ListAttachments")) + .build(); + } + } + } + return getListAttachmentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetAttachmentRequest, + com.google.devtools.artifactregistry.v1.Attachment> + getGetAttachmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttachment", + requestType = com.google.devtools.artifactregistry.v1.GetAttachmentRequest.class, + responseType = com.google.devtools.artifactregistry.v1.Attachment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetAttachmentRequest, + com.google.devtools.artifactregistry.v1.Attachment> + getGetAttachmentMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.GetAttachmentRequest, + com.google.devtools.artifactregistry.v1.Attachment> + getGetAttachmentMethod; + if ((getGetAttachmentMethod = ArtifactRegistryGrpc.getGetAttachmentMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getGetAttachmentMethod = ArtifactRegistryGrpc.getGetAttachmentMethod) == null) { + ArtifactRegistryGrpc.getGetAttachmentMethod = + getGetAttachmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttachment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.Attachment + .getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("GetAttachment")) + .build(); + } + } + } + return getGetAttachmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest, + com.google.longrunning.Operation> + getCreateAttachmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAttachment", + requestType = com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest, + com.google.longrunning.Operation> + getCreateAttachmentMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest, + com.google.longrunning.Operation> + getCreateAttachmentMethod; + if ((getCreateAttachmentMethod = ArtifactRegistryGrpc.getCreateAttachmentMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getCreateAttachmentMethod = ArtifactRegistryGrpc.getCreateAttachmentMethod) == null) { + ArtifactRegistryGrpc.getCreateAttachmentMethod = + getCreateAttachmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttachment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("CreateAttachment")) + .build(); + } + } + } + return getCreateAttachmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest, + com.google.longrunning.Operation> + getDeleteAttachmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAttachment", + requestType = com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest, + com.google.longrunning.Operation> + getDeleteAttachmentMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest, + com.google.longrunning.Operation> + getDeleteAttachmentMethod; + if ((getDeleteAttachmentMethod = ArtifactRegistryGrpc.getDeleteAttachmentMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getDeleteAttachmentMethod = ArtifactRegistryGrpc.getDeleteAttachmentMethod) == null) { + ArtifactRegistryGrpc.getDeleteAttachmentMethod = + getDeleteAttachmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttachment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("DeleteAttachment")) + .build(); + } + } + } + return getDeleteAttachmentMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ArtifactRegistryStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2106,6 +2703,21 @@ default void batchDeleteVersions( getBatchDeleteVersionsMethod(), responseObserver); } + /** + * + * + *
+     * Updates a version.
+     * 
+ */ + default void updateVersion( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVersionMethod(), responseObserver); + } + /** * * @@ -2134,6 +2746,35 @@ default void getFile( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFileMethod(), responseObserver); } + /** + * + * + *
+     * Deletes a file and all of its content. It is only allowed on generic
+     * repositories. The returned operation will complete once the file has been
+     * deleted.
+     * 
+ */ + default void deleteFile( + com.google.devtools.artifactregistry.v1.DeleteFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a file.
+     * 
+ */ + default void updateFile( + com.google.devtools.artifactregistry.v1.UpdateFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFileMethod(), responseObserver); + } + /** * * @@ -2200,6 +2841,75 @@ default void deleteTag( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTagMethod(), responseObserver); } + /** + * + * + *
+     * Creates a rule.
+     * 
+ */ + default void createRule( + com.google.devtools.artifactregistry.v1.CreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists rules.
+     * 
+ */ + default void listRules( + com.google.devtools.artifactregistry.v1.ListRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a rule.
+     * 
+ */ + default void getRule( + com.google.devtools.artifactregistry.v1.GetRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a rule.
+     * 
+ */ + default void updateRule( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a rule.
+     * 
+ */ + default void deleteRule( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleMethod(), responseObserver); + } + /** * * @@ -2225,82 +2935,158 @@ default void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Tests if the caller has a list of permissions on a resource.
+     * 
+ */ + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the Settings for the Project.
+     * 
+ */ + default void getProjectSettings( + com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProjectSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the Settings for the Project.
+     * 
+ */ + default void updateProjectSettings( + com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateProjectSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the VPCSC Config for the Project.
+     * 
+ */ + default void getVPCSCConfig( + com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVPCSCConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the VPCSC Config for the Project.
+     * 
+ */ + default void updateVPCSCConfig( + com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVPCSCConfigMethod(), responseObserver); } /** * * *
-     * Tests if the caller has a list of permissions on a resource.
+     * Updates a package.
      * 
*/ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver + default void updatePackage( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + getUpdatePackageMethod(), responseObserver); } /** * * *
-     * Retrieves the Settings for the Project.
+     * Lists attachments.
      * 
*/ - default void getProjectSettings( - com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest request, - io.grpc.stub.StreamObserver + default void listAttachments( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProjectSettingsMethod(), responseObserver); + getListAttachmentsMethod(), responseObserver); } /** * * *
-     * Updates the Settings for the Project.
+     * Gets an attachment.
      * 
*/ - default void updateProjectSettings( - com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest request, - io.grpc.stub.StreamObserver + default void getAttachment( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProjectSettingsMethod(), responseObserver); + getGetAttachmentMethod(), responseObserver); } /** * * *
-     * Retrieves the VPCSC Config for the Project.
+     * Creates an attachment. The returned Operation will finish once the
+     * attachment has been created. Its response will be the created attachment.
      * 
*/ - default void getVPCSCConfig( - com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void createAttachment( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetVPCSCConfigMethod(), responseObserver); + getCreateAttachmentMethod(), responseObserver); } /** * * *
-     * Updates the VPCSC Config for the Project.
+     * Deletes an attachment. The returned Operation will
+     * finish once the attachments has been deleted. It will not have any
+     * Operation metadata and will return a `google.protobuf.Empty` response.
      * 
*/ - default void updateVPCSCConfig( - com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void deleteAttachment( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVPCSCConfigMethod(), responseObserver); + getDeleteAttachmentMethod(), responseObserver); } } @@ -2735,6 +3521,23 @@ public void batchDeleteVersions( responseObserver); } + /** + * + * + *
+     * Updates a version.
+     * 
+ */ + public void updateVersion( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2765,6 +3568,37 @@ public void getFile( getChannel().newCall(getGetFileMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Deletes a file and all of its content. It is only allowed on generic
+     * repositories. The returned operation will complete once the file has been
+     * deleted.
+     * 
+ */ + public void deleteFile( + com.google.devtools.artifactregistry.v1.DeleteFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a file.
+     * 
+ */ + public void updateFile( + com.google.devtools.artifactregistry.v1.UpdateFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFileMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2836,6 +3670,80 @@ public void deleteTag( getChannel().newCall(getDeleteTagMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Creates a rule.
+     * 
+ */ + public void createRule( + com.google.devtools.artifactregistry.v1.CreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists rules.
+     * 
+ */ + public void listRules( + com.google.devtools.artifactregistry.v1.ListRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets a rule.
+     * 
+ */ + public void getRule( + com.google.devtools.artifactregistry.v1.GetRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a rule.
+     * 
+ */ + public void updateRule( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRuleMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a rule.
+     * 
+ */ + public void deleteRule( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRuleMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2952,6 +3860,92 @@ public void updateVPCSCConfig( request, responseObserver); } + + /** + * + * + *
+     * Updates a package.
+     * 
+ */ + public void updatePackage( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePackageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists attachments.
+     * 
+ */ + public void listAttachments( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAttachmentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an attachment.
+     * 
+ */ + public void getAttachment( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttachmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an attachment. The returned Operation will finish once the
+     * attachment has been created. Its response will be the created attachment.
+     * 
+ */ + public void createAttachment( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAttachmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an attachment. The returned Operation will
+     * finish once the attachments has been deleted. It will not have any
+     * Operation metadata and will return a `google.protobuf.Empty` response.
+     * 
+ */ + public void deleteAttachment( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAttachmentMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3280,6 +4274,19 @@ public com.google.longrunning.Operation batchDeleteVersions( getChannel(), getBatchDeleteVersionsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a version.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Version updateVersion( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVersionMethod(), getCallOptions(), request); + } + /** * * @@ -3306,6 +4313,34 @@ public com.google.devtools.artifactregistry.v1.File getFile( getChannel(), getGetFileMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes a file and all of its content. It is only allowed on generic
+     * repositories. The returned operation will complete once the file has been
+     * deleted.
+     * 
+ */ + public com.google.longrunning.Operation deleteFile( + com.google.devtools.artifactregistry.v1.DeleteFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a file.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.File updateFile( + com.google.devtools.artifactregistry.v1.UpdateFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFileMethod(), getCallOptions(), request); + } + /** * * @@ -3352,23 +4387,88 @@ public com.google.devtools.artifactregistry.v1.Tag createTag( * Updates a tag. *
*/ - public com.google.devtools.artifactregistry.v1.Tag updateTag( - com.google.devtools.artifactregistry.v1.UpdateTagRequest request) { + public com.google.devtools.artifactregistry.v1.Tag updateTag( + com.google.devtools.artifactregistry.v1.UpdateTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a tag.
+     * 
+ */ + public com.google.protobuf.Empty deleteTag( + com.google.devtools.artifactregistry.v1.DeleteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a rule.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Rule createRule( + com.google.devtools.artifactregistry.v1.CreateRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists rules.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.ListRulesResponse listRules( + com.google.devtools.artifactregistry.v1.ListRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a rule.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Rule getRule( + com.google.devtools.artifactregistry.v1.GetRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a rule.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Rule updateRule( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagMethod(), getCallOptions(), request); + getChannel(), getUpdateRuleMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a tag.
+     * Deletes a rule.
      * 
*/ - public com.google.protobuf.Empty deleteTag( - com.google.devtools.artifactregistry.v1.DeleteTagRequest request) { + public com.google.protobuf.Empty deleteRule( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagMethod(), getCallOptions(), request); + getChannel(), getDeleteRuleMethod(), getCallOptions(), request); } /** @@ -3459,6 +4559,74 @@ public com.google.devtools.artifactregistry.v1.VPCSCConfig updateVPCSCConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateVPCSCConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Updates a package.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Package updatePackage( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePackageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists attachments.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse listAttachments( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAttachmentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an attachment.
+     * 
+ */ + public com.google.devtools.artifactregistry.v1.Attachment getAttachment( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttachmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an attachment. The returned Operation will finish once the
+     * attachment has been created. Its response will be the created attachment.
+     * 
+ */ + public com.google.longrunning.Operation createAttachment( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAttachmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an attachment. The returned Operation will
+     * finish once the attachments has been deleted. It will not have any
+     * Operation metadata and will return a `google.protobuf.Empty` response.
+     * 
+ */ + public com.google.longrunning.Operation deleteAttachment( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request); + } } /** @@ -3807,6 +4975,20 @@ protected ArtifactRegistryFutureStub build( getChannel().newCall(getBatchDeleteVersionsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates a version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Version> + updateVersion(com.google.devtools.artifactregistry.v1.UpdateVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request); + } + /** * * @@ -3835,6 +5017,35 @@ protected ArtifactRegistryFutureStub build( getChannel().newCall(getGetFileMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes a file and all of its content. It is only allowed on generic
+     * repositories. The returned operation will complete once the file has been
+     * deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFile(com.google.devtools.artifactregistry.v1.DeleteFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a file.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.File> + updateFile(com.google.devtools.artifactregistry.v1.UpdateFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFileMethod(), getCallOptions()), request); + } + /** * * @@ -3904,6 +5115,75 @@ public com.google.common.util.concurrent.ListenableFuture + * Creates a rule. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Rule> + createRule(com.google.devtools.artifactregistry.v1.CreateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists rules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.ListRulesResponse> + listRules(com.google.devtools.artifactregistry.v1.ListRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Rule> + getRule(com.google.devtools.artifactregistry.v1.GetRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Rule> + updateRule(com.google.devtools.artifactregistry.v1.UpdateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRule( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRuleMethod(), getCallOptions()), request); + } + /** * * @@ -4002,6 +5282,77 @@ public com.google.common.util.concurrent.ListenableFuture + * Updates a package. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Package> + updatePackage(com.google.devtools.artifactregistry.v1.UpdatePackageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePackageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists attachments.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse> + listAttachments(com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAttachmentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an attachment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.devtools.artifactregistry.v1.Attachment> + getAttachment(com.google.devtools.artifactregistry.v1.GetAttachmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttachmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an attachment. The returned Operation will finish once the
+     * attachment has been created. Its response will be the created attachment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createAttachment(com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAttachmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an attachment. The returned Operation will
+     * finish once the attachments has been deleted. It will not have any
+     * Operation metadata and will return a `google.protobuf.Empty` response.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAttachment(com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAttachmentMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_DOCKER_IMAGES = 0; @@ -4026,20 +5377,33 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4190,6 +5554,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_VERSION: + serviceImpl.updateVersion( + (com.google.devtools.artifactregistry.v1.UpdateVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_FILES: serviceImpl.listFiles( (com.google.devtools.artifactregistry.v1.ListFilesRequest) request, @@ -4203,6 +5573,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_FILE: + serviceImpl.deleteFile( + (com.google.devtools.artifactregistry.v1.DeleteFileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FILE: + serviceImpl.updateFile( + (com.google.devtools.artifactregistry.v1.UpdateFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_TAGS: serviceImpl.listTags( (com.google.devtools.artifactregistry.v1.ListTagsRequest) request, @@ -4233,6 +5614,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.devtools.artifactregistry.v1.DeleteTagRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_RULE: + serviceImpl.createRule( + (com.google.devtools.artifactregistry.v1.CreateRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RULES: + serviceImpl.listRules( + (com.google.devtools.artifactregistry.v1.ListRulesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.devtools.artifactregistry.v1.ListRulesResponse>) + responseObserver); + break; + case METHODID_GET_RULE: + serviceImpl.getRule( + (com.google.devtools.artifactregistry.v1.GetRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RULE: + serviceImpl.updateRule( + (com.google.devtools.artifactregistry.v1.UpdateRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RULE: + serviceImpl.deleteRule( + (com.google.devtools.artifactregistry.v1.DeleteRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_SET_IAM_POLICY: serviceImpl.setIamPolicy( (com.google.iam.v1.SetIamPolicyRequest) request, @@ -4273,6 +5684,35 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_PACKAGE: + serviceImpl.updatePackage( + (com.google.devtools.artifactregistry.v1.UpdatePackageRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ATTACHMENTS: + serviceImpl.listAttachments( + (com.google.devtools.artifactregistry.v1.ListAttachmentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse>) + responseObserver); + break; + case METHODID_GET_ATTACHMENT: + serviceImpl.getAttachment( + (com.google.devtools.artifactregistry.v1.GetAttachmentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ATTACHMENT: + serviceImpl.createAttachment( + (com.google.devtools.artifactregistry.v1.CreateAttachmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ATTACHMENT: + serviceImpl.deleteAttachment( + (com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4438,6 +5878,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest, com.google.longrunning.Operation>(service, METHODID_BATCH_DELETE_VERSIONS))) + .addMethod( + getUpdateVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.UpdateVersionRequest, + com.google.devtools.artifactregistry.v1.Version>( + service, METHODID_UPDATE_VERSION))) .addMethod( getListFilesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4451,6 +5898,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.devtools.artifactregistry.v1.GetFileRequest, com.google.devtools.artifactregistry.v1.File>(service, METHODID_GET_FILE))) + .addMethod( + getDeleteFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.DeleteFileRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FILE))) + .addMethod( + getUpdateFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.UpdateFileRequest, + com.google.devtools.artifactregistry.v1.File>(service, METHODID_UPDATE_FILE))) .addMethod( getListTagsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4482,6 +5941,37 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.devtools.artifactregistry.v1.DeleteTagRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_TAG))) + .addMethod( + getCreateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.CreateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule>(service, METHODID_CREATE_RULE))) + .addMethod( + getListRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.ListRulesRequest, + com.google.devtools.artifactregistry.v1.ListRulesResponse>( + service, METHODID_LIST_RULES))) + .addMethod( + getGetRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.GetRuleRequest, + com.google.devtools.artifactregistry.v1.Rule>(service, METHODID_GET_RULE))) + .addMethod( + getUpdateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.UpdateRuleRequest, + com.google.devtools.artifactregistry.v1.Rule>(service, METHODID_UPDATE_RULE))) + .addMethod( + getDeleteRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.DeleteRuleRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_RULE))) .addMethod( getSetIamPolicyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4527,6 +6017,39 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest, com.google.devtools.artifactregistry.v1.VPCSCConfig>( service, METHODID_UPDATE_VPCSCCONFIG))) + .addMethod( + getUpdatePackageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.UpdatePackageRequest, + com.google.devtools.artifactregistry.v1.Package>( + service, METHODID_UPDATE_PACKAGE))) + .addMethod( + getListAttachmentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse>( + service, METHODID_LIST_ATTACHMENTS))) + .addMethod( + getGetAttachmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.GetAttachmentRequest, + com.google.devtools.artifactregistry.v1.Attachment>( + service, METHODID_GET_ATTACHMENT))) + .addMethod( + getCreateAttachmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ATTACHMENT))) + .addMethod( + getDeleteAttachmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ATTACHMENT))) .build(); } @@ -4600,13 +6123,21 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetVersionMethod()) .addMethod(getDeleteVersionMethod()) .addMethod(getBatchDeleteVersionsMethod()) + .addMethod(getUpdateVersionMethod()) .addMethod(getListFilesMethod()) .addMethod(getGetFileMethod()) + .addMethod(getDeleteFileMethod()) + .addMethod(getUpdateFileMethod()) .addMethod(getListTagsMethod()) .addMethod(getGetTagMethod()) .addMethod(getCreateTagMethod()) .addMethod(getUpdateTagMethod()) .addMethod(getDeleteTagMethod()) + .addMethod(getCreateRuleMethod()) + .addMethod(getListRulesMethod()) + .addMethod(getGetRuleMethod()) + .addMethod(getUpdateRuleMethod()) + .addMethod(getDeleteRuleMethod()) .addMethod(getSetIamPolicyMethod()) .addMethod(getGetIamPolicyMethod()) .addMethod(getTestIamPermissionsMethod()) @@ -4614,6 +6145,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateProjectSettingsMethod()) .addMethod(getGetVPCSCConfigMethod()) .addMethod(getUpdateVPCSCConfigMethod()) + .addMethod(getUpdatePackageMethod()) + .addMethod(getListAttachmentsMethod()) + .addMethod(getGetAttachmentMethod()) + .addMethod(getCreateAttachmentMethod()) + .addMethod(getDeleteAttachmentMethod()) .build(); } } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Attachment.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Attachment.java new file mode 100644 index 000000000000..f88910a4b60b --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Attachment.java @@ -0,0 +1,2704 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * An Attachment refers to additional metadata that can be attached to
+ * artifacts in Artifact Registry. An attachment consists of one or more files.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Attachment} + */ +public final class Attachment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.Attachment) + AttachmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attachment.newBuilder() to construct. + private Attachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Attachment() { + name_ = ""; + target_ = ""; + type_ = ""; + attachmentNamespace_ = ""; + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ociVersionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Attachment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Attachment.class, + com.google.devtools.artifactregistry.v1.Attachment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the attachment. E.g.
+   * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the attachment. E.g.
+   * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + /** + * + * + *
+   * Required. The target the attachment is for, can be a Version, Package or
+   * Repository. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The target the attachment is for, can be a Version, Package or
+   * Repository. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + * + * + *
+   * Type of attachment.
+   * E.g. `application/vnd.spdx+json`
+   * 
+ * + * string type = 3; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Type of attachment.
+   * E.g. `application/vnd.spdx+json`
+   * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTACHMENT_NAMESPACE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object attachmentNamespace_ = ""; + /** + * + * + *
+   * The namespace this attachment belongs to.
+   * E.g. If an attachment is created by artifact analysis, namespace is set
+   * to `artifactanalysis.googleapis.com`.
+   * 
+ * + * string attachment_namespace = 4; + * + * @return The attachmentNamespace. + */ + @java.lang.Override + public java.lang.String getAttachmentNamespace() { + java.lang.Object ref = attachmentNamespace_; + 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(); + attachmentNamespace_ = s; + return s; + } + } + /** + * + * + *
+   * The namespace this attachment belongs to.
+   * E.g. If an attachment is created by artifact analysis, namespace is set
+   * to `artifactanalysis.googleapis.com`.
+   * 
+ * + * string attachment_namespace = 4; + * + * @return The bytes for attachmentNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttachmentNamespaceBytes() { + java.lang.Object ref = attachmentNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachmentNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList files_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + public static final int OCI_VERSION_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociVersionName_ = ""; + /** + * + * + *
+   * Output only. The name of the OCI version that this attachment created. Only
+   * populated for Docker attachments. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociVersionName. + */ + @java.lang.Override + public java.lang.String getOciVersionName() { + java.lang.Object ref = ociVersionName_; + 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(); + ociVersionName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the OCI version that this attachment created. Only
+   * populated for Docker attachments. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociVersionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciVersionNameBytes() { + java.lang.Object ref = ociVersionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociVersionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachmentNamespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attachmentNamespace_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + for (int i = 0; i < files_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, files_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociVersionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ociVersionName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachmentNamespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attachmentNamespace_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociVersionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ociVersionName_); + } + 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.devtools.artifactregistry.v1.Attachment)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.Attachment other = + (com.google.devtools.artifactregistry.v1.Attachment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (!getType().equals(other.getType())) return false; + if (!getAttachmentNamespace().equals(other.getAttachmentNamespace())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getFilesList().equals(other.getFilesList())) return false; + if (!getOciVersionName().equals(other.getOciVersionName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + ATTACHMENT_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentNamespace().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + OCI_VERSION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOciVersionName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Attachment 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.devtools.artifactregistry.v1.Attachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Attachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.Attachment 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An Attachment refers to additional metadata that can be attached to
+   * artifacts in Artifact Registry. An attachment consists of one or more files.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Attachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.Attachment) + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Attachment.class, + com.google.devtools.artifactregistry.v1.Attachment.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.Attachment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + target_ = ""; + type_ = ""; + attachmentNamespace_ = ""; + internalGetMutableAnnotations().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ociVersionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Attachment getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Attachment build() { + com.google.devtools.artifactregistry.v1.Attachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Attachment buildPartial() { + com.google.devtools.artifactregistry.v1.Attachment result = + new com.google.devtools.artifactregistry.v1.Attachment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.Attachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.attachmentNamespace_ = attachmentNamespace_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + files_.makeImmutable(); + result.files_ = files_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ociVersionName_ = ociVersionName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.Attachment) { + return mergeFrom((com.google.devtools.artifactregistry.v1.Attachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.Attachment other) { + if (other == com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAttachmentNamespace().isEmpty()) { + attachmentNamespace_ = other.attachmentNamespace_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ |= 0x00000080; + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + if (!other.getOciVersionName().isEmpty()) { + ociVersionName_ = other.ociVersionName_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + attachmentNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilesIsMutable(); + files_.add(s); + break; + } // case 66 + case 74: + { + ociVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the attachment. E.g.
+     * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the attachment. E.g.
+     * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the attachment. E.g.
+     * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the attachment. E.g.
+     * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the attachment. E.g.
+     * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + /** + * + * + *
+     * Required. The target the attachment is for, can be a Version, Package or
+     * Repository. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The target the attachment is for, can be a Version, Package or
+     * Repository. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The target the attachment is for, can be a Version, Package or
+     * Repository. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The target the attachment is for, can be a Version, Package or
+     * Repository. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The target the attachment is for, can be a Version, Package or
+     * Repository. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Type of attachment.
+     * E.g. `application/vnd.spdx+json`
+     * 
+ * + * string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of attachment.
+     * E.g. `application/vnd.spdx+json`
+     * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of attachment.
+     * E.g. `application/vnd.spdx+json`
+     * 
+ * + * string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of attachment.
+     * E.g. `application/vnd.spdx+json`
+     * 
+ * + * string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of attachment.
+     * E.g. `application/vnd.spdx+json`
+     * 
+ * + * string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object attachmentNamespace_ = ""; + /** + * + * + *
+     * The namespace this attachment belongs to.
+     * E.g. If an attachment is created by artifact analysis, namespace is set
+     * to `artifactanalysis.googleapis.com`.
+     * 
+ * + * string attachment_namespace = 4; + * + * @return The attachmentNamespace. + */ + public java.lang.String getAttachmentNamespace() { + java.lang.Object ref = attachmentNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachmentNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The namespace this attachment belongs to.
+     * E.g. If an attachment is created by artifact analysis, namespace is set
+     * to `artifactanalysis.googleapis.com`.
+     * 
+ * + * string attachment_namespace = 4; + * + * @return The bytes for attachmentNamespace. + */ + public com.google.protobuf.ByteString getAttachmentNamespaceBytes() { + java.lang.Object ref = attachmentNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachmentNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The namespace this attachment belongs to.
+     * E.g. If an attachment is created by artifact analysis, namespace is set
+     * to `artifactanalysis.googleapis.com`.
+     * 
+ * + * string attachment_namespace = 4; + * + * @param value The attachmentNamespace to set. + * @return This builder for chaining. + */ + public Builder setAttachmentNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attachmentNamespace_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace this attachment belongs to.
+     * E.g. If an attachment is created by artifact analysis, namespace is set
+     * to `artifactanalysis.googleapis.com`.
+     * 
+ * + * string attachment_namespace = 4; + * + * @return This builder for chaining. + */ + public Builder clearAttachmentNamespace() { + attachmentNamespace_ = getDefaultInstance().getAttachmentNamespace(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace this attachment belongs to.
+     * E.g. If an attachment is created by artifact analysis, namespace is set
+     * to `artifactanalysis.googleapis.com`.
+     * 
+ * + * string attachment_namespace = 4; + * + * @param value The bytes for attachmentNamespace to set. + * @return This builder for chaining. + */ + public Builder setAttachmentNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attachmentNamespace_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Artifact Registry. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The time when the attachment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The time when the attachment was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList files_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFilesIsMutable() { + if (!files_.isModifiable()) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + files_.makeImmutable(); + return files_; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The files to set. + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The files to add. + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The files to add. + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The files that belong to this attachment.
+     * If the file ID part contains slashes, they are escaped. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+     * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the files to add. + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object ociVersionName_ = ""; + /** + * + * + *
+     * Output only. The name of the OCI version that this attachment created. Only
+     * populated for Docker attachments. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociVersionName. + */ + public java.lang.String getOciVersionName() { + java.lang.Object ref = ociVersionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociVersionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the OCI version that this attachment created. Only
+     * populated for Docker attachments. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociVersionName. + */ + public com.google.protobuf.ByteString getOciVersionNameBytes() { + java.lang.Object ref = ociVersionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociVersionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the OCI version that this attachment created. Only
+     * populated for Docker attachments. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociVersionName to set. + * @return This builder for chaining. + */ + public Builder setOciVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociVersionName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the OCI version that this attachment created. Only
+     * populated for Docker attachments. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciVersionName() { + ociVersionName_ = getDefaultInstance().getOciVersionName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the OCI version that this attachment created. Only
+     * populated for Docker attachments. E.g.
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+     * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociVersionName to set. + * @return This builder for chaining. + */ + public Builder setOciVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociVersionName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.Attachment) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.Attachment) + private static final com.google.devtools.artifactregistry.v1.Attachment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.Attachment(); + } + + public static com.google.devtools.artifactregistry.v1.Attachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attachment 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.devtools.artifactregistry.v1.Attachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java new file mode 100644 index 000000000000..07fa2c35486b --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AttachmentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_ATTACHMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String attachment; + + @Deprecated + protected AttachmentName() { + project = null; + location = null; + repository = null; + attachment = null; + } + + private AttachmentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + attachment = Preconditions.checkNotNull(builder.getAttachment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getAttachment() { + return attachment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AttachmentName of( + String project, String location, String repository, String attachment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setAttachment(attachment) + .build(); + } + + public static String format( + String project, String location, String repository, String attachment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setAttachment(attachment) + .build() + .toString(); + } + + public static AttachmentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_ATTACHMENT.validatedMatch( + formattedString, "AttachmentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("attachment")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AttachmentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_ATTACHMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (attachment != null) { + fieldMapBuilder.put("attachment", attachment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_ATTACHMENT.instantiate( + "project", + project, + "location", + location, + "repository", + repository, + "attachment", + attachment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AttachmentName that = ((AttachmentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.attachment, that.attachment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(repository); + h *= 1000003; + h ^= Objects.hashCode(attachment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}. + */ + public static class Builder { + private String project; + private String location; + private String repository; + private String attachment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getAttachment() { + return attachment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setAttachment(String attachment) { + this.attachment = attachment; + return this; + } + + private Builder(AttachmentName attachmentName) { + this.project = attachmentName.project; + this.location = attachmentName.location; + this.repository = attachmentName.repository; + this.attachment = attachmentName.attachment; + } + + public AttachmentName build() { + return new AttachmentName(this); + } + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentOrBuilder.java new file mode 100644 index 000000000000..0d08bf377584 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentOrBuilder.java @@ -0,0 +1,388 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface AttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.Attachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the attachment. E.g.
+   * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the attachment. E.g.
+   * `projects/p1/locations/us/repositories/repo/attachments/sbom`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The target the attachment is for, can be a Version, Package or
+   * Repository. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The target. + */ + java.lang.String getTarget(); + /** + * + * + *
+   * Required. The target the attachment is for, can be a Version, Package or
+   * Repository. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Type of attachment.
+   * E.g. `application/vnd.spdx+json`
+   * 
+ * + * string type = 3; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Type of attachment.
+   * E.g. `application/vnd.spdx+json`
+   * 
+ * + * string type = 3; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * The namespace this attachment belongs to.
+   * E.g. If an attachment is created by artifact analysis, namespace is set
+   * to `artifactanalysis.googleapis.com`.
+   * 
+ * + * string attachment_namespace = 4; + * + * @return The attachmentNamespace. + */ + java.lang.String getAttachmentNamespace(); + /** + * + * + *
+   * The namespace this attachment belongs to.
+   * E.g. If an attachment is created by artifact analysis, namespace is set
+   * to `artifactanalysis.googleapis.com`.
+   * 
+ * + * string attachment_namespace = 4; + * + * @return The bytes for attachmentNamespace. + */ + com.google.protobuf.ByteString getAttachmentNamespaceBytes(); + + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Artifact Registry. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time when the attachment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time when the attachment was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of files. + */ + int getFilesCount(); + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + /** + * + * + *
+   * Required. The files that belong to this attachment.
+   * If the file ID part contains slashes, they are escaped. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
+   * 
+ * + * + * repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + + /** + * + * + *
+   * Output only. The name of the OCI version that this attachment created. Only
+   * populated for Docker attachments. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociVersionName. + */ + java.lang.String getOciVersionName(); + /** + * + * + *
+   * Output only. The name of the OCI version that this attachment created. Only
+   * populated for Docker attachments. E.g.
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
+   * 
+ * + * string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociVersionName. + */ + com.google.protobuf.ByteString getOciVersionNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentProto.java new file mode 100644 index 000000000000..a73ae853f572 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentProto.java @@ -0,0 +1,199 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public final class AttachmentProto { + private AttachmentProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Attachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/devtools/artifactregistry/v1/at" + + "tachment.proto\022#google.devtools.artifact" + + "registry.v1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032\037google/" + + "protobuf/timestamp.proto\"\302\004\n\nAttachment\022" + + "\014\n\004name\030\001 \001(\t\022\023\n\006target\030\002 \001(\tB\003\340A\002\022\014\n\004ty" + + "pe\030\003 \001(\t\022\034\n\024attachment_namespace\030\004 \001(\t\022Z" + + "\n\013annotations\030\005 \003(\0132@.google.devtools.ar" + + "tifactregistry.v1.Attachment.Annotations" + + "EntryB\003\340A\001\0224\n\013create_time\030\006 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022;" + + "\n\005files\030\010 \003(\tB,\340A\002\372A&\n$artifactregistry." + + "googleapis.com/File\022\035\n\020oci_version_name\030" + + "\t \001(\tB\003\340A\003\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\214\001\352A\210\001\n*artifactr" + + "egistry.googleapis.com/Attachment\022Zproje" + + "cts/{project}/locations/{location}/repos" + + "itories/{repository}/attachments/{attach" + + "ment}\"\230\001\n\026ListAttachmentsRequest\022B\n\006pare" + + "nt\030\001 \001(\tB2\340A\002\372A,\022*artifactregistry.googl" + + "eapis.com/Attachment\022\023\n\006filter\030\002 \001(\tB\003\340A" + + "\001\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" + + "\"x\n\027ListAttachmentsResponse\022D\n\013attachmen" + + "ts\030\001 \003(\0132/.google.devtools.artifactregis" + + "try.v1.Attachment\022\027\n\017next_page_token\030\002 \001" + + "(\t\"X\n\024GetAttachmentRequest\022@\n\004name\030\001 \001(\t" + + "B2\340A\002\372A,\n*artifactregistry.googleapis.co" + + "m/Attachment\"\303\001\n\027CreateAttachmentRequest" + + "\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*artifactregist" + + "ry.googleapis.com/Attachment\022\032\n\rattachme" + + "nt_id\030\002 \001(\tB\003\340A\002\022H\n\nattachment\030\003 \001(\0132/.g" + + "oogle.devtools.artifactregistry.v1.Attac" + + "hmentB\003\340A\002\"[\n\027DeleteAttachmentRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n*artifactregistry.go" + + "ogleapis.com/AttachmentB\372\001\n\'com.google.d" + + "evtools.artifactregistry.v1B\017AttachmentP" + + "rotoP\001ZPcloud.google.com/go/artifactregi" + + "stry/apiv1/artifactregistrypb;artifactre" + + "gistrypb\252\002 Google.Cloud.ArtifactRegistry" + + ".V1\312\002 Google\\Cloud\\ArtifactRegistry\\V1\352\002" + + "#Google::Cloud::ArtifactRegistry::V1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_devtools_artifactregistry_v1_Attachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor, + new java.lang.String[] { + "Name", + "Target", + "Type", + "AttachmentNamespace", + "Annotations", + "CreateTime", + "UpdateTime", + "Files", + "OciVersionName", + }); + internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_Attachment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Attachment_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor, + new java.lang.String[] { + "Attachments", "NextPageToken", + }); + internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor, + new java.lang.String[] { + "Parent", "AttachmentId", "Attachment", + }); + internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequest.java new file mode 100644 index 000000000000..ac018fb73d67 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequest.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to create a new attachment.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.CreateAttachmentRequest} + */ +public final class CreateAttachmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.CreateAttachmentRequest) + CreateAttachmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAttachmentRequest.newBuilder() to construct. + private CreateAttachmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAttachmentRequest() { + parent_ = ""; + attachmentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAttachmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent resource where the attachment will be
+   * created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parent resource where the attachment will be
+   * created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTACHMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object attachmentId_ = ""; + /** + * + * + *
+   * Required. The attachment id to use for this attachment.
+   * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachmentId. + */ + @java.lang.Override + public java.lang.String getAttachmentId() { + java.lang.Object ref = attachmentId_; + 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(); + attachmentId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The attachment id to use for this attachment.
+   * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttachmentIdBytes() { + java.lang.Object ref = attachmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTACHMENT_FIELD_NUMBER = 3; + private com.google.devtools.artifactregistry.v1.Attachment attachment_; + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachment field is set. + */ + @java.lang.Override + public boolean hasAttachment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachment. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Attachment getAttachment() { + return attachment_ == null + ? com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance() + : attachment_; + } + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentOrBuilder() { + return attachment_ == null + ? com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance() + : attachment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attachmentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAttachment()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attachmentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttachment()); + } + 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.devtools.artifactregistry.v1.CreateAttachmentRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest other = + (com.google.devtools.artifactregistry.v1.CreateAttachmentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAttachmentId().equals(other.getAttachmentId())) return false; + if (hasAttachment() != other.hasAttachment()) return false; + if (hasAttachment()) { + if (!getAttachment().equals(other.getAttachment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ATTACHMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentId().hashCode(); + if (hasAttachment()) { + hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getAttachment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest 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.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.CreateAttachmentRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to create a new attachment.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.CreateAttachmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.CreateAttachmentRequest) + com.google.devtools.artifactregistry.v1.CreateAttachmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAttachmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + attachmentId_ = ""; + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_CreateAttachmentRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateAttachmentRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateAttachmentRequest build() { + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateAttachmentRequest buildPartial() { + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest result = + new com.google.devtools.artifactregistry.v1.CreateAttachmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attachmentId_ = attachmentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.attachment_ = attachmentBuilder_ == null ? attachment_ : attachmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.CreateAttachmentRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.CreateAttachmentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.CreateAttachmentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAttachmentId().isEmpty()) { + attachmentId_ = other.attachmentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAttachment()) { + mergeAttachment(other.getAttachment()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + attachmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAttachmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent resource where the attachment will be
+     * created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource where the attachment will be
+     * created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource where the attachment will be
+     * created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource where the attachment will be
+     * created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource where the attachment will be
+     * created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object attachmentId_ = ""; + /** + * + * + *
+     * Required. The attachment id to use for this attachment.
+     * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachmentId. + */ + public java.lang.String getAttachmentId() { + java.lang.Object ref = attachmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The attachment id to use for this attachment.
+     * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachmentId. + */ + public com.google.protobuf.ByteString getAttachmentIdBytes() { + java.lang.Object ref = attachmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The attachment id to use for this attachment.
+     * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The attachmentId to set. + * @return This builder for chaining. + */ + public Builder setAttachmentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attachmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attachment id to use for this attachment.
+     * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAttachmentId() { + attachmentId_ = getDefaultInstance().getAttachmentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attachment id to use for this attachment.
+     * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for attachmentId to set. + * @return This builder for chaining. + */ + public Builder setAttachmentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attachmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.devtools.artifactregistry.v1.Attachment attachment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder> + attachmentBuilder_; + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachment field is set. + */ + public boolean hasAttachment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachment. + */ + public com.google.devtools.artifactregistry.v1.Attachment getAttachment() { + if (attachmentBuilder_ == null) { + return attachment_ == null + ? com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance() + : attachment_; + } else { + return attachmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachment(com.google.devtools.artifactregistry.v1.Attachment value) { + if (attachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attachment_ = value; + } else { + attachmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachment( + com.google.devtools.artifactregistry.v1.Attachment.Builder builderForValue) { + if (attachmentBuilder_ == null) { + attachment_ = builderForValue.build(); + } else { + attachmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAttachment(com.google.devtools.artifactregistry.v1.Attachment value) { + if (attachmentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && attachment_ != null + && attachment_ + != com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance()) { + getAttachmentBuilder().mergeFrom(value); + } else { + attachment_ = value; + } + } else { + attachmentBuilder_.mergeFrom(value); + } + if (attachment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAttachment() { + bitField0_ = (bitField0_ & ~0x00000004); + attachment_ = null; + if (attachmentBuilder_ != null) { + attachmentBuilder_.dispose(); + attachmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.Attachment.Builder getAttachmentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAttachmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentOrBuilder() { + if (attachmentBuilder_ != null) { + return attachmentBuilder_.getMessageOrBuilder(); + } else { + return attachment_ == null + ? com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance() + : attachment_; + } + } + /** + * + * + *
+     * Required. The attachment to be created.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder> + getAttachmentFieldBuilder() { + if (attachmentBuilder_ == null) { + attachmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder>( + getAttachment(), getParentForChildren(), isClean()); + attachment_ = null; + } + return attachmentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.CreateAttachmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.CreateAttachmentRequest) + private static final com.google.devtools.artifactregistry.v1.CreateAttachmentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.CreateAttachmentRequest(); + } + + public static com.google.devtools.artifactregistry.v1.CreateAttachmentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttachmentRequest 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.devtools.artifactregistry.v1.CreateAttachmentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequestOrBuilder.java new file mode 100644 index 000000000000..841c9f19643a --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateAttachmentRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface CreateAttachmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.CreateAttachmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent resource where the attachment will be
+   * created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent resource where the attachment will be
+   * created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The attachment id to use for this attachment.
+   * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachmentId. + */ + java.lang.String getAttachmentId(); + /** + * + * + *
+   * Required. The attachment id to use for this attachment.
+   * 
+ * + * string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachmentId. + */ + com.google.protobuf.ByteString getAttachmentIdBytes(); + + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachment field is set. + */ + boolean hasAttachment(); + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachment. + */ + com.google.devtools.artifactregistry.v1.Attachment getAttachment(); + /** + * + * + *
+   * Required. The attachment to be created.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequest.java new file mode 100644 index 000000000000..b9f9ef207a99 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequest.java @@ -0,0 +1,1101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to create a new rule.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.CreateRuleRequest} + */ +public final class CreateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.CreateRuleRequest) + CreateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRuleRequest.newBuilder() to construct. + private CreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRuleRequest() { + parent_ = ""; + ruleId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.CreateRuleRequest.class, + com.google.devtools.artifactregistry.v1.CreateRuleRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent resource where the rule will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parent resource where the rule will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ruleId_ = ""; + /** + * + * + *
+   * The rule id to use for this repository.
+   * 
+ * + * string rule_id = 2; + * + * @return The ruleId. + */ + @java.lang.Override + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + 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(); + ruleId_ = s; + return s; + } + } + /** + * + * + *
+   * The rule id to use for this repository.
+   * 
+ * + * string rule_id = 2; + * + * @return The bytes for ruleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 3; + private com.google.devtools.artifactregistry.v1.Rule rule_; + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return Whether the rule field is set. + */ + @java.lang.Override + public boolean hasRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return The rule. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule getRule() { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder() { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ruleId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRule()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRule()); + } + 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.devtools.artifactregistry.v1.CreateRuleRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.CreateRuleRequest other = + (com.google.devtools.artifactregistry.v1.CreateRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRuleId().equals(other.getRuleId())) return false; + if (hasRule() != other.hasRule()) return false; + if (hasRule()) { + if (!getRule().equals(other.getRule())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRuleId().hashCode(); + if (hasRule()) { + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest 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.devtools.artifactregistry.v1.CreateRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.CreateRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to create a new rule.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.CreateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.CreateRuleRequest) + com.google.devtools.artifactregistry.v1.CreateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.CreateRuleRequest.class, + com.google.devtools.artifactregistry.v1.CreateRuleRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.CreateRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRuleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + ruleId_ = ""; + rule_ = null; + if (ruleBuilder_ != null) { + ruleBuilder_.dispose(); + ruleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateRuleRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.CreateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateRuleRequest build() { + com.google.devtools.artifactregistry.v1.CreateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.CreateRuleRequest buildPartial() { + com.google.devtools.artifactregistry.v1.CreateRuleRequest result = + new com.google.devtools.artifactregistry.v1.CreateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.CreateRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleId_ = ruleId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.CreateRuleRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.CreateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.CreateRuleRequest other) { + if (other == com.google.devtools.artifactregistry.v1.CreateRuleRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRuleId().isEmpty()) { + ruleId_ = other.ruleId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRule()) { + mergeRule(other.getRule()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ruleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent resource where the rule will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource where the rule will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource where the rule will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource where the rule will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource where the rule will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ruleId_ = ""; + /** + * + * + *
+     * The rule id to use for this repository.
+     * 
+ * + * string rule_id = 2; + * + * @return The ruleId. + */ + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The rule id to use for this repository.
+     * 
+ * + * string rule_id = 2; + * + * @return The bytes for ruleId. + */ + public com.google.protobuf.ByteString getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The rule id to use for this repository.
+     * 
+ * + * string rule_id = 2; + * + * @param value The ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ruleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The rule id to use for this repository.
+     * 
+ * + * string rule_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRuleId() { + ruleId_ = getDefaultInstance().getRuleId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The rule id to use for this repository.
+     * 
+ * + * string rule_id = 2; + * + * @param value The bytes for ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.devtools.artifactregistry.v1.Rule rule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + ruleBuilder_; + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return Whether the rule field is set. + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return The rule. + */ + public com.google.devtools.artifactregistry.v1.Rule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public Builder setRule(com.google.devtools.artifactregistry.v1.Rule value) { + if (ruleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + } else { + ruleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public Builder setRule(com.google.devtools.artifactregistry.v1.Rule.Builder builderForValue) { + if (ruleBuilder_ == null) { + rule_ = builderForValue.build(); + } else { + ruleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public Builder mergeRule(com.google.devtools.artifactregistry.v1.Rule value) { + if (ruleBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rule_ != null + && rule_ != com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance()) { + getRuleBuilder().mergeFrom(value); + } else { + rule_ = value; + } + } else { + ruleBuilder_.mergeFrom(value); + } + if (rule_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public Builder clearRule() { + bitField0_ = (bitField0_ & ~0x00000004); + rule_ = null; + if (ruleBuilder_ != null) { + ruleBuilder_.dispose(); + ruleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public com.google.devtools.artifactregistry.v1.Rule.Builder getRuleBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + } + /** + * + * + *
+     * The rule to be created.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + getRuleFieldBuilder() { + if (ruleBuilder_ == null) { + ruleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder>( + getRule(), getParentForChildren(), isClean()); + rule_ = null; + } + return ruleBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.CreateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.CreateRuleRequest) + private static final com.google.devtools.artifactregistry.v1.CreateRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.CreateRuleRequest(); + } + + public static com.google.devtools.artifactregistry.v1.CreateRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRuleRequest 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.devtools.artifactregistry.v1.CreateRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..fd8bb8bf4682 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/CreateRuleRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface CreateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.CreateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent resource where the rule will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent resource where the rule will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The rule id to use for this repository.
+   * 
+ * + * string rule_id = 2; + * + * @return The ruleId. + */ + java.lang.String getRuleId(); + /** + * + * + *
+   * The rule id to use for this repository.
+   * 
+ * + * string rule_id = 2; + * + * @return The bytes for ruleId. + */ + com.google.protobuf.ByteString getRuleIdBytes(); + + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return Whether the rule field is set. + */ + boolean hasRule(); + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + * + * @return The rule. + */ + com.google.devtools.artifactregistry.v1.Rule getRule(); + /** + * + * + *
+   * The rule to be created.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 3; + */ + com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequest.java new file mode 100644 index 000000000000..1d7537cbf198 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequest.java @@ -0,0 +1,647 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to delete an attachment.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteAttachmentRequest} + */ +public final class DeleteAttachmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.DeleteAttachmentRequest) + DeleteAttachmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAttachmentRequest.newBuilder() to construct. + private DeleteAttachmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAttachmentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAttachmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the attachment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the attachment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest other = + (com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest 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.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.DeleteAttachmentRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to delete an attachment.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteAttachmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.DeleteAttachmentRequest) + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_DeleteAttachmentRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest build() { + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest buildPartial() { + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest result = + new com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the attachment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the attachment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the attachment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attachment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attachment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.DeleteAttachmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.DeleteAttachmentRequest) + private static final com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest(); + } + + public static com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttachmentRequest 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.devtools.artifactregistry.v1.DeleteAttachmentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequestOrBuilder.java new file mode 100644 index 000000000000..ea96e799e3a4 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteAttachmentRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface DeleteAttachmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.DeleteAttachmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the attachment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the attachment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequest.java new file mode 100644 index 000000000000..e5575d7b7b52 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/file.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to delete a file.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteFileRequest} + */ +public final class DeleteFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.DeleteFileRequest) + DeleteFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFileRequest.newBuilder() to construct. + private DeleteFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteFileRequest.class, + com.google.devtools.artifactregistry.v1.DeleteFileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the file to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the file to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.DeleteFileRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.DeleteFileRequest other = + (com.google.devtools.artifactregistry.v1.DeleteFileRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest 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.devtools.artifactregistry.v1.DeleteFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.DeleteFileRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to delete a file.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.DeleteFileRequest) + com.google.devtools.artifactregistry.v1.DeleteFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteFileRequest.class, + com.google.devtools.artifactregistry.v1.DeleteFileRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.DeleteFileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteFileRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.DeleteFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteFileRequest build() { + com.google.devtools.artifactregistry.v1.DeleteFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteFileRequest buildPartial() { + com.google.devtools.artifactregistry.v1.DeleteFileRequest result = + new com.google.devtools.artifactregistry.v1.DeleteFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.DeleteFileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.DeleteFileRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.DeleteFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.DeleteFileRequest other) { + if (other == com.google.devtools.artifactregistry.v1.DeleteFileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the file to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the file to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the file to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the file to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the file to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.DeleteFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.DeleteFileRequest) + private static final com.google.devtools.artifactregistry.v1.DeleteFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.DeleteFileRequest(); + } + + public static com.google.devtools.artifactregistry.v1.DeleteFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFileRequest 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.devtools.artifactregistry.v1.DeleteFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequestOrBuilder.java new file mode 100644 index 000000000000..98c455dab3ee --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteFileRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/file.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface DeleteFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.DeleteFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the file to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the file to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequest.java new file mode 100644 index 000000000000..8157e06356f8 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to delete a rule.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteRuleRequest} + */ +public final class DeleteRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.DeleteRuleRequest) + DeleteRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRuleRequest.newBuilder() to construct. + private DeleteRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest.class, + com.google.devtools.artifactregistry.v1.DeleteRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the rule to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the rule to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.DeleteRuleRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.DeleteRuleRequest other = + (com.google.devtools.artifactregistry.v1.DeleteRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest 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.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.DeleteRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to delete a rule.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DeleteRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.DeleteRuleRequest) + com.google.devtools.artifactregistry.v1.DeleteRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest.class, + com.google.devtools.artifactregistry.v1.DeleteRuleRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.DeleteRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteRuleRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.DeleteRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteRuleRequest build() { + com.google.devtools.artifactregistry.v1.DeleteRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.DeleteRuleRequest buildPartial() { + com.google.devtools.artifactregistry.v1.DeleteRuleRequest result = + new com.google.devtools.artifactregistry.v1.DeleteRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.DeleteRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.DeleteRuleRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.DeleteRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.DeleteRuleRequest other) { + if (other == com.google.devtools.artifactregistry.v1.DeleteRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the rule to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the rule to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the rule to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the rule to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the rule to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.DeleteRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.DeleteRuleRequest) + private static final com.google.devtools.artifactregistry.v1.DeleteRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.DeleteRuleRequest(); + } + + public static com.google.devtools.artifactregistry.v1.DeleteRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRuleRequest 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.devtools.artifactregistry.v1.DeleteRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequestOrBuilder.java new file mode 100644 index 000000000000..5e89ee3866e6 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DeleteRuleRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface DeleteRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.DeleteRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the rule to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the rule to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/File.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/File.java index c8faed7ee3cc..b7bf957a8267 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/File.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/File.java @@ -55,6 +55,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_File_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -75,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The name of the file, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+   * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
    * If the file ID part contains slashes, they are escaped.
    * 
* @@ -100,7 +112,7 @@ public java.lang.String getName() { * *
    * The name of the file, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+   * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
    * If the file ID part contains slashes, they are escaped.
    * 
* @@ -411,6 +423,113 @@ public com.google.protobuf.TimestampOrBuilder getFetchTimeOrBuilder() { return fetchTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : fetchTime_; } + public static final int ANNOTATIONS_FIELD_NUMBER = 9; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -446,6 +565,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getFetchTime()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 9); getUnknownFields().writeTo(output); } @@ -476,6 +597,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFetchTime()); } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, annotations__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -508,6 +639,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFetchTime()) { if (!getFetchTime().equals(other.getFetchTime())) return false; } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -541,6 +673,10 @@ public int hashCode() { hash = (37 * hash) + FETCH_TIME_FIELD_NUMBER; hash = (53 * hash) + getFetchTime().hashCode(); } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -659,6 +795,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_File_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -717,6 +875,7 @@ public Builder clear() { fetchTimeBuilder_.dispose(); fetchTimeBuilder_ = null; } + internalGetMutableAnnotations().clear(); return this; } @@ -788,6 +947,10 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.File result) result.fetchTime_ = fetchTimeBuilder_ == null ? fetchTime_ : fetchTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -885,6 +1048,8 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.File other) { if (other.hasFetchTime()) { mergeFetchTime(other.getFetchTime()); } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -960,6 +1125,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 74: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -985,7 +1162,7 @@ public Builder mergeFrom( * *
      * The name of the file, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+     * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
      * If the file ID part contains slashes, they are escaped.
      * 
* @@ -1009,7 +1186,7 @@ public java.lang.String getName() { * *
      * The name of the file, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+     * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
      * If the file ID part contains slashes, they are escaped.
      * 
* @@ -1033,7 +1210,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The name of the file, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+     * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
      * If the file ID part contains slashes, they are escaped.
      * 
* @@ -1056,7 +1233,7 @@ public Builder setName(java.lang.String value) { * *
      * The name of the file, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+     * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
      * If the file ID part contains slashes, they are escaped.
      * 
* @@ -1075,7 +1252,7 @@ public Builder clearName() { * *
      * The name of the file, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+     * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
      * If the file ID part contains slashes, they are escaped.
      * 
* @@ -2208,6 +2385,179 @@ public com.google.protobuf.TimestampOrBuilder getFetchTimeOrBuilder() { return fetchTimeBuilder_; } + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000080; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileOrBuilder.java index 2821164bd811..ee745ae73099 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileOrBuilder.java @@ -29,7 +29,7 @@ public interface FileOrBuilder * *
    * The name of the file, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+   * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
    * If the file ID part contains slashes, they are escaped.
    * 
* @@ -43,7 +43,7 @@ public interface FileOrBuilder * *
    * The name of the file, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
+   * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
    * If the file ID part contains slashes, they are escaped.
    * 
* @@ -259,4 +259,67 @@ public interface FileOrBuilder * */ com.google.protobuf.TimestampOrBuilder getFetchTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java index 0edb0a1fa584..8228d1c6d972 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_File_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_ListFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_GetFileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_GetFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -60,37 +72,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n.google/devtools/artifactregistry/v1/fi" + "le.proto\022#google.devtools.artifactregist" + "ry.v1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\"\223\001\n\004Hash\022@\n\004type\030\001 \001(" - + "\01622.google.devtools.artifactregistry.v1." - + "Hash.HashType\022\r\n\005value\030\002 \001(\014\":\n\010HashType" - + "\022\031\n\025HASH_TYPE_UNSPECIFIED\020\000\022\n\n\006SHA256\020\001\022" - + "\007\n\003MD5\020\002\"\216\003\n\004File\022\014\n\004name\030\001 \001(\t\022\022\n\nsize_" - + "bytes\030\003 \001(\003\0229\n\006hashes\030\004 \003(\0132).google.dev" - + "tools.artifactregistry.v1.Hash\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.proto" - + "buf.TimestampB\003\340A\003\022\r\n\005owner\030\007 \001(\t\0223\n\nfet" - + "ch_time\030\010 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003:y\352Av\n$artifactregistry.googleapis" - + ".com/File\022Nprojects/{project}/locations/" - + "{location}/repositories/{repository}/fil" - + "es/{file}\"\231\001\n\020ListFilesRequest\022<\n\006parent" - + "\030\001 \001(\tB,\340A\002\372A&\022$artifactregistry.googlea" - + "pis.com/File\022\016\n\006filter\030\004 \001(\t\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\010order_by\030" - + "\005 \001(\t\"f\n\021ListFilesResponse\0228\n\005files\030\001 \003(" - + "\0132).google.devtools.artifactregistry.v1." - + "File\022\027\n\017next_page_token\030\002 \001(\t\"L\n\016GetFile" - + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$artifactr" - + "egistry.googleapis.com/FileB\364\001\n\'com.goog" - + "le.devtools.artifactregistry.v1B\tFilePro" - + "toP\001ZPcloud.google.com/go/artifactregist" - + "ry/apiv1/artifactregistrypb;artifactregi" - + "strypb\252\002 Google.Cloud.ArtifactRegistry.V" - + "1\312\002 Google\\Cloud\\ArtifactRegistry\\V1\352\002#G" - + "oogle::Cloud::ArtifactRegistry::V1b\006prot" - + "o3" + + "google/api/resource.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\"\223\001\n\004Hash\022@\n\004type\030\001 \001(\01622.go" + + "ogle.devtools.artifactregistry.v1.Hash.H" + + "ashType\022\r\n\005value\030\002 \001(\014\":\n\010HashType\022\031\n\025HA" + + "SH_TYPE_UNSPECIFIED\020\000\022\n\n\006SHA256\020\001\022\007\n\003MD5" + + "\020\002\"\230\004\n\004File\022\014\n\004name\030\001 \001(\t\022\022\n\nsize_bytes\030" + + "\003 \001(\003\0229\n\006hashes\030\004 \003(\0132).google.devtools." + + "artifactregistry.v1.Hash\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.Ti" + + "mestampB\003\340A\003\022\r\n\005owner\030\007 \001(\t\0223\n\nfetch_tim" + + "e\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022T\n\013annotations\030\t \003(\0132:.google.devtools." + + "artifactregistry.v1.File.AnnotationsEntr" + + "yB\003\340A\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:y\352Av\n$artifactregistr" + + "y.googleapis.com/File\022Nprojects/{project" + + "}/locations/{location}/repositories/{rep" + + "ository}/files/{file}\"\231\001\n\020ListFilesReque" + + "st\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$artifactregi" + + "stry.googleapis.com/File\022\016\n\006filter\030\004 \001(\t" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"f\n\021ListFilesResponse\0228" + + "\n\005files\030\001 \003(\0132).google.devtools.artifact" + + "registry.v1.File\022\027\n\017next_page_token\030\002 \001(" + + "\t\"L\n\016GetFileRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A" + + "&\n$artifactregistry.googleapis.com/File\"" + + "O\n\021DeleteFileRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372" + + "A&\n$artifactregistry.googleapis.com/File" + + "\"\207\001\n\021UpdateFileRequest\022<\n\004file\030\001 \001(\0132).g" + + "oogle.devtools.artifactregistry.v1.FileB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002B\364\001\n\'com.google.devtoo" + + "ls.artifactregistry.v1B\tFileProtoP\001ZPclo" + + "ud.google.com/go/artifactregistry/apiv1/" + + "artifactregistrypb;artifactregistrypb\252\002 " + + "Google.Cloud.ArtifactRegistry.V1\312\002 Googl" + + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cl" + + "oud::ArtifactRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,6 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_devtools_artifactregistry_v1_Hash_descriptor = @@ -114,7 +136,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_File_descriptor, new java.lang.String[] { - "Name", "SizeBytes", "Hashes", "CreateTime", "UpdateTime", "Owner", "FetchTime", + "Name", + "SizeBytes", + "Hashes", + "CreateTime", + "UpdateTime", + "Owner", + "FetchTime", + "Annotations", + }); + internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_File_descriptor.getNestedTypes().get(0); + internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_File_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_devtools_artifactregistry_v1_ListFilesRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -140,6 +177,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_DeleteFileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor, + new java.lang.String[] { + "File", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -149,6 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifact.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifact.java new file mode 100644 index 000000000000..a714faac3dc2 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifact.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/generic.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * GenericArtifact represents a generic artifact
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GenericArtifact} + */ +public final class GenericArtifact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.GenericArtifact) + GenericArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenericArtifact.newBuilder() to construct. + private GenericArtifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenericArtifact() { + name_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenericArtifact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.GenericProto + .internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.GenericProto + .internal_static_google_devtools_artifactregistry_v1_GenericArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GenericArtifact.class, + com.google.devtools.artifactregistry.v1.GenericArtifact.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Resource name of the generic artifact.
+   * project, location, repository, package_id and version_id
+   * create a unique generic artifact.
+   * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+   * genericArtifacts/package_id:version_id"
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the generic artifact.
+   * project, location, repository, package_id and version_id
+   * create a unique generic artifact.
+   * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+   * genericArtifacts/package_id:version_id"
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * The version of the generic artifact.
+   * 
+ * + * string version = 2; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the generic artifact.
+   * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.GenericArtifact)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.GenericArtifact other = + (com.google.devtools.artifactregistry.v1.GenericArtifact) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact 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.devtools.artifactregistry.v1.GenericArtifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.GenericArtifact 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GenericArtifact represents a generic artifact
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GenericArtifact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.GenericArtifact) + com.google.devtools.artifactregistry.v1.GenericArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.GenericProto + .internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.GenericProto + .internal_static_google_devtools_artifactregistry_v1_GenericArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GenericArtifact.class, + com.google.devtools.artifactregistry.v1.GenericArtifact.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.GenericArtifact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.GenericProto + .internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GenericArtifact getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.GenericArtifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GenericArtifact build() { + com.google.devtools.artifactregistry.v1.GenericArtifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GenericArtifact buildPartial() { + com.google.devtools.artifactregistry.v1.GenericArtifact result = + new com.google.devtools.artifactregistry.v1.GenericArtifact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.GenericArtifact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.GenericArtifact) { + return mergeFrom((com.google.devtools.artifactregistry.v1.GenericArtifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.GenericArtifact other) { + if (other == com.google.devtools.artifactregistry.v1.GenericArtifact.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Resource name of the generic artifact.
+     * project, location, repository, package_id and version_id
+     * create a unique generic artifact.
+     * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+     * genericArtifacts/package_id:version_id"
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the generic artifact.
+     * project, location, repository, package_id and version_id
+     * create a unique generic artifact.
+     * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+     * genericArtifacts/package_id:version_id"
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the generic artifact.
+     * project, location, repository, package_id and version_id
+     * create a unique generic artifact.
+     * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+     * genericArtifacts/package_id:version_id"
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the generic artifact.
+     * project, location, repository, package_id and version_id
+     * create a unique generic artifact.
+     * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+     * genericArtifacts/package_id:version_id"
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the generic artifact.
+     * project, location, repository, package_id and version_id
+     * create a unique generic artifact.
+     * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+     * genericArtifacts/package_id:version_id"
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version of the generic artifact.
+     * 
+ * + * string version = 2; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the generic artifact.
+     * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the generic artifact.
+     * 
+ * + * string version = 2; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the generic artifact.
+     * 
+ * + * string version = 2; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the generic artifact.
+     * 
+ * + * string version = 2; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The time when the Generic module is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The time when the Generic module is updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.GenericArtifact) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.GenericArtifact) + private static final com.google.devtools.artifactregistry.v1.GenericArtifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.GenericArtifact(); + } + + public static com.google.devtools.artifactregistry.v1.GenericArtifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenericArtifact 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.devtools.artifactregistry.v1.GenericArtifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifactOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifactOrBuilder.java new file mode 100644 index 000000000000..d67760d20b3e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericArtifactOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/generic.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface GenericArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.GenericArtifact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the generic artifact.
+   * project, location, repository, package_id and version_id
+   * create a unique generic artifact.
+   * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+   * genericArtifacts/package_id:version_id"
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name of the generic artifact.
+   * project, location, repository, package_id and version_id
+   * create a unique generic artifact.
+   * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
+   * genericArtifacts/package_id:version_id"
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The version of the generic artifact.
+   * 
+ * + * string version = 2; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version of the generic artifact.
+   * 
+ * + * string version = 2; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time when the Generic module is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time when the Generic module is updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericProto.java new file mode 100644 index 000000000000..01b772017eb1 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GenericProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/generic.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public final class GenericProto { + private GenericProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_GenericArtifact_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/devtools/artifactregistry/v1/ge" + + "neric.proto\022#google.devtools.artifactreg" + + "istry.v1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\273\002\n\017GenericArtifac" + + "t\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\0224\n\013crea" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003:\234\001\352A\230\001\n/artifactreg" + + "istry.googleapis.com/GenericArtifact\022epr" + + "ojects/{project}/locations/{location}/re" + + "positories/{repository}/genericArtifacts" + + "/{generic_artifact}B\367\001\n\'com.google.devto" + + "ols.artifactregistry.v1B\014GenericProtoP\001Z" + + "Pcloud.google.com/go/artifactregistry/ap" + + "iv1/artifactregistrypb;artifactregistryp" + + "b\252\002 Google.Cloud.ArtifactRegistry.V1\312\002 G" + + "oogle\\Cloud\\ArtifactRegistry\\V1\352\002#Google" + + "::Cloud::ArtifactRegistry::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_devtools_artifactregistry_v1_GenericArtifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_GenericArtifact_descriptor, + new java.lang.String[] { + "Name", "Version", "CreateTime", "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequest.java new file mode 100644 index 000000000000..8a1fdd71fef3 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequest.java @@ -0,0 +1,644 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to retrieve an attachment.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetAttachmentRequest} + */ +public final class GetAttachmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.GetAttachmentRequest) + GetAttachmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAttachmentRequest.newBuilder() to construct. + private GetAttachmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAttachmentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAttachmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.GetAttachmentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the attachment to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the attachment to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.GetAttachmentRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.GetAttachmentRequest other = + (com.google.devtools.artifactregistry.v1.GetAttachmentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest 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.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.GetAttachmentRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to retrieve an attachment.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetAttachmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.GetAttachmentRequest) + com.google.devtools.artifactregistry.v1.GetAttachmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest.class, + com.google.devtools.artifactregistry.v1.GetAttachmentRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.GetAttachmentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_GetAttachmentRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetAttachmentRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.GetAttachmentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetAttachmentRequest build() { + com.google.devtools.artifactregistry.v1.GetAttachmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetAttachmentRequest buildPartial() { + com.google.devtools.artifactregistry.v1.GetAttachmentRequest result = + new com.google.devtools.artifactregistry.v1.GetAttachmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.GetAttachmentRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.GetAttachmentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.GetAttachmentRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.GetAttachmentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the attachment to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the attachment to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the attachment to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attachment to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attachment to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.GetAttachmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.GetAttachmentRequest) + private static final com.google.devtools.artifactregistry.v1.GetAttachmentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.GetAttachmentRequest(); + } + + public static com.google.devtools.artifactregistry.v1.GetAttachmentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttachmentRequest 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.devtools.artifactregistry.v1.GetAttachmentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequestOrBuilder.java new file mode 100644 index 000000000000..88899f48afeb --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetAttachmentRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface GetAttachmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.GetAttachmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the attachment to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the attachment to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequest.java new file mode 100644 index 000000000000..96acd7c37d19 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to retrieve a rule.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetRuleRequest} + */ +public final class GetRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.GetRuleRequest) + GetRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRuleRequest.newBuilder() to construct. + private GetRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GetRuleRequest.class, + com.google.devtools.artifactregistry.v1.GetRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the rule to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the rule to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.GetRuleRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.GetRuleRequest other = + (com.google.devtools.artifactregistry.v1.GetRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest 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.devtools.artifactregistry.v1.GetRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.GetRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to retrieve a rule.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.GetRuleRequest) + com.google.devtools.artifactregistry.v1.GetRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GetRuleRequest.class, + com.google.devtools.artifactregistry.v1.GetRuleRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.GetRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetRuleRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.GetRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetRuleRequest build() { + com.google.devtools.artifactregistry.v1.GetRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.GetRuleRequest buildPartial() { + com.google.devtools.artifactregistry.v1.GetRuleRequest result = + new com.google.devtools.artifactregistry.v1.GetRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.GetRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.GetRuleRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.GetRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.GetRuleRequest other) { + if (other == com.google.devtools.artifactregistry.v1.GetRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the rule to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the rule to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the rule to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the rule to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the rule to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.GetRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.GetRuleRequest) + private static final com.google.devtools.artifactregistry.v1.GetRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.GetRuleRequest(); + } + + public static com.google.devtools.artifactregistry.v1.GetRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRuleRequest 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.devtools.artifactregistry.v1.GetRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequestOrBuilder.java new file mode 100644 index 000000000000..b79c18938f79 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRuleRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface GetRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.GetRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the rule to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the rule to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequest.java new file mode 100644 index 000000000000..c600679dab6d --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequest.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to list attachments.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListAttachmentsRequest} + */ +public final class ListAttachmentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListAttachmentsRequest) + ListAttachmentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAttachmentsRequest.newBuilder() to construct. + private ListAttachmentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAttachmentsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAttachmentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.class, + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent resource whose attachments will be listed.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parent resource whose attachments will be listed.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `target`
+   *   * `type`
+   *   * `attachment_namespace`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `target`
+   *   * `type`
+   *   * `attachment_namespace`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of attachments to return. Maximum page size is 1,000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.ListAttachmentsRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest other = + (com.google.devtools.artifactregistry.v1.ListAttachmentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest 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.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ListAttachmentsRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to list attachments.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListAttachmentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ListAttachmentsRequest) + com.google.devtools.artifactregistry.v1.ListAttachmentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.class, + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsRequest build() { + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsRequest buildPartial() { + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest result = + new com.google.devtools.artifactregistry.v1.ListAttachmentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ListAttachmentsRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ListAttachmentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ListAttachmentsRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.ListAttachmentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent resource whose attachments will be listed.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource whose attachments will be listed.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent resource whose attachments will be listed.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource whose attachments will be listed.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent resource whose attachments will be listed.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `target`
+     *   * `type`
+     *   * `attachment_namespace`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `target`
+     *   * `type`
+     *   * `attachment_namespace`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `target`
+     *   * `type`
+     *   * `attachment_namespace`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `target`
+     *   * `type`
+     *   * `attachment_namespace`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `target`
+     *   * `type`
+     *   * `attachment_namespace`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of attachments to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of attachments to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of attachments to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ListAttachmentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListAttachmentsRequest) + private static final com.google.devtools.artifactregistry.v1.ListAttachmentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListAttachmentsRequest(); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttachmentsRequest 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.devtools.artifactregistry.v1.ListAttachmentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequestOrBuilder.java new file mode 100644 index 000000000000..0068e2bef56f --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface ListAttachmentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ListAttachmentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent resource whose attachments will be listed.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent resource whose attachments will be listed.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `target`
+   *   * `type`
+   *   * `attachment_namespace`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `target`
+   *   * `type`
+   *   * `attachment_namespace`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of attachments to return. Maximum page size is 1,000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponse.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponse.java new file mode 100644 index 000000000000..234d704bd431 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponse.java @@ -0,0 +1,1144 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The response from listing attachments.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListAttachmentsResponse} + */ +public final class ListAttachmentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListAttachmentsResponse) + ListAttachmentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAttachmentsResponse.newBuilder() to construct. + private ListAttachmentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAttachmentsResponse() { + attachments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAttachmentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.class, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.Builder.class); + } + + public static final int ATTACHMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List attachments_; + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + @java.lang.Override + public java.util.List getAttachmentsList() { + return attachments_; + } + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + @java.lang.Override + public java.util.List + getAttachmentsOrBuilderList() { + return attachments_; + } + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + @java.lang.Override + public int getAttachmentsCount() { + return attachments_.size(); + } + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Attachment getAttachments(int index) { + return attachments_.get(index); + } + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentsOrBuilder( + int index) { + return attachments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * The token to retrieve the next page of attachments, or empty if there are
+   * no more attachments to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The token to retrieve the next page of attachments, or empty if there are
+   * no more attachments to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < attachments_.size(); i++) { + output.writeMessage(1, attachments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < attachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attachments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.devtools.artifactregistry.v1.ListAttachmentsResponse)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse other = + (com.google.devtools.artifactregistry.v1.ListAttachmentsResponse) obj; + + if (!getAttachmentsList().equals(other.getAttachmentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAttachmentsCount() > 0) { + hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse 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.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ListAttachmentsResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response from listing attachments.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListAttachmentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ListAttachmentsResponse) + com.google.devtools.artifactregistry.v1.ListAttachmentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.class, + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + } else { + attachments_ = null; + attachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.AttachmentProto + .internal_static_google_devtools_artifactregistry_v1_ListAttachmentsResponse_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse build() { + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse buildPartial() { + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse result = + new com.google.devtools.artifactregistry.v1.ListAttachmentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse result) { + if (attachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attachments_ = attachments_; + } else { + result.attachments_ = attachmentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ListAttachmentsResponse) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ListAttachmentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.ListAttachmentsResponse other) { + if (other + == com.google.devtools.artifactregistry.v1.ListAttachmentsResponse.getDefaultInstance()) + return this; + if (attachmentsBuilder_ == null) { + if (!other.attachments_.isEmpty()) { + if (attachments_.isEmpty()) { + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttachmentsIsMutable(); + attachments_.addAll(other.attachments_); + } + onChanged(); + } + } else { + if (!other.attachments_.isEmpty()) { + if (attachmentsBuilder_.isEmpty()) { + attachmentsBuilder_.dispose(); + attachmentsBuilder_ = null; + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000001); + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttachmentsFieldBuilder() + : null; + } else { + attachmentsBuilder_.addAllMessages(other.attachments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.devtools.artifactregistry.v1.Attachment m = + input.readMessage( + com.google.devtools.artifactregistry.v1.Attachment.parser(), + extensionRegistry); + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(m); + } else { + attachmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List attachments_ = + java.util.Collections.emptyList(); + + private void ensureAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + attachments_ = + new java.util.ArrayList( + attachments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder> + attachmentsBuilder_; + + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public java.util.List getAttachmentsList() { + if (attachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachments_); + } else { + return attachmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public int getAttachmentsCount() { + if (attachmentsBuilder_ == null) { + return attachments_.size(); + } else { + return attachmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public com.google.devtools.artifactregistry.v1.Attachment getAttachments(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder setAttachments( + int index, com.google.devtools.artifactregistry.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.set(index, value); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder setAttachments( + int index, com.google.devtools.artifactregistry.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.set(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder addAttachments(com.google.devtools.artifactregistry.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder addAttachments( + int index, com.google.devtools.artifactregistry.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(index, value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder addAttachments( + com.google.devtools.artifactregistry.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder addAttachments( + int index, com.google.devtools.artifactregistry.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder addAllAttachments( + java.lang.Iterable values) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_); + onChanged(); + } else { + attachmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder clearAttachments() { + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attachmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public Builder removeAttachments(int index) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.remove(index); + onChanged(); + } else { + attachmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public com.google.devtools.artifactregistry.v1.Attachment.Builder getAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentsOrBuilder( + int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public java.util.List + getAttachmentsOrBuilderList() { + if (attachmentsBuilder_ != null) { + return attachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachments_); + } + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public com.google.devtools.artifactregistry.v1.Attachment.Builder addAttachmentsBuilder() { + return getAttachmentsFieldBuilder() + .addBuilder(com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance()); + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public com.google.devtools.artifactregistry.v1.Attachment.Builder addAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder() + .addBuilder( + index, com.google.devtools.artifactregistry.v1.Attachment.getDefaultInstance()); + } + /** + * + * + *
+     * The attachments returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + public java.util.List + getAttachmentsBuilderList() { + return getAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder> + getAttachmentsFieldBuilder() { + if (attachmentsBuilder_ == null) { + attachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Attachment, + com.google.devtools.artifactregistry.v1.Attachment.Builder, + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder>( + attachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attachments_ = null; + } + return attachmentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The token to retrieve the next page of attachments, or empty if there are
+     * no more attachments to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The token to retrieve the next page of attachments, or empty if there are
+     * no more attachments to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The token to retrieve the next page of attachments, or empty if there are
+     * no more attachments to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The token to retrieve the next page of attachments, or empty if there are
+     * no more attachments to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The token to retrieve the next page of attachments, or empty if there are
+     * no more attachments to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ListAttachmentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListAttachmentsResponse) + private static final com.google.devtools.artifactregistry.v1.ListAttachmentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListAttachmentsResponse(); + } + + public static com.google.devtools.artifactregistry.v1.ListAttachmentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttachmentsResponse 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.devtools.artifactregistry.v1.ListAttachmentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponseOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponseOrBuilder.java new file mode 100644 index 000000000000..95ef57918d4e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListAttachmentsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/attachment.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface ListAttachmentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ListAttachmentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + java.util.List getAttachmentsList(); + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + com.google.devtools.artifactregistry.v1.Attachment getAttachments(int index); + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + int getAttachmentsCount(); + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + java.util.List + getAttachmentsOrBuilderList(); + /** + * + * + *
+   * The attachments returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; + */ + com.google.devtools.artifactregistry.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index); + + /** + * + * + *
+   * The token to retrieve the next page of attachments, or empty if there are
+   * no more attachments to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The token to retrieve the next page of attachments, or empty if there are
+   * no more attachments to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java index d926d56b44d3..d0078b17392d 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java @@ -124,7 +124,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -771,7 +771,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -786,7 +786,7 @@ public int getPageSize() { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -805,7 +805,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequestOrBuilder.java index 2b052c48ad22..9a008ca7ee7c 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequestOrBuilder.java @@ -55,7 +55,7 @@ public interface ListDockerImagesRequestOrBuilder * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequest.java index 7f901fe2e602..b6cee1da6398 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequest.java @@ -136,13 +136,51 @@ public com.google.protobuf.ByteString getParentBytes() { * * * `name` * * `owner` + * * `annotations` * - * An example of using a filter: + * Examples of using a filter: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -170,13 +208,51 @@ public java.lang.String getFilter() { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: * - * An example of using a filter: + * * `"annotations.external_link"` * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -202,7 +278,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * The maximum number of files to return.
+   * The maximum number of files to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -884,13 +960,51 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` * - * An example of using a filter: + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -917,13 +1031,51 @@ public java.lang.String getFilter() { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` * - * An example of using a filter: + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -950,13 +1102,51 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: * - * An example of using a filter: + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -982,13 +1172,51 @@ public Builder setFilter(java.lang.String value) { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: * - * An example of using a filter: + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -1010,13 +1238,51 @@ public Builder clearFilter() { * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` * - * An example of using a filter: + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -1040,7 +1306,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of files to return.
+     * The maximum number of files to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -1055,7 +1321,7 @@ public int getPageSize() { * * *
-     * The maximum number of files to return.
+     * The maximum number of files to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -1074,7 +1340,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of files to return.
+     * The maximum number of files to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequestOrBuilder.java index 3c16941b5391..c17c996ce143 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListFilesRequestOrBuilder.java @@ -64,13 +64,51 @@ public interface ListFilesRequestOrBuilder * * * `name` * * `owner` + * * `annotations` * - * An example of using a filter: + * Examples of using a filter: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` + * + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: + * + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -87,13 +125,51 @@ public interface ListFilesRequestOrBuilder * * * `name` * * `owner` + * * `annotations` + * + * Examples of using a filter: + * + * To filter the results of your request to files with the name `my_file.txt` + * in project `my-project` in the `us-central` region, in repository + * `my-repo`, append the following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + * + * To filter the results of your request to files owned by the version `1.0` + * in package `pkg1`, append the following filter expression to your request: + * + * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + * + * To filter the results of your request to files with the annotation + * key-value pair [`external_link`: `external_link_value`], append the + * following filter expression to your request: + * + * * `"annotations.external_link:external_link_value"` + * + * To filter just for a specific annotation key `external_link`, append the + * following filter expression to your request: + * + * * `"annotations.external_link"` + * + * If the annotation key or value contains special characters, you can escape + * them by surrounding the value with backticks. For example, to filter the + * results of your request to files with the annotation key-value pair + * [`external.link`:`https://example.com/my-file`], append the following + * filter expression to your request: + * + * * `` "annotations.`external.link`:`https://example.com/my-file`" `` * - * An example of using a filter: + * You can also filter with annotations with a wildcard to + * match any number of characters before or after the value: * - * * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - * ID starting with "a/b/". - * * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - * Files owned by the version `1.0` in package `pkg1`. + * * `` "annotations.*_link:`*example.com*`" `` *
* * string filter = 4; @@ -106,7 +182,7 @@ public interface ListFilesRequestOrBuilder * * *
-   * The maximum number of files to return.
+   * The maximum number of files to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequest.java index 96430b771296..a8e74d9b91d4 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -711,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -726,7 +726,7 @@ public int getPageSize() { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -745,7 +745,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequestOrBuilder.java index 49496367622f..d1e00be5a4f5 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListMavenArtifactsRequestOrBuilder.java @@ -59,7 +59,7 @@ public interface ListMavenArtifactsRequestOrBuilder * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequest.java index 4677fbdb7405..2590065b6538 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -708,7 +708,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -723,7 +723,7 @@ public int getPageSize() { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -742,7 +742,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequestOrBuilder.java index 3f0c0b463b08..e207b680f29c 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListNpmPackagesRequestOrBuilder.java @@ -59,7 +59,7 @@ public interface ListNpmPackagesRequestOrBuilder * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequest.java index 1e1f16ce73f9..3d0e987e6b94 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequest.java @@ -41,6 +41,8 @@ private ListPackagesRequest(com.google.protobuf.GeneratedMessageV3.Builder bu private ListPackagesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; } @java.lang.Override @@ -188,6 +190,196 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   * Examples of using a filter:
+   *
+   *  To filter the results of your request to packages with the name
+   *  `my-package` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+   *
+   *  To filter the results of your request to packages with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request":
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter the results just for a specific annotation key `external_link`,
+   *  append the following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to packages with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-package`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   * Examples of using a filter:
+   *
+   *  To filter the results of your request to packages with the name
+   *  `my-package` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+   *
+   *  To filter the results of your request to packages with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request":
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter the results just for a specific annotation key `external_link`,
+   *  append the following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to packages with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-package`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -211,6 +403,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } getUnknownFields().writeTo(output); } @@ -229,6 +427,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -248,6 +452,8 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,6 +471,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -408,6 +618,8 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; return this; } @@ -453,6 +665,12 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.ListPackagesR if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } } @java.lang.Override @@ -514,6 +732,16 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ListPackagesReq bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -558,6 +786,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -852,6 +1092,438 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     * Examples of using a filter:
+     *
+     *  To filter the results of your request to packages with the name
+     *  `my-package` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+     *
+     *  To filter the results of your request to packages with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request":
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter the results just for a specific annotation key `external_link`,
+     *  append the following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to packages with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-package`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     * Examples of using a filter:
+     *
+     *  To filter the results of your request to packages with the name
+     *  `my-package` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+     *
+     *  To filter the results of your request to packages with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request":
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter the results just for a specific annotation key `external_link`,
+     *  append the following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to packages with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-package`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     * Examples of using a filter:
+     *
+     *  To filter the results of your request to packages with the name
+     *  `my-package` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+     *
+     *  To filter the results of your request to packages with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request":
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter the results just for a specific annotation key `external_link`,
+     *  append the following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to packages with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-package`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     * Examples of using a filter:
+     *
+     *  To filter the results of your request to packages with the name
+     *  `my-package` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+     *
+     *  To filter the results of your request to packages with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request":
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter the results just for a specific annotation key `external_link`,
+     *  append the following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to packages with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-package`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     * Examples of using a filter:
+     *
+     *  To filter the results of your request to packages with the name
+     *  `my-package` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+     *
+     *  To filter the results of your request to packages with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request":
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter the results just for a specific annotation key `external_link`,
+     *  append the following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to packages with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-package`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequestOrBuilder.java index 1161233f6986..3658fe39ae03 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPackagesRequestOrBuilder.java @@ -90,4 +90,142 @@ public interface ListPackagesRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   * Examples of using a filter:
+   *
+   *  To filter the results of your request to packages with the name
+   *  `my-package` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+   *
+   *  To filter the results of your request to packages with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request":
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter the results just for a specific annotation key `external_link`,
+   *  append the following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to packages with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-package`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   * Examples of using a filter:
+   *
+   *  To filter the results of your request to packages with the name
+   *  `my-package` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
+   *
+   *  To filter the results of your request to packages with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request":
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter the results just for a specific annotation key `external_link`,
+   *  append the following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to packages with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-package`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-package`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequest.java index 09cff93f2bcf..e109dcdfccef 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -711,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -726,7 +726,7 @@ public int getPageSize() { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -745,7 +745,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of artifacts to return.
+     * The maximum number of artifacts to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequestOrBuilder.java index 228d57bdb6f8..df398b53b83d 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListPythonPackagesRequestOrBuilder.java @@ -59,7 +59,7 @@ public interface ListPythonPackagesRequestOrBuilder * * *
-   * The maximum number of artifacts to return.
+   * The maximum number of artifacts to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java index 585de6198449..f0780c4c1a6d 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java @@ -41,6 +41,8 @@ private ListRepositoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder + * Optional. An expression for filtering the results of the request. Filter + * rules are case insensitive. The fields eligible for filtering are: + * + * * `name` + * + * Examples of using a filter: + * + * To filter the results of your request to repositories with the name + * `my-repo` in project `my-project` in the `us-central` region, append the + * following filter expression to your request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-*"` + * * `name="projects/my-project/locations/us-central1/repositories/*repo"` + * * `name="projects/my-project/locations/us-central1/repositories/*repo*"` + *
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *
+   *  Examples of using a filter:
+   *
+   * To filter the results of your request to repositories with the name
+   * `my-repo` in project `my-project` in the `us-central` region, append the
+   * following filter expression to your request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -213,6 +353,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } getUnknownFields().writeTo(output); } @@ -231,6 +377,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -250,6 +402,8 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,6 +421,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -410,6 +568,8 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; return this; } @@ -457,6 +617,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } } @java.lang.Override @@ -520,6 +686,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -564,6 +740,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -863,6 +1051,308 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *
+     *  Examples of using a filter:
+     *
+     * To filter the results of your request to repositories with the name
+     * `my-repo` in project `my-project` in the `us-central` region, append the
+     * following filter expression to your request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *
+     *  Examples of using a filter:
+     *
+     * To filter the results of your request to repositories with the name
+     * `my-repo` in project `my-project` in the `us-central` region, append the
+     * following filter expression to your request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *
+     *  Examples of using a filter:
+     *
+     * To filter the results of your request to repositories with the name
+     * `my-repo` in project `my-project` in the `us-central` region, append the
+     * following filter expression to your request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *
+     *  Examples of using a filter:
+     *
+     * To filter the results of your request to repositories with the name
+     * `my-repo` in project `my-project` in the `us-central` region, append the
+     * following filter expression to your request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *
+     *  Examples of using a filter:
+     *
+     * To filter the results of your request to repositories with the name
+     * `my-repo` in project `my-project` in the `us-central` region, append the
+     * following filter expression to your request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field to order the results by.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequestOrBuilder.java index 02033dfbbfec..0c5c762dcf24 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequestOrBuilder.java @@ -92,4 +92,90 @@ public interface ListRepositoriesRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *
+   *  Examples of using a filter:
+   *
+   * To filter the results of your request to repositories with the name
+   * `my-repo` in project `my-project` in the `us-central` region, append the
+   * following filter expression to your request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *
+   *  Examples of using a filter:
+   *
+   * To filter the results of your request to repositories with the name
+   * `my-repo` in project `my-project` in the `us-central` region, append the
+   * following filter expression to your request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. The field to order the results by.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequest.java new file mode 100644 index 000000000000..b42113ddaa8c --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to list rules.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRulesRequest} + */ +public final class ListRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListRulesRequest) + ListRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRulesRequest.newBuilder() to construct. + private ListRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRulesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListRulesRequest.class, + com.google.devtools.artifactregistry.v1.ListRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent repository whose rules will be listed.
+   * For example:
+   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parent repository whose rules will be listed.
+   * For example:
+   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of rules to return. Maximum page size is 1,000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.ListRulesRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ListRulesRequest other = + (com.google.devtools.artifactregistry.v1.ListRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest 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.devtools.artifactregistry.v1.ListRulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ListRulesRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to list rules.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ListRulesRequest) + com.google.devtools.artifactregistry.v1.ListRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListRulesRequest.class, + com.google.devtools.artifactregistry.v1.ListRulesRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ListRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ListRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesRequest build() { + com.google.devtools.artifactregistry.v1.ListRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesRequest buildPartial() { + com.google.devtools.artifactregistry.v1.ListRulesRequest result = + new com.google.devtools.artifactregistry.v1.ListRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.ListRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ListRulesRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ListRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ListRulesRequest other) { + if (other == com.google.devtools.artifactregistry.v1.ListRulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent repository whose rules will be listed.
+     * For example:
+     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent repository whose rules will be listed.
+     * For example:
+     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent repository whose rules will be listed.
+     * For example:
+     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent repository whose rules will be listed.
+     * For example:
+     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent repository whose rules will be listed.
+     * For example:
+     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of rules to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of rules to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of rules to return. Maximum page size is 1,000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request, if any.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ListRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListRulesRequest) + private static final com.google.devtools.artifactregistry.v1.ListRulesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListRulesRequest(); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRulesRequest 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.devtools.artifactregistry.v1.ListRulesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequestOrBuilder.java new file mode 100644 index 000000000000..e8cd139ecacf --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface ListRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ListRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent repository whose rules will be listed.
+   * For example:
+   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent repository whose rules will be listed.
+   * For example:
+   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of rules to return. Maximum page size is 1,000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponse.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponse.java new file mode 100644 index 000000000000..d07b67a0be13 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The response from listing rules.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRulesResponse} + */ +public final class ListRulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListRulesResponse) + ListRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRulesResponse.newBuilder() to construct. + private ListRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRulesResponse() { + rules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListRulesResponse.class, + com.google.devtools.artifactregistry.v1.ListRulesResponse.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rules_; + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule getRules(int index) { + return rules_.get(index); + } + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * The token to retrieve the next page of rules, or empty if there are no
+   * more rules to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The token to retrieve the next page of rules, or empty if there are no
+   * more rules to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(1, rules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.devtools.artifactregistry.v1.ListRulesResponse)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ListRulesResponse other = + (com.google.devtools.artifactregistry.v1.ListRulesResponse) obj; + + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse 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.devtools.artifactregistry.v1.ListRulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.ListRulesResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response from listing rules.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ListRulesResponse) + com.google.devtools.artifactregistry.v1.ListRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListRulesResponse.class, + com.google.devtools.artifactregistry.v1.ListRulesResponse.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ListRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesResponse getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ListRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesResponse build() { + com.google.devtools.artifactregistry.v1.ListRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ListRulesResponse buildPartial() { + com.google.devtools.artifactregistry.v1.ListRulesResponse result = + new com.google.devtools.artifactregistry.v1.ListRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.devtools.artifactregistry.v1.ListRulesResponse result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.ListRulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ListRulesResponse) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ListRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ListRulesResponse other) { + if (other == com.google.devtools.artifactregistry.v1.ListRulesResponse.getDefaultInstance()) + return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.devtools.artifactregistry.v1.Rule m = + input.readMessage( + com.google.devtools.artifactregistry.v1.Rule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public com.google.devtools.artifactregistry.v1.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder setRules(int index, com.google.devtools.artifactregistry.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder setRules( + int index, com.google.devtools.artifactregistry.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder addRules(com.google.devtools.artifactregistry.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder addRules(int index, com.google.devtools.artifactregistry.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder addRules(com.google.devtools.artifactregistry.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder addRules( + int index, com.google.devtools.artifactregistry.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public com.google.devtools.artifactregistry.v1.Rule.Builder getRulesBuilder(int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public com.google.devtools.artifactregistry.v1.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder() + .addBuilder(com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance()); + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public com.google.devtools.artifactregistry.v1.Rule.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder(index, com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance()); + } + /** + * + * + *
+     * The rules returned.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The token to retrieve the next page of rules, or empty if there are no
+     * more rules to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The token to retrieve the next page of rules, or empty if there are no
+     * more rules to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The token to retrieve the next page of rules, or empty if there are no
+     * more rules to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The token to retrieve the next page of rules, or empty if there are no
+     * more rules to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The token to retrieve the next page of rules, or empty if there are no
+     * more rules to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ListRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListRulesResponse) + private static final com.google.devtools.artifactregistry.v1.ListRulesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListRulesResponse(); + } + + public static com.google.devtools.artifactregistry.v1.ListRulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRulesResponse 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.devtools.artifactregistry.v1.ListRulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponseOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponseOrBuilder.java new file mode 100644 index 000000000000..6557a4055e69 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRulesResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface ListRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ListRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + java.util.List getRulesList(); + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + com.google.devtools.artifactregistry.v1.Rule getRules(int index); + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + int getRulesCount(); + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + java.util.List + getRulesOrBuilderList(); + /** + * + * + *
+   * The rules returned.
+   * 
+ * + * repeated .google.devtools.artifactregistry.v1.Rule rules = 1; + */ + com.google.devtools.artifactregistry.v1.RuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
+   * The token to retrieve the next page of rules, or empty if there are no
+   * more rules to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The token to retrieve the next page of rules, or empty if there are no
+   * more rules to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequest.java index 922ebaba3062..beda87c9153a 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequest.java @@ -131,12 +131,30 @@ public com.google.protobuf.ByteString getParentBytes() { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -162,12 +180,30 @@ public java.lang.String getFilter() { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -193,7 +229,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * The maximum number of tags to return. Maximum page size is 10,000.
+   * The maximum number of tags to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; @@ -793,12 +829,30 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -823,12 +877,30 @@ public java.lang.String getFilter() { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -853,12 +925,30 @@ public com.google.protobuf.ByteString getFilterBytes() { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -882,12 +972,30 @@ public Builder setFilter(java.lang.String value) { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -907,12 +1015,30 @@ public Builder clearFilter() { * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -936,7 +1062,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of tags to return. Maximum page size is 10,000.
+     * The maximum number of tags to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -951,7 +1077,7 @@ public int getPageSize() { * * *
-     * The maximum number of tags to return. Maximum page size is 10,000.
+     * The maximum number of tags to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; @@ -970,7 +1096,7 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of tags to return. Maximum page size is 10,000.
+     * The maximum number of tags to return. Maximum page size is 1,000.
      * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequestOrBuilder.java index 04a7cf73e278..ee60b25255e8 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListTagsRequestOrBuilder.java @@ -60,12 +60,30 @@ public interface ListTagsRequestOrBuilder * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: + * + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -80,12 +98,30 @@ public interface ListTagsRequestOrBuilder * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: * + * * `name` * * `version` * - * An example of using a filter: + * Examples of using a filter: + * + * To filter the results of your request to tags with the name `my-tag` in + * package `my-package` in repository `my-repo` in project "`y-project` in + * the us-central region, append the following filter expression to your + * request: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + * + * You can also use wildcards to match any number of characters before or + * after the value: + * + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + * + * To filter the results of your request to tags applied to the version + * `1.0` in package `my-package`, append the following filter expression to + * your request: * - * * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - * --> Tags that are applied to the version `1.0` in package `pkg1`. + * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` *
* * string filter = 4; @@ -98,7 +134,7 @@ public interface ListTagsRequestOrBuilder * * *
-   * The maximum number of tags to return. Maximum page size is 10,000.
+   * The maximum number of tags to return. Maximum page size is 1,000.
    * 
* * int32 page_size = 2; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequest.java index a3d889eb1006..51b824758ddd 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequest.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequest.java @@ -43,6 +43,7 @@ private ListVersionsRequest() { pageToken_ = ""; view_ = 0; orderBy_ = ""; + filter_ = ""; } @java.lang.Override @@ -274,6 +275,145 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int FILTER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   *  Examples of using a filter:
+   *
+   *  To filter the results of your request to versions with the name
+   *  `my-version` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+   *
+   *  To filter the results of your request to versions with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter just for a specific annotation key `external_link`, append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to versions with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-version`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   *  Examples of using a filter:
+   *
+   *  To filter the results of your request to versions with the name
+   *  `my-version` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+   *
+   *  To filter the results of your request to versions with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter just for a specific annotation key `external_link`, append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to versions with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-version`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +445,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filter_); + } getUnknownFields().writeTo(output); } @@ -331,6 +474,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +498,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (view_ != other.view_) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,6 +520,8 @@ public int hashCode() { hash = (53 * hash) + view_; hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -518,6 +667,7 @@ public Builder clear() { pageToken_ = ""; view_ = 0; orderBy_ = ""; + filter_ = ""; return this; } @@ -569,6 +719,9 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.ListVersionsR if (((from_bitField0_ & 0x00000010) != 0)) { result.orderBy_ = orderBy_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -638,6 +791,11 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ListVersionsReq bitField0_ |= 0x00000010; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -694,6 +852,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1176,6 +1340,332 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     *  Examples of using a filter:
+     *
+     *  To filter the results of your request to versions with the name
+     *  `my-version` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+     *
+     *  To filter the results of your request to versions with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter just for a specific annotation key `external_link`, append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to versions with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-version`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     *  Examples of using a filter:
+     *
+     *  To filter the results of your request to versions with the name
+     *  `my-version` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+     *
+     *  To filter the results of your request to versions with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter just for a specific annotation key `external_link`, append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to versions with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-version`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     *  Examples of using a filter:
+     *
+     *  To filter the results of your request to versions with the name
+     *  `my-version` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+     *
+     *  To filter the results of your request to versions with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter just for a specific annotation key `external_link`, append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to versions with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-version`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     *  Examples of using a filter:
+     *
+     *  To filter the results of your request to versions with the name
+     *  `my-version` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+     *
+     *  To filter the results of your request to versions with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter just for a specific annotation key `external_link`, append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to versions with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-version`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. Filter
+     * rules are case insensitive. The fields eligible for filtering are:
+     *
+     *   * `name`
+     *   * `annotations`
+     *
+     *  Examples of using a filter:
+     *
+     *  To filter the results of your request to versions with the name
+     *  `my-version` in project `my-project` in the `us-central` region, in
+     *  repository `my-repo`, append the following filter expression to your
+     *  request:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+     *
+     *  You can also use wildcards to match any number of characters before or
+     *  after the value:
+     *
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+     *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+     *
+     *  To filter the results of your request to versions with the annotation
+     *  key-value pair [`external_link`: `external_link_value`], append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link:external_link_value"`
+     *
+     *  To filter just for a specific annotation key `external_link`, append the
+     *  following filter expression to your request:
+     *
+     *   * `"annotations.external_link"`
+     *
+     *  If the annotation key or value contains special characters, you can escape
+     *  them by surrounding the value with backticks. For example, to filter the
+     *  results of your request to versions with the annotation key-value pair
+     *  [`external.link`:`https://example.com/my-version`], append the following
+     *  filter expression to your request:
+     *
+     *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+     *
+     *  You can also filter with annotations with a wildcard to
+     *  match any number of characters before or after the value:
+     *
+     *   * `` "annotations.*_link:`*example.com*`" ``
+     * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequestOrBuilder.java index 7985d2701917..faaa7e9772c8 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequestOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListVersionsRequestOrBuilder.java @@ -136,4 +136,117 @@ public interface ListVersionsRequestOrBuilder * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   *  Examples of using a filter:
+   *
+   *  To filter the results of your request to versions with the name
+   *  `my-version` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+   *
+   *  To filter the results of your request to versions with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter just for a specific annotation key `external_link`, append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to versions with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-version`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. Filter
+   * rules are case insensitive. The fields eligible for filtering are:
+   *
+   *   * `name`
+   *   * `annotations`
+   *
+   *  Examples of using a filter:
+   *
+   *  To filter the results of your request to versions with the name
+   *  `my-version` in project `my-project` in the `us-central` region, in
+   *  repository `my-repo`, append the following filter expression to your
+   *  request:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
+   *
+   *  You can also use wildcards to match any number of characters before or
+   *  after the value:
+   *
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
+   *   * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
+   *
+   *  To filter the results of your request to versions with the annotation
+   *  key-value pair [`external_link`: `external_link_value`], append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link:external_link_value"`
+   *
+   *  To filter just for a specific annotation key `external_link`, append the
+   *  following filter expression to your request:
+   *
+   *   * `"annotations.external_link"`
+   *
+   *  If the annotation key or value contains special characters, you can escape
+   *  them by surrounding the value with backticks. For example, to filter the
+   *  results of your request to versions with the annotation key-value pair
+   *  [`external.link`:`https://example.com/my-version`], append the following
+   *  filter expression to your request:
+   *
+   *   * `` "annotations.`external.link`:`https://example.com/my-version`" ``
+   *
+   *  You can also filter with annotations with a wildcard to
+   *  match any number of characters before or after the value:
+   *
+   *   * `` "annotations.*_link:`*example.com*`" ``
+   * 
+ * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Package.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Package.java index d01e0857ff43..d15a6ecba9e2 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Package.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Package.java @@ -54,6 +54,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_Package_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -266,6 +278,113 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int ANNOTATIONS_FIELD_NUMBER = 7; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -292,6 +411,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getUpdateTime()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); getUnknownFields().writeTo(output); } @@ -313,6 +434,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -339,6 +470,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,6 +494,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -480,6 +616,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_Package_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -523,6 +681,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + internalGetMutableAnnotations().clear(); return this; } @@ -574,6 +733,10 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.Package resul result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -639,6 +802,8 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.Package other) if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -689,6 +854,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 50 + case 58: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1309,6 +1486,179 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageOrBuilder.java index c0b33fdf762b..3e1da7451b12 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageOrBuilder.java @@ -150,4 +150,67 @@ public interface PackageOrBuilder * .google.protobuf.Timestamp update_time = 6; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageProto.java index 0abe6fdd26cb..fd4783412e3b 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_Package_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_Package_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_ListPackagesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_DeletePackageRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_DeletePackageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -60,32 +68,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n1google/devtools/artifactregistry/v1/pa" + "ckage.proto\022#google.devtools.artifactreg" + "istry.v1\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\224\002\n\007Package\022\014\n\004nam" - + "e\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022/\n\013create_" - + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022/" - + "\n\013update_time\030\006 \001(\0132\032.google.protobuf.Ti" - + "mestamp:\202\001\352A\177\n\'artifactregistry.googleap" - + "is.com/Package\022Tprojects/{project}/locat" - + "ions/{location}/repositories/{repository" - + "}/packages/{package}\"}\n\023ListPackagesRequ" - + "est\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'artifactreg" - + "istry.googleapis.com/Package\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\024ListPacka" - + "gesResponse\022>\n\010packages\030\001 \003(\0132,.google.d" - + "evtools.artifactregistry.v1.Package\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"R\n\021GetPackageReques" - + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'artifactregistr" - + "y.googleapis.com/Package\"U\n\024DeletePackag" - + "eRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'artifact" - + "registry.googleapis.com/PackageB\367\001\n\'com." - + "google.devtools.artifactregistry.v1B\014Pac" - + "kageProtoP\001ZPcloud.google.com/go/artifac" - + "tregistry/apiv1/artifactregistrypb;artif" - + "actregistrypb\252\002 Google.Cloud.ArtifactReg" - + "istry.V1\312\002 Google\\Cloud\\ArtifactRegistry" - + "\\V1\352\002#Google::Cloud::ArtifactRegistry::V" - + "1b\006proto3" + + "o\032\031google/api/resource.proto\032 google/pro" + + "tobuf/field_mask.proto\032\037google/protobuf/" + + "timestamp.proto\"\241\003\n\007Package\022\014\n\004name\030\001 \001(" + + "\t\022\024\n\014display_name\030\002 \001(\t\022/\n\013create_time\030\005" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "p\022W\n\013annotations\030\007 \003(\0132=.google.devtools" + + ".artifactregistry.v1.Package.Annotations" + + "EntryB\003\340A\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n\'artifactre" + + "gistry.googleapis.com/Package\022Tprojects/" + + "{project}/locations/{location}/repositor" + + "ies/{repository}/packages/{package}\"\251\001\n\023" + + "ListPackagesRequest\022?\n\006parent\030\001 \001(\tB/\340A\002" + + "\372A)\022\'artifactregistry.googleapis.com/Pac" + + "kage\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"o\n\024ListPackagesResponse\022>\n\010packa" + + "ges\030\001 \003(\0132,.google.devtools.artifactregi" + + "stry.v1.Package\022\027\n\017next_page_token\030\002 \001(\t" + + "\"R\n\021GetPackageRequest\022=\n\004name\030\001 \001(\tB/\340A\002" + + "\372A)\n\'artifactregistry.googleapis.com/Pac" + + "kage\"U\n\024DeletePackageRequest\022=\n\004name\030\001 \001" + + "(\tB/\340A\002\372A)\n\'artifactregistry.googleapis." + + "com/Package\"\206\001\n\024UpdatePackageRequest\022=\n\007" + + "package\030\001 \001(\0132,.google.devtools.artifact" + + "registry.v1.Package\022/\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\367\001\n\'com.goo" + + "gle.devtools.artifactregistry.v1B\014Packag" + + "eProtoP\001ZPcloud.google.com/go/artifactre" + + "gistry/apiv1/artifactregistrypb;artifact" + + "registrypb\252\002 Google.Cloud.ArtifactRegist" + + "ry.V1\312\002 Google\\Cloud\\ArtifactRegistry\\V1" + + "\352\002#Google::Cloud::ArtifactRegistry::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -93,6 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_devtools_artifactregistry_v1_Package_descriptor = @@ -101,7 +119,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_Package_descriptor, new java.lang.String[] { - "Name", "DisplayName", "CreateTime", "UpdateTime", + "Name", "DisplayName", "CreateTime", "UpdateTime", "Annotations", + }); + internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_Package_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Package_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_devtools_artifactregistry_v1_ListPackagesRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -109,7 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListPackagesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_devtools_artifactregistry_v1_ListPackagesResponse_descriptor = getDescriptor().getMessageTypes().get(2); @@ -135,6 +163,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor, + new java.lang.String[] { + "Package", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -144,6 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettings.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettings.java index fe6a44e46b6f..60d7ac45af0a 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettings.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettings.java @@ -115,6 +115,26 @@ public enum RedirectionState implements com.google.protobuf.ProtocolMessageEnum */ @java.lang.Deprecated REDIRECTION_FROM_GCR_IO_FINALIZED(3), + /** + * + * + *
+     * Redirection is enabled and missing images are copied from GCR
+     * 
+ * + * REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING = 5; + */ + REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING(5), + /** + * + * + *
+     * Redirection is partially enabled and missing images are copied from GCR
+     * 
+ * + * REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING = 6; + */ + REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING(6), UNRECOGNIZED(-1), ; @@ -158,6 +178,26 @@ public enum RedirectionState implements com.google.protobuf.ProtocolMessageEnum * REDIRECTION_FROM_GCR_IO_FINALIZED = 3 [deprecated = true]; */ @java.lang.Deprecated public static final int REDIRECTION_FROM_GCR_IO_FINALIZED_VALUE = 3; + /** + * + * + *
+     * Redirection is enabled and missing images are copied from GCR
+     * 
+ * + * REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING = 5; + */ + public static final int REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING_VALUE = 5; + /** + * + * + *
+     * Redirection is partially enabled and missing images are copied from GCR
+     * 
+ * + * REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING = 6; + */ + public static final int REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -191,6 +231,10 @@ public static RedirectionState forNumber(int value) { return REDIRECTION_FROM_GCR_IO_ENABLED; case 3: return REDIRECTION_FROM_GCR_IO_FINALIZED; + case 5: + return REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING; + case 6: + return REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING; default: return null; } @@ -354,6 +398,25 @@ public int getLegacyRedirectionStateValue() { : result; } + public static final int PULL_PERCENT_FIELD_NUMBER = 3; + private int pullPercent_ = 0; + /** + * + * + *
+   * The percentage of pull traffic to redirect from GCR to AR when using
+   * partial redirection.
+   * 
+ * + * int32 pull_percent = 3; + * + * @return The pullPercent. + */ + @java.lang.Override + public int getPullPercent() { + return pullPercent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -377,6 +440,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, legacyRedirectionState_); } + if (pullPercent_ != 0) { + output.writeInt32(3, pullPercent_); + } getUnknownFields().writeTo(output); } @@ -395,6 +461,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, legacyRedirectionState_); } + if (pullPercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pullPercent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -413,6 +482,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (legacyRedirectionState_ != other.legacyRedirectionState_) return false; + if (getPullPercent() != other.getPullPercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,6 +498,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LEGACY_REDIRECTION_STATE_FIELD_NUMBER; hash = (53 * hash) + legacyRedirectionState_; + hash = (37 * hash) + PULL_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getPullPercent(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -570,6 +642,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; legacyRedirectionState_ = 0; + pullPercent_ = 0; return this; } @@ -612,6 +685,9 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.ProjectSettin if (((from_bitField0_ & 0x00000002) != 0)) { result.legacyRedirectionState_ = legacyRedirectionState_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pullPercent_ = pullPercent_; + } } @java.lang.Override @@ -668,6 +744,9 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ProjectSettings if (other.legacyRedirectionState_ != 0) { setLegacyRedirectionStateValue(other.getLegacyRedirectionStateValue()); } + if (other.getPullPercent() != 0) { + setPullPercent(other.getPullPercent()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -706,6 +785,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + pullPercent_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -966,6 +1051,62 @@ public Builder clearLegacyRedirectionState() { return this; } + private int pullPercent_; + /** + * + * + *
+     * The percentage of pull traffic to redirect from GCR to AR when using
+     * partial redirection.
+     * 
+ * + * int32 pull_percent = 3; + * + * @return The pullPercent. + */ + @java.lang.Override + public int getPullPercent() { + return pullPercent_; + } + /** + * + * + *
+     * The percentage of pull traffic to redirect from GCR to AR when using
+     * partial redirection.
+     * 
+ * + * int32 pull_percent = 3; + * + * @param value The pullPercent to set. + * @return This builder for chaining. + */ + public Builder setPullPercent(int value) { + + pullPercent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The percentage of pull traffic to redirect from GCR to AR when using
+     * partial redirection.
+     * 
+ * + * int32 pull_percent = 3; + * + * @return This builder for chaining. + */ + public Builder clearPullPercent() { + bitField0_ = (bitField0_ & ~0x00000004); + pullPercent_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsOrBuilder.java index b148b2d8a928..981c8b0fc5aa 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsOrBuilder.java @@ -90,4 +90,18 @@ public interface ProjectSettingsOrBuilder */ com.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState getLegacyRedirectionState(); + + /** + * + * + *
+   * The percentage of pull traffic to redirect from GCR to AR when using
+   * partial redirection.
+   * 
+ * + * int32 pull_percent = 3; + * + * @return The pullPercent. + */ + int getPullPercent(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfig.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfig.java index 33695859324a..161a568e8354 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfig.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfig.java @@ -2039,6 +2039,50 @@ public interface DockerRepositoryOrBuilder com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository getPublicRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.UpstreamCase getUpstreamCase(); } @@ -2229,1102 +2273,911 @@ private PublicRepository(int value) { // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository) } - private int upstreamCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object upstream_; - - public enum UpstreamCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PUBLIC_REPOSITORY(1), - UPSTREAM_NOT_SET(0); - private final int value; + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { - private UpstreamCase(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. + * + * + *
+       * An http/https uri reference to the custom remote repository, for ex:
+       * "https://registry-1.docker.io".
+       * 
+ * + * string uri = 1; + * + * @return The uri. */ - @java.lang.Deprecated - public static UpstreamCase valueOf(int value) { - return forNumber(value); - } - - public static UpstreamCase forNumber(int value) { - switch (value) { - case 1: - return PUBLIC_REPOSITORY; - case 0: - return UPSTREAM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); - } - - public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; - /** - * - * - *
-     * One of the publicly available Docker repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ - public boolean hasPublicRepository() { - return upstreamCase_ == 1; - } - /** - * - * - *
-     * One of the publicly available Docker repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return The enum numeric value on the wire for publicRepository. - */ - public int getPublicRepositoryValue() { - if (upstreamCase_ == 1) { - return (java.lang.Integer) upstream_; - } - return 0; + java.lang.String getUri(); + /** + * + * + *
+       * An http/https uri reference to the custom remote repository, for ex:
+       * "https://registry-1.docker.io".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); } /** * * *
-     * One of the publicly available Docker repositories supported by Artifact
-     * Registry.
+     * Customer-specified publicly available remote repository.
      * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository} */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.forNumber((java.lang.Integer) upstream_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.UNRECOGNIZED - : result; + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository) + CustomRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; - } - private byte memoizedIsInitialized = -1; + private CustomRepository() { + uri_ = ""; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomRepository(); + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (upstreamCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) upstream_)); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder.class); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int URI_FIELD_NUMBER = 1; - size = 0; - if (upstreamCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, ((java.lang.Integer) upstream_)); + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+       * An http/https uri reference to the custom remote repository, for ex:
+       * "https://registry-1.docker.io".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+       * An http/https uri reference to the custom remote repository, for ex:
+       * "https://registry-1.docker.io".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + 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; } - if (!(obj - instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository)) { - return super.equals(obj); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + getUnknownFields().writeTo(output); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) obj; - if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; - switch (upstreamCase_) { - case 1: - if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (upstreamCase_) { - case 1: - hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getPublicRepositoryValue(); - break; - case 0: - default: + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + obj; - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + if (!getUri().equals(other.getUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Configuration for a Docker remote repository.
-     * 
- * - * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepositoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.newBuilder() - private Builder() {} + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static Builder newBuilder( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - upstreamCase_ = 0; - upstream_ = null; - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } + /** + * + * + *
+       * Customer-specified publicly available remote repository.
+       * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor; + } - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .getDefaultInstance(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder.class); + } - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - return result; - } - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository( - this); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; } - buildPartialOneofs(result); - onBuilt(); - return result; - } - private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result) { - int from_bitField0_ = bitField0_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor; + } - private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result) { - result.upstreamCase_ = upstreamCase_; - result.upstream_ = this.upstream_; - } + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .DockerRepository.CustomRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) { - return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) - other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - } - public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository other) { - if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .getDefaultInstance()) return this; - switch (other.getUpstreamCase()) { - case PUBLIC_REPOSITORY: - { - setPublicRepositoryValue(other.getPublicRepositoryValue()); - break; - } - case UPSTREAM_NOT_SET: - { - break; - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @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(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + other); + } else { + super.mergeFrom(other); + return this; + } } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - upstreamCase_ = 1; - upstream_ = rawValue; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - } // finally - return this; - } + return this; + } - private int upstreamCase_ = 0; - private java.lang.Object upstream_; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); + @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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+         * An http/https uri reference to the custom remote repository, for ex:
+         * "https://registry-1.docker.io".
+         * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the custom remote repository, for ex:
+         * "https://registry-1.docker.io".
+         * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the custom remote repository, for ex:
+         * "https://registry-1.docker.io".
+         * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the custom remote repository, for ex:
+         * "https://registry-1.docker.io".
+         * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the custom remote repository, for ex:
+         * "https://registry-1.docker.io".
+         * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository) } - public Builder clearUpstream() { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); - return this; + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .DockerRepository.CustomRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository(); } - private int bitField0_; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRepository 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; + } - /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ @java.lang.Override - public boolean hasPublicRepository() { - return upstreamCase_ == 1; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return The enum numeric value on the wire for publicRepository. - */ + @java.lang.Override - public int getPublicRepositoryValue() { - if (upstreamCase_ == 1) { - return ((java.lang.Integer) upstream_).intValue(); - } - return 0; + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @param value The enum numeric value on the wire for publicRepository to set. - * @return This builder for chaining. - */ - public Builder setPublicRepositoryValue(int value) { - upstreamCase_ = 1; - upstream_ = value; - onChanged(); - return this; + } + + private int upstreamCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object upstream_; + + public enum UpstreamCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), + UPSTREAM_NOT_SET(0); + private final int value; + + private UpstreamCase(int value) { + this.value = value; } /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.forNumber((java.lang.Integer) upstream_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.UNRECOGNIZED - : result; - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; - } - /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @param value The publicRepository to set. - * @return This builder for chaining. - */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - .PublicRepository - value) { - if (value == null) { - throw new NullPointerException(); - } - upstreamCase_ = 1; - upstream_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * One of the publicly available Docker repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * - * - * @return This builder for chaining. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - public Builder clearPublicRepository() { - if (upstreamCase_ == 1) { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); - } - return this; + @java.lang.Deprecated + public static UpstreamCase valueOf(int value) { + return forNumber(value); } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public static UpstreamCase forNumber(int value) { + switch (value) { + case 1: + return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; + case 0: + return UPSTREAM_NOT_SET; + default: + return null; + } } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public int getNumber() { + return this.value; } + }; - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) - } - - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) - private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .DockerRepository - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository(); - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DockerRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); } - } - - public interface MavenRepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) - com.google.protobuf.MessageOrBuilder { + public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; /** * * *
-     * One of the publicly available Maven repositories supported by Artifact
+     * One of the publicly available Docker repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. */ - boolean hasPublicRepository(); + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } /** * * *
-     * One of the publicly available Maven repositories supported by Artifact
+     * One of the publicly available Docker repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return The enum numeric value on the wire for publicRepository. */ - int getPublicRepositoryValue(); + public int getPublicRepositoryValue() { + if (upstreamCase_ == 1) { + return (java.lang.Integer) upstream_; + } + return 0; + } /** * * *
-     * One of the publicly available Maven repositories supported by Artifact
+     * One of the publicly available Docker repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository - getPublicRepository(); - - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.UpstreamCase - getUpstreamCase(); - } - /** - * - * - *
-   * Configuration for a Maven remote repository.
-   * 
- * - * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository} - */ - public static final class MavenRepository extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) - MavenRepositoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use MavenRepository.newBuilder() to construct. - private MavenRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MavenRepository() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MavenRepository(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.Builder - .class); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .PublicRepository + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .PublicRepository.forNumber((java.lang.Integer) upstream_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .PublicRepository.UNRECOGNIZED + : result; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; } + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; /** * * *
-     * Predefined list of publicly available Maven repositories like Maven
-     * Central.
-     * 
- * - * Protobuf enum {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository} - */ - public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified repository.
-       * 
- * - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - PUBLIC_REPOSITORY_UNSPECIFIED(0), - /** - * - * - *
-       * Maven Central.
-       * 
- * - * MAVEN_CENTRAL = 1; - */ - MAVEN_CENTRAL(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Unspecified repository.
-       * 
- * - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Maven Central.
-       * 
- * - * MAVEN_CENTRAL = 1; - */ - public static final int MAVEN_CENTRAL_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PublicRepository 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 PublicRepository forNumber(int value) { - switch (value) { - case 0: - return PUBLIC_REPOSITORY_UNSPECIFIED; - case 1: - return MAVEN_CENTRAL; - 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 PublicRepository findValueByNumber(int number) { - return PublicRepository.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final PublicRepository[] VALUES = values(); - - public static PublicRepository 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 PublicRepository(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository) - } - - private int upstreamCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object upstream_; - - public enum UpstreamCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PUBLIC_REPOSITORY(1), - UPSTREAM_NOT_SET(0); - private final int value; - - private UpstreamCase(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 UpstreamCase valueOf(int value) { - return forNumber(value); - } - - public static UpstreamCase forNumber(int value) { - switch (value) { - case 1: - return PUBLIC_REPOSITORY; - case 0: - return UPSTREAM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); - } - - public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; - /** - * - * - *
-     * One of the publicly available Maven repositories supported by Artifact
-     * Registry.
+     * Customer-specified remote repository.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; * * - * @return Whether the publicRepository field is set. + * @return Whether the customRepository field is set. */ - public boolean hasPublicRepository() { - return upstreamCase_ == 1; + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; } /** * * *
-     * One of the publicly available Maven repositories supported by Artifact
-     * Registry.
+     * Customer-specified remote repository.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; * * - * @return The enum numeric value on the wire for publicRepository. + * @return The customRepository. */ - public int getPublicRepositoryValue() { - if (upstreamCase_ == 1) { - return (java.lang.Integer) upstream_; + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_; } - return 0; + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); } /** * * *
-     * One of the publicly available Maven repositories supported by Artifact
-     * Registry.
+     * Customer-specified remote repository.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; * - * - * @return The publicRepository. */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .PublicRepository - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .PublicRepository.forNumber((java.lang.Integer) upstream_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .PublicRepository.UNRECOGNIZED - : result; + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -3344,6 +3197,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (upstreamCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) upstream_)); } + if (upstreamCase_ == 3) { + output.writeMessage( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_); + } getUnknownFields().writeTo(output); } @@ -3358,6 +3218,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 1, ((java.lang.Integer) upstream_)); } + if (upstreamCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3370,17 +3238,20 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) obj; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) obj; if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; switch (upstreamCase_) { case 1: if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; + break; case 0: default: } @@ -3400,6 +3271,10 @@ public int hashCode() { hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; hash = (53 * hash) + getPublicRepositoryValue(); break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); + break; case 0: default: } @@ -3408,26 +3283,26 @@ public int hashCode() { return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3435,23 +3310,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3459,12 +3334,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3472,12 +3347,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3496,7 +3371,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository prototype) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3515,36 +3390,36 @@ protected Builder newBuilderForType( * * *
-     * Configuration for a Maven remote repository.
+     * Configuration for a Docker remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .Builder.class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -3555,6 +3430,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); + } upstreamCase_ = 0; upstream_ = null; return this; @@ -3563,20 +3441,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -3585,10 +3463,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository( this); if (bitField0_ != 0) { buildPartial0(result); @@ -3599,14 +3477,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository result) { result.upstreamCase_ = upstreamCase_; result.upstream_ = this.upstream_; + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); + } } @java.lang.Override @@ -3648,9 +3529,9 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) other); } else { super.mergeFrom(other); @@ -3659,9 +3540,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository other) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .getDefaultInstance()) return this; switch (other.getUpstreamCase()) { case PUBLIC_REPOSITORY: @@ -3669,6 +3550,11 @@ public Builder mergeFrom( setPublicRepositoryValue(other.getPublicRepositoryValue()); break; } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); + break; + } case UPSTREAM_NOT_SET: { break; @@ -3707,6 +3593,13 @@ public Builder mergeFrom( upstream_ = rawValue; break; } // case 8 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3744,12 +3637,12 @@ public Builder clearUpstream() { * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -3762,12 +3655,12 @@ public boolean hasPublicRepository() { * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return The enum numeric value on the wire for publicRepository. @@ -3783,12 +3676,12 @@ public int getPublicRepositoryValue() { * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @param value The enum numeric value on the wire for publicRepository to set. @@ -3804,51 +3697,51 @@ public Builder setPublicRepositoryValue(int value) { * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository getPublicRepository() { if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository.forNumber((java.lang.Integer) upstream_); return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository.UNRECOGNIZED : result; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; } /** * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @param value The publicRepository to set. * @return This builder for chaining. */ public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository .PublicRepository value) { if (value == null) { @@ -3863,12 +3756,12 @@ public Builder setPublicRepository( * * *
-       * One of the publicly available Maven repositories supported by Artifact
+       * One of the publicly available Docker repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; * * * @return This builder for chaining. @@ -3882,1290 +3775,1346 @@ public Builder clearPublicRepository() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public boolean hasCustomRepository() { + return upstreamCase_ == 3; } - + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); + } } - - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) - } - - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) - private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .MavenRepository - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository(); - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MavenRepository 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(); + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - }; - - 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface NpmRepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * One of the publicly available Npm repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ - boolean hasPublicRepository(); - /** - * - * - *
-     * One of the publicly available Npm repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return The enum numeric value on the wire for publicRepository. - */ - int getPublicRepositoryValue(); - /** - * - * - *
-     * One of the publicly available Npm repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. - */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository - getPublicRepository(); - - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.UpstreamCase - getUpstreamCase(); - } - /** - * - * - *
-   * Configuration for a Npm remote repository.
-   * 
- * - * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository} - */ - public static final class NpmRepository extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) - NpmRepositoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use NpmRepository.newBuilder() to construct. - private NpmRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NpmRepository() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NpmRepository(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.Builder - .class); - } - - /** - * - * - *
-     * Predefined list of publicly available NPM repositories like npmjs.
-     * 
- * - * Protobuf enum {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository} - */ - public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { + upstream_ = value; + onChanged(); + } else { + customRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 3; + return this; + } /** * * *
-       * Unspecified repository.
+       * Customer-specified remote repository.
        * 
* - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - PUBLIC_REPOSITORY_UNSPECIFIED(0), + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 3; + return this; + } /** * * *
-       * npmjs.
+       * Customer-specified remote repository.
        * 
* - * NPMJS = 1; + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - NPMJS(1), - UNRECOGNIZED(-1), - ; - + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .DockerRepository.CustomRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); + } else { + customRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 3; + return this; + } /** * * *
-       * Unspecified repository.
+       * Customer-specified remote repository.
        * 
* - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + } + customRepositoryBuilder_.clear(); + } + return this; + } /** * * *
-       * npmjs.
+       * Customer-specified remote repository.
        * 
* - * NPMJS = 1; + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - public static final int NPMJS_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); } - /** - * @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. + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - @java.lang.Deprecated - public static PublicRepository valueOf(int value) { - return forNumber(value); + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); + } } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; + * */ - public static PublicRepository forNumber(int value) { - switch (value) { - case 0: - return PUBLIC_REPOSITORY_UNSPECIFIED; - case 1: - return NPMJS; - default: - return null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.getDefaultInstance(); + } + customRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + .CustomRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; } + upstreamCase_ = 3; + onChanged(); + return customRepositoryBuilder_; } - 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 PublicRepository findValueByNumber(int number) { - return PublicRepository.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()); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .getDescriptor() - .getEnumTypes() - .get(0); - } + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) + } - private static final PublicRepository[] VALUES = values(); + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .DockerRepository + DEFAULT_INSTANCE; - public static PublicRepository 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()]; - } + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository(); + } - private final int value; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private PublicRepository(int value) { - this.value = value; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DockerRepository 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(); + } + }; - // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository) + public static com.google.protobuf.Parser parser() { + return PARSER; } - private int upstreamCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object upstream_; - - public enum UpstreamCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PUBLIC_REPOSITORY(1), - UPSTREAM_NOT_SET(0); - private final int value; - - private UpstreamCase(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 UpstreamCase valueOf(int value) { - return forNumber(value); - } - - public static UpstreamCase forNumber(int value) { - switch (value) { - case 1: - return PUBLIC_REPOSITORY; - case 0: - return UPSTREAM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface MavenRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + com.google.protobuf.MessageOrBuilder { - public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; /** * * *
-     * One of the publicly available Npm repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. */ - public boolean hasPublicRepository() { - return upstreamCase_ == 1; - } + boolean hasPublicRepository(); /** * * *
-     * One of the publicly available Npm repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The enum numeric value on the wire for publicRepository. */ - public int getPublicRepositoryValue() { - if (upstreamCase_ == 1) { - return (java.lang.Integer) upstream_; - } - return 0; - } + int getPublicRepositoryValue(); /** * * *
-     * One of the publicly available Npm repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.forNumber((java.lang.Integer) upstream_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.UNRECOGNIZED - : result; - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; - } - - private byte memoizedIsInitialized = -1; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository + getPublicRepository(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); - memoizedIsInitialized = 1; - return true; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.UpstreamCase + getUpstreamCase(); + } + /** + * + * + *
+   * Configuration for a Maven remote repository.
+   * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository} + */ + public static final class MavenRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + MavenRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use MavenRepository.newBuilder() to construct. + private MavenRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (upstreamCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) upstream_)); - } - getUnknownFields().writeTo(output); - } + private MavenRepository() {} @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MavenRepository(); + } - size = 0; - if (upstreamCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, ((java.lang.Integer) upstream_)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository)) { - return super.equals(obj); - } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) obj; - - if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; - switch (upstreamCase_) { - case 1: - if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.Builder + .class); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (upstreamCase_) { - case 1: - hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getPublicRepositoryValue(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Predefined list of publicly available Maven repositories like Maven
+     * Central.
+     * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository} + */ + public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified repository.
+       * 
+ * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + PUBLIC_REPOSITORY_UNSPECIFIED(0), + /** + * + * + *
+       * Maven Central.
+       * 
+ * + * MAVEN_CENTRAL = 1; + */ + MAVEN_CENTRAL(1), + UNRECOGNIZED(-1), + ; - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+       * Unspecified repository.
+       * 
+ * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Maven Central.
+       * 
+ * + * MAVEN_CENTRAL = 1; + */ + public static final int MAVEN_CENTRAL_VALUE = 1; - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * @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 PublicRepository valueOf(int value) { + return forNumber(value); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PublicRepository forNumber(int value) { + switch (value) { + case 0: + return PUBLIC_REPOSITORY_UNSPECIFIED; + case 1: + return MAVEN_CENTRAL; + default: + return null; + } + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PublicRepository findValueByNumber(int number) { + return PublicRepository.forNumber(number); + } + }; - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + 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 static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .getDescriptor() + .getEnumTypes() + .get(0); + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private static final PublicRepository[] VALUES = values(); - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static PublicRepository 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()]; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private final int value; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private PublicRepository(int value) { + this.value = value; + } - public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository) } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.maven.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.maven.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); } /** * * *
-     * Configuration for a Npm remote repository.
+     * Customer-specified publicly available remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository) + CustomRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRepository() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomRepository(); + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.Builder - .class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder.class); } - // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.newBuilder() - private Builder() {} + public static final int URI_FIELD_NUMBER = 1; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.maven.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.maven.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - upstreamCase_ = 0; - upstream_ = null; - return this; + 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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .getDefaultInstance(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - return result; + if (!(obj + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository(this); - if (bitField0_ != 0) { - buildPartial0(result); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - buildPartialOneofs(result); - onBuilt(); - return result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result) { - int from_bitField0_ = bitField0_; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result) { - result.upstreamCase_ = upstreamCase_; - result.upstream_ = this.upstream_; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder clone() { - return super.clone(); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) { - return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) other); - } else { - super.mergeFrom(other); - return this; - } + public Builder newBuilderForType() { + return newBuilder(); } - public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository other) { - if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .getDefaultInstance()) return this; - switch (other.getUpstreamCase()) { - case PUBLIC_REPOSITORY: - { - setPublicRepositoryValue(other.getPublicRepositoryValue()); - break; - } - case UPSTREAM_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public final boolean isInitialized() { - return true; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @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: - { - int rawValue = input.readEnum(); - upstreamCase_ = 1; - upstream_ = rawValue; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int upstreamCase_ = 0; - private java.lang.Object upstream_; - - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); - } - - public Builder clearUpstream() { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ - @java.lang.Override - public boolean hasPublicRepository() { - return upstreamCase_ == 1; - } - /** - * - * - *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return The enum numeric value on the wire for publicRepository. - */ - @java.lang.Override - public int getPublicRepositoryValue() { - if (upstreamCase_ == 1) { - return ((java.lang.Integer) upstream_).intValue(); - } - return 0; - } - /** - * - * - *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @param value The enum numeric value on the wire for publicRepository to set. - * @return This builder for chaining. - */ - public Builder setPublicRepositoryValue(int value) { - upstreamCase_ = 1; - upstream_ = value; - onChanged(); - return this; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
+       * Customer-specified publicly available remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository} */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.forNumber((java.lang.Integer) upstream_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.UNRECOGNIZED - : result; + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; - } - /** - * - * - *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @param value The publicRepository to set. - * @return This builder for chaining. - */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - .PublicRepository - value) { - if (value == null) { - throw new NullPointerException(); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder.class); } - upstreamCase_ = 1; - upstream_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * One of the publicly available Npm repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearPublicRepository() { - if (upstreamCase_ == 1) { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor; + } - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) - } + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) - private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .NpmRepository - DEFAULT_INSTANCE; + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - static { - DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository(); - } + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NpmRepository 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 Builder clone() { + return super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public interface PythonRepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * - * - *
-     * One of the publicly available Python repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ - boolean hasPublicRepository(); - /** - * - * - *
-     * One of the publicly available Python repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; - * - * - * @return The enum numeric value on the wire for publicRepository. - */ - int getPublicRepositoryValue(); - /** - * - * - *
-     * One of the publicly available Python repositories supported by Artifact
-     * Registry.
-     * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. - */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository - getPublicRepository(); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.UpstreamCase - getUpstreamCase(); - } - /** - * - * - *
-   * Configuration for a Python remote repository.
-   * 
- * - * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository} - */ - public static final class PythonRepository extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) - PythonRepositoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use PythonRepository.newBuilder() to construct. - private PythonRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - private PythonRepository() {} + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PythonRepository(); - } + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository - .Builder.class); - } + @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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-     * Predefined list of publicly available Python repositories like PyPI.org.
-     * 
- * - * Protobuf enum {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository} - */ - public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified repository.
-       * 
- * - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - PUBLIC_REPOSITORY_UNSPECIFIED(0), - /** - * - * - *
-       * PyPI.
-       * 
- * - * PYPI = 1; - */ - PYPI(1), - UNRECOGNIZED(-1), - ; + private int bitField0_; - /** - * - * - *
-       * Unspecified repository.
-       * 
- * - * PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * PyPI.
-       * 
- * - * PYPI = 1; - */ - public static final int PYPI_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + private java.lang.Object uri_ = ""; + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.maven.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.maven.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.maven.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.maven.registry/".
+         * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.maven.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - 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 PublicRepository valueOf(int value) { - return forNumber(value); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PublicRepository forNumber(int value) { - switch (value) { - case 0: - return PUBLIC_REPOSITORY_UNSPECIFIED; - case 1: - return PYPI; - default: - return null; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository) } - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PublicRepository findValueByNumber(int number) { - return PublicRepository.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()); - } + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .MavenRepository.CustomRepository + DEFAULT_INSTANCE; - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository - .getDescriptor() - .getEnumTypes() - .get(0); + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final PublicRepository[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRepository 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 PublicRepository 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()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private PublicRepository(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository) + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } private int upstreamCase_ = 0; @@ -5178,6 +5127,7 @@ public enum UpstreamCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), UPSTREAM_NOT_SET(0); private final int value; @@ -5198,6 +5148,8 @@ public static UpstreamCase forNumber(int value) { switch (value) { case 1: return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; case 0: return UPSTREAM_NOT_SET; default: @@ -5219,12 +5171,12 @@ public UpstreamCase getUpstreamCase() { * * *
-     * One of the publicly available Python repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -5236,12 +5188,12 @@ public boolean hasPublicRepository() { * * *
-     * One of the publicly available Python repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The enum numeric value on the wire for publicRepository. @@ -5256,55 +5208,129 @@ public int getPublicRepositoryValue() { * * *
-     * One of the publicly available Python repositories supported by Artifact
+     * One of the publicly available Maven repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository getPublicRepository() { if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.forNumber((java.lang.Integer) upstream_); return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.UNRECOGNIZED : result; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; } - 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; - } - + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (upstreamCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) upstream_)); - } - getUnknownFields().writeTo(output); + public boolean hasCustomRepository() { + return upstreamCase_ == 3; } - - @java.lang.Override + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (upstreamCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) upstream_)); + } + if (upstreamCase_ == 3) { + output.writeMessage( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -5315,6 +5341,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 1, ((java.lang.Integer) upstream_)); } + if (upstreamCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5327,17 +5361,20 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) obj; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) obj; if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; switch (upstreamCase_) { case 1: if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; + break; case 0: default: } @@ -5357,6 +5394,10 @@ public int hashCode() { hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; hash = (53 * hash) + getPublicRepositoryValue(); break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); + break; case 0: default: } @@ -5365,26 +5406,26 @@ public int hashCode() { return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5392,23 +5433,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5416,12 +5457,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5429,12 +5470,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5453,7 +5494,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository prototype) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5472,36 +5513,36 @@ protected Builder newBuilderForType( * * *
-     * Configuration for a Python remote repository.
+     * Configuration for a Maven remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .Builder.class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -5512,6 +5553,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); + } upstreamCase_ = 0; upstream_ = null; return this; @@ -5520,20 +5564,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -5542,10 +5586,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository( this); if (bitField0_ != 0) { buildPartial0(result); @@ -5556,14 +5600,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository result) { result.upstreamCase_ = upstreamCase_; result.upstream_ = this.upstream_; + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); + } } @java.lang.Override @@ -5605,9 +5652,9 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) other); } else { super.mergeFrom(other); @@ -5616,9 +5663,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository other) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .getDefaultInstance()) return this; switch (other.getUpstreamCase()) { case PUBLIC_REPOSITORY: @@ -5626,6 +5673,11 @@ public Builder mergeFrom( setPublicRepositoryValue(other.getPublicRepositoryValue()); break; } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); + break; + } case UPSTREAM_NOT_SET: { break; @@ -5664,6 +5716,13 @@ public Builder mergeFrom( upstream_ = rawValue; break; } // case 8 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5701,12 +5760,12 @@ public Builder clearUpstream() { * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -5719,12 +5778,12 @@ public boolean hasPublicRepository() { * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The enum numeric value on the wire for publicRepository. @@ -5740,12 +5799,12 @@ public int getPublicRepositoryValue() { * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @param value The enum numeric value on the wire for publicRepository to set. @@ -5761,51 +5820,51 @@ public Builder setPublicRepositoryValue(int value) { * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository getPublicRepository() { if (upstreamCase_ == 1) { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.forNumber((java.lang.Integer) upstream_); return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.UNRECOGNIZED : result; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; } /** * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @param value The publicRepository to set. * @return This builder for chaining. */ public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository .PublicRepository value) { if (value == null) { @@ -5820,12 +5879,12 @@ public Builder setPublicRepository( * * *
-       * One of the publicly available Python repositories supported by Artifact
+       * One of the publicly available Maven repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; * * * @return This builder for chaining. @@ -5839,50 +5898,316 @@ public Builder clearPublicRepository() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public boolean hasCustomRepository() { + return upstreamCase_ == 3; } - + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } } - - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) - } - - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) - private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .PythonRepository - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository(); - } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PythonRepository 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() + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + customRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .MavenRepository.CustomRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); + } else { + customRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + } + customRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.getDefaultInstance(); + } + customRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + .CustomRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; + } + upstreamCase_ = 3; + onChanged(); + return customRepositoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .MavenRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MavenRepository 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) @@ -5892,37 +6217,37 @@ public PythonRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AptRepositoryOrBuilder + public interface NpmRepositoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) com.google.protobuf.MessageOrBuilder { /** * * *
-     * One of the publicly available Apt repositories supported by Artifact
+     * One of the publicly available Npm repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -5932,426 +6257,370 @@ public interface AptRepositoryOrBuilder * * *
-     * One of the publicly available Apt repositories supported by Artifact
+     * One of the publicly available Npm repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; + * + * + * @return The enum numeric value on the wire for publicRepository. + */ + int getPublicRepositoryValue(); + /** + * + * + *
+     * One of the publicly available Npm repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository getPublicRepository(); + /** * * *
-     * One of the publicly available Apt repositories supported by Artifact
-     * Registry.
+     * Customer-specified remote repository.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; * + * + * @return The customRepository. */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder(); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.UpstreamCase + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.UpstreamCase getUpstreamCase(); } /** * * *
-   * Configuration for an Apt remote repository.
+   * Configuration for a Npm remote repository.
    * 
* - * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository} + * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository} */ - public static final class AptRepository extends com.google.protobuf.GeneratedMessageV3 + public static final class NpmRepository extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) - AptRepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) + NpmRepositoryOrBuilder { private static final long serialVersionUID = 0L; - // Use AptRepository.newBuilder() to construct. - private AptRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NpmRepository.newBuilder() to construct. + private NpmRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AptRepository() {} + private NpmRepository() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AptRepository(); + return new NpmRepository(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.Builder + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.Builder .class); } - public interface PublicRepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
+     * Predefined list of publicly available NPM repositories like npmjs.
+     * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository} + */ + public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-       * A common public repository base for Apt.
+       * Unspecified repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + PUBLIC_REPOSITORY_UNSPECIFIED(0), + /** * - * @return The enum numeric value on the wire for repositoryBase. + * + *
+       * npmjs.
+       * 
+ * + * NPMJS = 1; */ - int getRepositoryBaseValue(); + NPMJS(1), + UNRECOGNIZED(-1), + ; + /** * * *
-       * A common public repository base for Apt.
+       * Unspecified repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; + /** * - * @return The repositoryBase. + * + *
+       * npmjs.
+       * 
+ * + * NPMJS = 1; */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository - .RepositoryBase - getRepositoryBase(); + public static final int NPMJS_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PublicRepository 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 PublicRepository forNumber(int value) { + switch (value) { + case 0: + return PUBLIC_REPOSITORY_UNSPECIFIED; + case 1: + return NPMJS; + 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 PublicRepository findValueByNumber(int number) { + return PublicRepository.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PublicRepository[] VALUES = values(); + + public static PublicRepository 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 PublicRepository(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository) + } + + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { /** * * *
-       * A custom field to define a path to a specific repository from the base.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.npm.registry/".
        * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The repositoryPath. + * @return The uri. */ - java.lang.String getRepositoryPath(); + java.lang.String getUri(); /** * * *
-       * A custom field to define a path to a specific repository from the base.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.npm.registry/".
        * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The bytes for repositoryPath. + * @return The bytes for uri. */ - com.google.protobuf.ByteString getRepositoryPathBytes(); + com.google.protobuf.ByteString getUriBytes(); } /** * * *
-     * Publicly available Apt repositories constructed from a common repository
-     * base and a custom repository path.
+     * Customer-specified publicly available remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository} */ - public static final class PublicRepository extends com.google.protobuf.GeneratedMessageV3 + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) - PublicRepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository) + CustomRepositoryOrBuilder { private static final long serialVersionUID = 0L; - // Use PublicRepository.newBuilder() to construct. - private PublicRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublicRepository() { - repositoryBase_ = 0; - repositoryPath_ = ""; + private CustomRepository() { + uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PublicRepository(); + return new CustomRepository(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder.class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder.class); } + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * *
-       * Predefined list of publicly available repository bases for Apt.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.npm.registry/".
        * 
* - * Protobuf enum {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase} - */ - public enum RepositoryBase implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-         * Unspecified repository base.
-         * 
- * - * REPOSITORY_BASE_UNSPECIFIED = 0; - */ - REPOSITORY_BASE_UNSPECIFIED(0), - /** - * - * - *
-         * Debian.
-         * 
- * - * DEBIAN = 1; - */ - DEBIAN(1), - /** - * - * - *
-         * Ubuntu LTS/Pro.
-         * 
- * - * UBUNTU = 2; - */ - UBUNTU(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-         * Unspecified repository base.
-         * 
- * - * REPOSITORY_BASE_UNSPECIFIED = 0; - */ - public static final int REPOSITORY_BASE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-         * Debian.
-         * 
- * - * DEBIAN = 1; - */ - public static final int DEBIAN_VALUE = 1; - /** - * - * - *
-         * Ubuntu LTS/Pro.
-         * 
- * - * UBUNTU = 2; - */ - public static final int UBUNTU_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 RepositoryBase 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 RepositoryBase forNumber(int value) { - switch (value) { - case 0: - return REPOSITORY_BASE_UNSPECIFIED; - case 1: - return DEBIAN; - case 2: - return UBUNTU; - 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 RepositoryBase findValueByNumber(int number) { - return RepositoryBase.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RepositoryBase[] VALUES = values(); - - public static RepositoryBase 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 RepositoryBase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase) - } - - public static final int REPOSITORY_BASE_FIELD_NUMBER = 1; - private int repositoryBase_ = 0; - /** - * - * - *
-       * A common public repository base for Apt.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return The enum numeric value on the wire for repositoryBase. - */ - @java.lang.Override - public int getRepositoryBaseValue() { - return repositoryBase_; - } - /** - * - * - *
-       * A common public repository base for Apt.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return The repositoryBase. - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase - getRepositoryBase() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.forNumber(repositoryBase_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.UNRECOGNIZED - : result; - } - - public static final int REPOSITORY_PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object repositoryPath_ = ""; - /** - * - * - *
-       * A custom field to define a path to a specific repository from the base.
-       * 
- * - * string repository_path = 2; - * - * @return The repositoryPath. + * string uri = 1; + * + * @return The uri. */ @java.lang.Override - public java.lang.String getRepositoryPath() { - java.lang.Object ref = repositoryPath_; + public java.lang.String getUri() { + java.lang.Object ref = uri_; 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(); - repositoryPath_ = s; + uri_ = s; return s; } } @@ -6359,20 +6628,21 @@ public java.lang.String getRepositoryPath() { * * *
-       * A custom field to define a path to a specific repository from the base.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.npm.registry/".
        * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The bytes for repositoryPath. + * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getRepositoryPathBytes() { - java.lang.Object ref = repositoryPath_; + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryPath_ = b; + uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6393,14 +6663,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (repositoryBase_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, repositoryBase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryPath_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } getUnknownFields().writeTo(output); } @@ -6411,14 +6675,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (repositoryBase_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, repositoryBase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryPath_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6432,19 +6690,18 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) obj; - if (repositoryBase_ != other.repositoryBase_) return false; - if (!getRepositoryPath().equals(other.getRepositoryPath())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6456,39 +6713,37 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REPOSITORY_BASE_FIELD_NUMBER; - hash = (53 * hash) + repositoryBase_; - hash = (37 * hash) + REPOSITORY_PATH_FIELD_NUMBER; - hash = (53 * hash) + getRepositoryPath().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6496,27 +6751,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6525,14 +6780,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6541,14 +6796,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6567,8 +6822,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6588,38 +6843,37 @@ protected Builder newBuilderForType( * * *
-       * Publicly available Apt repositories constructed from a common repository
-       * base and a custom repository path.
+       * Customer-specified publicly available remote repository.
        * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder.class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder.class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -6630,31 +6884,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - repositoryBase_ = 0; - repositoryPath_ = ""; + uri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -6663,14 +6916,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository(this); + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -6679,15 +6932,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.repositoryBase_ = repositoryBase_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.repositoryPath_ = repositoryPath_; + result.uri_ = uri_; } } @@ -6730,11 +6980,11 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) other); } else { super.mergeFrom(other); @@ -6743,18 +6993,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance()) return this; - if (other.repositoryBase_ != 0) { - setRepositoryBaseValue(other.getRepositoryBaseValue()); - } - if (!other.getRepositoryPath().isEmpty()) { - repositoryPath_ = other.repositoryPath_; - bitField0_ |= 0x00000002; + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -6783,18 +7030,12 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - repositoryBase_ = input.readEnum(); + uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 - case 18: - { - repositoryPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6814,135 +7055,25 @@ public Builder mergeFrom( private int bitField0_; - private int repositoryBase_ = 0; - /** - * - * - *
-         * A common public repository base for Apt.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return The enum numeric value on the wire for repositoryBase. - */ - @java.lang.Override - public int getRepositoryBaseValue() { - return repositoryBase_; - } - /** - * - * - *
-         * A common public repository base for Apt.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @param value The enum numeric value on the wire for repositoryBase to set. - * @return This builder for chaining. - */ - public Builder setRepositoryBaseValue(int value) { - repositoryBase_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-         * A common public repository base for Apt.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return The repositoryBase. - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase - getRepositoryBase() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.forNumber(repositoryBase_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase.UNRECOGNIZED - : result; - } - /** - * - * - *
-         * A common public repository base for Apt.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @param value The repositoryBase to set. - * @return This builder for chaining. - */ - public Builder setRepositoryBase( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.RepositoryBase - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - repositoryBase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-         * A common public repository base for Apt.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearRepositoryBase() { - bitField0_ = (bitField0_ & ~0x00000001); - repositoryBase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object repositoryPath_ = ""; + private java.lang.Object uri_ = ""; /** * * *
-         * A custom field to define a path to a specific repository from the base.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.npm.registry/".
          * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The repositoryPath. + * @return The uri. */ - public java.lang.String getRepositoryPath() { - java.lang.Object ref = repositoryPath_; + public java.lang.String getUri() { + java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - repositoryPath_ = s; + uri_ = s; return s; } else { return (java.lang.String) ref; @@ -6952,19 +7083,20 @@ public java.lang.String getRepositoryPath() { * * *
-         * A custom field to define a path to a specific repository from the base.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.npm.registry/".
          * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The bytes for repositoryPath. + * @return The bytes for uri. */ - public com.google.protobuf.ByteString getRepositoryPathBytes() { - java.lang.Object ref = repositoryPath_; + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryPath_ = b; + uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6974,20 +7106,21 @@ public com.google.protobuf.ByteString getRepositoryPathBytes() { * * *
-         * A custom field to define a path to a specific repository from the base.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.npm.registry/".
          * 
* - * string repository_path = 2; + * string uri = 1; * - * @param value The repositoryPath to set. + * @param value The uri to set. * @return This builder for chaining. */ - public Builder setRepositoryPath(java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - repositoryPath_ = value; - bitField0_ |= 0x00000002; + uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6995,16 +7128,17 @@ public Builder setRepositoryPath(java.lang.String value) { * * *
-         * A custom field to define a path to a specific repository from the base.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.npm.registry/".
          * 
* - * string repository_path = 2; + * string uri = 1; * * @return This builder for chaining. */ - public Builder clearRepositoryPath() { - repositoryPath_ = getDefaultInstance().getRepositoryPath(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -7012,21 +7146,22 @@ public Builder clearRepositoryPath() { * * *
-         * A custom field to define a path to a specific repository from the base.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.npm.registry/".
          * 
* - * string repository_path = 2; + * string uri = 1; * - * @param value The bytes for repositoryPath to set. + * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setRepositoryPathBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - repositoryPath_ = value; - bitField0_ |= 0x00000002; + uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7043,30 +7178,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository) } - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository) private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .AptRepository.PublicRepository + .NpmRepository.CustomRepository DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository(); + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository(); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository 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 PublicRepository parsePartialFrom( + public CustomRepository parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7086,18 +7221,18 @@ public PublicRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -7113,6 +7248,7 @@ public enum UpstreamCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), UPSTREAM_NOT_SET(0); private final int value; @@ -7133,6 +7269,8 @@ public static UpstreamCase forNumber(int value) { switch (value) { case 1: return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; case 0: return UPSTREAM_NOT_SET; default: @@ -7154,17 +7292,16 @@ public UpstreamCase getUpstreamCase() { * * *
-     * One of the publicly available Apt repositories supported by Artifact
+     * One of the publicly available Npm repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. */ - @java.lang.Override public boolean hasPublicRepository() { return upstreamCase_ == 1; } @@ -7172,61 +7309,129 @@ public boolean hasPublicRepository() { * * *
-     * One of the publicly available Apt repositories supported by Artifact
+     * One of the publicly available Npm repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * - * @return The publicRepository. + * @return The enum numeric value on the wire for publicRepository. */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository - getPublicRepository() { + public int getPublicRepositoryValue() { if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) - upstream_; + return (java.lang.Integer) upstream_; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + return 0; } /** * * *
-     * One of the publicly available Apt repositories supported by Artifact
+     * One of the publicly available Npm repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * + * + * @return The publicRepository. */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder() { + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository + getPublicRepository() { if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) - upstream_; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.forNumber((java.lang.Integer) upstream_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.UNRECOGNIZED + : result; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + memoizedIsInitialized = 1; return true; } @@ -7234,10 +7439,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (upstreamCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) upstream_)); + } + if (upstreamCase_ == 3) { output.writeMessage( - 1, - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) upstream_); } getUnknownFields().writeTo(output); @@ -7250,11 +7458,16 @@ public int getSerializedSize() { size = 0; if (upstreamCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) upstream_)); + } + if (upstreamCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) upstream_); } size += getUnknownFields().getSerializedSize(); @@ -7269,16 +7482,19 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) obj; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) obj; if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; switch (upstreamCase_) { case 1: - if (!getPublicRepository().equals(other.getPublicRepository())) return false; + if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; + break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; break; case 0: default: @@ -7297,7 +7513,11 @@ public int hashCode() { switch (upstreamCase_) { case 1: hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getPublicRepository().hashCode(); + hash = (53 * hash) + getPublicRepositoryValue(); + break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); break; case 0: default: @@ -7307,26 +7527,26 @@ public int hashCode() { return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7334,23 +7554,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7358,12 +7578,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7371,12 +7591,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7395,7 +7615,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository prototype) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -7414,35 +7634,35 @@ protected Builder newBuilderForType( * * *
-     * Configuration for an Apt remote repository.
+     * Configuration for a Npm remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.Builder + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.Builder .class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -7453,8 +7673,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - if (publicRepositoryBuilder_ != null) { - publicRepositoryBuilder_.clear(); + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); } upstreamCase_ = 0; upstream_ = null; @@ -7464,19 +7684,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository .getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result = + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -7485,10 +7705,10 @@ public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptReposit } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository(this); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -7498,16 +7718,16 @@ public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptReposit } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository result) { result.upstreamCase_ = upstreamCase_; result.upstream_ = this.upstream_; - if (upstreamCase_ == 1 && publicRepositoryBuilder_ != null) { - result.upstream_ = publicRepositoryBuilder_.build(); + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); } } @@ -7550,9 +7770,9 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) other); + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) other); } else { super.mergeFrom(other); return this; @@ -7560,14 +7780,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository other) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository .getDefaultInstance()) return this; switch (other.getUpstreamCase()) { case PUBLIC_REPOSITORY: { - mergePublicRepository(other.getPublicRepository()); + setPublicRepositoryValue(other.getPublicRepositoryValue()); + break; + } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); break; } case UPSTREAM_NOT_SET: @@ -7601,13 +7826,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: + case 8: { - input.readMessage( - getPublicRepositoryFieldBuilder().getBuilder(), extensionRegistry); + int rawValue = input.readEnum(); upstreamCase_ = 1; + upstream_ = rawValue; break; - } // case 10 + } // case 8 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7641,24 +7873,16 @@ public Builder clearUpstream() { private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder> - publicRepositoryBuilder_; /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
+       * One of the publicly available Npm repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -7671,115 +7895,260 @@ public boolean hasPublicRepository() { * * *
-       * One of the publicly available Apt repositories supported by Artifact
+       * One of the publicly available Npm repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * * - * @return The publicRepository. + * @return The enum numeric value on the wire for publicRepository. */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository - getPublicRepository() { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) - upstream_; - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); - } else { - if (upstreamCase_ == 1) { - return publicRepositoryBuilder_.getMessage(); - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + public int getPublicRepositoryValue() { + if (upstreamCase_ == 1) { + return ((java.lang.Integer) upstream_).intValue(); } + return 0; } /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
+       * One of the publicly available Npm repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * + * + * @param value The enum numeric value on the wire for publicRepository to set. + * @return This builder for chaining. */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository - value) { - if (publicRepositoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upstream_ = value; - onChanged(); - } else { - publicRepositoryBuilder_.setMessage(value); - } + public Builder setPublicRepositoryValue(int value) { upstreamCase_ = 1; + upstream_ = value; + onChanged(); return this; } /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
+       * One of the publicly available Npm repositories supported by Artifact
        * Registry.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * - */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder - builderForValue) { - if (publicRepositoryBuilder_ == null) { - upstream_ = builderForValue.build(); - onChanged(); - } else { - publicRepositoryBuilder_.setMessage(builderForValue.build()); - } - upstreamCase_ = 1; - return this; - } - /** - * * - *
-       * One of the publicly available Apt repositories supported by Artifact
-       * Registry.
-       * 
+ * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.forNumber((java.lang.Integer) upstream_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.UNRECOGNIZED + : result; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; + } + /** + * + * + *
+       * One of the publicly available Npm repositories supported by Artifact
+       * Registry.
+       * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; * + * + * @param value The publicRepository to set. + * @return This builder for chaining. */ - public Builder mergePublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository .PublicRepository value) { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1 + if (value == null) { + throw new NullPointerException(); + } + upstreamCase_ = 1; + upstream_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * One of the publicly available Npm repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPublicRepository() { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + customRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; + * + */ + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 && upstream_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance()) { + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance()) { upstream_ = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.newBuilder( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.newBuilder( (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .AptRepository.PublicRepository) + .NpmRepository.CustomRepository) upstream_) .mergeFrom(value) .buildPartial(); @@ -7788,40 +8157,39 @@ public Builder mergePublicRepository( } onChanged(); } else { - if (upstreamCase_ == 1) { - publicRepositoryBuilder_.mergeFrom(value); + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); } else { - publicRepositoryBuilder_.setMessage(value); + customRepositoryBuilder_.setMessage(value); } } - upstreamCase_ = 1; + upstreamCase_ = 3; return this; } /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
-       * Registry.
+       * Customer-specified remote repository.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; * */ - public Builder clearPublicRepository() { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1) { + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { upstreamCase_ = 0; upstream_ = null; onChanged(); } } else { - if (upstreamCase_ == 1) { + if (upstreamCase_ == 3) { upstreamCase_ = 0; upstream_ = null; } - publicRepositoryBuilder_.clear(); + customRepositoryBuilder_.clear(); } return this; } @@ -7829,91 +8197,88 @@ public Builder clearPublicRepository() { * * *
-       * One of the publicly available Apt repositories supported by Artifact
-       * Registry.
+       * Customer-specified remote repository.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; * */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder - getPublicRepositoryBuilder() { - return getPublicRepositoryFieldBuilder().getBuilder(); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); } /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
-       * Registry.
+       * Customer-specified remote repository.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; * */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder() { - if ((upstreamCase_ == 1) && (publicRepositoryBuilder_ != null)) { - return publicRepositoryBuilder_.getMessageOrBuilder(); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); } else { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) upstream_; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); } } /** * * *
-       * One of the publicly available Apt repositories supported by Artifact
-       * Registry.
+       * Customer-specified remote repository.
        * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder> - getPublicRepositoryFieldBuilder() { - if (publicRepositoryBuilder_ == null) { - if (!(upstreamCase_ == 1)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { upstream_ = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.getDefaultInstance(); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.getDefaultInstance(); } - publicRepositoryBuilder_ = + customRepositoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepositoryOrBuilder>( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - .PublicRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository + .CustomRepository) upstream_, getParentForChildren(), isClean()); upstream_ = null; } - upstreamCase_ = 1; + upstreamCase_ = 3; onChanged(); - return publicRepositoryBuilder_; + return customRepositoryBuilder_; } @java.lang.Override @@ -7928,28 +8293,28 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) } - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository) private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .AptRepository + .NpmRepository DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository(); + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository(); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository 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 AptRepository parsePartialFrom( + public NpmRepository parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7969,37 +8334,37 @@ public AptRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface YumRepositoryOrBuilder + public interface PythonRepositoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) com.google.protobuf.MessageOrBuilder { /** * * *
-     * One of the publicly available Yum repositories supported by Artifact
+     * One of the publicly available Python repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; * * * @return Whether the publicRepository field is set. @@ -8009,535 +8374,393 @@ public interface YumRepositoryOrBuilder * * *
-     * One of the publicly available Yum repositories supported by Artifact
+     * One of the publicly available Python repositories supported by Artifact
      * Registry.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return The enum numeric value on the wire for publicRepository. + */ + int getPublicRepositoryValue(); + /** + * + * + *
+     * One of the publicly available Python repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; * * * @return The publicRepository. */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository getPublicRepository(); + /** * * *
-     * One of the publicly available Yum repositories supported by Artifact
-     * Registry.
+     * Customer-specified remote repository.
      * 
* * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; * + * + * @return Whether the customRepository field is set. */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder(); + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.UpstreamCase + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.UpstreamCase getUpstreamCase(); } /** * * *
-   * Configuration for a Yum remote repository.
+   * Configuration for a Python remote repository.
    * 
* - * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository} + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository} */ - public static final class YumRepository extends com.google.protobuf.GeneratedMessageV3 + public static final class PythonRepository extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) - YumRepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + PythonRepositoryOrBuilder { private static final long serialVersionUID = 0L; - // Use YumRepository.newBuilder() to construct. - private YumRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PythonRepository.newBuilder() to construct. + private PythonRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private YumRepository() {} + private PythonRepository() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new YumRepository(); + return new PythonRepository(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.Builder - .class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .Builder.class); } - public interface PublicRepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
+     * Predefined list of publicly available Python repositories like PyPI.org.
+     * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository} + */ + public enum PublicRepository implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-       * A common public repository base for Yum.
+       * Unspecified repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + PUBLIC_REPOSITORY_UNSPECIFIED(0), + /** * - * @return The enum numeric value on the wire for repositoryBase. + * + *
+       * PyPI.
+       * 
+ * + * PYPI = 1; */ - int getRepositoryBaseValue(); + PYPI(1), + UNRECOGNIZED(-1), + ; + /** * * *
-       * A common public repository base for Yum.
+       * Unspecified repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * PUBLIC_REPOSITORY_UNSPECIFIED = 0; + */ + public static final int PUBLIC_REPOSITORY_UNSPECIFIED_VALUE = 0; + /** * - * @return The repositoryBase. + * + *
+       * PyPI.
+       * 
+ * + * PYPI = 1; */ - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository - .RepositoryBase - getRepositoryBase(); + public static final int PYPI_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PublicRepository 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 PublicRepository forNumber(int value) { + switch (value) { + case 0: + return PUBLIC_REPOSITORY_UNSPECIFIED; + case 1: + return PYPI; + 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 PublicRepository findValueByNumber(int number) { + return PublicRepository.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PublicRepository[] VALUES = values(); + + public static PublicRepository 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 PublicRepository(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository) + } + + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { /** * * *
-       * A custom field to define a path to a specific repository from the base.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.python.registry/".
        * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The repositoryPath. + * @return The uri. */ - java.lang.String getRepositoryPath(); + java.lang.String getUri(); /** * * *
-       * A custom field to define a path to a specific repository from the base.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.python.registry/".
        * 
* - * string repository_path = 2; + * string uri = 1; * - * @return The bytes for repositoryPath. + * @return The bytes for uri. */ - com.google.protobuf.ByteString getRepositoryPathBytes(); + com.google.protobuf.ByteString getUriBytes(); } /** * * *
-     * Publicly available Yum repositories constructed from a common repository
-     * base and a custom repository path.
+     * Customer-specified publicly available remote repository.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository} */ - public static final class PublicRepository extends com.google.protobuf.GeneratedMessageV3 + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) - PublicRepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository) + CustomRepositoryOrBuilder { private static final long serialVersionUID = 0L; - // Use PublicRepository.newBuilder() to construct. - private PublicRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublicRepository() { - repositoryBase_ = 0; - repositoryPath_ = ""; + private CustomRepository() { + uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PublicRepository(); + return new CustomRepository(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder.class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder.class); } + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * *
-       * Predefined list of publicly available repository bases for Yum.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.python.registry/".
        * 
* - * Protobuf enum {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase} + * string uri = 1; + * + * @return The uri. */ - public enum RepositoryBase implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-         * Unspecified repository base.
-         * 
- * - * REPOSITORY_BASE_UNSPECIFIED = 0; - */ - REPOSITORY_BASE_UNSPECIFIED(0), - /** - * - * - *
-         * CentOS.
-         * 
- * - * CENTOS = 1; - */ - CENTOS(1), - /** - * - * - *
-         * CentOS Debug.
-         * 
- * - * CENTOS_DEBUG = 2; - */ - CENTOS_DEBUG(2), - /** - * - * - *
-         * CentOS Vault.
-         * 
- * - * CENTOS_VAULT = 3; - */ - CENTOS_VAULT(3), - /** - * - * - *
-         * CentOS Stream.
-         * 
- * - * CENTOS_STREAM = 4; - */ - CENTOS_STREAM(4), - /** - * - * - *
-         * Rocky.
-         * 
- * - * ROCKY = 5; - */ - ROCKY(5), - /** - * - * - *
-         * Fedora Extra Packages for Enterprise Linux (EPEL).
-         * 
- * - * EPEL = 6; - */ - EPEL(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-         * Unspecified repository base.
-         * 
- * - * REPOSITORY_BASE_UNSPECIFIED = 0; - */ - public static final int REPOSITORY_BASE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-         * CentOS.
-         * 
- * - * CENTOS = 1; - */ - public static final int CENTOS_VALUE = 1; - /** - * - * - *
-         * CentOS Debug.
-         * 
- * - * CENTOS_DEBUG = 2; - */ - public static final int CENTOS_DEBUG_VALUE = 2; - /** - * - * - *
-         * CentOS Vault.
-         * 
- * - * CENTOS_VAULT = 3; - */ - public static final int CENTOS_VAULT_VALUE = 3; - /** - * - * - *
-         * CentOS Stream.
-         * 
- * - * CENTOS_STREAM = 4; - */ - public static final int CENTOS_STREAM_VALUE = 4; - /** - * - * - *
-         * Rocky.
-         * 
- * - * ROCKY = 5; - */ - public static final int ROCKY_VALUE = 5; - /** - * - * - *
-         * Fedora Extra Packages for Enterprise Linux (EPEL).
-         * 
- * - * EPEL = 6; - */ - public static final int EPEL_VALUE = 6; - - 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 RepositoryBase 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 RepositoryBase forNumber(int value) { - switch (value) { - case 0: - return REPOSITORY_BASE_UNSPECIFIED; - case 1: - return CENTOS; - case 2: - return CENTOS_DEBUG; - case 3: - return CENTOS_VAULT; - case 4: - return CENTOS_STREAM; - case 5: - return ROCKY; - case 6: - return EPEL; - 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 RepositoryBase findValueByNumber(int number) { - return RepositoryBase.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RepositoryBase[] VALUES = values(); - - public static RepositoryBase 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 RepositoryBase(int value) { - this.value = value; + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; } - - // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase) } - - public static final int REPOSITORY_BASE_FIELD_NUMBER = 1; - private int repositoryBase_ = 0; /** * * *
-       * A common public repository base for Yum.
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.python.registry/".
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * string uri = 1; * - * @return The enum numeric value on the wire for repositoryBase. + * @return The bytes for uri. */ @java.lang.Override - public int getRepositoryBaseValue() { - return repositoryBase_; - } - /** - * - * - *
-       * A common public repository base for Yum.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return The repositoryBase. - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase - getRepositoryBase() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.forNumber(repositoryBase_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.UNRECOGNIZED - : result; - } - - public static final int REPOSITORY_PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object repositoryPath_ = ""; - /** - * - * - *
-       * A custom field to define a path to a specific repository from the base.
-       * 
- * - * string repository_path = 2; - * - * @return The repositoryPath. - */ - @java.lang.Override - public java.lang.String getRepositoryPath() { - java.lang.Object ref = repositoryPath_; - 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(); - repositoryPath_ = s; - return s; - } - } - /** - * - * - *
-       * A custom field to define a path to a specific repository from the base.
-       * 
- * - * string repository_path = 2; - * - * @return The bytes for repositoryPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRepositoryPathBytes() { - java.lang.Object ref = repositoryPath_; + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryPath_ = b; + uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -8558,14 +8781,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (repositoryBase_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, repositoryBase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryPath_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } getUnknownFields().writeTo(output); } @@ -8576,14 +8793,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (repositoryBase_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, repositoryBase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryPath_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8597,19 +8808,18 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) obj; - if (repositoryBase_ != other.repositoryBase_) return false; - if (!getRepositoryPath().equals(other.getRepositoryPath())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8621,39 +8831,37 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REPOSITORY_BASE_FIELD_NUMBER; - hash = (53 * hash) + repositoryBase_; - hash = (37 * hash) + REPOSITORY_PATH_FIELD_NUMBER; - hash = (53 * hash) + getRepositoryPath().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8661,27 +8869,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8690,14 +8898,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8706,14 +8914,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8732,8 +8940,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -8753,38 +8961,37 @@ protected Builder newBuilderForType( * * *
-       * Publicly available Yum repositories constructed from a common repository
-       * base and a custom repository path.
+       * Customer-specified publicly available remote repository.
        * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder.class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder.class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -8795,31 +9002,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - repositoryBase_ = 0; - repositoryPath_ = ""; + uri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -8828,14 +9034,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository(this); + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .PythonRepository.CustomRepository(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -8844,15 +9050,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.repositoryBase_ = repositoryBase_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.repositoryPath_ = repositoryPath_; + result.uri_ = uri_; } } @@ -8895,11 +9098,11 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) other); } else { super.mergeFrom(other); @@ -8908,18 +9111,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance()) return this; - if (other.repositoryBase_ != 0) { - setRepositoryBaseValue(other.getRepositoryBaseValue()); - } - if (!other.getRepositoryPath().isEmpty()) { - repositoryPath_ = other.repositoryPath_; - bitField0_ |= 0x00000002; + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -8948,18 +9148,12 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - repositoryBase_ = input.readEnum(); + uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 - case 18: - { - repositoryPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8979,40 +9173,71 @@ public Builder mergeFrom( private int bitField0_; - private int repositoryBase_ = 0; + private java.lang.Object uri_ = ""; /** * * *
-         * A common public repository base for Yum.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.python.registry/".
          * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * string uri = 1; * - * @return The enum numeric value on the wire for repositoryBase. + * @return The uri. */ - @java.lang.Override - public int getRepositoryBaseValue() { - return repositoryBase_; + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-         * A common public repository base for Yum.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.python.registry/".
          * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * string uri = 1; * - * @param value The enum numeric value on the wire for repositoryBase to set. + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.python.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The uri to set. * @return This builder for chaining. */ - public Builder setRepositoryBaseValue(int value) { - repositoryBase_ = value; + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -9021,367 +9246,7904 @@ public Builder setRepositoryBaseValue(int value) { * * *
-         * A common public repository base for Yum.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.python.registry/".
          * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * string uri = 1; * - * @return The repositoryBase. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase - getRepositoryBase() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase - result = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.forNumber(repositoryBase_); - return result == null - ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase.UNRECOGNIZED - : result; + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** * * *
-         * A common public repository base for Yum.
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.python.registry/".
          * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * + * string uri = 1; * - * @param value The repositoryBase to set. + * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setRepositoryBase( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.RepositoryBase - value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uri_ = value; bitField0_ |= 0x00000001; - repositoryBase_ = value.getNumber(); onChanged(); return this; } - /** - * - * - *
-         * A common public repository base for Yum.
-         * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearRepositoryBase() { - bitField0_ = (bitField0_ & ~0x00000001); - repositoryBase_ = 0; - onChanged(); - return this; + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .PythonRepository.CustomRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int upstreamCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object upstream_; + + public enum UpstreamCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), + UPSTREAM_NOT_SET(0); + private final int value; + + private UpstreamCase(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 UpstreamCase valueOf(int value) { + return forNumber(value); + } + + public static UpstreamCase forNumber(int value) { + switch (value) { + case 1: + return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; + case 0: + return UPSTREAM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * One of the publicly available Python repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+     * One of the publicly available Python repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return The enum numeric value on the wire for publicRepository. + */ + public int getPublicRepositoryValue() { + if (upstreamCase_ == 1) { + return (java.lang.Integer) upstream_; + } + return 0; + } + /** + * + * + *
+     * One of the publicly available Python repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.forNumber((java.lang.Integer) upstream_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.UNRECOGNIZED + : result; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; + } + + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (upstreamCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) upstream_)); + } + if (upstreamCase_ == 3) { + output.writeMessage( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (upstreamCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) upstream_)); + } + if (upstreamCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) obj; + + if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; + switch (upstreamCase_) { + case 1: + if (getPublicRepositoryValue() != other.getPublicRepositoryValue()) return false; + break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (upstreamCase_) { + case 1: + hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getPublicRepositoryValue(); + break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration for a Python remote repository.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); + } + upstreamCase_ = 0; + upstream_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository result) { + result.upstreamCase_ = upstreamCase_; + result.upstream_ = this.upstream_; + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .getDefaultInstance()) return this; + switch (other.getUpstreamCase()) { + case PUBLIC_REPOSITORY: + { + setPublicRepositoryValue(other.getPublicRepositoryValue()); + break; + } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); + break; + } + case UPSTREAM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + upstreamCase_ = 1; + upstream_ = rawValue; + break; + } // case 8 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int upstreamCase_ = 0; + private java.lang.Object upstream_; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public Builder clearUpstream() { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + @java.lang.Override + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return The enum numeric value on the wire for publicRepository. + */ + @java.lang.Override + public int getPublicRepositoryValue() { + if (upstreamCase_ == 1) { + return ((java.lang.Integer) upstream_).intValue(); + } + return 0; + } + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @param value The enum numeric value on the wire for publicRepository to set. + * @return This builder for chaining. + */ + public Builder setPublicRepositoryValue(int value) { + upstreamCase_ = 1; + upstream_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.forNumber((java.lang.Integer) upstream_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.UNRECOGNIZED + : result; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository.PUBLIC_REPOSITORY_UNSPECIFIED; + } + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @param value The publicRepository to set. + * @return This builder for chaining. + */ + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .PublicRepository + value) { + if (value == null) { + throw new NullPointerException(); + } + upstreamCase_ = 1; + upstream_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * One of the publicly available Python repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPublicRepository() { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + customRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .PythonRepository.CustomRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); + } else { + customRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + } + customRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.getDefaultInstance(); + } + customRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + .CustomRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; + } + upstreamCase_ = 3; + onChanged(); + return customRepositoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .PythonRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PythonRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AptRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + boolean hasPublicRepository(); + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository + getPublicRepository(); + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder(); + + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); + + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.UpstreamCase + getUpstreamCase(); + } + /** + * + * + *
+   * Configuration for an Apt remote repository.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository} + */ + public static final class AptRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + AptRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AptRepository.newBuilder() to construct. + private AptRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AptRepository() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AptRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.Builder + .class); + } + + public interface PublicRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * A common public repository base for Apt.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + int getRepositoryBaseValue(); + /** + * + * + *
+       * A common public repository base for Apt.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository + .RepositoryBase + getRepositoryBase(); + + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + java.lang.String getRepositoryPath(); + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + com.google.protobuf.ByteString getRepositoryPathBytes(); + } + /** + * + * + *
+     * Publicly available Apt repositories constructed from a common repository
+     * base and a custom repository path.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository} + */ + public static final class PublicRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + PublicRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicRepository.newBuilder() to construct. + private PublicRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PublicRepository() { + repositoryBase_ = 0; + repositoryPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublicRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder.class); + } + + /** + * + * + *
+       * Predefined list of publicly available repository bases for Apt.
+       * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase} + */ + public enum RepositoryBase implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified repository base.
+         * 
+ * + * REPOSITORY_BASE_UNSPECIFIED = 0; + */ + REPOSITORY_BASE_UNSPECIFIED(0), + /** + * + * + *
+         * Debian.
+         * 
+ * + * DEBIAN = 1; + */ + DEBIAN(1), + /** + * + * + *
+         * Ubuntu LTS/Pro.
+         * 
+ * + * UBUNTU = 2; + */ + UBUNTU(2), + /** + * + * + *
+         * Archived Debian.
+         * 
+ * + * DEBIAN_SNAPSHOT = 3; + */ + DEBIAN_SNAPSHOT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Unspecified repository base.
+         * 
+ * + * REPOSITORY_BASE_UNSPECIFIED = 0; + */ + public static final int REPOSITORY_BASE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Debian.
+         * 
+ * + * DEBIAN = 1; + */ + public static final int DEBIAN_VALUE = 1; + /** + * + * + *
+         * Ubuntu LTS/Pro.
+         * 
+ * + * UBUNTU = 2; + */ + public static final int UBUNTU_VALUE = 2; + /** + * + * + *
+         * Archived Debian.
+         * 
+ * + * DEBIAN_SNAPSHOT = 3; + */ + public static final int DEBIAN_SNAPSHOT_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 RepositoryBase 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 RepositoryBase forNumber(int value) { + switch (value) { + case 0: + return REPOSITORY_BASE_UNSPECIFIED; + case 1: + return DEBIAN; + case 2: + return UBUNTU; + case 3: + return DEBIAN_SNAPSHOT; + 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 RepositoryBase findValueByNumber(int number) { + return RepositoryBase.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RepositoryBase[] VALUES = values(); + + public static RepositoryBase 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 RepositoryBase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase) + } + + public static final int REPOSITORY_BASE_FIELD_NUMBER = 1; + private int repositoryBase_ = 0; + /** + * + * + *
+       * A common public repository base for Apt.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + @java.lang.Override + public int getRepositoryBaseValue() { + return repositoryBase_; + } + /** + * + * + *
+       * A common public repository base for Apt.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase + getRepositoryBase() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.forNumber(repositoryBase_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.UNRECOGNIZED + : result; + } + + public static final int REPOSITORY_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryPath_ = ""; + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + @java.lang.Override + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + 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(); + repositoryPath_ = s; + return s; + } + } + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryPath_ = 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 (repositoryBase_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, repositoryBase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (repositoryBase_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, repositoryBase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryPath_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + obj; + + if (repositoryBase_ != other.repositoryBase_) return false; + if (!getRepositoryPath().equals(other.getRepositoryPath())) 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) + REPOSITORY_BASE_FIELD_NUMBER; + hash = (53 * hash) + repositoryBase_; + hash = (37 * hash) + REPOSITORY_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Publicly available Apt repositories constructed from a common repository
+       * base and a custom repository path.
+       * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repositoryBase_ = 0; + repositoryPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.repositoryBase_ = repositoryBase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repositoryPath_ = repositoryPath_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance()) return this; + if (other.repositoryBase_ != 0) { + setRepositoryBaseValue(other.getRepositoryBaseValue()); + } + if (!other.getRepositoryPath().isEmpty()) { + repositoryPath_ = other.repositoryPath_; + 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 8: + { + repositoryBase_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + repositoryPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int repositoryBase_ = 0; + /** + * + * + *
+         * A common public repository base for Apt.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + @java.lang.Override + public int getRepositoryBaseValue() { + return repositoryBase_; + } + /** + * + * + *
+         * A common public repository base for Apt.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @param value The enum numeric value on the wire for repositoryBase to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBaseValue(int value) { + repositoryBase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * A common public repository base for Apt.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase + getRepositoryBase() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.forNumber(repositoryBase_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * A common public repository base for Apt.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @param value The repositoryBase to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBase( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.RepositoryBase + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + repositoryBase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * A common public repository base for Apt.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearRepositoryBase() { + bitField0_ = (bitField0_ & ~0x00000001); + repositoryBase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object repositoryPath_ = ""; + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + public com.google.protobuf.ByteString getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @param value The repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repositoryPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearRepositoryPath() { + repositoryPath_ = getDefaultInstance().getRepositoryPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @param value The bytes for repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repositoryPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .AptRepository.PublicRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.apt.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.apt.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + } + /** + * + * + *
+     * Customer-specified publicly available remote repository.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository} + */ + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository) + CustomRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRepository() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.apt.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.apt.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + obj; + + if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Customer-specified publicly available remote repository.
+       * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.apt.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.apt.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.apt.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.apt.registry/".
+         * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.apt.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .AptRepository.CustomRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int upstreamCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object upstream_; + + public enum UpstreamCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), + UPSTREAM_NOT_SET(0); + private final int value; + + private UpstreamCase(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 UpstreamCase valueOf(int value) { + return forNumber(value); + } + + public static UpstreamCase forNumber(int value) { + switch (value) { + case 1: + return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; + case 0: + return UPSTREAM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + @java.lang.Override + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + /** + * + * + *
+     * One of the publicly available Apt repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder() { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (upstreamCase_ == 1) { + output.writeMessage( + 1, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_); + } + if (upstreamCase_ == 3) { + output.writeMessage( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (upstreamCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_); + } + if (upstreamCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) obj; + + if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; + switch (upstreamCase_) { + case 1: + if (!getPublicRepository().equals(other.getPublicRepository())) return false; + break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (upstreamCase_) { + case 1: + hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getPublicRepository().hashCode(); + break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration for an Apt remote repository.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.Builder + .class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publicRepositoryBuilder_ != null) { + publicRepositoryBuilder_.clear(); + } + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); + } + upstreamCase_ = 0; + upstream_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository result) { + result.upstreamCase_ = upstreamCase_; + result.upstream_ = this.upstream_; + if (upstreamCase_ == 1 && publicRepositoryBuilder_ != null) { + result.upstream_ = publicRepositoryBuilder_.build(); + } + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .getDefaultInstance()) return this; + switch (other.getUpstreamCase()) { + case PUBLIC_REPOSITORY: + { + mergePublicRepository(other.getPublicRepository()); + break; + } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); + break; + } + case UPSTREAM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPublicRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 1; + break; + } // case 10 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int upstreamCase_ = 0; + private java.lang.Object upstream_; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public Builder clearUpstream() { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder> + publicRepositoryBuilder_; + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + @java.lang.Override + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + getPublicRepository() { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 1) { + return publicRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + value) { + if (publicRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + publicRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder + builderForValue) { + if (publicRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + publicRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + public Builder mergePublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository + value) { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .AptRepository.PublicRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 1) { + publicRepositoryBuilder_.mergeFrom(value); + } else { + publicRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + public Builder clearPublicRepository() { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + } + publicRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder + getPublicRepositoryBuilder() { + return getPublicRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder() { + if ((upstreamCase_ == 1) && (publicRepositoryBuilder_ != null)) { + return publicRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * One of the publicly available Apt repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder> + getPublicRepositoryFieldBuilder() { + if (publicRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 1)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.getDefaultInstance(); + } + publicRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .PublicRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; + } + upstreamCase_ = 1; + onChanged(); + return publicRepositoryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + customRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .AptRepository.CustomRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); + } else { + customRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + } + customRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.getDefaultInstance(); + } + customRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + .CustomRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; + } + upstreamCase_ = 3; + onChanged(); + return customRepositoryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .AptRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AptRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface YumRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + boolean hasPublicRepository(); + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository + getPublicRepository(); + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder(); + + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + boolean hasCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository + getCustomRepository(); + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder(); + + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.UpstreamCase + getUpstreamCase(); + } + /** + * + * + *
+   * Configuration for a Yum remote repository.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository} + */ + public static final class YumRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + YumRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use YumRepository.newBuilder() to construct. + private YumRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private YumRepository() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new YumRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.Builder + .class); + } + + public interface PublicRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * A common public repository base for Yum.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + int getRepositoryBaseValue(); + /** + * + * + *
+       * A common public repository base for Yum.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository + .RepositoryBase + getRepositoryBase(); + + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + java.lang.String getRepositoryPath(); + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + com.google.protobuf.ByteString getRepositoryPathBytes(); + } + /** + * + * + *
+     * Publicly available Yum repositories constructed from a common repository
+     * base and a custom repository path.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository} + */ + public static final class PublicRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + PublicRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicRepository.newBuilder() to construct. + private PublicRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PublicRepository() { + repositoryBase_ = 0; + repositoryPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublicRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder.class); + } + + /** + * + * + *
+       * Predefined list of publicly available repository bases for Yum.
+       * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase} + */ + public enum RepositoryBase implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified repository base.
+         * 
+ * + * REPOSITORY_BASE_UNSPECIFIED = 0; + */ + REPOSITORY_BASE_UNSPECIFIED(0), + /** + * + * + *
+         * CentOS.
+         * 
+ * + * CENTOS = 1; + */ + CENTOS(1), + /** + * + * + *
+         * CentOS Debug.
+         * 
+ * + * CENTOS_DEBUG = 2; + */ + CENTOS_DEBUG(2), + /** + * + * + *
+         * CentOS Vault.
+         * 
+ * + * CENTOS_VAULT = 3; + */ + CENTOS_VAULT(3), + /** + * + * + *
+         * CentOS Stream.
+         * 
+ * + * CENTOS_STREAM = 4; + */ + CENTOS_STREAM(4), + /** + * + * + *
+         * Rocky.
+         * 
+ * + * ROCKY = 5; + */ + ROCKY(5), + /** + * + * + *
+         * Fedora Extra Packages for Enterprise Linux (EPEL).
+         * 
+ * + * EPEL = 6; + */ + EPEL(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Unspecified repository base.
+         * 
+ * + * REPOSITORY_BASE_UNSPECIFIED = 0; + */ + public static final int REPOSITORY_BASE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * CentOS.
+         * 
+ * + * CENTOS = 1; + */ + public static final int CENTOS_VALUE = 1; + /** + * + * + *
+         * CentOS Debug.
+         * 
+ * + * CENTOS_DEBUG = 2; + */ + public static final int CENTOS_DEBUG_VALUE = 2; + /** + * + * + *
+         * CentOS Vault.
+         * 
+ * + * CENTOS_VAULT = 3; + */ + public static final int CENTOS_VAULT_VALUE = 3; + /** + * + * + *
+         * CentOS Stream.
+         * 
+ * + * CENTOS_STREAM = 4; + */ + public static final int CENTOS_STREAM_VALUE = 4; + /** + * + * + *
+         * Rocky.
+         * 
+ * + * ROCKY = 5; + */ + public static final int ROCKY_VALUE = 5; + /** + * + * + *
+         * Fedora Extra Packages for Enterprise Linux (EPEL).
+         * 
+ * + * EPEL = 6; + */ + public static final int EPEL_VALUE = 6; + + 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 RepositoryBase 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 RepositoryBase forNumber(int value) { + switch (value) { + case 0: + return REPOSITORY_BASE_UNSPECIFIED; + case 1: + return CENTOS; + case 2: + return CENTOS_DEBUG; + case 3: + return CENTOS_VAULT; + case 4: + return CENTOS_STREAM; + case 5: + return ROCKY; + case 6: + return EPEL; + 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 RepositoryBase findValueByNumber(int number) { + return RepositoryBase.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RepositoryBase[] VALUES = values(); + + public static RepositoryBase 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 RepositoryBase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase) + } + + public static final int REPOSITORY_BASE_FIELD_NUMBER = 1; + private int repositoryBase_ = 0; + /** + * + * + *
+       * A common public repository base for Yum.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + @java.lang.Override + public int getRepositoryBaseValue() { + return repositoryBase_; + } + /** + * + * + *
+       * A common public repository base for Yum.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase + getRepositoryBase() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.forNumber(repositoryBase_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.UNRECOGNIZED + : result; + } + + public static final int REPOSITORY_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryPath_ = ""; + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + @java.lang.Override + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + 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(); + repositoryPath_ = s; + return s; + } + } + /** + * + * + *
+       * A custom field to define a path to a specific repository from the base.
+       * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryPath_ = 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 (repositoryBase_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, repositoryBase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (repositoryBase_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.REPOSITORY_BASE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, repositoryBase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryPath_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + obj; + + if (repositoryBase_ != other.repositoryBase_) return false; + if (!getRepositoryPath().equals(other.getRepositoryPath())) 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) + REPOSITORY_BASE_FIELD_NUMBER; + hash = (53 * hash) + repositoryBase_; + hash = (37 * hash) + REPOSITORY_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Publicly available Yum repositories constructed from a common repository
+       * base and a custom repository path.
+       * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repositoryBase_ = 0; + repositoryPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.repositoryBase_ = repositoryBase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repositoryPath_ = repositoryPath_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance()) return this; + if (other.repositoryBase_ != 0) { + setRepositoryBaseValue(other.getRepositoryBaseValue()); + } + if (!other.getRepositoryPath().isEmpty()) { + repositoryPath_ = other.repositoryPath_; + 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 8: + { + repositoryBase_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + repositoryPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int repositoryBase_ = 0; + /** + * + * + *
+         * A common public repository base for Yum.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The enum numeric value on the wire for repositoryBase. + */ + @java.lang.Override + public int getRepositoryBaseValue() { + return repositoryBase_; + } + /** + * + * + *
+         * A common public repository base for Yum.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @param value The enum numeric value on the wire for repositoryBase to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBaseValue(int value) { + repositoryBase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * A common public repository base for Yum.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return The repositoryBase. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase + getRepositoryBase() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase + result = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.forNumber(repositoryBase_); + return result == null + ? com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * A common public repository base for Yum.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @param value The repositoryBase to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBase( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.RepositoryBase + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + repositoryBase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * A common public repository base for Yum.
+         * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearRepositoryBase() { + bitField0_ = (bitField0_ & ~0x00000001); + repositoryBase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object repositoryPath_ = ""; + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return The repositoryPath. + */ + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return The bytes for repositoryPath. + */ + public com.google.protobuf.ByteString getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @param value The repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repositoryPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearRepositoryPath() { + repositoryPath_ = getDefaultInstance().getRepositoryPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * A custom field to define a path to a specific repository from the base.
+         * 
+ * + * string repository_path = 2; + * + * @param value The bytes for repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repositoryPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .YumRepository.PublicRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.yum.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.yum.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + } + /** + * + * + *
+     * Customer-specified publicly available remote repository.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository} + */ + public static final class CustomRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository) + CustomRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRepository.newBuilder() to construct. + private CustomRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRepository() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.yum.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+       * An http/https uri reference to the upstream remote repository, for ex:
+       * "https://my.yum.registry/".
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + obj; + + if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Customer-specified publicly available remote repository.
+       * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.yum.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.yum.registry/".
+         * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.yum.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.yum.registry/".
+         * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * An http/https uri reference to the upstream remote repository, for ex:
+         * "https://my.yum.registry/".
+         * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .YumRepository.CustomRepository + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository(); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int upstreamCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object upstream_; + + public enum UpstreamCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBLIC_REPOSITORY(1), + CUSTOM_REPOSITORY(3), + UPSTREAM_NOT_SET(0); + private final int value; + + private UpstreamCase(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 UpstreamCase valueOf(int value) { + return forNumber(value); + } + + public static UpstreamCase forNumber(int value) { + switch (value) { + case 1: + return PUBLIC_REPOSITORY; + case 3: + return CUSTOM_REPOSITORY; + case 0: + return UPSTREAM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + @java.lang.Override + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + getPublicRepository() { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + /** + * + * + *
+     * One of the publicly available Yum repositories supported by Artifact
+     * Registry.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder() { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + + public static final int CUSTOM_REPOSITORY_FIELD_NUMBER = 3; + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + getCustomRepository() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } + /** + * + * + *
+     * Customer-specified remote repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (upstreamCase_ == 1) { + output.writeMessage( + 1, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_); + } + if (upstreamCase_ == 3) { + output.writeMessage( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (upstreamCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_); + } + if (upstreamCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_); + } + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) obj; + + if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; + switch (upstreamCase_) { + case 1: + if (!getPublicRepository().equals(other.getPublicRepository())) return false; + break; + case 3: + if (!getCustomRepository().equals(other.getCustomRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (upstreamCase_) { + case 1: + hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getPublicRepository().hashCode(); + break; + case 3: + hash = (37 * hash) + CUSTOM_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCustomRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration for a Yum remote repository.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.Builder + .class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publicRepositoryBuilder_ != null) { + publicRepositoryBuilder_.clear(); + } + if (customRepositoryBuilder_ != null) { + customRepositoryBuilder_.clear(); + } + upstreamCase_ = 0; + upstream_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + buildPartial() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result) { + result.upstreamCase_ = upstreamCase_; + result.upstream_ = this.upstream_; + if (upstreamCase_ == 1 && publicRepositoryBuilder_ != null) { + result.upstream_ = publicRepositoryBuilder_.build(); + } + if (upstreamCase_ == 3 && customRepositoryBuilder_ != null) { + result.upstream_ = customRepositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository other) { + if (other + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .getDefaultInstance()) return this; + switch (other.getUpstreamCase()) { + case PUBLIC_REPOSITORY: + { + mergePublicRepository(other.getPublicRepository()); + break; + } + case CUSTOM_REPOSITORY: + { + mergeCustomRepository(other.getCustomRepository()); + break; + } + case UPSTREAM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPublicRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 1; + break; + } // case 10 + case 26: + { + input.readMessage( + getCustomRepositoryFieldBuilder().getBuilder(), extensionRegistry); + upstreamCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int upstreamCase_ = 0; + private java.lang.Object upstream_; + + public UpstreamCase getUpstreamCase() { + return UpstreamCase.forNumber(upstreamCase_); + } + + public Builder clearUpstream() { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder> + publicRepositoryBuilder_; + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return Whether the publicRepository field is set. + */ + @java.lang.Override + public boolean hasPublicRepository() { + return upstreamCase_ == 1; + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + * + * @return The publicRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + getPublicRepository() { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 1) { + return publicRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + value) { + if (publicRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upstream_ = value; + onChanged(); + } else { + publicRepositoryBuilder_.setMessage(value); + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + public Builder setPublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder + builderForValue) { + if (publicRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); + onChanged(); + } else { + publicRepositoryBuilder_.setMessage(builderForValue.build()); + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + public Builder mergePublicRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository + value) { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .YumRepository.PublicRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; + } + onChanged(); + } else { + if (upstreamCase_ == 1) { + publicRepositoryBuilder_.mergeFrom(value); + } else { + publicRepositoryBuilder_.setMessage(value); + } + } + upstreamCase_ = 1; + return this; + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + public Builder clearPublicRepository() { + if (publicRepositoryBuilder_ == null) { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 1) { + upstreamCase_ = 0; + upstream_ = null; + } + publicRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder + getPublicRepositoryBuilder() { + return getPublicRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder + getPublicRepositoryOrBuilder() { + if ((upstreamCase_ == 1) && (publicRepositoryBuilder_ != null)) { + return publicRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 1) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * One of the publicly available Yum repositories supported by Artifact
+       * Registry.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder> + getPublicRepositoryFieldBuilder() { + if (publicRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 1)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.getDefaultInstance(); + } + publicRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .PublicRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; } + upstreamCase_ = 1; + onChanged(); + return publicRepositoryBuilder_; + } - private java.lang.Object repositoryPath_ = ""; - /** - * - * - *
-         * A custom field to define a path to a specific repository from the base.
-         * 
- * - * string repository_path = 2; - * - * @return The repositoryPath. - */ - public java.lang.String getRepositoryPath() { - java.lang.Object ref = repositoryPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - repositoryPath_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder> + customRepositoryBuilder_; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return Whether the customRepository field is set. + */ + @java.lang.Override + public boolean hasCustomRepository() { + return upstreamCase_ == 3; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + * + * @return The customRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + getCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_; } - } - /** - * - * - *
-         * A custom field to define a path to a specific repository from the base.
-         * 
- * - * string repository_path = 2; - * - * @return The bytes for repositoryPath. - */ - public com.google.protobuf.ByteString getRepositoryPathBytes() { - java.lang.Object ref = repositoryPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } else { + if (upstreamCase_ == 3) { + return customRepositoryBuilder_.getMessage(); } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); } - /** - * - * - *
-         * A custom field to define a path to a specific repository from the base.
-         * 
- * - * string repository_path = 2; - * - * @param value The repositoryPath to set. - * @return This builder for chaining. - */ - public Builder setRepositoryPath(java.lang.String value) { + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - repositoryPath_ = value; - bitField0_ |= 0x00000002; + upstream_ = value; onChanged(); - return this; + } else { + customRepositoryBuilder_.setMessage(value); } - /** - * - * - *
-         * A custom field to define a path to a specific repository from the base.
-         * 
- * - * string repository_path = 2; - * - * @return This builder for chaining. - */ - public Builder clearRepositoryPath() { - repositoryPath_ = getDefaultInstance().getRepositoryPath(); - bitField0_ = (bitField0_ & ~0x00000002); + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + public Builder setCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder + builderForValue) { + if (customRepositoryBuilder_ == null) { + upstream_ = builderForValue.build(); onChanged(); - return this; + } else { + customRepositoryBuilder_.setMessage(builderForValue.build()); } - /** - * - * - *
-         * A custom field to define a path to a specific repository from the base.
-         * 
- * - * string repository_path = 2; - * - * @param value The bytes for repositoryPath to set. - * @return This builder for chaining. - */ - public Builder setRepositoryPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + upstreamCase_ = 3; + return this; + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + public Builder mergeCustomRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository + value) { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3 + && upstream_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance()) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .YumRepository.CustomRepository) + upstream_) + .mergeFrom(value) + .buildPartial(); + } else { + upstream_ = value; } - checkByteStringIsUtf8(value); - repositoryPath_ = value; - bitField0_ |= 0x00000002; onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + } else { + if (upstreamCase_ == 3) { + customRepositoryBuilder_.mergeFrom(value); + } else { + customRepositoryBuilder_.setMessage(value); + } } - - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) + upstreamCase_ = 3; + return this; } - - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository) - private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .YumRepository.PublicRepository - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository(); + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + public Builder clearCustomRepository() { + if (customRepositoryBuilder_ == null) { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + onChanged(); + } + } else { + if (upstreamCase_ == 3) { + upstreamCase_ = 0; + upstream_ = null; + } + customRepositoryBuilder_.clear(); + } + return this; } - - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder + getCustomRepositoryBuilder() { + return getCustomRepositoryFieldBuilder().getBuilder(); } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicRepository 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; + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder + getCustomRepositoryOrBuilder() { + if ((upstreamCase_ == 3) && (customRepositoryBuilder_ != null)) { + return customRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (upstreamCase_ == 3) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } + } + /** + * + * + *
+       * Customer-specified remote repository.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder> + getCustomRepositoryFieldBuilder() { + if (customRepositoryBuilder_ == null) { + if (!(upstreamCase_ == 3)) { + upstream_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.getDefaultInstance(); + } + customRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + .CustomRepository) + upstream_, + getParentForChildren(), + isClean()); + upstream_ = null; + } + upstreamCase_ = 3; + onChanged(); + return customRepositoryBuilder_; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) } - private int upstreamCase_ = 0; + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .YumRepository + DEFAULT_INSTANCE; - @SuppressWarnings("serial") - private java.lang.Object upstream_; + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository(); + } - public enum UpstreamCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PUBLIC_REPOSITORY(1), - UPSTREAM_NOT_SET(0); - private final int value; + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private UpstreamCase(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 UpstreamCase valueOf(int value) { - return forNumber(value); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YumRepository 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 UpstreamCase forNumber(int value) { - switch (value) { - case 1: - return PUBLIC_REPOSITORY; - case 0: - return UPSTREAM_NOT_SET; - default: - return null; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public int getNumber() { - return this.value; - } - }; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface CommonRemoteRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + com.google.protobuf.MessageOrBuilder { - public static final int PUBLIC_REPOSITORY_FIELD_NUMBER = 1; /** * * *
-     * One of the publicly available Yum repositories supported by Artifact
-     * Registry.
+     * Required. A common public repository base for remote repository.
      * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return Whether the publicRepository field is set. + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * Required. A common public repository base for remote repository.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ + com.google.protobuf.ByteString getUriBytes(); + } + /** + * + * + *
+   * Common remote repository settings type.
+   * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository} + */ + public static final class CommonRemoteRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + CommonRemoteRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommonRemoteRepository.newBuilder() to construct. + private CommonRemoteRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommonRemoteRepository() { + uri_ = ""; + } + @java.lang.Override - public boolean hasPublicRepository() { - return upstreamCase_ == 1; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommonRemoteRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .Builder.class); } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * *
-     * One of the publicly available Yum repositories supported by Artifact
-     * Registry.
+     * Required. A common public repository base for remote repository.
      * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The publicRepository. + * @return The uri. */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - getPublicRepository() { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_; + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); } /** * * *
-     * One of the publicly available Yum repositories supported by Artifact
-     * Registry.
+     * Required. A common public repository base for remote repository.
      * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder() { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_; + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -9398,12 +17160,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (upstreamCase_ == 1) { - output.writeMessage( - 1, - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } getUnknownFields().writeTo(output); } @@ -9414,13 +17172,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (upstreamCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9434,20 +17187,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository)) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository)) { return super.equals(obj); } - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository other = - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) obj; + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository other = + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + obj; - if (!getUpstreamCase().equals(other.getUpstreamCase())) return false; - switch (upstreamCase_) { - case 1: - if (!getPublicRepository().equals(other.getPublicRepository())) return false; - break; - case 0: - default: - } + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9459,39 +17206,37 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (upstreamCase_) { - case 1: - hash = (37 * hash) + PUBLIC_REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getPublicRepository().hashCode(); - break; - case 0: - default: - } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9499,23 +17244,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9523,12 +17272,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9536,12 +17287,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9560,7 +17313,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository prototype) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -9579,35 +17333,37 @@ protected Builder newBuilderForType( * * *
-     * Configuration for a Yum remote repository.
+     * Common remote repository settings type.
      * 
* * Protobuf type {@code - * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository} + * google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_fieldAccessorTable + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.class, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.Builder - .class); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository.class, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository.Builder.class); } // Construct using - // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.newBuilder() + // com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -9618,31 +17374,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - if (publicRepositoryBuilder_ != null) { - publicRepositoryBuilder_.clear(); - } - upstreamCase_ = 0; - upstream_ = null; + uri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.devtools.artifactregistry.v1.RepositoryProto - .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; + .internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor; } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository getDefaultInstanceForType() { - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository .getDefaultInstance(); } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository build() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result = - buildPartial(); + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + build() { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9650,29 +17403,25 @@ public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumReposit } @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository buildPartial() { - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository(this); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + result = + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository(this); if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + result) { int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository result) { - result.upstreamCase_ = upstreamCase_; - result.upstream_ = this.upstream_; - if (upstreamCase_ == 1 && publicRepositoryBuilder_ != null) { - result.upstream_ = publicRepositoryBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; } } @@ -9715,9 +17464,11 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) { return mergeFrom( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) other); + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + other); } else { super.mergeFrom(other); return this; @@ -9725,360 +17476,171 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository other) { + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + other) { if (other - == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + == com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository .getDefaultInstance()) return this; - switch (other.getUpstreamCase()) { - case PUBLIC_REPOSITORY: - { - mergePublicRepository(other.getPublicRepository()); - break; - } - case UPSTREAM_NOT_SET: - { - break; - } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getPublicRepositoryFieldBuilder().getBuilder(), extensionRegistry); - upstreamCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int upstreamCase_ = 0; - private java.lang.Object upstream_; - - public UpstreamCase getUpstreamCase() { - return UpstreamCase.forNumber(upstreamCase_); - } - - public Builder clearUpstream() { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder> - publicRepositoryBuilder_; - /** - * - * - *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * - * - * @return Whether the publicRepository field is set. - */ - @java.lang.Override - public boolean hasPublicRepository() { - return upstreamCase_ == 1; - } - /** - * - * - *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * - * - * @return The publicRepository. - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - getPublicRepository() { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_; - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); - } else { - if (upstreamCase_ == 1) { - return publicRepositoryBuilder_.getMessage(); - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); - } - } - /** - * - * - *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * - */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - value) { - if (publicRepositoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upstream_ = value; - onChanged(); - } else { - publicRepositoryBuilder_.setMessage(value); + @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(); } - upstreamCase_ = 1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + + private int bitField0_; + + private java.lang.Object uri_ = ""; /** * * *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
+       * Required. A common public repository base for remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. */ - public Builder setPublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder - builderForValue) { - if (publicRepositoryBuilder_ == null) { - upstream_ = builderForValue.build(); - onChanged(); + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; } else { - publicRepositoryBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - upstreamCase_ = 1; - return this; } /** * * *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
+       * Required. A common public repository base for remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ - public Builder mergePublicRepository( - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository - value) { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1 - && upstream_ - != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance()) { - upstream_ = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.newBuilder( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .YumRepository.PublicRepository) - upstream_) - .mergeFrom(value) - .buildPartial(); - } else { - upstream_ = value; - } - onChanged(); + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; } else { - if (upstreamCase_ == 1) { - publicRepositoryBuilder_.mergeFrom(value); - } else { - publicRepositoryBuilder_.setMessage(value); - } + return (com.google.protobuf.ByteString) ref; } - upstreamCase_ = 1; - return this; } /** * * *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
+       * Required. A common public repository base for remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. */ - public Builder clearPublicRepository() { - if (publicRepositoryBuilder_ == null) { - if (upstreamCase_ == 1) { - upstreamCase_ = 0; - upstream_ = null; - onChanged(); - } - } else { - if (upstreamCase_ == 1) { - upstreamCase_ = 0; - upstream_ = null; - } - publicRepositoryBuilder_.clear(); + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
+       * Required. A common public repository base for remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * - */ - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder - getPublicRepositoryBuilder() { - return getPublicRepositoryFieldBuilder().getBuilder(); - } - /** - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
-       * 
- * - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * @return This builder for chaining. */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder - getPublicRepositoryOrBuilder() { - if ((upstreamCase_ == 1) && (publicRepositoryBuilder_ != null)) { - return publicRepositoryBuilder_.getMessageOrBuilder(); - } else { - if (upstreamCase_ == 1) { - return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_; - } - return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); - } + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** * * *
-       * One of the publicly available Yum repositories supported by Artifact
-       * Registry.
+       * Required. A common public repository base for remote repository.
        * 
* - * - * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder> - getPublicRepositoryFieldBuilder() { - if (publicRepositoryBuilder_ == null) { - if (!(upstreamCase_ == 1)) { - upstream_ = - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.getDefaultInstance(); - } - publicRepositoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository.Builder, - com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepositoryOrBuilder>( - (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - .PublicRepository) - upstream_, - getParentForChildren(), - isClean()); - upstream_ = null; + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - upstreamCase_ = 1; + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; onChanged(); - return publicRepositoryBuilder_; + return this; } @java.lang.Override @@ -10093,28 +17655,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) } - // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository) + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) private static final com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig - .YumRepository + .CommonRemoteRepository DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository(); + new com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository(); } - public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public static com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository 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 YumRepository parsePartialFrom( + public CommonRemoteRepository parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10134,17 +17698,17 @@ public YumRepository 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.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -10166,6 +17730,7 @@ public enum RemoteSourceCase PYTHON_REPOSITORY(5), APT_REPOSITORY(6), YUM_REPOSITORY(7), + COMMON_REPOSITORY(14), REMOTESOURCE_NOT_SET(0); private final int value; @@ -10196,6 +17761,8 @@ public static RemoteSourceCase forNumber(int value) { return APT_REPOSITORY; case 7: return YUM_REPOSITORY; + case 14: + return COMMON_REPOSITORY; case 0: return REMOTESOURCE_NOT_SET; default: @@ -10590,6 +18157,73 @@ public boolean hasYumRepository() { .getDefaultInstance(); } + public static final int COMMON_REPOSITORY_FIELD_NUMBER = 14; + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return Whether the commonRepository field is set. + */ + @java.lang.Override + public boolean hasCommonRepository() { + return remoteSourceCase_ == 14; + } + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return The commonRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + getCommonRepository() { + if (remoteSourceCase_ == 14) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + remoteSource_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder + getCommonRepositoryOrBuilder() { + if (remoteSourceCase_ == 14) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + remoteSource_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } + public static final int DESCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -10702,6 +18336,25 @@ public boolean hasUpstreamCredentials() { : upstreamCredentials_; } + public static final int DISABLE_UPSTREAM_VALIDATION_FIELD_NUMBER = 12; + private boolean disableUpstreamValidation_ = false; + /** + * + * + *
+   * Input only. A create/update remote repo option to avoid making a HEAD/GET
+   * request to validate a remote repo and any supplied upstream credentials.
+   * 
+ * + * bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The disableUpstreamValidation. + */ + @java.lang.Override + public boolean getDisableUpstreamValidation() { + return disableUpstreamValidation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10758,6 +18411,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getUpstreamCredentials()); } + if (disableUpstreamValidation_ != false) { + output.writeBool(12, disableUpstreamValidation_); + } + if (remoteSourceCase_ == 14) { + output.writeMessage( + 14, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository) + remoteSource_); + } getUnknownFields().writeTo(output); } @@ -10815,6 +18477,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpstreamCredentials()); } + if (disableUpstreamValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disableUpstreamValidation_); + } + if (remoteSourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + remoteSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10836,6 +18509,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpstreamCredentials()) { if (!getUpstreamCredentials().equals(other.getUpstreamCredentials())) return false; } + if (getDisableUpstreamValidation() != other.getDisableUpstreamValidation()) return false; if (!getRemoteSourceCase().equals(other.getRemoteSourceCase())) return false; switch (remoteSourceCase_) { case 2: @@ -10856,6 +18530,9 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getYumRepository().equals(other.getYumRepository())) return false; break; + case 14: + if (!getCommonRepository().equals(other.getCommonRepository())) return false; + break; case 0: default: } @@ -10876,6 +18553,8 @@ public int hashCode() { hash = (37 * hash) + UPSTREAM_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getUpstreamCredentials().hashCode(); } + hash = (37 * hash) + DISABLE_UPSTREAM_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableUpstreamValidation()); switch (remoteSourceCase_) { case 2: hash = (37 * hash) + DOCKER_REPOSITORY_FIELD_NUMBER; @@ -10901,6 +18580,10 @@ public int hashCode() { hash = (37 * hash) + YUM_REPOSITORY_FIELD_NUMBER; hash = (53 * hash) + getYumRepository().hashCode(); break; + case 14: + hash = (37 * hash) + COMMON_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getCommonRepository().hashCode(); + break; case 0: default: } @@ -11071,12 +18754,16 @@ public Builder clear() { if (yumRepositoryBuilder_ != null) { yumRepositoryBuilder_.clear(); } + if (commonRepositoryBuilder_ != null) { + commonRepositoryBuilder_.clear(); + } description_ = ""; upstreamCredentials_ = null; if (upstreamCredentialsBuilder_ != null) { upstreamCredentialsBuilder_.dispose(); upstreamCredentialsBuilder_ = null; } + disableUpstreamValidation_ = false; remoteSourceCase_ = 0; remoteSource_ = null; return this; @@ -11118,17 +18805,20 @@ public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig buildParti private void buildPartial0( com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.upstreamCredentials_ = upstreamCredentialsBuilder_ == null ? upstreamCredentials_ : upstreamCredentialsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableUpstreamValidation_ = disableUpstreamValidation_; + } result.bitField0_ |= to_bitField0_; } @@ -11154,6 +18844,9 @@ private void buildPartialOneofs( if (remoteSourceCase_ == 7 && yumRepositoryBuilder_ != null) { result.remoteSource_ = yumRepositoryBuilder_.build(); } + if (remoteSourceCase_ == 14 && commonRepositoryBuilder_ != null) { + result.remoteSource_ = commonRepositoryBuilder_.build(); + } } @java.lang.Override @@ -11205,12 +18898,15 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.RemoteRepositor return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasUpstreamCredentials()) { mergeUpstreamCredentials(other.getUpstreamCredentials()); } + if (other.getDisableUpstreamValidation() != false) { + setDisableUpstreamValidation(other.getDisableUpstreamValidation()); + } switch (other.getRemoteSourceCase()) { case DOCKER_REPOSITORY: { @@ -11242,6 +18938,11 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.RemoteRepositor mergeYumRepository(other.getYumRepository()); break; } + case COMMON_REPOSITORY: + { + mergeCommonRepository(other.getCommonRepository()); + break; + } case REMOTESOURCE_NOT_SET: { break; @@ -11276,7 +18977,7 @@ public Builder mergeFrom( case 10: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 10 case 18: @@ -11321,9 +19022,22 @@ public Builder mergeFrom( { input.readMessage( getUpstreamCredentialsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 + case 96: + { + disableUpstreamValidation_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 114: + { + input.readMessage( + getCommonRepositoryFieldBuilder().getBuilder(), extensionRegistry); + remoteSourceCase_ = 14; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12846,6 +20560,276 @@ public Builder clearYumRepository() { return yumRepositoryBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder> + commonRepositoryBuilder_; + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return Whether the commonRepository field is set. + */ + @java.lang.Override + public boolean hasCommonRepository() { + return remoteSourceCase_ == 14; + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return The commonRepository. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + getCommonRepository() { + if (commonRepositoryBuilder_ == null) { + if (remoteSourceCase_ == 14) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + remoteSource_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } else { + if (remoteSourceCase_ == 14) { + return commonRepositoryBuilder_.getMessage(); + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + public Builder setCommonRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + value) { + if (commonRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + remoteSource_ = value; + onChanged(); + } else { + commonRepositoryBuilder_.setMessage(value); + } + remoteSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + public Builder setCommonRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .Builder + builderForValue) { + if (commonRepositoryBuilder_ == null) { + remoteSource_ = builderForValue.build(); + onChanged(); + } else { + commonRepositoryBuilder_.setMessage(builderForValue.build()); + } + remoteSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + public Builder mergeCommonRepository( + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + value) { + if (commonRepositoryBuilder_ == null) { + if (remoteSourceCase_ == 14 + && remoteSource_ + != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository.getDefaultInstance()) { + remoteSource_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .newBuilder( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + remoteSource_) + .mergeFrom(value) + .buildPartial(); + } else { + remoteSource_ = value; + } + onChanged(); + } else { + if (remoteSourceCase_ == 14) { + commonRepositoryBuilder_.mergeFrom(value); + } else { + commonRepositoryBuilder_.setMessage(value); + } + } + remoteSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + public Builder clearCommonRepository() { + if (commonRepositoryBuilder_ == null) { + if (remoteSourceCase_ == 14) { + remoteSourceCase_ = 0; + remoteSource_ = null; + onChanged(); + } + } else { + if (remoteSourceCase_ == 14) { + remoteSourceCase_ = 0; + remoteSource_ = null; + } + commonRepositoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .Builder + getCommonRepositoryBuilder() { + return getCommonRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder + getCommonRepositoryOrBuilder() { + if ((remoteSourceCase_ == 14) && (commonRepositoryBuilder_ != null)) { + return commonRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (remoteSourceCase_ == 14) { + return (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + remoteSource_; + } + return com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Common remote repository settings.
+     * Used as the remote repository upstream URL.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder> + getCommonRepositoryFieldBuilder() { + if (commonRepositoryBuilder_ == null) { + if (!(remoteSourceCase_ == 14)) { + remoteSource_ = + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + .getDefaultInstance(); + } + commonRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository.Builder, + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepositoryOrBuilder>( + (com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig + .CommonRemoteRepository) + remoteSource_, + getParentForChildren(), + isClean()); + remoteSource_ = null; + } + remoteSourceCase_ = 14; + onChanged(); + return commonRepositoryBuilder_; + } + private java.lang.Object description_ = ""; /** * @@ -12908,7 +20892,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -12925,7 +20909,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -12947,7 +20931,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -12975,7 +20959,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the upstreamCredentials field is set. */ public boolean hasUpstreamCredentials() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -13022,7 +21006,7 @@ public Builder setUpstreamCredentials( } else { upstreamCredentialsBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13045,7 +21029,7 @@ public Builder setUpstreamCredentials( } else { upstreamCredentialsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13063,7 +21047,7 @@ public Builder setUpstreamCredentials( public Builder mergeUpstreamCredentials( com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials value) { if (upstreamCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && upstreamCredentials_ != null && upstreamCredentials_ != com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig @@ -13076,7 +21060,7 @@ public Builder mergeUpstreamCredentials( upstreamCredentialsBuilder_.mergeFrom(value); } if (upstreamCredentials_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -13093,7 +21077,7 @@ public Builder mergeUpstreamCredentials( * */ public Builder clearUpstreamCredentials() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); upstreamCredentials_ = null; if (upstreamCredentialsBuilder_ != null) { upstreamCredentialsBuilder_.dispose(); @@ -13116,7 +21100,7 @@ public Builder clearUpstreamCredentials() { public com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials .Builder getUpstreamCredentialsBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getUpstreamCredentialsFieldBuilder().getBuilder(); } @@ -13175,6 +21159,65 @@ public Builder clearUpstreamCredentials() { return upstreamCredentialsBuilder_; } + private boolean disableUpstreamValidation_; + /** + * + * + *
+     * Input only. A create/update remote repo option to avoid making a HEAD/GET
+     * request to validate a remote repo and any supplied upstream credentials.
+     * 
+ * + * bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The disableUpstreamValidation. + */ + @java.lang.Override + public boolean getDisableUpstreamValidation() { + return disableUpstreamValidation_; + } + /** + * + * + *
+     * Input only. A create/update remote repo option to avoid making a HEAD/GET
+     * request to validate a remote repo and any supplied upstream credentials.
+     * 
+ * + * bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The disableUpstreamValidation to set. + * @return This builder for chaining. + */ + public Builder setDisableUpstreamValidation(boolean value) { + + disableUpstreamValidation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. A create/update remote repo option to avoid making a HEAD/GET
+     * request to validate a remote repo and any supplied upstream credentials.
+     * 
+ * + * bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableUpstreamValidation() { + bitField0_ = (bitField0_ & ~0x00000200); + disableUpstreamValidation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfigOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfigOrBuilder.java index 533e97d7e16a..388bbf46823b 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfigOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RemoteRepositoryConfigOrBuilder.java @@ -279,6 +279,52 @@ public interface RemoteRepositoryConfigOrBuilder com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepositoryOrBuilder getYumRepositoryOrBuilder(); + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return Whether the commonRepository field is set. + */ + boolean hasCommonRepository(); + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + * + * @return The commonRepository. + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository + getCommonRepository(); + /** + * + * + *
+   * Common remote repository settings.
+   * Used as the remote repository upstream URL.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; + * + */ + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepositoryOrBuilder + getCommonRepositoryOrBuilder(); + /** * * @@ -347,6 +393,20 @@ public interface RemoteRepositoryConfigOrBuilder com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentialsOrBuilder getUpstreamCredentialsOrBuilder(); + /** + * + * + *
+   * Input only. A create/update remote repo option to avoid making a HEAD/GET
+   * request to validate a remote repo and any supplied upstream credentials.
+   * 
+ * + * bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The disableUpstreamValidation. + */ + boolean getDisableUpstreamValidation(); + com.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.RemoteSourceCase getRemoteSourceCase(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java index de428c943bc8..c4832249d52f 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java @@ -181,6 +181,16 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { * GO = 10; */ GO(10), + /** + * + * + *
+     * Generic package format.
+     * 
+ * + * GENERIC = 11; + */ + GENERIC(11), UNRECOGNIZED(-1), ; @@ -274,6 +284,16 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { * GO = 10; */ public static final int GO_VALUE = 10; + /** + * + * + *
+     * Generic package format.
+     * 
+ * + * GENERIC = 11; + */ + public static final int GENERIC_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -317,6 +337,8 @@ public static Format forNumber(int value) { return KFP; case 10: return GO; + case 11: + return GENERIC; default: return null; } @@ -2083,180 +2105,2012 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int formatConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object formatConfig_; - - public enum FormatConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAVEN_CONFIG(9), - DOCKER_CONFIG(17), - FORMATCONFIG_NOT_SET(0); - private final int value; + public interface VulnerabilityScanningConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + com.google.protobuf.MessageOrBuilder { - private FormatConfigCase(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. + * + * + *
+     * Optional. Config for whether this repository has vulnerability scanning
+     * disabled.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enablementConfig. */ - @java.lang.Deprecated - public static FormatConfigCase valueOf(int value) { - return forNumber(value); - } - - public static FormatConfigCase forNumber(int value) { - switch (value) { - case 9: - return MAVEN_CONFIG; - case 17: - return DOCKER_CONFIG; - case 0: - return FORMATCONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public FormatConfigCase getFormatConfigCase() { - return FormatConfigCase.forNumber(formatConfigCase_); - } - - private int modeConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object modeConfig_; - - public enum ModeConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VIRTUAL_REPOSITORY_CONFIG(14), - REMOTE_REPOSITORY_CONFIG(15), - MODECONFIG_NOT_SET(0); - private final int value; - - private ModeConfigCase(int value) { - this.value = value; - } + int getEnablementConfigValue(); /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. Config for whether this repository has vulnerability scanning
+     * disabled.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enablementConfig. */ - @java.lang.Deprecated - public static ModeConfigCase valueOf(int value) { - return forNumber(value); - } - - public static ModeConfigCase forNumber(int value) { - switch (value) { - case 14: - return VIRTUAL_REPOSITORY_CONFIG; - case 15: - return REMOTE_REPOSITORY_CONFIG; - case 0: - return MODECONFIG_NOT_SET; - default: - return null; - } - } + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig + getEnablementConfig(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEnableTime field is set. + */ + boolean hasLastEnableTime(); + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEnableTime. + */ + com.google.protobuf.Timestamp getLastEnableTime(); + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastEnableTimeOrBuilder(); - public ModeConfigCase getModeConfigCase() { - return ModeConfigCase.forNumber(modeConfigCase_); - } + /** + * + * + *
+     * Output only. State of feature enablement, combining repository enablement
+     * config and API enablement state.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + int getEnablementStateValue(); + /** + * + * + *
+     * Output only. State of feature enablement, combining repository enablement
+     * config and API enablement state.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState + getEnablementState(); - public static final int MAVEN_CONFIG_FIELD_NUMBER = 9; - /** - * - * - *
-   * Maven repository config contains repository level configuration
-   * for the repositories of maven type.
-   * 
- * - * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; - * - * - * @return Whether the mavenConfig field is set. - */ - @java.lang.Override - public boolean hasMavenConfig() { - return formatConfigCase_ == 9; + /** + * + * + *
+     * Output only. Reason for the repository state.
+     * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enablementStateReason. + */ + java.lang.String getEnablementStateReason(); + /** + * + * + *
+     * Output only. Reason for the repository state.
+     * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for enablementStateReason. + */ + com.google.protobuf.ByteString getEnablementStateReasonBytes(); } /** * * *
-   * Maven repository config contains repository level configuration
-   * for the repositories of maven type.
+   * Config on whether to perform vulnerability scanning for resources in this
+   * repository, as well as output fields describing current state.
    * 
* - * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; - * - * - * @return The mavenConfig. + * Protobuf type {@code + * google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig} */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig getMavenConfig() { - if (formatConfigCase_ == 9) { - return (com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) - formatConfig_; + public static final class VulnerabilityScanningConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + VulnerabilityScanningConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VulnerabilityScanningConfig.newBuilder() to construct. + private VulnerabilityScanningConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - .getDefaultInstance(); - } - /** - * - * - *
-   * Maven repository config contains repository level configuration
-   * for the repositories of maven type.
-   * 
- * - * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; - * - */ - @java.lang.Override - public com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfigOrBuilder - getMavenConfigOrBuilder() { - if (formatConfigCase_ == 9) { - return (com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) - formatConfig_; + + private VulnerabilityScanningConfig() { + enablementConfig_ = 0; + enablementState_ = 0; + enablementStateReason_ = ""; } - return com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - .getDefaultInstance(); - } - public static final int DOCKER_CONFIG_FIELD_NUMBER = 17; - /** - * - * - *
-   * Docker repository config contains repository level configuration
-   * for the repositories of docker type.
-   * 
- * - * - * .google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; - * - * + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VulnerabilityScanningConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.class, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder + .class); + } + + /** + * + * + *
+     * Config for vulnerability scanning of resources in this repository.
+     * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig} + */ + public enum EnablementConfig implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not set. This will be treated as INHERITED.
+       * 
+ * + * ENABLEMENT_CONFIG_UNSPECIFIED = 0; + */ + ENABLEMENT_CONFIG_UNSPECIFIED(0), + /** + * + * + *
+       * Scanning is Enabled, but dependent on API enablement.
+       * 
+ * + * INHERITED = 1; + */ + INHERITED(1), + /** + * + * + *
+       * No automatic vulnerability scanning will be performed for this
+       * repository.
+       * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Not set. This will be treated as INHERITED.
+       * 
+ * + * ENABLEMENT_CONFIG_UNSPECIFIED = 0; + */ + public static final int ENABLEMENT_CONFIG_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Scanning is Enabled, but dependent on API enablement.
+       * 
+ * + * INHERITED = 1; + */ + public static final int INHERITED_VALUE = 1; + /** + * + * + *
+       * No automatic vulnerability scanning will be performed for this
+       * repository.
+       * 
+ * + * 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 EnablementConfig 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 EnablementConfig forNumber(int value) { + switch (value) { + case 0: + return ENABLEMENT_CONFIG_UNSPECIFIED; + case 1: + return INHERITED; + 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 EnablementConfig findValueByNumber(int number) { + return EnablementConfig.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnablementConfig[] VALUES = values(); + + public static EnablementConfig 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 EnablementConfig(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig) + } + + /** + * + * + *
+     * Describes the state of vulnerability scanning in this repository,
+     * including both repository enablement and API enablement.
+     * 
+ * + * Protobuf enum {@code + * google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState} + */ + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Enablement state is unclear.
+       * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + ENABLEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Repository does not support vulnerability scanning.
+       * 
+ * + * SCANNING_UNSUPPORTED = 1; + */ + SCANNING_UNSUPPORTED(1), + /** + * + * + *
+       * Vulnerability scanning is disabled for this repository.
+       * 
+ * + * SCANNING_DISABLED = 2; + */ + SCANNING_DISABLED(2), + /** + * + * + *
+       * Vulnerability scanning is active for this repository.
+       * 
+ * + * SCANNING_ACTIVE = 3; + */ + SCANNING_ACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Enablement state is unclear.
+       * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Repository does not support vulnerability scanning.
+       * 
+ * + * SCANNING_UNSUPPORTED = 1; + */ + public static final int SCANNING_UNSUPPORTED_VALUE = 1; + /** + * + * + *
+       * Vulnerability scanning is disabled for this repository.
+       * 
+ * + * SCANNING_DISABLED = 2; + */ + public static final int SCANNING_DISABLED_VALUE = 2; + /** + * + * + *
+       * Vulnerability scanning is active for this repository.
+       * 
+ * + * SCANNING_ACTIVE = 3; + */ + public static final int SCANNING_ACTIVE_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 EnablementState 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 EnablementState forNumber(int value) { + switch (value) { + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return SCANNING_UNSUPPORTED; + case 2: + return SCANNING_DISABLED; + case 3: + return SCANNING_ACTIVE; + 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 EnablementState findValueByNumber(int number) { + return EnablementState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final EnablementState[] VALUES = values(); + + public static EnablementState 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 EnablementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState) + } + + private int bitField0_; + public static final int ENABLEMENT_CONFIG_FIELD_NUMBER = 1; + private int enablementConfig_ = 0; + /** + * + * + *
+     * Optional. Config for whether this repository has vulnerability scanning
+     * disabled.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enablementConfig. + */ + @java.lang.Override + public int getEnablementConfigValue() { + return enablementConfig_; + } + /** + * + * + *
+     * Optional. Config for whether this repository has vulnerability scanning
+     * disabled.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enablementConfig. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig + getEnablementConfig() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig + result = + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.forNumber(enablementConfig_); + return result == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.UNRECOGNIZED + : result; + } + + public static final int LAST_ENABLE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastEnableTime_; + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEnableTime field is set. + */ + @java.lang.Override + public boolean hasLastEnableTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEnableTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastEnableTime() { + return lastEnableTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEnableTime_; + } + /** + * + * + *
+     * Output only. The last time this repository config was enabled.
+     * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastEnableTimeOrBuilder() { + return lastEnableTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEnableTime_; + } + + public static final int ENABLEMENT_STATE_FIELD_NUMBER = 3; + private int enablementState_ = 0; + /** + * + * + *
+     * Output only. State of feature enablement, combining repository enablement
+     * config and API enablement state.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+     * Output only. State of feature enablement, combining repository enablement
+     * config and API enablement state.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState + getEnablementState() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState + result = + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.UNRECOGNIZED + : result; + } + + public static final int ENABLEMENT_STATE_REASON_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object enablementStateReason_ = ""; + /** + * + * + *
+     * Output only. Reason for the repository state.
+     * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enablementStateReason. + */ + @java.lang.Override + public java.lang.String getEnablementStateReason() { + java.lang.Object ref = enablementStateReason_; + 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(); + enablementStateReason_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Reason for the repository state.
+     * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for enablementStateReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnablementStateReasonBytes() { + java.lang.Object ref = enablementStateReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + enablementStateReason_ = 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 (enablementConfig_ + != com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.ENABLEMENT_CONFIG_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, enablementConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLastEnableTime()); + } + if (enablementState_ + != com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, enablementState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enablementStateReason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, enablementStateReason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablementConfig_ + != com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.ENABLEMENT_CONFIG_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, enablementConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastEnableTime()); + } + if (enablementState_ + != com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enablementStateReason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, enablementStateReason_); + } + 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.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig other = + (com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) obj; + + if (enablementConfig_ != other.enablementConfig_) return false; + if (hasLastEnableTime() != other.hasLastEnableTime()) return false; + if (hasLastEnableTime()) { + if (!getLastEnableTime().equals(other.getLastEnableTime())) return false; + } + if (enablementState_ != other.enablementState_) return false; + if (!getEnablementStateReason().equals(other.getEnablementStateReason())) 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) + ENABLEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + enablementConfig_; + if (hasLastEnableTime()) { + hash = (37 * hash) + LAST_ENABLE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastEnableTime().hashCode(); + } + hash = (37 * hash) + ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + enablementState_; + hash = (37 * hash) + ENABLEMENT_STATE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getEnablementStateReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + 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.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Config on whether to perform vulnerability scanning for resources in this
+     * repository, as well as output fields describing current state.
+     * 
+ * + * Protobuf type {@code + * google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .class, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .Builder.class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastEnableTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablementConfig_ = 0; + lastEnableTime_ = null; + if (lastEnableTimeBuilder_ != null) { + lastEnableTimeBuilder_.dispose(); + lastEnableTimeBuilder_ = null; + } + enablementState_ = 0; + enablementStateReason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + build() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + buildPartial() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig result = + new com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablementConfig_ = enablementConfig_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastEnableTime_ = + lastEnableTimeBuilder_ == null ? lastEnableTime_ : lastEnableTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablementState_ = enablementState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enablementStateReason_ = enablementStateReason_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig other) { + if (other + == com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance()) return this; + if (other.enablementConfig_ != 0) { + setEnablementConfigValue(other.getEnablementConfigValue()); + } + if (other.hasLastEnableTime()) { + mergeLastEnableTime(other.getLastEnableTime()); + } + if (other.enablementState_ != 0) { + setEnablementStateValue(other.getEnablementStateValue()); + } + if (!other.getEnablementStateReason().isEmpty()) { + enablementStateReason_ = other.enablementStateReason_; + 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: + { + enablementConfig_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getLastEnableTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + enablementStateReason_ = 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 int enablementConfig_ = 0; + /** + * + * + *
+       * Optional. Config for whether this repository has vulnerability scanning
+       * disabled.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enablementConfig. + */ + @java.lang.Override + public int getEnablementConfigValue() { + return enablementConfig_; + } + /** + * + * + *
+       * Optional. Config for whether this repository has vulnerability scanning
+       * disabled.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for enablementConfig to set. + * @return This builder for chaining. + */ + public Builder setEnablementConfigValue(int value) { + enablementConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Config for whether this repository has vulnerability scanning
+       * disabled.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enablementConfig. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig + getEnablementConfig() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig + result = + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.forNumber(enablementConfig_); + return result == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Config for whether this repository has vulnerability scanning
+       * disabled.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enablementConfig to set. + * @return This builder for chaining. + */ + public Builder setEnablementConfig( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementConfig + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + enablementConfig_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Config for whether this repository has vulnerability scanning
+       * disabled.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablementConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + enablementConfig_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastEnableTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastEnableTimeBuilder_; + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEnableTime field is set. + */ + public boolean hasLastEnableTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEnableTime. + */ + public com.google.protobuf.Timestamp getLastEnableTime() { + if (lastEnableTimeBuilder_ == null) { + return lastEnableTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEnableTime_; + } else { + return lastEnableTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastEnableTime(com.google.protobuf.Timestamp value) { + if (lastEnableTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastEnableTime_ = value; + } else { + lastEnableTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastEnableTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastEnableTimeBuilder_ == null) { + lastEnableTime_ = builderForValue.build(); + } else { + lastEnableTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastEnableTime(com.google.protobuf.Timestamp value) { + if (lastEnableTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && lastEnableTime_ != null + && lastEnableTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastEnableTimeBuilder().mergeFrom(value); + } else { + lastEnableTime_ = value; + } + } else { + lastEnableTimeBuilder_.mergeFrom(value); + } + if (lastEnableTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastEnableTime() { + bitField0_ = (bitField0_ & ~0x00000002); + lastEnableTime_ = null; + if (lastEnableTimeBuilder_ != null) { + lastEnableTimeBuilder_.dispose(); + lastEnableTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastEnableTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastEnableTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastEnableTimeOrBuilder() { + if (lastEnableTimeBuilder_ != null) { + return lastEnableTimeBuilder_.getMessageOrBuilder(); + } else { + return lastEnableTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEnableTime_; + } + } + /** + * + * + *
+       * Output only. The last time this repository config was enabled.
+       * 
+ * + * + * .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastEnableTimeFieldBuilder() { + if (lastEnableTimeBuilder_ == null) { + lastEnableTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastEnableTime(), getParentForChildren(), isClean()); + lastEnableTime_ = null; + } + return lastEnableTimeBuilder_; + } + + private int enablementState_ = 0; + /** + * + * + *
+       * Output only. State of feature enablement, combining repository enablement
+       * config and API enablement state.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+       * Output only. State of feature enablement, combining repository enablement
+       * config and API enablement state.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementStateValue(int value) { + enablementState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. State of feature enablement, combining repository enablement
+       * config and API enablement state.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState + getEnablementState() { + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState + result = + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. State of feature enablement, combining repository enablement
+       * config and API enablement state.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementState( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .EnablementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + enablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. State of feature enablement, combining repository enablement
+       * config and API enablement state.
+       * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablementState() { + bitField0_ = (bitField0_ & ~0x00000004); + enablementState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object enablementStateReason_ = ""; + /** + * + * + *
+       * Output only. Reason for the repository state.
+       * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementStateReason. + */ + public java.lang.String getEnablementStateReason() { + java.lang.Object ref = enablementStateReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + enablementStateReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Reason for the repository state.
+       * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for enablementStateReason. + */ + public com.google.protobuf.ByteString getEnablementStateReasonBytes() { + java.lang.Object ref = enablementStateReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + enablementStateReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Reason for the repository state.
+       * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enablementStateReason to set. + * @return This builder for chaining. + */ + public Builder setEnablementStateReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + enablementStateReason_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Reason for the repository state.
+       * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablementStateReason() { + enablementStateReason_ = getDefaultInstance().getEnablementStateReason(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Reason for the repository state.
+       * 
+ * + * string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for enablementStateReason to set. + * @return This builder for chaining. + */ + public Builder setEnablementStateReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + enablementStateReason_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig) + private static final com.google.devtools.artifactregistry.v1.Repository + .VulnerabilityScanningConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig(); + } + + public static com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerabilityScanningConfig 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.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int formatConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object formatConfig_; + + public enum FormatConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAVEN_CONFIG(9), + DOCKER_CONFIG(17), + FORMATCONFIG_NOT_SET(0); + private final int value; + + private FormatConfigCase(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 FormatConfigCase valueOf(int value) { + return forNumber(value); + } + + public static FormatConfigCase forNumber(int value) { + switch (value) { + case 9: + return MAVEN_CONFIG; + case 17: + return DOCKER_CONFIG; + case 0: + return FORMATCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FormatConfigCase getFormatConfigCase() { + return FormatConfigCase.forNumber(formatConfigCase_); + } + + private int modeConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object modeConfig_; + + public enum ModeConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VIRTUAL_REPOSITORY_CONFIG(14), + REMOTE_REPOSITORY_CONFIG(15), + MODECONFIG_NOT_SET(0); + private final int value; + + private ModeConfigCase(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 ModeConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ModeConfigCase forNumber(int value) { + switch (value) { + case 14: + return VIRTUAL_REPOSITORY_CONFIG; + case 15: + return REMOTE_REPOSITORY_CONFIG; + case 0: + return MODECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeConfigCase getModeConfigCase() { + return ModeConfigCase.forNumber(modeConfigCase_); + } + + public static final int MAVEN_CONFIG_FIELD_NUMBER = 9; + /** + * + * + *
+   * Maven repository config contains repository level configuration
+   * for the repositories of maven type.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; + * + * + * @return Whether the mavenConfig field is set. + */ + @java.lang.Override + public boolean hasMavenConfig() { + return formatConfigCase_ == 9; + } + /** + * + * + *
+   * Maven repository config contains repository level configuration
+   * for the repositories of maven type.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; + * + * + * @return The mavenConfig. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig getMavenConfig() { + if (formatConfigCase_ == 9) { + return (com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) + formatConfig_; + } + return com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Maven repository config contains repository level configuration
+   * for the repositories of maven type.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfigOrBuilder + getMavenConfigOrBuilder() { + if (formatConfigCase_ == 9) { + return (com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) + formatConfig_; + } + return com.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + .getDefaultInstance(); + } + + public static final int DOCKER_CONFIG_FIELD_NUMBER = 17; + /** + * + * + *
+   * Docker repository config contains repository level configuration
+   * for the repositories of docker type.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; + * + * * @return Whether the dockerConfig field is set. */ @java.lang.Override @@ -2437,7 +4291,8 @@ public boolean hasRemoteRepositoryConfig() { * *
    * The name of the repository, for example:
-   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+   * in a project, repository names must be unique.
    * 
* * string name = 1; @@ -2461,7 +4316,8 @@ public java.lang.String getName() { * *
    * The name of the repository, for example:
-   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+   * in a project, repository names must be unique.
    * 
* * string name = 1; @@ -3030,55 +4886,156 @@ public com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesO * * *
-   * Output only. The size, in bytes, of all artifact storage in this
-   * repository. Repositories that are generally available or in public preview
-   *  use this to calculate storage costs.
+   * Output only. The size, in bytes, of all artifact storage in this
+   * repository. Repositories that are generally available or in public preview
+   *  use this to calculate storage costs.
+   * 
+ * + * int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 16; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. If set, the repository satisfies physical zone separation.
+   * 
+ * + * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int CLEANUP_POLICY_DRY_RUN_FIELD_NUMBER = 18; + private boolean cleanupPolicyDryRun_ = false; + /** + * + * + *
+   * Optional. If true, the cleanup pipeline is prevented from deleting versions
+   * in this repository.
+   * 
+ * + * bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cleanupPolicyDryRun. + */ + @java.lang.Override + public boolean getCleanupPolicyDryRun() { + return cleanupPolicyDryRun_; + } + + public static final int VULNERABILITY_SCANNING_CONFIG_FIELD_NUMBER = 19; + private com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + vulnerabilityScanningConfig_; + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vulnerabilityScanningConfig field is set. + */ + @java.lang.Override + public boolean hasVulnerabilityScanningConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
    * 
* - * int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The sizeBytes. + * @return The vulnerabilityScanningConfig. */ @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getVulnerabilityScanningConfig() { + return vulnerabilityScanningConfig_ == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance() + : vulnerabilityScanningConfig_; + } + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder + getVulnerabilityScanningConfigOrBuilder() { + return vulnerabilityScanningConfig_ == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance() + : vulnerabilityScanningConfig_; } - public static final int SATISFIES_PZS_FIELD_NUMBER = 16; - private boolean satisfiesPzs_ = false; + public static final int DISALLOW_UNSPECIFIED_MODE_FIELD_NUMBER = 21; + private boolean disallowUnspecifiedMode_ = false; /** * * *
-   * Output only. If set, the repository satisfies physical zone separation.
+   * Optional. If this is true, an unspecified repo type will be treated as
+   * error rather than defaulting to standard.
    * 
* - * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The satisfiesPzs. + * @return The disallowUnspecifiedMode. */ @java.lang.Override - public boolean getSatisfiesPzs() { - return satisfiesPzs_; + public boolean getDisallowUnspecifiedMode() { + return disallowUnspecifiedMode_; } - public static final int CLEANUP_POLICY_DRY_RUN_FIELD_NUMBER = 18; - private boolean cleanupPolicyDryRun_ = false; + public static final int SATISFIES_PZI_FIELD_NUMBER = 22; + private boolean satisfiesPzi_ = false; /** * * *
-   * Optional. If true, the cleanup pipeline is prevented from deleting versions
-   * in this repository.
+   * Output only. If set, the repository satisfies physical zone isolation.
    * 
* - * bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL]; + * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The cleanupPolicyDryRun. + * @return The satisfiesPzi. */ @java.lang.Override - public boolean getCleanupPolicyDryRun() { - return cleanupPolicyDryRun_; + public boolean getSatisfiesPzi() { + return satisfiesPzi_; } private byte memoizedIsInitialized = -1; @@ -3151,6 +5108,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cleanupPolicyDryRun_ != false) { output.writeBool(18, cleanupPolicyDryRun_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(19, getVulnerabilityScanningConfig()); + } + if (disallowUnspecifiedMode_ != false) { + output.writeBool(21, disallowUnspecifiedMode_); + } + if (satisfiesPzi_ != false) { + output.writeBool(22, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -3240,6 +5206,17 @@ public int getSerializedSize() { if (cleanupPolicyDryRun_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, cleanupPolicyDryRun_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getVulnerabilityScanningConfig()); + } + if (disallowUnspecifiedMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, disallowUnspecifiedMode_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3274,6 +5251,13 @@ public boolean equals(final java.lang.Object obj) { if (getSizeBytes() != other.getSizeBytes()) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (getCleanupPolicyDryRun() != other.getCleanupPolicyDryRun()) return false; + if (hasVulnerabilityScanningConfig() != other.hasVulnerabilityScanningConfig()) return false; + if (hasVulnerabilityScanningConfig()) { + if (!getVulnerabilityScanningConfig().equals(other.getVulnerabilityScanningConfig())) + return false; + } + if (getDisallowUnspecifiedMode() != other.getDisallowUnspecifiedMode()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getFormatConfigCase().equals(other.getFormatConfigCase())) return false; switch (formatConfigCase_) { case 9: @@ -3339,6 +5323,14 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + CLEANUP_POLICY_DRY_RUN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCleanupPolicyDryRun()); + if (hasVulnerabilityScanningConfig()) { + hash = (37 * hash) + VULNERABILITY_SCANNING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVulnerabilityScanningConfig().hashCode(); + } + hash = (37 * hash) + DISALLOW_UNSPECIFIED_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisallowUnspecifiedMode()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); switch (formatConfigCase_) { case 9: hash = (37 * hash) + MAVEN_CONFIG_FIELD_NUMBER; @@ -3531,6 +5523,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getVulnerabilityScanningConfigFieldBuilder(); } } @@ -3570,6 +5563,13 @@ public Builder clear() { sizeBytes_ = 0L; satisfiesPzs_ = false; cleanupPolicyDryRun_ = false; + vulnerabilityScanningConfig_ = null; + if (vulnerabilityScanningConfigBuilder_ != null) { + vulnerabilityScanningConfigBuilder_.dispose(); + vulnerabilityScanningConfigBuilder_ = null; + } + disallowUnspecifiedMode_ = false; + satisfiesPzi_ = false; formatConfigCase_ = 0; formatConfig_ = null; modeConfigCase_ = 0; @@ -3652,6 +5652,19 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.Repository re if (((from_bitField0_ & 0x00008000) != 0)) { result.cleanupPolicyDryRun_ = cleanupPolicyDryRun_; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.vulnerabilityScanningConfig_ = + vulnerabilityScanningConfigBuilder_ == null + ? vulnerabilityScanningConfig_ + : vulnerabilityScanningConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.disallowUnspecifiedMode_ = disallowUnspecifiedMode_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -3760,6 +5773,15 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.Repository othe if (other.getCleanupPolicyDryRun() != false) { setCleanupPolicyDryRun(other.getCleanupPolicyDryRun()); } + if (other.hasVulnerabilityScanningConfig()) { + mergeVulnerabilityScanningConfig(other.getVulnerabilityScanningConfig()); + } + if (other.getDisallowUnspecifiedMode() != false) { + setDisallowUnspecifiedMode(other.getDisallowUnspecifiedMode()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } switch (other.getFormatConfigCase()) { case MAVEN_CONFIG: { @@ -3930,6 +5952,25 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 144 + case 154: + { + input.readMessage( + getVulnerabilityScanningConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 154 + case 168: + { + disallowUnspecifiedMode_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 168 + case 176: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4950,7 +6991,8 @@ public Builder clearRemoteRepositoryConfig() { * *
      * The name of the repository, for example:
-     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+     * in a project, repository names must be unique.
      * 
* * string name = 1; @@ -4973,7 +7015,8 @@ public java.lang.String getName() { * *
      * The name of the repository, for example:
-     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+     * in a project, repository names must be unique.
      * 
* * string name = 1; @@ -4996,7 +7039,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The name of the repository, for example:
-     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+     * in a project, repository names must be unique.
      * 
* * string name = 1; @@ -5018,7 +7062,8 @@ public Builder setName(java.lang.String value) { * *
      * The name of the repository, for example:
-     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+     * in a project, repository names must be unique.
      * 
* * string name = 1; @@ -5036,7 +7081,8 @@ public Builder clearName() { * *
      * The name of the repository, for example:
-     * `projects/p1/locations/us-central1/repositories/repo1`.
+     * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+     * in a project, repository names must be unique.
      * 
* * string name = 1; @@ -6534,6 +8580,341 @@ public Builder clearCleanupPolicyDryRun() { return this; } + private com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + vulnerabilityScanningConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder> + vulnerabilityScanningConfigBuilder_; + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vulnerabilityScanningConfig field is set. + */ + public boolean hasVulnerabilityScanningConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vulnerabilityScanningConfig. + */ + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getVulnerabilityScanningConfig() { + if (vulnerabilityScanningConfigBuilder_ == null) { + return vulnerabilityScanningConfig_ == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance() + : vulnerabilityScanningConfig_; + } else { + return vulnerabilityScanningConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVulnerabilityScanningConfig( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig value) { + if (vulnerabilityScanningConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vulnerabilityScanningConfig_ = value; + } else { + vulnerabilityScanningConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVulnerabilityScanningConfig( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder + builderForValue) { + if (vulnerabilityScanningConfigBuilder_ == null) { + vulnerabilityScanningConfig_ = builderForValue.build(); + } else { + vulnerabilityScanningConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVulnerabilityScanningConfig( + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig value) { + if (vulnerabilityScanningConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && vulnerabilityScanningConfig_ != null + && vulnerabilityScanningConfig_ + != com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance()) { + getVulnerabilityScanningConfigBuilder().mergeFrom(value); + } else { + vulnerabilityScanningConfig_ = value; + } + } else { + vulnerabilityScanningConfigBuilder_.mergeFrom(value); + } + if (vulnerabilityScanningConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVulnerabilityScanningConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + vulnerabilityScanningConfig_ = null; + if (vulnerabilityScanningConfigBuilder_ != null) { + vulnerabilityScanningConfigBuilder_.dispose(); + vulnerabilityScanningConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder + getVulnerabilityScanningConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getVulnerabilityScanningConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder + getVulnerabilityScanningConfigOrBuilder() { + if (vulnerabilityScanningConfigBuilder_ != null) { + return vulnerabilityScanningConfigBuilder_.getMessageOrBuilder(); + } else { + return vulnerabilityScanningConfig_ == null + ? com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .getDefaultInstance() + : vulnerabilityScanningConfig_; + } + } + /** + * + * + *
+     * Optional. Config and state for vulnerability scanning of resources within
+     * this Repository.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.Builder, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder> + getVulnerabilityScanningConfigFieldBuilder() { + if (vulnerabilityScanningConfigBuilder_ == null) { + vulnerabilityScanningConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig, + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + .Builder, + com.google.devtools.artifactregistry.v1.Repository + .VulnerabilityScanningConfigOrBuilder>( + getVulnerabilityScanningConfig(), getParentForChildren(), isClean()); + vulnerabilityScanningConfig_ = null; + } + return vulnerabilityScanningConfigBuilder_; + } + + private boolean disallowUnspecifiedMode_; + /** + * + * + *
+     * Optional. If this is true, an unspecified repo type will be treated as
+     * error rather than defaulting to standard.
+     * 
+ * + * bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowUnspecifiedMode. + */ + @java.lang.Override + public boolean getDisallowUnspecifiedMode() { + return disallowUnspecifiedMode_; + } + /** + * + * + *
+     * Optional. If this is true, an unspecified repo type will be treated as
+     * error rather than defaulting to standard.
+     * 
+ * + * bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disallowUnspecifiedMode to set. + * @return This builder for chaining. + */ + public Builder setDisallowUnspecifiedMode(boolean value) { + + disallowUnspecifiedMode_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If this is true, an unspecified repo type will be treated as
+     * error rather than defaulting to standard.
+     * 
+ * + * bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisallowUnspecifiedMode() { + bitField0_ = (bitField0_ & ~0x00020000); + disallowUnspecifiedMode_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. If set, the repository satisfies physical zone isolation.
+     * 
+ * + * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. If set, the repository satisfies physical zone isolation.
+     * 
+ * + * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the repository satisfies physical zone isolation.
+     * 
+ * + * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00040000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java index cf3a12d39c81..f88ddeeb27e2 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java @@ -200,7 +200,8 @@ public interface RepositoryOrBuilder * *
    * The name of the repository, for example:
-   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+   * in a project, repository names must be unique.
    * 
* * string name = 1; @@ -213,7 +214,8 @@ public interface RepositoryOrBuilder * *
    * The name of the repository, for example:
-   * `projects/p1/locations/us-central1/repositories/repo1`.
+   * `projects/p1/locations/us-central1/repositories/repo1`. For each location
+   * in a project, repository names must be unique.
    * 
* * string name = 1; @@ -618,6 +620,79 @@ com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesOrThrow( */ boolean getCleanupPolicyDryRun(); + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vulnerabilityScanningConfig field is set. + */ + boolean hasVulnerabilityScanningConfig(); + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vulnerabilityScanningConfig. + */ + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig + getVulnerabilityScanningConfig(); + /** + * + * + *
+   * Optional. Config and state for vulnerability scanning of resources within
+   * this Repository.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfigOrBuilder + getVulnerabilityScanningConfigOrBuilder(); + + /** + * + * + *
+   * Optional. If this is true, an unspecified repo type will be treated as
+   * error rather than defaulting to standard.
+   * 
+ * + * bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowUnspecifiedMode. + */ + boolean getDisallowUnspecifiedMode(); + + /** + * + * + *
+   * Output only. If set, the repository satisfies physical zone isolation.
+   * 
+ * + * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + com.google.devtools.artifactregistry.v1.Repository.FormatConfigCase getFormatConfigCase(); com.google.devtools.artifactregistry.v1.Repository.ModeConfigCase getModeConfigCase(); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java index eac7f9a0342a..1185e21aabff 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java @@ -64,18 +64,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_Repository_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +132,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_Repository_DockerRepositoryConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_Repository_DockerRepositoryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -179,7 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "EEP\020\002B\020\n\016condition_type\"i\n\027VirtualReposi" + "toryConfig\022N\n\021upstream_policies\030\001 \003(\01323." + "google.devtools.artifactregistry.v1.Upst" - + "reamPolicy\"\315\026\n\026RemoteRepositoryConfig\022i\n" + + "reamPolicy\"\315\037\n\026RemoteRepositoryConfig\022i\n" + "\021docker_repository\030\002 \001(\0132L.google.devtoo" + "ls.artifactregistry.v1.RemoteRepositoryC" + "onfig.DockerRepositoryH\000\022g\n\020maven_reposi" @@ -195,137 +227,190 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "RemoteRepositoryConfig.AptRepositoryH\000\022c" + "\n\016yum_repository\030\007 \001(\0132I.google.devtools" + ".artifactregistry.v1.RemoteRepositoryCon" - + "fig.YumRepositoryH\000\022\023\n\013description\030\001 \001(\t" - + "\022r\n\024upstream_credentials\030\t \001(\0132O.google." - + "devtools.artifactregistry.v1.RemoteRepos" - + "itoryConfig.UpstreamCredentialsB\003\340A\001\032\277\002\n" - + "\023UpstreamCredentials\022\224\001\n\035username_passwo" - + "rd_credentials\030\001 \001(\0132k.google.devtools.a" - + "rtifactregistry.v1.RemoteRepositoryConfi" - + "g.UpstreamCredentials.UsernamePasswordCr" - + "edentialsH\000\032\201\001\n\033UsernamePasswordCredenti" - + "als\022\020\n\010username\030\001 \001(\t\022P\n\027password_secret" - + "_version\030\002 \001(\tB/\372A,\n*secretmanager.googl" - + "eapis.com/SecretVersionB\r\n\013credentials\032\341" - + "\001\n\020DockerRepository\022z\n\021public_repository" - + "\030\001 \001(\0162].google.devtools.artifactregistr" - + "y.v1.RemoteRepositoryConfig.DockerReposi" - + "tory.PublicRepositoryH\000\"E\n\020PublicReposit" - + "ory\022!\n\035PUBLIC_REPOSITORY_UNSPECIFIED\020\000\022\016" - + "\n\nDOCKER_HUB\020\001B\n\n\010upstream\032\342\001\n\017MavenRepo" - + "sitory\022y\n\021public_repository\030\001 \001(\0162\\.goog" - + "le.devtools.artifactregistry.v1.RemoteRe" - + "positoryConfig.MavenRepository.PublicRep" - + "ositoryH\000\"H\n\020PublicRepository\022!\n\035PUBLIC_" - + "REPOSITORY_UNSPECIFIED\020\000\022\021\n\rMAVEN_CENTRA" - + "L\020\001B\n\n\010upstream\032\326\001\n\rNpmRepository\022w\n\021pub" - + "lic_repository\030\001 \001(\0162Z.google.devtools.a" + + "fig.YumRepositoryH\000\022o\n\021common_repository" + + "\030\016 \001(\0132R.google.devtools.artifactregistr" + + "y.v1.RemoteRepositoryConfig.CommonRemote" + + "RepositoryH\000\022\023\n\013description\030\001 \001(\t\022r\n\024ups" + + "tream_credentials\030\t \001(\0132O.google.devtool" + + "s.artifactregistry.v1.RemoteRepositoryCo" + + "nfig.UpstreamCredentialsB\003\340A\001\022(\n\033disable" + + "_upstream_validation\030\014 \001(\010B\003\340A\004\032\277\002\n\023Upst" + + "reamCredentials\022\224\001\n\035username_password_cr" + + "edentials\030\001 \001(\0132k.google.devtools.artifa" + + "ctregistry.v1.RemoteRepositoryConfig.Ups" + + "treamCredentials.UsernamePasswordCredent" + + "ialsH\000\032\201\001\n\033UsernamePasswordCredentials\022\020" + + "\n\010username\030\001 \001(\t\022P\n\027password_secret_vers" + + "ion\030\002 \001(\tB/\372A,\n*secretmanager.googleapis" + + ".com/SecretVersionB\r\n\013credentials\032\376\002\n\020Do" + + "ckerRepository\022z\n\021public_repository\030\001 \001(" + + "\0162].google.devtools.artifactregistry.v1." + + "RemoteRepositoryConfig.DockerRepository." + + "PublicRepositoryH\000\022z\n\021custom_repository\030" + + "\003 \001(\0132].google.devtools.artifactregistry" + + ".v1.RemoteRepositoryConfig.DockerReposit" + + "ory.CustomRepositoryH\000\032\037\n\020CustomReposito" + + "ry\022\013\n\003uri\030\001 \001(\t\"E\n\020PublicRepository\022!\n\035P" + + "UBLIC_REPOSITORY_UNSPECIFIED\020\000\022\016\n\nDOCKER" + + "_HUB\020\001B\n\n\010upstream\032\376\002\n\017MavenRepository\022y" + + "\n\021public_repository\030\001 \001(\0162\\.google.devto" + + "ols.artifactregistry.v1.RemoteRepository" + + "Config.MavenRepository.PublicRepositoryH" + + "\000\022y\n\021custom_repository\030\003 \001(\0132\\.google.de" + + "vtools.artifactregistry.v1.RemoteReposit" + + "oryConfig.MavenRepository.CustomReposito" + + "ryH\000\032\037\n\020CustomRepository\022\013\n\003uri\030\001 \001(\t\"H\n" + + "\020PublicRepository\022!\n\035PUBLIC_REPOSITORY_U" + + "NSPECIFIED\020\000\022\021\n\rMAVEN_CENTRAL\020\001B\n\n\010upstr" + + "eam\032\360\002\n\rNpmRepository\022w\n\021public_reposito" + + "ry\030\001 \001(\0162Z.google.devtools.artifactregis" + + "try.v1.RemoteRepositoryConfig.NpmReposit" + + "ory.PublicRepositoryH\000\022w\n\021custom_reposit" + + "ory\030\003 \001(\0132Z.google.devtools.artifactregi" + + "stry.v1.RemoteRepositoryConfig.NpmReposi" + + "tory.CustomRepositoryH\000\032\037\n\020CustomReposit" + + "ory\022\013\n\003uri\030\001 \001(\t\"@\n\020PublicRepository\022!\n\035" + + "PUBLIC_REPOSITORY_UNSPECIFIED\020\000\022\t\n\005NPMJS" + + "\020\001B\n\n\010upstream\032\370\002\n\020PythonRepository\022z\n\021p" + + "ublic_repository\030\001 \001(\0162].google.devtools" + + ".artifactregistry.v1.RemoteRepositoryCon" + + "fig.PythonRepository.PublicRepositoryH\000\022" + + "z\n\021custom_repository\030\003 \001(\0132].google.devt" + + "ools.artifactregistry.v1.RemoteRepositor" + + "yConfig.PythonRepository.CustomRepositor" + + "yH\000\032\037\n\020CustomRepository\022\013\n\003uri\030\001 \001(\t\"?\n\020" + + "PublicRepository\022!\n\035PUBLIC_REPOSITORY_UN" + + "SPECIFIED\020\000\022\010\n\004PYPI\020\001B\n\n\010upstream\032\301\004\n\rAp" + + "tRepository\022w\n\021public_repository\030\001 \001(\0132Z" + + ".google.devtools.artifactregistry.v1.Rem" + + "oteRepositoryConfig.AptRepository.Public" + + "RepositoryH\000\022w\n\021custom_repository\030\003 \001(\0132" + + "Z.google.devtools.artifactregistry.v1.Re" + + "moteRepositoryConfig.AptRepository.Custo" + + "mRepositoryH\000\032\220\002\n\020PublicRepository\022\202\001\n\017r" + + "epository_base\030\001 \001(\0162i.google.devtools.a" + "rtifactregistry.v1.RemoteRepositoryConfi" - + "g.NpmRepository.PublicRepositoryH\000\"@\n\020Pu" - + "blicRepository\022!\n\035PUBLIC_REPOSITORY_UNSP" - + "ECIFIED\020\000\022\t\n\005NPMJS\020\001B\n\n\010upstream\032\333\001\n\020Pyt" - + "honRepository\022z\n\021public_repository\030\001 \001(\016" - + "2].google.devtools.artifactregistry.v1.R" - + "emoteRepositoryConfig.PythonRepository.P" - + "ublicRepositoryH\000\"?\n\020PublicRepository\022!\n" - + "\035PUBLIC_REPOSITORY_UNSPECIFIED\020\000\022\010\n\004PYPI" - + "\020\001B\n\n\010upstream\032\222\003\n\rAptRepository\022w\n\021publ" - + "ic_repository\030\001 \001(\0132Z.google.devtools.ar" + + "g.AptRepository.PublicRepository.Reposit" + + "oryBase\022\027\n\017repository_path\030\002 \001(\t\"^\n\016Repo" + + "sitoryBase\022\037\n\033REPOSITORY_BASE_UNSPECIFIE" + + "D\020\000\022\n\n\006DEBIAN\020\001\022\n\n\006UBUNTU\020\002\022\023\n\017DEBIAN_SN" + + "APSHOT\020\003\032\037\n\020CustomRepository\022\013\n\003uri\030\001 \001(" + + "\tB\n\n\010upstream\032\355\004\n\rYumRepository\022w\n\021publi" + + "c_repository\030\001 \001(\0132Z.google.devtools.art" + + "ifactregistry.v1.RemoteRepositoryConfig." + + "YumRepository.PublicRepositoryH\000\022w\n\021cust" + + "om_repository\030\003 \001(\0132Z.google.devtools.ar" + "tifactregistry.v1.RemoteRepositoryConfig" - + ".AptRepository.PublicRepositoryH\000\032\373\001\n\020Pu" + + ".YumRepository.CustomRepositoryH\000\032\274\002\n\020Pu" + "blicRepository\022\202\001\n\017repository_base\030\001 \001(\016" + "2i.google.devtools.artifactregistry.v1.R" - + "emoteRepositoryConfig.AptRepository.Publ" + + "emoteRepositoryConfig.YumRepository.Publ" + "icRepository.RepositoryBase\022\027\n\017repositor" - + "y_path\030\002 \001(\t\"I\n\016RepositoryBase\022\037\n\033REPOSI" - + "TORY_BASE_UNSPECIFIED\020\000\022\n\n\006DEBIAN\020\001\022\n\n\006U" - + "BUNTU\020\002B\n\n\010upstream\032\323\003\n\rYumRepository\022w\n" - + "\021public_repository\030\001 \001(\0132Z.google.devtoo" - + "ls.artifactregistry.v1.RemoteRepositoryC" - + "onfig.YumRepository.PublicRepositoryH\000\032\274" - + "\002\n\020PublicRepository\022\202\001\n\017repository_base\030" - + "\001 \001(\0162i.google.devtools.artifactregistry" - + ".v1.RemoteRepositoryConfig.YumRepository" - + ".PublicRepository.RepositoryBase\022\027\n\017repo" - + "sitory_path\030\002 \001(\t\"\211\001\n\016RepositoryBase\022\037\n\033" - + "REPOSITORY_BASE_UNSPECIFIED\020\000\022\n\n\006CENTOS\020" - + "\001\022\020\n\014CENTOS_DEBUG\020\002\022\020\n\014CENTOS_VAULT\020\003\022\021\n" - + "\rCENTOS_STREAM\020\004\022\t\n\005ROCKY\020\005\022\010\n\004EPEL\020\006B\n\n" - + "\010upstreamB\017\n\rremote_source\"\205\016\n\nRepositor" - + "y\022]\n\014maven_config\030\t \001(\0132E.google.devtool" - + "s.artifactregistry.v1.Repository.MavenRe" - + "positoryConfigH\000\022_\n\rdocker_config\030\021 \001(\0132" - + "F.google.devtools.artifactregistry.v1.Re" - + "pository.DockerRepositoryConfigH\000\022a\n\031vir" - + "tual_repository_config\030\016 \001(\0132<.google.de" - + "vtools.artifactregistry.v1.VirtualReposi" - + "toryConfigH\001\022_\n\030remote_repository_config" - + "\030\017 \001(\0132;.google.devtools.artifactregistr" - + "y.v1.RemoteRepositoryConfigH\001\022\014\n\004name\030\001 " - + "\001(\t\022K\n\006format\030\002 \001(\01626.google.devtools.ar" - + "tifactregistry.v1.Repository.FormatB\003\340A\001" - + "\022\023\n\013description\030\003 \001(\t\022K\n\006labels\030\004 \003(\0132;." - + "google.devtools.artifactregistry.v1.Repo" - + "sitory.LabelsEntry\0224\n\013create_time\030\005 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022\024\n\014kms_key_name\030\010 \001(\t\022G\n\004mode\030\n \001" - + "(\01624.google.devtools.artifactregistry.v1" - + ".Repository.ModeB\003\340A\001\022c\n\020cleanup_policie" - + "s\030\014 \003(\0132D.google.devtools.artifactregist" - + "ry.v1.Repository.CleanupPoliciesEntryB\003\340" - + "A\001\022\027\n\nsize_bytes\030\r \001(\003B\003\340A\003\022\032\n\rsatisfies" - + "_pzs\030\020 \001(\010B\003\340A\003\022#\n\026cleanup_policy_dry_ru" - + "n\030\022 \001(\010B\003\340A\001\032\363\001\n\025MavenRepositoryConfig\022!" - + "\n\031allow_snapshot_overwrites\030\001 \001(\010\022k\n\016ver" - + "sion_policy\030\002 \001(\0162S.google.devtools.arti" - + "factregistry.v1.Repository.MavenReposito" - + "ryConfig.VersionPolicy\"J\n\rVersionPolicy\022" - + "\036\n\032VERSION_POLICY_UNSPECIFIED\020\000\022\013\n\007RELEA" - + "SE\020\001\022\014\n\010SNAPSHOT\020\002\0320\n\026DockerRepositoryCo" - + "nfig\022\026\n\016immutable_tags\030\001 \001(\010\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032j\n\024C" - + "leanupPoliciesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005valu" - + "e\030\002 \001(\01322.google.devtools.artifactregist" - + "ry.v1.CleanupPolicy:\0028\001\"o\n\006Format\022\026\n\022FOR" - + "MAT_UNSPECIFIED\020\000\022\n\n\006DOCKER\020\001\022\t\n\005MAVEN\020\002" - + "\022\007\n\003NPM\020\003\022\007\n\003APT\020\005\022\007\n\003YUM\020\006\022\n\n\006PYTHON\020\010\022" - + "\007\n\003KFP\020\t\022\006\n\002GO\020\n\"d\n\004Mode\022\024\n\020MODE_UNSPECI" - + "FIED\020\000\022\027\n\023STANDARD_REPOSITORY\020\001\022\026\n\022VIRTU" - + "AL_REPOSITORY\020\002\022\025\n\021REMOTE_REPOSITORY\020\003:r" - + "\352Ao\n*artifactregistry.googleapis.com/Rep" - + "ository\022Aprojects/{project}/locations/{l" - + "ocation}/repositories/{repository}B\017\n\rfo" - + "rmat_configB\r\n\013mode_config\"\204\001\n\027ListRepos" - + "itoriesRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*" - + "artifactregistry.googleapis.com/Reposito" - + "ry\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"z\n\030ListRepositoriesResponse\022E\n\014reposit" - + "ories\030\001 \003(\0132/.google.devtools.artifactre" - + "gistry.v1.Repository\022\027\n\017next_page_token\030" - + "\002 \001(\t\"X\n\024GetRepositoryRequest\022@\n\004name\030\001 " - + "\001(\tB2\340A\002\372A,\n*artifactregistry.googleapis" - + ".com/Repository\"\303\001\n\027CreateRepositoryRequ" - + "est\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*artifactreg" - + "istry.googleapis.com/Repository\022\032\n\rrepos" - + "itory_id\030\002 \001(\tB\003\340A\002\022H\n\nrepository\030\003 \001(\0132" - + "/.google.devtools.artifactregistry.v1.Re" - + "positoryB\003\340A\002\"\217\001\n\027UpdateRepositoryReques" - + "t\022C\n\nrepository\030\001 \001(\0132/.google.devtools." - + "artifactregistry.v1.Repository\022/\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "[\n\027DeleteRepositoryRequest\022@\n\004name\030\001 \001(\t" - + "B2\340A\002\372A,\n*artifactregistry.googleapis.co" - + "m/RepositoryB\350\002\n\'com.google.devtools.art" - + "ifactregistry.v1B\017RepositoryProtoP\001ZPclo" - + "ud.google.com/go/artifactregistry/apiv1/" - + "artifactregistrypb;artifactregistrypb\252\002 " - + "Google.Cloud.ArtifactRegistry.V1\312\002 Googl" - + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cl" - + "oud::ArtifactRegistry::V1\352Ak\n*secretmana" - + "ger.googleapis.com/SecretVersion\022=projec" - + "ts/{project}/secrets/{secret}/versions/{" - + "secret_version}b\006proto3" + + "y_path\030\002 \001(\t\"\211\001\n\016RepositoryBase\022\037\n\033REPOS" + + "ITORY_BASE_UNSPECIFIED\020\000\022\n\n\006CENTOS\020\001\022\020\n\014" + + "CENTOS_DEBUG\020\002\022\020\n\014CENTOS_VAULT\020\003\022\021\n\rCENT" + + "OS_STREAM\020\004\022\t\n\005ROCKY\020\005\022\010\n\004EPEL\020\006\032\037\n\020Cust" + + "omRepository\022\013\n\003uri\030\001 \001(\tB\n\n\010upstream\032*\n" + + "\026CommonRemoteRepository\022\020\n\003uri\030\001 \001(\tB\003\340A" + + "\002B\017\n\rremote_source\"\231\024\n\nRepository\022]\n\014mav" + + "en_config\030\t \001(\0132E.google.devtools.artifa" + + "ctregistry.v1.Repository.MavenRepository" + + "ConfigH\000\022_\n\rdocker_config\030\021 \001(\0132F.google" + + ".devtools.artifactregistry.v1.Repository" + + ".DockerRepositoryConfigH\000\022a\n\031virtual_rep" + + "ository_config\030\016 \001(\0132<.google.devtools.a" + + "rtifactregistry.v1.VirtualRepositoryConf" + + "igH\001\022_\n\030remote_repository_config\030\017 \001(\0132;" + + ".google.devtools.artifactregistry.v1.Rem" + + "oteRepositoryConfigH\001\022\014\n\004name\030\001 \001(\t\022K\n\006f" + + "ormat\030\002 \001(\01626.google.devtools.artifactre" + + "gistry.v1.Repository.FormatB\003\340A\001\022\023\n\013desc" + + "ription\030\003 \001(\t\022K\n\006labels\030\004 \003(\0132;.google.d" + + "evtools.artifactregistry.v1.Repository.L" + + "abelsEntry\0224\n\013create_time\030\005 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024" + + "\n\014kms_key_name\030\010 \001(\t\022G\n\004mode\030\n \001(\01624.goo" + + "gle.devtools.artifactregistry.v1.Reposit" + + "ory.ModeB\003\340A\001\022c\n\020cleanup_policies\030\014 \003(\0132" + + "D.google.devtools.artifactregistry.v1.Re" + + "pository.CleanupPoliciesEntryB\003\340A\001\022\027\n\nsi" + + "ze_bytes\030\r \001(\003B\003\340A\003\022\032\n\rsatisfies_pzs\030\020 \001" + + "(\010B\003\340A\003\022#\n\026cleanup_policy_dry_run\030\022 \001(\010B" + + "\003\340A\001\022w\n\035vulnerability_scanning_config\030\023 " + + "\001(\0132K.google.devtools.artifactregistry.v" + + "1.Repository.VulnerabilityScanningConfig" + + "B\003\340A\001\022&\n\031disallow_unspecified_mode\030\025 \001(\010" + + "B\003\340A\001\022\032\n\rsatisfies_pzi\030\026 \001(\010B\003\340A\003\032\363\001\n\025Ma" + + "venRepositoryConfig\022!\n\031allow_snapshot_ov" + + "erwrites\030\001 \001(\010\022k\n\016version_policy\030\002 \001(\0162S" + + ".google.devtools.artifactregistry.v1.Rep" + + "ository.MavenRepositoryConfig.VersionPol" + + "icy\"J\n\rVersionPolicy\022\036\n\032VERSION_POLICY_U" + + "NSPECIFIED\020\000\022\013\n\007RELEASE\020\001\022\014\n\010SNAPSHOT\020\002\032" + + "0\n\026DockerRepositoryConfig\022\026\n\016immutable_t" + + "ags\030\001 \001(\010\032\307\004\n\033VulnerabilityScanningConfi" + + "g\022|\n\021enablement_config\030\001 \001(\0162\\.google.de" + + "vtools.artifactregistry.v1.Repository.Vu" + + "lnerabilityScanningConfig.EnablementConf" + + "igB\003\340A\001\0229\n\020last_enable_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022z\n\020enablement" + + "_state\030\003 \001(\0162[.google.devtools.artifactr" + + "egistry.v1.Repository.VulnerabilityScann" + + "ingConfig.EnablementStateB\003\340A\003\022$\n\027enable" + + "ment_state_reason\030\004 \001(\tB\003\340A\003\"R\n\020Enableme" + + "ntConfig\022!\n\035ENABLEMENT_CONFIG_UNSPECIFIE" + + "D\020\000\022\r\n\tINHERITED\020\001\022\014\n\010DISABLED\020\002\"y\n\017Enab" + + "lementState\022 \n\034ENABLEMENT_STATE_UNSPECIF" + + "IED\020\000\022\030\n\024SCANNING_UNSUPPORTED\020\001\022\025\n\021SCANN" + + "ING_DISABLED\020\002\022\023\n\017SCANNING_ACTIVE\020\003\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\032j\n\024CleanupPoliciesEntry\022\013\n\003key\030\001 \001(\t\022" + + "A\n\005value\030\002 \001(\01322.google.devtools.artifac" + + "tregistry.v1.CleanupPolicy:\0028\001\"|\n\006Format" + + "\022\026\n\022FORMAT_UNSPECIFIED\020\000\022\n\n\006DOCKER\020\001\022\t\n\005" + + "MAVEN\020\002\022\007\n\003NPM\020\003\022\007\n\003APT\020\005\022\007\n\003YUM\020\006\022\n\n\006PY" + + "THON\020\010\022\007\n\003KFP\020\t\022\006\n\002GO\020\n\022\013\n\007GENERIC\020\013\"d\n\004" + + "Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\027\n\023STANDARD_R" + + "EPOSITORY\020\001\022\026\n\022VIRTUAL_REPOSITORY\020\002\022\025\n\021R" + + "EMOTE_REPOSITORY\020\003:r\352Ao\n*artifactregistr" + + "y.googleapis.com/Repository\022Aprojects/{p" + + "roject}/locations/{location}/repositorie" + + "s/{repository}B\017\n\rformat_configB\r\n\013mode_" + + "config\"\260\001\n\027ListRepositoriesRequest\022B\n\006pa" + + "rent\030\001 \001(\tB2\340A\002\372A,\022*artifactregistry.goo" + + "gleapis.com/Repository\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340" + + "A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"z\n\030ListReposit" + + "oriesResponse\022E\n\014repositories\030\001 \003(\0132/.go" + + "ogle.devtools.artifactregistry.v1.Reposi" + + "tory\022\027\n\017next_page_token\030\002 \001(\t\"X\n\024GetRepo" + + "sitoryRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*art" + + "ifactregistry.googleapis.com/Repository\"" + + "\303\001\n\027CreateRepositoryRequest\022B\n\006parent\030\001 " + + "\001(\tB2\340A\002\372A,\022*artifactregistry.googleapis" + + ".com/Repository\022\032\n\rrepository_id\030\002 \001(\tB\003" + + "\340A\002\022H\n\nrepository\030\003 \001(\0132/.google.devtool" + + "s.artifactregistry.v1.RepositoryB\003\340A\002\"\217\001" + + "\n\027UpdateRepositoryRequest\022C\n\nrepository\030" + + "\001 \001(\0132/.google.devtools.artifactregistry" + + ".v1.Repository\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"[\n\027DeleteReposit" + + "oryRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*artifa" + + "ctregistry.googleapis.com/RepositoryB\347\003\n" + + "\'com.google.devtools.artifactregistry.v1" + + "B\017RepositoryProtoP\001ZPcloud.google.com/go" + + "/artifactregistry/apiv1/artifactregistry" + + "pb;artifactregistrypb\252\002 Google.Cloud.Art" + + "ifactRegistry.V1\312\002 Google\\Cloud\\Artifact" + + "Registry\\V1\352\002#Google::Cloud::ArtifactReg" + + "istry::V1\352Ak\n*secretmanager.googleapis.c" + + "om/SecretVersion\022=projects/{project}/sec" + + "rets/{secret}/versions/{secret_version}\352" + + "A|\n\'servicedirectory.googleapis.com/Serv" + + "ice\022Qprojects/{project}/locations/{locat" + + "ion}/namespaces/{namespace}/services/{se" + + "rvice}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -394,8 +479,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PythonRepository", "AptRepository", "YumRepository", + "CommonRepository", "Description", "UpstreamCredentials", + "DisableUpstreamValidation", "RemoteSource", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_UpstreamCredentials_descriptor = @@ -426,7 +513,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", + }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_DockerRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor @@ -436,7 +533,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", + }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_MavenRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor @@ -446,7 +553,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", + }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_NpmRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor @@ -456,7 +573,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", + }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_PythonRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor @@ -466,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_PublicRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor @@ -478,6 +605,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RepositoryBase", "RepositoryPath", }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_descriptor + .getNestedTypes() + .get(1); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_AptRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", + }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor .getNestedTypes() @@ -486,7 +623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor, new java.lang.String[] { - "PublicRepository", "Upstream", + "PublicRepository", "CustomRepository", "Upstream", }); internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_PublicRepository_descriptor = internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor @@ -498,6 +635,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RepositoryBase", "RepositoryPath", }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_descriptor + .getNestedTypes() + .get(1); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_YumRepository_CustomRepository_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor = + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_descriptor + .getNestedTypes() + .get(7); + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_RemoteRepositoryConfig_CommonRemoteRepository_descriptor, + new java.lang.String[] { + "Uri", + }); internal_static_google_devtools_artifactregistry_v1_Repository_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_devtools_artifactregistry_v1_Repository_fieldAccessorTable = @@ -520,6 +677,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeBytes", "SatisfiesPzs", "CleanupPolicyDryRun", + "VulnerabilityScanningConfig", + "DisallowUnspecifiedMode", + "SatisfiesPzi", "FormatConfig", "ModeConfig", }); @@ -543,10 +703,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ImmutableTags", }); - internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor = internal_static_google_devtools_artifactregistry_v1_Repository_descriptor .getNestedTypes() .get(2); + internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Repository_VulnerabilityScanningConfig_descriptor, + new java.lang.String[] { + "EnablementConfig", "LastEnableTime", "EnablementState", "EnablementStateReason", + }); + internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_Repository_descriptor + .getNestedTypes() + .get(3); internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor, @@ -556,7 +726,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_devtools_artifactregistry_v1_Repository_CleanupPoliciesEntry_descriptor = internal_static_google_devtools_artifactregistry_v1_Repository_descriptor .getNestedTypes() - .get(3); + .get(4); internal_static_google_devtools_artifactregistry_v1_Repository_CleanupPoliciesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_Repository_CleanupPoliciesEntry_descriptor, @@ -569,7 +739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_descriptor = getDescriptor().getMessageTypes().get(8); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Rule.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Rule.java new file mode 100644 index 000000000000..ed28ddd19fb1 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Rule.java @@ -0,0 +1,1661 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * A rule defines the deny or allow action of the operation it applies to and
+ * the conditions required for the rule to apply. You can set one rule for an
+ * entire repository and one rule for each package within.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Rule} + */ +public final class Rule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.Rule) + RuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Rule.newBuilder() to construct. + private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Rule() { + name_ = ""; + action_ = 0; + operation_ = 0; + packageId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Rule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_Rule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Rule.class, + com.google.devtools.artifactregistry.v1.Rule.Builder.class); + } + + /** + * + * + *
+   * Defines the action of the rule.
+   * 
+ * + * Protobuf enum {@code google.devtools.artifactregistry.v1.Rule.Action} + */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Action not specified.
+     * 
+ * + * ACTION_UNSPECIFIED = 0; + */ + ACTION_UNSPECIFIED(0), + /** + * + * + *
+     * Allow the operation.
+     * 
+ * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
+     * Deny the operation.
+     * 
+ * + * DENY = 2; + */ + DENY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Action not specified.
+     * 
+ * + * ACTION_UNSPECIFIED = 0; + */ + public static final int ACTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Allow the operation.
+     * 
+ * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + /** + * + * + *
+     * Deny the operation.
+     * 
+ * + * DENY = 2; + */ + public static final int DENY_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 Action 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 Action forNumber(int value) { + switch (value) { + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + 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 Action findValueByNumber(int number) { + return Action.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.Rule.getDescriptor().getEnumTypes().get(0); + } + + private static final Action[] VALUES = values(); + + public static Action 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 Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.Rule.Action) + } + + /** + * + * + *
+   * The operation the rule applies to.
+   * 
+ * + * Protobuf enum {@code google.devtools.artifactregistry.v1.Rule.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Operation not specified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Download operation.
+     * 
+ * + * DOWNLOAD = 1; + */ + DOWNLOAD(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Operation not specified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Download operation.
+     * 
+ * + * DOWNLOAD = 1; + */ + public static final int DOWNLOAD_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operation 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 Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return DOWNLOAD; + 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 Operation findValueByNumber(int number) { + return Operation.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.Rule.getDescriptor().getEnumTypes().get(1); + } + + private static final Operation[] VALUES = values(); + + public static Operation 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 Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devtools.artifactregistry.v1.Rule.Operation) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the rule, for example:
+   * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the rule, for example:
+   * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_ = 0; + /** + * + * + *
+   * The action this rule takes.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * The action this rule takes.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule.Action getAction() { + com.google.devtools.artifactregistry.v1.Rule.Action result = + com.google.devtools.artifactregistry.v1.Rule.Action.forNumber(action_); + return result == null + ? com.google.devtools.artifactregistry.v1.Rule.Action.UNRECOGNIZED + : result; + } + + public static final int OPERATION_FIELD_NUMBER = 3; + private int operation_ = 0; + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The operation. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule.Operation getOperation() { + com.google.devtools.artifactregistry.v1.Rule.Operation result = + com.google.devtools.artifactregistry.v1.Rule.Operation.forNumber(operation_); + return result == null + ? com.google.devtools.artifactregistry.v1.Rule.Operation.UNRECOGNIZED + : result; + } + + public static final int CONDITION_FIELD_NUMBER = 4; + private com.google.type.Expr condition_; + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the condition field is set. + */ + @java.lang.Override + public boolean hasCondition() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + @java.lang.Override + public com.google.type.Expr getCondition() { + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + } + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.ExprOrBuilder getConditionOrBuilder() { + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + } + + public static final int PACKAGE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageId_ = ""; + /** + * + * + *
+   * The package ID the rule applies to.
+   * If empty, this rule applies to all packages inside the repository.
+   * 
+ * + * string package_id = 5; + * + * @return The packageId. + */ + @java.lang.Override + public java.lang.String getPackageId() { + java.lang.Object ref = packageId_; + 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(); + packageId_ = s; + return s; + } + } + /** + * + * + *
+   * The package ID the rule applies to.
+   * If empty, this rule applies to all packages inside the repository.
+   * 
+ * + * string package_id = 5; + * + * @return The bytes for packageId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageIdBytes() { + java.lang.Object ref = packageId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (action_ + != com.google.devtools.artifactregistry.v1.Rule.Action.ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + if (operation_ + != com.google.devtools.artifactregistry.v1.Rule.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCondition()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (action_ + != com.google.devtools.artifactregistry.v1.Rule.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + if (operation_ + != com.google.devtools.artifactregistry.v1.Rule.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageId_); + } + 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.devtools.artifactregistry.v1.Rule)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.Rule other = + (com.google.devtools.artifactregistry.v1.Rule) obj; + + if (!getName().equals(other.getName())) return false; + if (action_ != other.action_) return false; + if (operation_ != other.operation_) return false; + if (hasCondition() != other.hasCondition()) return false; + if (hasCondition()) { + if (!getCondition().equals(other.getCondition())) return false; + } + if (!getPackageId().equals(other.getPackageId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasCondition()) { + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + } + hash = (37 * hash) + PACKAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPackageId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Rule 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.devtools.artifactregistry.v1.Rule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.Rule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.Rule 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A rule defines the deny or allow action of the operation it applies to and
+   * the conditions required for the rule to apply. You can set one rule for an
+   * entire repository and one rule for each package within.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Rule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.Rule) + com.google.devtools.artifactregistry.v1.RuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_Rule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.Rule.class, + com.google.devtools.artifactregistry.v1.Rule.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.Rule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + action_ = 0; + operation_ = 0; + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); + conditionBuilder_ = null; + } + packageId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_Rule_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule build() { + com.google.devtools.artifactregistry.v1.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule buildPartial() { + com.google.devtools.artifactregistry.v1.Rule result = + new com.google.devtools.artifactregistry.v1.Rule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.Rule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operation_ = operation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.packageId_ = packageId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.Rule) { + return mergeFrom((com.google.devtools.artifactregistry.v1.Rule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.Rule other) { + if (other == com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + if (!other.getPackageId().isEmpty()) { + packageId_ = other.packageId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + packageId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the rule, for example:
+     * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the rule, for example:
+     * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the rule, for example:
+     * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the rule, for example:
+     * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the rule, for example:
+     * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * The action this rule takes.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * The action this rule takes.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The action this rule takes.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule.Action getAction() { + com.google.devtools.artifactregistry.v1.Rule.Action result = + com.google.devtools.artifactregistry.v1.Rule.Action.forNumber(action_); + return result == null + ? com.google.devtools.artifactregistry.v1.Rule.Action.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The action this rule takes.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.devtools.artifactregistry.v1.Rule.Action value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The action this rule takes.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 0; + onChanged(); + return this; + } + + private int operation_ = 0; + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The operation. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule.Operation getOperation() { + com.google.devtools.artifactregistry.v1.Rule.Operation result = + com.google.devtools.artifactregistry.v1.Rule.Operation.forNumber(operation_); + return result == null + ? com.google.devtools.artifactregistry.v1.Rule.Operation.UNRECOGNIZED + : result; + } + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(com.google.devtools.artifactregistry.v1.Rule.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000004); + operation_ = 0; + onChanged(); + return this; + } + + private com.google.type.Expr condition_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the condition field is set. + */ + public boolean hasCondition() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + public com.google.type.Expr getCondition() { + if (conditionBuilder_ == null) { + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + } else { + return conditionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setCondition(com.google.type.Expr value) { + if (conditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + } else { + conditionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setCondition(com.google.type.Expr.Builder builderForValue) { + if (conditionBuilder_ == null) { + condition_ = builderForValue.build(); + } else { + conditionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeCondition(com.google.type.Expr value) { + if (conditionBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && condition_ != null + && condition_ != com.google.type.Expr.getDefaultInstance()) { + getConditionBuilder().mergeFrom(value); + } else { + condition_ = value; + } + } else { + conditionBuilder_.mergeFrom(value); + } + if (condition_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000008); + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); + conditionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.Expr.Builder getConditionBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConditionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.ExprOrBuilder getConditionOrBuilder() { + if (conditionBuilder_ != null) { + return conditionBuilder_.getMessageOrBuilder(); + } else { + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + } + } + /** + * + * + *
+     * Optional. A CEL expression for conditions that must be met in order for the
+     * rule to apply. If not provided, the rule matches all objects.
+     * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + getConditionFieldBuilder() { + if (conditionBuilder_ == null) { + conditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), getParentForChildren(), isClean()); + condition_ = null; + } + return conditionBuilder_; + } + + private java.lang.Object packageId_ = ""; + /** + * + * + *
+     * The package ID the rule applies to.
+     * If empty, this rule applies to all packages inside the repository.
+     * 
+ * + * string package_id = 5; + * + * @return The packageId. + */ + public java.lang.String getPackageId() { + java.lang.Object ref = packageId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The package ID the rule applies to.
+     * If empty, this rule applies to all packages inside the repository.
+     * 
+ * + * string package_id = 5; + * + * @return The bytes for packageId. + */ + public com.google.protobuf.ByteString getPackageIdBytes() { + java.lang.Object ref = packageId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The package ID the rule applies to.
+     * If empty, this rule applies to all packages inside the repository.
+     * 
+ * + * string package_id = 5; + * + * @param value The packageId to set. + * @return This builder for chaining. + */ + public Builder setPackageId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The package ID the rule applies to.
+     * If empty, this rule applies to all packages inside the repository.
+     * 
+ * + * string package_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearPackageId() { + packageId_ = getDefaultInstance().getPackageId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The package ID the rule applies to.
+     * If empty, this rule applies to all packages inside the repository.
+     * 
+ * + * string package_id = 5; + * + * @param value The bytes for packageId to set. + * @return This builder for chaining. + */ + public Builder setPackageIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.Rule) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.Rule) + private static final com.google.devtools.artifactregistry.v1.Rule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.Rule(); + } + + public static com.google.devtools.artifactregistry.v1.Rule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rule 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.devtools.artifactregistry.v1.Rule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java new file mode 100644 index 000000000000..b2580d0a5115 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_RULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/rules/{rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String rule; + + @Deprecated + protected RuleName() { + project = null; + location = null; + repository = null; + rule = null; + } + + private RuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + rule = Preconditions.checkNotNull(builder.getRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getRule() { + return rule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RuleName of(String project, String location, String repository, String rule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setRule(rule) + .build(); + } + + public static String format(String project, String location, String repository, String rule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setRule(rule) + .build() + .toString(); + } + + public static RuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_RULE.validatedMatch( + formattedString, "RuleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("rule")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_RULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (rule != null) { + fieldMapBuilder.put("rule", rule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_RULE.instantiate( + "project", project, "location", location, "repository", repository, "rule", rule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RuleName that = ((RuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.rule, that.rule); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(repository); + h *= 1000003; + h ^= Objects.hashCode(rule); + return h; + } + + /** Builder for projects/{project}/locations/{location}/repositories/{repository}/rules/{rule}. */ + public static class Builder { + private String project; + private String location; + private String repository; + private String rule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getRule() { + return rule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setRule(String rule) { + this.rule = rule; + return this; + } + + private Builder(RuleName ruleName) { + this.project = ruleName.project; + this.location = ruleName.location; + this.repository = ruleName.repository; + this.rule = ruleName.rule; + } + + public RuleName build() { + return new RuleName(this); + } + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleOrBuilder.java new file mode 100644 index 000000000000..da07450ab0c8 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface RuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.Rule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the rule, for example:
+   * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the rule, for example:
+   * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The action this rule takes.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * The action this rule takes.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule.Action action = 2; + * + * @return The action. + */ + com.google.devtools.artifactregistry.v1.Rule.Action getAction(); + + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; + * + * @return The operation. + */ + com.google.devtools.artifactregistry.v1.Rule.Operation getOperation(); + + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the condition field is set. + */ + boolean hasCondition(); + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + com.google.type.Expr getCondition(); + /** + * + * + *
+   * Optional. A CEL expression for conditions that must be met in order for the
+   * rule to apply. If not provided, the rule matches all objects.
+   * 
+ * + * .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.ExprOrBuilder getConditionOrBuilder(); + + /** + * + * + *
+   * The package ID the rule applies to.
+   * If empty, this rule applies to all packages inside the repository.
+   * 
+ * + * string package_id = 5; + * + * @return The packageId. + */ + java.lang.String getPackageId(); + /** + * + * + *
+   * The package ID the rule applies to.
+   * If empty, this rule applies to all packages inside the repository.
+   * 
+ * + * string package_id = 5; + * + * @return The bytes for packageId. + */ + com.google.protobuf.ByteString getPackageIdBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleProto.java new file mode 100644 index 000000000000..1155f98f1fad --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleProto.java @@ -0,0 +1,188 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public final class RuleProto { + private RuleProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Rule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/devtools/artifactregistry/v1/ru" + + "le.proto\022#google.devtools.artifactregist" + + "ry.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032 google/protob" + + "uf/field_mask.proto\032\026google/type/expr.pr" + + "oto\"\305\003\n\004Rule\022\014\n\004name\030\001 \001(\t\022@\n\006action\030\002 \001" + + "(\01620.google.devtools.artifactregistry.v1" + + ".Rule.Action\022F\n\toperation\030\003 \001(\01623.google" + + ".devtools.artifactregistry.v1.Rule.Opera" + + "tion\022)\n\tcondition\030\004 \001(\0132\021.google.type.Ex" + + "prB\003\340A\001\022\022\n\npackage_id\030\005 \001(\t\"5\n\006Action\022\026\n" + + "\022ACTION_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY" + + "\020\002\"4\n\tOperation\022\031\n\025OPERATION_UNSPECIFIED" + + "\020\000\022\014\n\010DOWNLOAD\020\001:y\352Av\n$artifactregistry." + + "googleapis.com/Rule\022Nprojects/{project}/" + + "locations/{location}/repositories/{repos" + + "itory}/rules/{rule}\"w\n\020ListRulesRequest\022" + + "<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$artifactregistr" + + "y.googleapis.com/Rule\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"f\n\021ListRulesRespons" + + "e\0228\n\005rules\030\001 \003(\0132).google.devtools.artif" + + "actregistry.v1.Rule\022\027\n\017next_page_token\030\002" + + " \001(\t\"L\n\016GetRuleRequest\022:\n\004name\030\001 \001(\tB,\340A" + + "\002\372A&\n$artifactregistry.googleapis.com/Ru" + + "le\"\233\001\n\021CreateRuleRequest\022<\n\006parent\030\001 \001(\t" + + "B,\340A\002\372A&\022$artifactregistry.googleapis.co" + + "m/Rule\022\017\n\007rule_id\030\002 \001(\t\0227\n\004rule\030\003 \001(\0132)." + + "google.devtools.artifactregistry.v1.Rule" + + "\"}\n\021UpdateRuleRequest\0227\n\004rule\030\001 \001(\0132).go" + + "ogle.devtools.artifactregistry.v1.Rule\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"O\n\021DeleteRuleRequest\022:\n\004name\030\001 \001" + + "(\tB,\340A\002\372A&\n$artifactregistry.googleapis." + + "com/RuleB\364\001\n\'com.google.devtools.artifac" + + "tregistry.v1B\tRuleProtoP\001ZPcloud.google." + + "com/go/artifactregistry/apiv1/artifactre" + + "gistrypb;artifactregistrypb\252\002 Google.Clo" + + "ud.ArtifactRegistry.V1\312\002 Google\\Cloud\\Ar" + + "tifactRegistry\\V1\352\002#Google::Cloud::Artif" + + "actRegistry::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_devtools_artifactregistry_v1_Rule_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_devtools_artifactregistry_v1_Rule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Rule_descriptor, + new java.lang.String[] { + "Name", "Action", "Operation", "Condition", "PackageId", + }); + internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ListRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ListRulesResponse_descriptor, + new java.lang.String[] { + "Rules", "NextPageToken", + }); + internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_GetRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_CreateRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "RuleId", "Rule", + }); + internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor, + new java.lang.String[] { + "Rule", "UpdateMask", + }); + internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_DeleteRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java index 1fb7499a9638..83ed7c118f95 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java @@ -47,235 +47,311 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/client.proto\0326google/devtools" + "/artifactregistry/v1/apt_artifact.proto\032" + "2google/devtools/artifactregistry/v1/art" - + "ifact.proto\032.google/devtools/artifactreg" - + "istry/v1/file.proto\0321google/devtools/art" - + "ifactregistry/v1/package.proto\0324google/d" - + "evtools/artifactregistry/v1/repository.p" - + "roto\0322google/devtools/artifactregistry/v" - + "1/settings.proto\032-google/devtools/artifa" - + "ctregistry/v1/tag.proto\0321google/devtools" - + "/artifactregistry/v1/version.proto\0326goog" - + "le/devtools/artifactregistry/v1/vpcsc_co" - + "nfig.proto\0326google/devtools/artifactregi" - + "stry/v1/yum_artifact.proto\032\036google/iam/v" - + "1/iam_policy.proto\032\032google/iam/v1/policy" - + ".proto\032#google/longrunning/operations.pr" - + "oto\032\033google/protobuf/empty.proto\"\023\n\021Oper" - + "ationMetadata2\344@\n\020ArtifactRegistry\022\341\001\n\020L" - + "istDockerImages\022<.google.devtools.artifa" - + "ctregistry.v1.ListDockerImagesRequest\032=." + + "ifact.proto\0324google/devtools/artifactreg" + + "istry/v1/attachment.proto\032.google/devtoo" + + "ls/artifactregistry/v1/file.proto\0321googl" + + "e/devtools/artifactregistry/v1/package.p" + + "roto\0324google/devtools/artifactregistry/v" + + "1/repository.proto\032.google/devtools/arti" + + "factregistry/v1/rule.proto\0322google/devto" + + "ols/artifactregistry/v1/settings.proto\032-" + + "google/devtools/artifactregistry/v1/tag." + + "proto\0321google/devtools/artifactregistry/" + + "v1/version.proto\0326google/devtools/artifa" + + "ctregistry/v1/vpcsc_config.proto\0326google" + + "/devtools/artifactregistry/v1/yum_artifa" + + "ct.proto\032\036google/iam/v1/iam_policy.proto" + + "\032\032google/iam/v1/policy.proto\032#google/lon" + + "grunning/operations.proto\032\033google/protob" + + "uf/empty.proto\"\023\n\021OperationMetadata2\352W\n\020" + + "ArtifactRegistry\022\341\001\n\020ListDockerImages\022<." + "google.devtools.artifactregistry.v1.List" - + "DockerImagesResponse\"P\332A\006parent\202\323\344\223\002A\022?/" - + "v1/{parent=projects/*/locations/*/reposi" - + "tories/*}/dockerImages\022\316\001\n\016GetDockerImag" - + "e\022:.google.devtools.artifactregistry.v1." - + "GetDockerImageRequest\0320.google.devtools." - + "artifactregistry.v1.DockerImage\"N\332A\004name" - + "\202\323\344\223\002A\022?/v1/{name=projects/*/locations/*" - + "/repositories/*/dockerImages/*}\022\351\001\n\022List" - + "MavenArtifacts\022>.google.devtools.artifac" - + "tregistry.v1.ListMavenArtifactsRequest\032?" + + "DockerImagesRequest\032=.google.devtools.ar" + + "tifactregistry.v1.ListDockerImagesRespon" + + "se\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=project" + + "s/*/locations/*/repositories/*}/dockerIm" + + "ages\022\316\001\n\016GetDockerImage\022:.google.devtool" + + "s.artifactregistry.v1.GetDockerImageRequ" + + "est\0320.google.devtools.artifactregistry.v" + + "1.DockerImage\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=" + + "projects/*/locations/*/repositories/*/do" + + "ckerImages/*}\022\351\001\n\022ListMavenArtifacts\022>.g" + + "oogle.devtools.artifactregistry.v1.ListM" + + "avenArtifactsRequest\032?.google.devtools.a" + + "rtifactregistry.v1.ListMavenArtifactsRes" + + "ponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=proj" + + "ects/*/locations/*/repositories/*}/maven" + + "Artifacts\022\326\001\n\020GetMavenArtifact\022<.google." + + "devtools.artifactregistry.v1.GetMavenArt" + + "ifactRequest\0322.google.devtools.artifactr" + + "egistry.v1.MavenArtifact\"P\332A\004name\202\323\344\223\002C\022" + + "A/v1/{name=projects/*/locations/*/reposi" + + "tories/*/mavenArtifacts/*}\022\335\001\n\017ListNpmPa" + + "ckages\022;.google.devtools.artifactregistr" + + "y.v1.ListNpmPackagesRequest\032<.google.dev" + + "tools.artifactregistry.v1.ListNpmPackage" + + "sResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=" + + "projects/*/locations/*/repositories/*}/n" + + "pmPackages\022\312\001\n\rGetNpmPackage\0229.google.de" + + "vtools.artifactregistry.v1.GetNpmPackage" + + "Request\032/.google.devtools.artifactregist" + + "ry.v1.NpmPackage\"M\332A\004name\202\323\344\223\002@\022>/v1/{na" + + "me=projects/*/locations/*/repositories/*" + + "/npmPackages/*}\022\351\001\n\022ListPythonPackages\022>" + ".google.devtools.artifactregistry.v1.Lis" - + "tMavenArtifactsResponse\"R\332A\006parent\202\323\344\223\002C" - + "\022A/v1/{parent=projects/*/locations/*/rep" - + "ositories/*}/mavenArtifacts\022\326\001\n\020GetMaven" - + "Artifact\022<.google.devtools.artifactregis" - + "try.v1.GetMavenArtifactRequest\0322.google." - + "devtools.artifactregistry.v1.MavenArtifa" - + "ct\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/*/" - + "locations/*/repositories/*/mavenArtifact" - + "s/*}\022\335\001\n\017ListNpmPackages\022;.google.devtoo" - + "ls.artifactregistry.v1.ListNpmPackagesRe" - + "quest\032<.google.devtools.artifactregistry" - + ".v1.ListNpmPackagesResponse\"O\332A\006parent\202\323" - + "\344\223\002@\022>/v1/{parent=projects/*/locations/*" - + "/repositories/*}/npmPackages\022\312\001\n\rGetNpmP" - + "ackage\0229.google.devtools.artifactregistr" - + "y.v1.GetNpmPackageRequest\032/.google.devto" - + "ols.artifactregistry.v1.NpmPackage\"M\332A\004n" - + "ame\202\323\344\223\002@\022>/v1/{name=projects/*/location" - + "s/*/repositories/*/npmPackages/*}\022\351\001\n\022Li" - + "stPythonPackages\022>.google.devtools.artif" - + "actregistry.v1.ListPythonPackagesRequest" - + "\032?.google.devtools.artifactregistry.v1.L" - + "istPythonPackagesResponse\"R\332A\006parent\202\323\344\223" - + "\002C\022A/v1/{parent=projects/*/locations/*/r" - + "epositories/*}/pythonPackages\022\326\001\n\020GetPyt" - + "honPackage\022<.google.devtools.artifactreg" - + "istry.v1.GetPythonPackageRequest\0322.googl" - + "e.devtools.artifactregistry.v1.PythonPac" - + "kage\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/" - + "*/locations/*/repositories/*/pythonPacka" - + "ges/*}\022\313\002\n\022ImportAptArtifacts\022>.google.d" - + "evtools.artifactregistry.v1.ImportAptArt" - + "ifactsRequest\032\035.google.longrunning.Opera" - + "tion\"\325\001\312A\200\001\n>google.devtools.artifactreg" - + "istry.v1.ImportAptArtifactsResponse\022>goo" - + "gle.devtools.artifactregistry.v1.ImportA" - + "ptArtifactsMetadata\202\323\344\223\002K\"F/v1/{parent=p" - + "rojects/*/locations/*/repositories/*}/ap" - + "tArtifacts:import:\001*\022\313\002\n\022ImportYumArtifa" - + "cts\022>.google.devtools.artifactregistry.v" - + "1.ImportYumArtifactsRequest\032\035.google.lon" - + "grunning.Operation\"\325\001\312A\200\001\n>google.devtoo" - + "ls.artifactregistry.v1.ImportYumArtifact" - + "sResponse\022>google.devtools.artifactregis" - + "try.v1.ImportYumArtifactsMetadata\202\323\344\223\002K\"" - + "F/v1/{parent=projects/*/locations/*/repo" - + "sitories/*}/yumArtifacts:import:\001*\022\322\001\n\020L" - + "istRepositories\022<.google.devtools.artifa" - + "ctregistry.v1.ListRepositoriesRequest\032=." + + "tPythonPackagesRequest\032?.google.devtools" + + ".artifactregistry.v1.ListPythonPackagesR" + + "esponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=pr" + + "ojects/*/locations/*/repositories/*}/pyt" + + "honPackages\022\326\001\n\020GetPythonPackage\022<.googl" + + "e.devtools.artifactregistry.v1.GetPython" + + "PackageRequest\0322.google.devtools.artifac" + + "tregistry.v1.PythonPackage\"P\332A\004name\202\323\344\223\002" + + "C\022A/v1/{name=projects/*/locations/*/repo" + + "sitories/*/pythonPackages/*}\022\313\002\n\022ImportA" + + "ptArtifacts\022>.google.devtools.artifactre" + + "gistry.v1.ImportAptArtifactsRequest\032\035.go" + + "ogle.longrunning.Operation\"\325\001\312A\200\001\n>googl" + + "e.devtools.artifactregistry.v1.ImportApt" + + "ArtifactsResponse\022>google.devtools.artif" + + "actregistry.v1.ImportAptArtifactsMetadat" + + "a\202\323\344\223\002K\"F/v1/{parent=projects/*/location" + + "s/*/repositories/*}/aptArtifacts:import:" + + "\001*\022\313\002\n\022ImportYumArtifacts\022>.google.devto" + + "ols.artifactregistry.v1.ImportYumArtifac" + + "tsRequest\032\035.google.longrunning.Operation" + + "\"\325\001\312A\200\001\n>google.devtools.artifactregistr" + + "y.v1.ImportYumArtifactsResponse\022>google." + + "devtools.artifactregistry.v1.ImportYumAr" + + "tifactsMetadata\202\323\344\223\002K\"F/v1/{parent=proje" + + "cts/*/locations/*/repositories/*}/yumArt" + + "ifacts:import:\001*\022\322\001\n\020ListRepositories\022<." + "google.devtools.artifactregistry.v1.List" - + "RepositoriesResponse\"A\332A\006parent\202\323\344\223\0022\0220/" - + "v1/{parent=projects/*/locations/*}/repos" - + "itories\022\274\001\n\rGetRepository\0229.google.devto" - + "ols.artifactregistry.v1.GetRepositoryReq" - + "uest\032/.google.devtools.artifactregistry." - + "v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=" - + "projects/*/locations/*/repositories/*}\022\302" - + "\002\n\020CreateRepository\022<.google.devtools.ar" - + "tifactregistry.v1.CreateRepositoryReques" - + "t\032\035.google.longrunning.Operation\"\320\001\312Ag\n." - + "google.devtools.artifactregistry.v1.Repo" - + "sitory\0225google.devtools.artifactregistry" - + ".v1.OperationMetadata\332A\037parent,repositor" - + "y,repository_id\202\323\344\223\002>\"0/v1/{parent=proje" - + "cts/*/locations/*}/repositories:\nreposit" - + "ory\022\353\001\n\020UpdateRepository\022<.google.devtoo" - + "ls.artifactregistry.v1.UpdateRepositoryR" - + "equest\032/.google.devtools.artifactregistr" - + "y.v1.Repository\"h\332A\026repository,update_ma" - + "sk\202\323\344\223\002I2;/v1/{repository.name=projects/" - + "*/locations/*/repositories/*}:\nrepositor" - + "y\022\202\002\n\020DeleteRepository\022<.google.devtools" - + ".artifactregistry.v1.DeleteRepositoryReq" - + "uest\032\035.google.longrunning.Operation\"\220\001\312A" - + "N\n\025google.protobuf.Empty\0225google.devtool" - + "s.artifactregistry.v1.OperationMetadata\332" - + "A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locat" - + "ions/*/repositories/*}\022\321\001\n\014ListPackages\022" - + "8.google.devtools.artifactregistry.v1.Li" - + "stPackagesRequest\0329.google.devtools.arti" - + "factregistry.v1.ListPackagesResponse\"L\332A" - + "\006parent\202\323\344\223\002=\022;/v1/{parent=projects/*/lo" - + "cations/*/repositories/*}/packages\022\276\001\n\nG" - + "etPackage\0226.google.devtools.artifactregi" - + "stry.v1.GetPackageRequest\032,.google.devto" - + "ols.artifactregistry.v1.Package\"J\332A\004name" - + "\202\323\344\223\002=\022;/v1/{name=projects/*/locations/*" - + "/repositories/*/packages/*}\022\207\002\n\rDeletePa" - + "ckage\0229.google.devtools.artifactregistry" - + ".v1.DeletePackageRequest\032\035.google.longru" - + "nning.Operation\"\233\001\312AN\n\025google.protobuf.E" - + "mpty\0225google.devtools.artifactregistry.v" - + "1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v1/{n" - + "ame=projects/*/locations/*/repositories/" - + "*/packages/*}\022\334\001\n\014ListVersions\0228.google." + + "RepositoriesRequest\032=.google.devtools.ar" + + "tifactregistry.v1.ListRepositoriesRespon" + + "se\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=project" + + "s/*/locations/*}/repositories\022\274\001\n\rGetRep" + + "ository\0229.google.devtools.artifactregist" + + "ry.v1.GetRepositoryRequest\032/.google.devt" + + "ools.artifactregistry.v1.Repository\"?\332A\004" + + "name\202\323\344\223\0022\0220/v1/{name=projects/*/locatio" + + "ns/*/repositories/*}\022\302\002\n\020CreateRepositor" + + "y\022<.google.devtools.artifactregistry.v1." + + "CreateRepositoryRequest\032\035.google.longrun" + + "ning.Operation\"\320\001\312Ag\n.google.devtools.ar" + + "tifactregistry.v1.Repository\0225google.dev" + + "tools.artifactregistry.v1.OperationMetad" + + "ata\332A\037parent,repository,repository_id\202\323\344" + + "\223\002>\"0/v1/{parent=projects/*/locations/*}" + + "/repositories:\nrepository\022\353\001\n\020UpdateRepo" + + "sitory\022<.google.devtools.artifactregistr" + + "y.v1.UpdateRepositoryRequest\032/.google.de" + + "vtools.artifactregistry.v1.Repository\"h\332" + + "A\026repository,update_mask\202\323\344\223\002I2;/v1/{rep" + + "ository.name=projects/*/locations/*/repo" + + "sitories/*}:\nrepository\022\202\002\n\020DeleteReposi" + + "tory\022<.google.devtools.artifactregistry." + + "v1.DeleteRepositoryRequest\032\035.google.long" + + "running.Operation\"\220\001\312AN\n\025google.protobuf" + + ".Empty\0225google.devtools.artifactregistry" + + ".v1.OperationMetadata\332A\004name\202\323\344\223\0022*0/v1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*}\022\321\001\n\014ListPackages\0228.google.devtools." + + "artifactregistry.v1.ListPackagesRequest\032" + + "9.google.devtools.artifactregistry.v1.Li" + + "stPackagesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1" + + "/{parent=projects/*/locations/*/reposito" + + "ries/*}/packages\022\276\001\n\nGetPackage\0226.google" + + ".devtools.artifactregistry.v1.GetPackage" + + "Request\032,.google.devtools.artifactregist" + + "ry.v1.Package\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=" + + "projects/*/locations/*/repositories/*/pa" + + "ckages/*}\022\207\002\n\rDeletePackage\0229.google.dev" + + "tools.artifactregistry.v1.DeletePackageR" + + "equest\032\035.google.longrunning.Operation\"\233\001" + + "\312AN\n\025google.protobuf.Empty\0225google.devto" + + "ols.artifactregistry.v1.OperationMetadat" + + "a\332A\004name\202\323\344\223\002=*;/v1/{name=projects/*/loc" + + "ations/*/repositories/*/packages/*}\022\334\001\n\014" + + "ListVersions\0228.google.devtools.artifactr" + + "egistry.v1.ListVersionsRequest\0329.google." + "devtools.artifactregistry.v1.ListVersion" - + "sRequest\0329.google.devtools.artifactregis" - + "try.v1.ListVersionsResponse\"W\332A\006parent\202\323" - + "\344\223\002H\022F/v1/{parent=projects/*/locations/*" - + "/repositories/*/packages/*}/versions\022\311\001\n" - + "\nGetVersion\0226.google.devtools.artifactre" - + "gistry.v1.GetVersionRequest\032,.google.dev" - + "tools.artifactregistry.v1.Version\"U\332A\004na" - + "me\202\323\344\223\002H\022F/v1/{name=projects/*/locations" - + "/*/repositories/*/packages/*/versions/*}" - + "\022\222\002\n\rDeleteVersion\0229.google.devtools.art" - + "ifactregistry.v1.DeleteVersionRequest\032\035." - + "google.longrunning.Operation\"\246\001\312AN\n\025goog" - + "le.protobuf.Empty\0225google.devtools.artif" - + "actregistry.v1.OperationMetadata\332A\004name\202" - + "\323\344\223\002H*F/v1/{name=projects/*/locations/*/" - + "repositories/*/packages/*/versions/*}\022\277\002" - + "\n\023BatchDeleteVersions\022?.google.devtools." - + "artifactregistry.v1.BatchDeleteVersionsR" - + "equest\032\035.google.longrunning.Operation\"\307\001" - + "\312AX\n\025google.protobuf.Empty\022?google.devto" - + "ols.artifactregistry.v1.BatchDeleteVersi" - + "onsMetadata\332A\014parent,names\202\323\344\223\002W\"R/v1/{p" - + "arent=projects/*/locations/*/repositorie" - + "s/*/packages/*}/versions:batchDelete:\001*\022" - + "\305\001\n\tListFiles\0225.google.devtools.artifact" - + "registry.v1.ListFilesRequest\0326.google.de" - + "vtools.artifactregistry.v1.ListFilesResp" - + "onse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=proje" - + "cts/*/locations/*/repositories/*}/files\022" - + "\263\001\n\007GetFile\0223.google.devtools.artifactre" - + "gistry.v1.GetFileRequest\032).google.devtoo" - + "ls.artifactregistry.v1.File\"H\332A\004name\202\323\344\223" - + "\002;\0229/v1/{name=projects/*/locations/*/rep" - + "ositories/*/files/**}\022\314\001\n\010ListTags\0224.goo" - + "gle.devtools.artifactregistry.v1.ListTag" - + "sRequest\0325.google.devtools.artifactregis" - + "try.v1.ListTagsResponse\"S\332A\006parent\202\323\344\223\002D" - + "\022B/v1/{parent=projects/*/locations/*/rep" - + "ositories/*/packages/*}/tags\022\271\001\n\006GetTag\022" - + "2.google.devtools.artifactregistry.v1.Ge" - + "tTagRequest\032(.google.devtools.artifactre" - + "gistry.v1.Tag\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=" + + "sResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=" + "projects/*/locations/*/repositories/*/pa" - + "ckages/*/tags/*}\022\321\001\n\tCreateTag\0225.google." - + "devtools.artifactregistry.v1.CreateTagRe" - + "quest\032(.google.devtools.artifactregistry" - + ".v1.Tag\"c\332A\021parent,tag,tag_id\202\323\344\223\002I\"B/v1" - + "/{parent=projects/*/locations/*/reposito" - + "ries/*/packages/*}/tags:\003tag\022\323\001\n\tUpdateT" - + "ag\0225.google.devtools.artifactregistry.v1" - + ".UpdateTagRequest\032(.google.devtools.arti" - + "factregistry.v1.Tag\"e\332A\017tag,update_mask\202" - + "\323\344\223\002M2F/v1/{tag.name=projects/*/location" - + "s/*/repositories/*/packages/*/tags/*}:\003t" - + "ag\022\255\001\n\tDeleteTag\0225.google.devtools.artif" - + "actregistry.v1.DeleteTagRequest\032\026.google" - + ".protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{nam" + + "ckages/*}/versions\022\311\001\n\nGetVersion\0226.goog" + + "le.devtools.artifactregistry.v1.GetVersi" + + "onRequest\032,.google.devtools.artifactregi" + + "stry.v1.Version\"U\332A\004name\202\323\344\223\002H\022F/v1/{nam" + "e=projects/*/locations/*/repositories/*/" - + "packages/*/tags/*}\022\227\001\n\014SetIamPolicy\022\".go" - + "ogle.iam.v1.SetIamPolicyRequest\032\025.google" - + ".iam.v1.Policy\"L\202\323\344\223\002F\"A/v1/{resource=pr" - + "ojects/*/locations/*/repositories/*}:set" - + "IamPolicy:\001*\022\224\001\n\014GetIamPolicy\022\".google.i" - + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" - + "1.Policy\"I\202\323\344\223\002C\022A/v1/{resource=projects" - + "/*/locations/*/repositories/*}:getIamPol" - + "icy\022\275\001\n\022TestIamPermissions\022(.google.iam." - + "v1.TestIamPermissionsRequest\032).google.ia" - + "m.v1.TestIamPermissionsResponse\"R\202\323\344\223\002L\"" - + "G/v1/{resource=projects/*/locations/*/re" - + "positories/*}:testIamPermissions:\001*\022\300\001\n\022" - + "GetProjectSettings\022>.google.devtools.art" - + "ifactregistry.v1.GetProjectSettingsReque" - + "st\0324.google.devtools.artifactregistry.v1" - + ".ProjectSettings\"4\332A\004name\202\323\344\223\002\'\022%/v1/{na" - + "me=projects/*/projectSettings}\022\201\002\n\025Updat" - + "eProjectSettings\022A.google.devtools.artif" - + "actregistry.v1.UpdateProjectSettingsRequ" - + "est\0324.google.devtools.artifactregistry.v" - + "1.ProjectSettings\"o\332A\034project_settings,u" - + "pdate_mask\202\323\344\223\002J26/v1/{project_settings." - + "name=projects/*/projectSettings}:\020projec" - + "t_settings\022\274\001\n\016GetVPCSCConfig\022:.google.d" - + "evtools.artifactregistry.v1.GetVPCSCConf" - + "igRequest\0320.google.devtools.artifactregi" - + "stry.v1.VPCSCConfig\"<\332A\004name\202\323\344\223\002/\022-/v1/" - + "{name=projects/*/locations/*/vpcscConfig" - + "}\022\361\001\n\021UpdateVPCSCConfig\022=.google.devtool" - + "s.artifactregistry.v1.UpdateVPCSCConfigR" - + "equest\0320.google.devtools.artifactregistr" - + "y.v1.VPCSCConfig\"k\332A\030vpcsc_config,update" - + "_mask\202\323\344\223\002J2:/v1/{vpcsc_config.name=proj" - + "ects/*/locations/*/vpcscConfig}:\014vpcsc_c" - + "onfig\032\214\001\312A\037artifactregistry.googleapis.c" - + "om\322Aghttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/cloud-platform.read-onlyB\367\001\n\'com.goo" - + "gle.devtools.artifactregistry.v1B\014Servic" - + "eProtoP\001ZPcloud.google.com/go/artifactre" - + "gistry/apiv1/artifactregistrypb;artifact" - + "registrypb\252\002 Google.Cloud.ArtifactRegist" - + "ry.V1\312\002 Google\\Cloud\\ArtifactRegistry\\V1" - + "\352\002#Google::Cloud::ArtifactRegistry::V1b\006" - + "proto3" + + "packages/*/versions/*}\022\222\002\n\rDeleteVersion" + + "\0229.google.devtools.artifactregistry.v1.D" + + "eleteVersionRequest\032\035.google.longrunning" + + ".Operation\"\246\001\312AN\n\025google.protobuf.Empty\022" + + "5google.devtools.artifactregistry.v1.Ope" + + "rationMetadata\332A\004name\202\323\344\223\002H*F/v1/{name=p" + + "rojects/*/locations/*/repositories/*/pac" + + "kages/*/versions/*}\022\277\002\n\023BatchDeleteVersi" + + "ons\022?.google.devtools.artifactregistry.v" + + "1.BatchDeleteVersionsRequest\032\035.google.lo" + + "ngrunning.Operation\"\307\001\312AX\n\025google.protob" + + "uf.Empty\022?google.devtools.artifactregist" + + "ry.v1.BatchDeleteVersionsMetadata\332A\014pare" + + "nt,names\202\323\344\223\002W\"R/v1/{parent=projects/*/l" + + "ocations/*/repositories/*/packages/*}/ve" + + "rsions:batchDelete:\001*\022\357\001\n\rUpdateVersion\022" + + "9.google.devtools.artifactregistry.v1.Up" + + "dateVersionRequest\032,.google.devtools.art" + + "ifactregistry.v1.Version\"u\332A\023version,upd" + + "ate_mask\202\323\344\223\002Y2N/v1/{version.name=projec" + + "ts/*/locations/*/repositories/*/packages" + + "/*/versions/*}:\007version\022\305\001\n\tListFiles\0225." + + "google.devtools.artifactregistry.v1.List" + + "FilesRequest\0326.google.devtools.artifactr" + + "egistry.v1.ListFilesResponse\"I\332A\006parent\202" + + "\323\344\223\002:\0228/v1/{parent=projects/*/locations/" + + "*/repositories/*}/files\022\263\001\n\007GetFile\0223.go" + + "ogle.devtools.artifactregistry.v1.GetFil" + + "eRequest\032).google.devtools.artifactregis" + + "try.v1.File\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=pr" + + "ojects/*/locations/*/repositories/*/file" + + "s/**}\022\376\001\n\nDeleteFile\0226.google.devtools.a" + + "rtifactregistry.v1.DeleteFileRequest\032\035.g" + + "oogle.longrunning.Operation\"\230\001\312AN\n\025googl" + + "e.protobuf.Empty\0225google.devtools.artifa" + + "ctregistry.v1.OperationMetadata\332A\004name\202\323" + + "\344\223\002:*8/v1/{name=projects/*/locations/*/r" + + "epositories/*/files/*}\022\317\001\n\nUpdateFile\0226." + + "google.devtools.artifactregistry.v1.Upda" + + "teFileRequest\032).google.devtools.artifact" + + "registry.v1.File\"^\332A\020file,update_mask\202\323\344" + + "\223\002E2=/v1/{file.name=projects/*/locations" + + "/*/repositories/*/files/*}:\004file\022\314\001\n\010Lis" + + "tTags\0224.google.devtools.artifactregistry" + + ".v1.ListTagsRequest\0325.google.devtools.ar" + + "tifactregistry.v1.ListTagsResponse\"S\332A\006p" + + "arent\202\323\344\223\002D\022B/v1/{parent=projects/*/loca" + + "tions/*/repositories/*/packages/*}/tags\022" + + "\271\001\n\006GetTag\0222.google.devtools.artifactreg" + + "istry.v1.GetTagRequest\032(.google.devtools" + + ".artifactregistry.v1.Tag\"Q\332A\004name\202\323\344\223\002D\022" + + "B/v1/{name=projects/*/locations/*/reposi" + + "tories/*/packages/*/tags/*}\022\321\001\n\tCreateTa" + + "g\0225.google.devtools.artifactregistry.v1." + + "CreateTagRequest\032(.google.devtools.artif" + + "actregistry.v1.Tag\"c\332A\021parent,tag,tag_id" + + "\202\323\344\223\002I\"B/v1/{parent=projects/*/locations" + + "/*/repositories/*/packages/*}/tags:\003tag\022" + + "\323\001\n\tUpdateTag\0225.google.devtools.artifact" + + "registry.v1.UpdateTagRequest\032(.google.de" + + "vtools.artifactregistry.v1.Tag\"e\332A\017tag,u" + + "pdate_mask\202\323\344\223\002M2F/v1/{tag.name=projects" + + "/*/locations/*/repositories/*/packages/*" + + "/tags/*}:\003tag\022\255\001\n\tDeleteTag\0225.google.dev" + + "tools.artifactregistry.v1.DeleteTagReque" + + "st\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002" + + "D*B/v1/{name=projects/*/locations/*/repo" + + "sitories/*/packages/*/tags/*}\022\315\001\n\nCreate" + + "Rule\0226.google.devtools.artifactregistry." + + "v1.CreateRuleRequest\032).google.devtools.a" + + "rtifactregistry.v1.Rule\"\\\332A\023parent,rule," + + "rule_id\202\323\344\223\002@\"8/v1/{parent=projects/*/lo" + + "cations/*/repositories/*}/rules:\004rule\022\305\001" + + "\n\tListRules\0225.google.devtools.artifactre" + + "gistry.v1.ListRulesRequest\0326.google.devt" + + "ools.artifactregistry.v1.ListRulesRespon" + + "se\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=project" + + "s/*/locations/*/repositories/*}/rules\022\262\001" + + "\n\007GetRule\0223.google.devtools.artifactregi" + + "stry.v1.GetRuleRequest\032).google.devtools" + + ".artifactregistry.v1.Rule\"G\332A\004name\202\323\344\223\002:" + + "\0228/v1/{name=projects/*/locations/*/repos" + + "itories/*/rules/*}\022\317\001\n\nUpdateRule\0226.goog" + + "le.devtools.artifactregistry.v1.UpdateRu" + + "leRequest\032).google.devtools.artifactregi" + + "stry.v1.Rule\"^\332A\020rule,update_mask\202\323\344\223\002E2" + + "=/v1/{rule.name=projects/*/locations/*/r" + + "epositories/*/rules/*}:\004rule\022\245\001\n\nDeleteR" + + "ule\0226.google.devtools.artifactregistry.v" + + "1.DeleteRuleRequest\032\026.google.protobuf.Em" + + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*" + + "/locations/*/repositories/*/rules/*}\022\227\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"L\202\323\344\223\002F" + + "\"A/v1/{resource=projects/*/locations/*/r" + + "epositories/*}:setIamPolicy:\001*\022\224\001\n\014GetIa" + + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" + + "est\032\025.google.iam.v1.Policy\"I\202\323\344\223\002C\022A/v1/" + + "{resource=projects/*/locations/*/reposit" + + "ories/*}:getIamPolicy\022\275\001\n\022TestIamPermiss" + + "ions\022(.google.iam.v1.TestIamPermissionsR" + + "equest\032).google.iam.v1.TestIamPermission" + + "sResponse\"R\202\323\344\223\002L\"G/v1/{resource=project" + + "s/*/locations/*/repositories/*}:testIamP" + + "ermissions:\001*\022\300\001\n\022GetProjectSettings\022>.g" + + "oogle.devtools.artifactregistry.v1.GetPr" + + "ojectSettingsRequest\0324.google.devtools.a" + + "rtifactregistry.v1.ProjectSettings\"4\332A\004n" + + "ame\202\323\344\223\002\'\022%/v1/{name=projects/*/projectS" + + "ettings}\022\201\002\n\025UpdateProjectSettings\022A.goo" + + "gle.devtools.artifactregistry.v1.UpdateP" + + "rojectSettingsRequest\0324.google.devtools." + + "artifactregistry.v1.ProjectSettings\"o\332A\034" + + "project_settings,update_mask\202\323\344\223\002J26/v1/" + + "{project_settings.name=projects/*/projec" + + "tSettings}:\020project_settings\022\274\001\n\016GetVPCS" + + "CConfig\022:.google.devtools.artifactregist" + + "ry.v1.GetVPCSCConfigRequest\0320.google.dev" + + "tools.artifactregistry.v1.VPCSCConfig\"<\332" + + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locat" + + "ions/*/vpcscConfig}\022\361\001\n\021UpdateVPCSCConfi" + + "g\022=.google.devtools.artifactregistry.v1." + + "UpdateVPCSCConfigRequest\0320.google.devtoo" + + "ls.artifactregistry.v1.VPCSCConfig\"k\332A\030v" + + "pcsc_config,update_mask\202\323\344\223\002J2:/v1/{vpcs" + + "c_config.name=projects/*/locations/*/vpc" + + "scConfig}:\014vpcsc_config\022\344\001\n\rUpdatePackag" + + "e\0229.google.devtools.artifactregistry.v1." + + "UpdatePackageRequest\032,.google.devtools.a" + + "rtifactregistry.v1.Package\"j\332A\023package,u" + + "pdate_mask\202\323\344\223\002N2C/v1/{package.name=proj" + + "ects/*/locations/*/repositories/*/packag" + + "es/*}:\007package\022\335\001\n\017ListAttachments\022;.goo" + + "gle.devtools.artifactregistry.v1.ListAtt" + + "achmentsRequest\032<.google.devtools.artifa" + + "ctregistry.v1.ListAttachmentsResponse\"O\332" + + "A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/l" + + "ocations/*/repositories/*}/attachments\022\312" + + "\001\n\rGetAttachment\0229.google.devtools.artif" + + "actregistry.v1.GetAttachmentRequest\032/.go" + + "ogle.devtools.artifactregistry.v1.Attach" + + "ment\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/" + + "*/locations/*/repositories/*/attachments" + + "/*}\022\320\002\n\020CreateAttachment\022<.google.devtoo" + + "ls.artifactregistry.v1.CreateAttachmentR" + + "equest\032\035.google.longrunning.Operation\"\336\001" + + "\312Ag\n.google.devtools.artifactregistry.v1" + + ".Attachment\0225google.devtools.artifactreg" + + "istry.v1.OperationMetadata\332A\037parent,atta" + + "chment,attachment_id\202\323\344\223\002L\">/v1/{parent=" + + "projects/*/locations/*/repositories/*}/a" + + "ttachments:\nattachment\022\220\002\n\020DeleteAttachm" + + "ent\022<.google.devtools.artifactregistry.v" + + "1.DeleteAttachmentRequest\032\035.google.longr" + + "unning.Operation\"\236\001\312AN\n\025google.protobuf." + + "Empty\0225google.devtools.artifactregistry." + + "v1.OperationMetadata\332A\004name\202\323\344\223\002@*>/v1/{" + + "name=projects/*/locations/*/repositories" + + "/*/attachments/*}\032\214\001\312A\037artifactregistry." + + "googleapis.com\322Aghttps://www.googleapis." + + "com/auth/cloud-platform,https://www.goog" + + "leapis.com/auth/cloud-platform.read-only" + + "B\367\001\n\'com.google.devtools.artifactregistr" + + "y.v1B\014ServiceProtoP\001ZPcloud.google.com/g" + + "o/artifactregistry/apiv1/artifactregistr" + + "ypb;artifactregistrypb\252\002 Google.Cloud.Ar" + + "tifactRegistry.V1\312\002 Google\\Cloud\\Artifac" + + "tRegistry\\V1\352\002#Google::Cloud::ArtifactRe" + + "gistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -285,9 +361,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor(), com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(), + com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor(), com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(), com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor(), com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(), + com.google.devtools.artifactregistry.v1.RuleProto.getDescriptor(), com.google.devtools.artifactregistry.v1.SettingsProto.getDescriptor(), com.google.devtools.artifactregistry.v1.TagProto.getDescriptor(), com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor(), @@ -317,9 +395,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor(); com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(); + com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor(); com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(); com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor(); com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(); + com.google.devtools.artifactregistry.v1.RuleProto.getDescriptor(); com.google.devtools.artifactregistry.v1.SettingsProto.getDescriptor(); com.google.devtools.artifactregistry.v1.TagProto.getDescriptor(); com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor(); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/SettingsProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/SettingsProto.java index a9b3863c7192..f30ab099cdf5 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/SettingsProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/SettingsProto.java @@ -53,15 +53,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ttings.proto\022#google.devtools.artifactre" + "gistry.v1\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\032 google/pr" - + "otobuf/field_mask.proto\"\220\003\n\017ProjectSetti" + + "otobuf/field_mask.proto\"\210\004\n\017ProjectSetti" + "ngs\022\014\n\004name\030\001 \001(\t\022g\n\030legacy_redirection_" + "state\030\002 \001(\0162E.google.devtools.artifactre" + "gistry.v1.ProjectSettings.RedirectionSta" - + "te\"\253\001\n\020RedirectionState\022!\n\035REDIRECTION_S" - + "TATE_UNSPECIFIED\020\000\022$\n REDIRECTION_FROM_G" - + "CR_IO_DISABLED\020\001\022#\n\037REDIRECTION_FROM_GCR" - + "_IO_ENABLED\020\002\022)\n!REDIRECTION_FROM_GCR_IO" - + "_FINALIZED\020\003\032\002\010\001:X\352AU\n/artifactregistry." + + "te\022\024\n\014pull_percent\030\003 \001(\005\"\215\002\n\020Redirection" + + "State\022!\n\035REDIRECTION_STATE_UNSPECIFIED\020\000" + + "\022$\n REDIRECTION_FROM_GCR_IO_DISABLED\020\001\022#" + + "\n\037REDIRECTION_FROM_GCR_IO_ENABLED\020\002\022)\n!R" + + "EDIRECTION_FROM_GCR_IO_FINALIZED\020\003\032\002\010\001\022/" + + "\n+REDIRECTION_FROM_GCR_IO_ENABLED_AND_CO" + + "PYING\020\005\022/\n+REDIRECTION_FROM_GCR_IO_PARTI" + + "AL_AND_COPYING\020\006:X\352AU\n/artifactregistry." + "googleapis.com/ProjectSettings\022\"projects" + "/{project}/projectSettings\"b\n\031GetProject" + "SettingsRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/a" @@ -92,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ProjectSettings_descriptor, new java.lang.String[] { - "Name", "LegacyRedirectionState", + "Name", "LegacyRedirectionState", "PullPercent", }); internal_static_google_devtools_artifactregistry_v1_GetProjectSettingsRequest_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Tag.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Tag.java index d345bccbe4e5..bd64026f3eda 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Tag.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Tag.java @@ -133,7 +133,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The name of the version the tag refers to, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -159,7 +159,7 @@ public java.lang.String getVersion() { * *
    * The name of the version the tag refers to, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -679,7 +679,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The name of the version the tag refers to, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -704,7 +704,7 @@ public java.lang.String getVersion() { * *
      * The name of the version the tag refers to, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -729,7 +729,7 @@ public com.google.protobuf.ByteString getVersionBytes() { * *
      * The name of the version the tag refers to, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -753,7 +753,7 @@ public Builder setVersion(java.lang.String value) { * *
      * The name of the version the tag refers to, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -773,7 +773,7 @@ public Builder clearVersion() { * *
      * The name of the version the tag refers to, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagOrBuilder.java index bbad0fa313d3..ea1de6e0678a 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagOrBuilder.java @@ -62,7 +62,7 @@ public interface TagOrBuilder * *
    * The name of the version the tag refers to, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -77,7 +77,7 @@ public interface TagOrBuilder * *
    * The name of the version the tag refers to, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811`
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequest.java new file mode 100644 index 000000000000..f14f98c53d05 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/file.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to update a file.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateFileRequest} + */ +public final class UpdateFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.UpdateFileRequest) + UpdateFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFileRequest.newBuilder() to construct. + private UpdateFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFileRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateFileRequest.class, + com.google.devtools.artifactregistry.v1.UpdateFileRequest.Builder.class); + } + + private int bitField0_; + public static final int FILE_FIELD_NUMBER = 1; + private com.google.devtools.artifactregistry.v1.File file_; + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The file. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.File getFile() { + return file_ == null + ? com.google.devtools.artifactregistry.v1.File.getDefaultInstance() + : file_; + } + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.FileOrBuilder getFileOrBuilder() { + return file_ == null + ? com.google.devtools.artifactregistry.v1.File.getDefaultInstance() + : file_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getFile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.UpdateFileRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.UpdateFileRequest other = + (com.google.devtools.artifactregistry.v1.UpdateFileRequest) obj; + + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile().equals(other.getFile())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest 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.devtools.artifactregistry.v1.UpdateFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.UpdateFileRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to update a file.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.UpdateFileRequest) + com.google.devtools.artifactregistry.v1.UpdateFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateFileRequest.class, + com.google.devtools.artifactregistry.v1.UpdateFileRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.UpdateFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFileFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.FileProto + .internal_static_google_devtools_artifactregistry_v1_UpdateFileRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateFileRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.UpdateFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateFileRequest build() { + com.google.devtools.artifactregistry.v1.UpdateFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateFileRequest buildPartial() { + com.google.devtools.artifactregistry.v1.UpdateFileRequest result = + new com.google.devtools.artifactregistry.v1.UpdateFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.UpdateFileRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.file_ = fileBuilder_ == null ? file_ : fileBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.UpdateFileRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.UpdateFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.UpdateFileRequest other) { + if (other == com.google.devtools.artifactregistry.v1.UpdateFileRequest.getDefaultInstance()) + return this; + if (other.hasFile()) { + mergeFile(other.getFile()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.devtools.artifactregistry.v1.File file_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.File, + com.google.devtools.artifactregistry.v1.File.Builder, + com.google.devtools.artifactregistry.v1.FileOrBuilder> + fileBuilder_; + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the file field is set. + */ + public boolean hasFile() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The file. + */ + public com.google.devtools.artifactregistry.v1.File getFile() { + if (fileBuilder_ == null) { + return file_ == null + ? com.google.devtools.artifactregistry.v1.File.getDefaultInstance() + : file_; + } else { + return fileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFile(com.google.devtools.artifactregistry.v1.File value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + } else { + fileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFile(com.google.devtools.artifactregistry.v1.File.Builder builderForValue) { + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFile(com.google.devtools.artifactregistry.v1.File value) { + if (fileBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && file_ != null + && file_ != com.google.devtools.artifactregistry.v1.File.getDefaultInstance()) { + getFileBuilder().mergeFrom(value); + } else { + file_ = value; + } + } else { + fileBuilder_.mergeFrom(value); + } + if (file_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFile() { + bitField0_ = (bitField0_ & ~0x00000001); + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.File.Builder getFileBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.FileOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null + ? com.google.devtools.artifactregistry.v1.File.getDefaultInstance() + : file_; + } + } + /** + * + * + *
+     * Required. The File that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.File, + com.google.devtools.artifactregistry.v1.File.Builder, + com.google.devtools.artifactregistry.v1.FileOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.File, + com.google.devtools.artifactregistry.v1.File.Builder, + com.google.devtools.artifactregistry.v1.FileOrBuilder>( + getFile(), getParentForChildren(), isClean()); + file_ = null; + } + return fileBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.UpdateFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.UpdateFileRequest) + private static final com.google.devtools.artifactregistry.v1.UpdateFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.UpdateFileRequest(); + } + + public static com.google.devtools.artifactregistry.v1.UpdateFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFileRequest 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.devtools.artifactregistry.v1.UpdateFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequestOrBuilder.java new file mode 100644 index 000000000000..c59c1f6cbe59 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateFileRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/file.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface UpdateFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.UpdateFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the file field is set. + */ + boolean hasFile(); + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The file. + */ + com.google.devtools.artifactregistry.v1.File getFile(); + /** + * + * + *
+   * Required. The File that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devtools.artifactregistry.v1.FileOrBuilder getFileOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequest.java new file mode 100644 index 000000000000..0c0df93b968b --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequest.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/package.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to update a package.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdatePackageRequest} + */ +public final class UpdatePackageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.UpdatePackageRequest) + UpdatePackageRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePackageRequest.newBuilder() to construct. + private UpdatePackageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePackageRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePackageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest.class, + com.google.devtools.artifactregistry.v1.UpdatePackageRequest.Builder.class); + } + + private int bitField0_; + public static final int PACKAGE_FIELD_NUMBER = 1; + private com.google.devtools.artifactregistry.v1.Package package_; + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return Whether the package field is set. + */ + @java.lang.Override + public boolean hasPackage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return The package. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Package getPackage() { + return package_ == null + ? com.google.devtools.artifactregistry.v1.Package.getDefaultInstance() + : package_; + } + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.PackageOrBuilder getPackageOrBuilder() { + return package_ == null + ? com.google.devtools.artifactregistry.v1.Package.getDefaultInstance() + : package_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPackage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getPackage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.UpdatePackageRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.UpdatePackageRequest other = + (com.google.devtools.artifactregistry.v1.UpdatePackageRequest) obj; + + if (hasPackage() != other.hasPackage()) return false; + if (hasPackage()) { + if (!getPackage().equals(other.getPackage())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPackage()) { + hash = (37 * hash) + PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getPackage().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest 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.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.UpdatePackageRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to update a package.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdatePackageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.UpdatePackageRequest) + com.google.devtools.artifactregistry.v1.UpdatePackageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest.class, + com.google.devtools.artifactregistry.v1.UpdatePackageRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.UpdatePackageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPackageFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + package_ = null; + if (packageBuilder_ != null) { + packageBuilder_.dispose(); + packageBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.PackageProto + .internal_static_google_devtools_artifactregistry_v1_UpdatePackageRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdatePackageRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.UpdatePackageRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdatePackageRequest build() { + com.google.devtools.artifactregistry.v1.UpdatePackageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdatePackageRequest buildPartial() { + com.google.devtools.artifactregistry.v1.UpdatePackageRequest result = + new com.google.devtools.artifactregistry.v1.UpdatePackageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.package_ = packageBuilder_ == null ? package_ : packageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.UpdatePackageRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.UpdatePackageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.UpdatePackageRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.UpdatePackageRequest.getDefaultInstance()) + return this; + if (other.hasPackage()) { + mergePackage(other.getPackage()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPackageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.devtools.artifactregistry.v1.Package package_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Package, + com.google.devtools.artifactregistry.v1.Package.Builder, + com.google.devtools.artifactregistry.v1.PackageOrBuilder> + packageBuilder_; + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return Whether the package field is set. + */ + public boolean hasPackage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return The package. + */ + public com.google.devtools.artifactregistry.v1.Package getPackage() { + if (packageBuilder_ == null) { + return package_ == null + ? com.google.devtools.artifactregistry.v1.Package.getDefaultInstance() + : package_; + } else { + return packageBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public Builder setPackage(com.google.devtools.artifactregistry.v1.Package value) { + if (packageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + package_ = value; + } else { + packageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public Builder setPackage( + com.google.devtools.artifactregistry.v1.Package.Builder builderForValue) { + if (packageBuilder_ == null) { + package_ = builderForValue.build(); + } else { + packageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public Builder mergePackage(com.google.devtools.artifactregistry.v1.Package value) { + if (packageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && package_ != null + && package_ != com.google.devtools.artifactregistry.v1.Package.getDefaultInstance()) { + getPackageBuilder().mergeFrom(value); + } else { + package_ = value; + } + } else { + packageBuilder_.mergeFrom(value); + } + if (package_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public Builder clearPackage() { + bitField0_ = (bitField0_ & ~0x00000001); + package_ = null; + if (packageBuilder_ != null) { + packageBuilder_.dispose(); + packageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public com.google.devtools.artifactregistry.v1.Package.Builder getPackageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPackageFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + public com.google.devtools.artifactregistry.v1.PackageOrBuilder getPackageOrBuilder() { + if (packageBuilder_ != null) { + return packageBuilder_.getMessageOrBuilder(); + } else { + return package_ == null + ? com.google.devtools.artifactregistry.v1.Package.getDefaultInstance() + : package_; + } + } + /** + * + * + *
+     * The package that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Package, + com.google.devtools.artifactregistry.v1.Package.Builder, + com.google.devtools.artifactregistry.v1.PackageOrBuilder> + getPackageFieldBuilder() { + if (packageBuilder_ == null) { + packageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Package, + com.google.devtools.artifactregistry.v1.Package.Builder, + com.google.devtools.artifactregistry.v1.PackageOrBuilder>( + getPackage(), getParentForChildren(), isClean()); + package_ = null; + } + return packageBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.UpdatePackageRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.UpdatePackageRequest) + private static final com.google.devtools.artifactregistry.v1.UpdatePackageRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.UpdatePackageRequest(); + } + + public static com.google.devtools.artifactregistry.v1.UpdatePackageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePackageRequest 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.devtools.artifactregistry.v1.UpdatePackageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequestOrBuilder.java new file mode 100644 index 000000000000..4a871e977d70 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdatePackageRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/package.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface UpdatePackageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.UpdatePackageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return Whether the package field is set. + */ + boolean hasPackage(); + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + * + * @return The package. + */ + com.google.devtools.artifactregistry.v1.Package getPackage(); + /** + * + * + *
+   * The package that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Package package = 1; + */ + com.google.devtools.artifactregistry.v1.PackageOrBuilder getPackageOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequest.java new file mode 100644 index 000000000000..d749fbc7af46 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequest.java @@ -0,0 +1,1010 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to update a rule.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateRuleRequest} + */ +public final class UpdateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.UpdateRuleRequest) + UpdateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateRuleRequest.newBuilder() to construct. + private UpdateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateRuleRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest.class, + com.google.devtools.artifactregistry.v1.UpdateRuleRequest.Builder.class); + } + + private int bitField0_; + public static final int RULE_FIELD_NUMBER = 1; + private com.google.devtools.artifactregistry.v1.Rule rule_; + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return Whether the rule field is set. + */ + @java.lang.Override + public boolean hasRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return The rule. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Rule getRule() { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder() { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRule()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getRule()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.UpdateRuleRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.UpdateRuleRequest other = + (com.google.devtools.artifactregistry.v1.UpdateRuleRequest) obj; + + if (hasRule() != other.hasRule()) return false; + if (hasRule()) { + if (!getRule().equals(other.getRule())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRule()) { + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest 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.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.UpdateRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to update a rule.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.UpdateRuleRequest) + com.google.devtools.artifactregistry.v1.UpdateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest.class, + com.google.devtools.artifactregistry.v1.UpdateRuleRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.UpdateRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRuleFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rule_ = null; + if (ruleBuilder_ != null) { + ruleBuilder_.dispose(); + ruleBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.RuleProto + .internal_static_google_devtools_artifactregistry_v1_UpdateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateRuleRequest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.UpdateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateRuleRequest build() { + com.google.devtools.artifactregistry.v1.UpdateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateRuleRequest buildPartial() { + com.google.devtools.artifactregistry.v1.UpdateRuleRequest result = + new com.google.devtools.artifactregistry.v1.UpdateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.UpdateRuleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rule_ = ruleBuilder_ == null ? rule_ : ruleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.UpdateRuleRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.UpdateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.UpdateRuleRequest other) { + if (other == com.google.devtools.artifactregistry.v1.UpdateRuleRequest.getDefaultInstance()) + return this; + if (other.hasRule()) { + mergeRule(other.getRule()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.devtools.artifactregistry.v1.Rule rule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + ruleBuilder_; + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return Whether the rule field is set. + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return The rule. + */ + public com.google.devtools.artifactregistry.v1.Rule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public Builder setRule(com.google.devtools.artifactregistry.v1.Rule value) { + if (ruleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + } else { + ruleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public Builder setRule(com.google.devtools.artifactregistry.v1.Rule.Builder builderForValue) { + if (ruleBuilder_ == null) { + rule_ = builderForValue.build(); + } else { + ruleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public Builder mergeRule(com.google.devtools.artifactregistry.v1.Rule value) { + if (ruleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rule_ != null + && rule_ != com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance()) { + getRuleBuilder().mergeFrom(value); + } else { + rule_ = value; + } + } else { + ruleBuilder_.mergeFrom(value); + } + if (rule_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public Builder clearRule() { + bitField0_ = (bitField0_ & ~0x00000001); + rule_ = null; + if (ruleBuilder_ != null) { + ruleBuilder_.dispose(); + ruleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public com.google.devtools.artifactregistry.v1.Rule.Builder getRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + public com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null + ? com.google.devtools.artifactregistry.v1.Rule.getDefaultInstance() + : rule_; + } + } + /** + * + * + *
+     * The rule that replaces the resource on the server.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder> + getRuleFieldBuilder() { + if (ruleBuilder_ == null) { + ruleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Rule, + com.google.devtools.artifactregistry.v1.Rule.Builder, + com.google.devtools.artifactregistry.v1.RuleOrBuilder>( + getRule(), getParentForChildren(), isClean()); + rule_ = null; + } + return ruleBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.UpdateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.UpdateRuleRequest) + private static final com.google.devtools.artifactregistry.v1.UpdateRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.UpdateRuleRequest(); + } + + public static com.google.devtools.artifactregistry.v1.UpdateRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRuleRequest 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.devtools.artifactregistry.v1.UpdateRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..8532e1b13688 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateRuleRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/rule.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface UpdateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.UpdateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return Whether the rule field is set. + */ + boolean hasRule(); + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + * + * @return The rule. + */ + com.google.devtools.artifactregistry.v1.Rule getRule(); + /** + * + * + *
+   * The rule that replaces the resource on the server.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Rule rule = 1; + */ + com.google.devtools.artifactregistry.v1.RuleOrBuilder getRuleOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequest.java new file mode 100644 index 000000000000..52ae75ffcec2 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequest.java @@ -0,0 +1,1039 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request to update a version.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateVersionRequest} + */ +public final class UpdateVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.UpdateVersionRequest) + UpdateVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateVersionRequest.newBuilder() to construct. + private UpdateVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateVersionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest.class, + com.google.devtools.artifactregistry.v1.UpdateVersionRequest.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private com.google.devtools.artifactregistry.v1.Version version_; + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Version getVersion() { + return version_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : version_; + } + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.VersionOrBuilder getVersionOrBuilder() { + return version_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : version_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVersion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getVersion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.UpdateVersionRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.UpdateVersionRequest other = + (com.google.devtools.artifactregistry.v1.UpdateVersionRequest) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion().equals(other.getVersion())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest 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.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.devtools.artifactregistry.v1.UpdateVersionRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to update a version.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.UpdateVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.UpdateVersionRequest) + com.google.devtools.artifactregistry.v1.UpdateVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest.class, + com.google.devtools.artifactregistry.v1.UpdateVersionRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.UpdateVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); + versionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateVersionRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.UpdateVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateVersionRequest build() { + com.google.devtools.artifactregistry.v1.UpdateVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.UpdateVersionRequest buildPartial() { + com.google.devtools.artifactregistry.v1.UpdateVersionRequest result = + new com.google.devtools.artifactregistry.v1.UpdateVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.UpdateVersionRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.UpdateVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.UpdateVersionRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.UpdateVersionRequest.getDefaultInstance()) + return this; + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.devtools.artifactregistry.v1.Version version_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder> + versionBuilder_; + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + public com.google.devtools.artifactregistry.v1.Version getVersion() { + if (versionBuilder_ == null) { + return version_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVersion(com.google.devtools.artifactregistry.v1.Version value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + } else { + versionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVersion( + com.google.devtools.artifactregistry.v1.Version.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVersion(com.google.devtools.artifactregistry.v1.Version value) { + if (versionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && version_ != null + && version_ != com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); + } else { + version_ = value; + } + } else { + versionBuilder_.mergeFrom(value); + } + if (version_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); + versionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.Version.Builder getVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devtools.artifactregistry.v1.VersionOrBuilder getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : version_; + } + } + /** + * + * + *
+     * Required. The Version that replaces the resource on the server.
+     * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); + version_ = null; + } + return versionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.UpdateVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.UpdateVersionRequest) + private static final com.google.devtools.artifactregistry.v1.UpdateVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.UpdateVersionRequest(); + } + + public static com.google.devtools.artifactregistry.v1.UpdateVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateVersionRequest 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.devtools.artifactregistry.v1.UpdateVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequestOrBuilder.java new file mode 100644 index 000000000000..740ab92f27c4 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/UpdateVersionRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/devtools/artifactregistry/v1/version.proto + +// Protobuf Java Version: 3.25.5 +package com.google.devtools.artifactregistry.v1; + +public interface UpdateVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.UpdateVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + com.google.devtools.artifactregistry.v1.Version getVersion(); + /** + * + * + *
+   * Required. The Version that replaces the resource on the server.
+   * 
+ * + * + * .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devtools.artifactregistry.v1.VersionOrBuilder getVersionOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Version.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Version.java index 99ec3aa82303..bd5bb1b88106 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Version.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Version.java @@ -57,6 +57,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_Version_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -77,7 +89,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The name of the version, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -103,7 +115,7 @@ public java.lang.String getName() { * *
    * The name of the version, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -402,6 +414,113 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } + public static final int ANNOTATIONS_FIELD_NUMBER = 9; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.devtools.artifactregistry.v1.VersionProto + .internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -434,6 +553,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getMetadata()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 9); getUnknownFields().writeTo(output); } @@ -461,6 +582,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMetadata()); } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, annotations__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -492,6 +623,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,6 +655,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -643,6 +779,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_devtools_artifactregistry_v1_Version_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -700,6 +858,7 @@ public Builder clear() { metadataBuilder_.dispose(); metadataBuilder_ = null; } + internalGetMutableAnnotations().clear(); return this; } @@ -769,6 +928,10 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.Version resul result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -864,6 +1027,8 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.Version other) if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -933,6 +1098,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 66 + case 74: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -958,7 +1135,7 @@ public Builder mergeFrom( * *
      * The name of the version, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -983,7 +1160,7 @@ public java.lang.String getName() { * *
      * The name of the version, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -1008,7 +1185,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The name of the version, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -1032,7 +1209,7 @@ public Builder setName(java.lang.String value) { * *
      * The name of the version, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -1052,7 +1229,7 @@ public Builder clearName() { * *
      * The name of the version, for example:
-     * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+     * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
      * If the package or version ID parts contain slashes, the slashes are
      * escaped.
      * 
@@ -2144,6 +2321,179 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return metadataBuilder_; } + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000040; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + * + * + *
+     * Optional. Client specified annotations.
+     * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionOrBuilder.java index ce8ba39f6c81..362af4878cae 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionOrBuilder.java @@ -29,7 +29,7 @@ public interface VersionOrBuilder * *
    * The name of the version, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -44,7 +44,7 @@ public interface VersionOrBuilder * *
    * The name of the version, for example:
-   * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
+   * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.
    * If the package or version ID parts contain slashes, the slashes are
    * escaped.
    * 
@@ -253,4 +253,67 @@ public interface VersionOrBuilder * .google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Client specified annotations.
+   * 
+ * + * map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionProto.java index 58eae74f92db..0b6f61c83948 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_Version_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_Version_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_ListVersionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -56,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_BatchDeleteVersionsMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_BatchDeleteVersionsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -69,44 +77,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rsion.proto\022#google.devtools.artifactreg" + "istry.v1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032-google/dev" - + "tools/artifactregistry/v1/tag.proto\032\034goo" - + "gle/protobuf/struct.proto\032\037google/protob" - + "uf/timestamp.proto\"\227\003\n\007Version\022\014\n\004name\030\001" - + " \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013create_time" - + "\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" - + "date_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "amp\022>\n\014related_tags\030\007 \003(\0132(.google.devto" - + "ols.artifactregistry.v1.Tag\022.\n\010metadata\030" - + "\010 \001(\0132\027.google.protobuf.StructB\003\340A\003:\226\001\352A" - + "\222\001\n\'artifactregistry.googleapis.com/Vers" - + "ion\022gprojects/{project}/locations/{locat" - + "ion}/repositories/{repository}/packages/" - + "{package}/versions/{version}\"\243\001\n\023ListVer" - + "sionsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022>\n\004view\030\004 \001(" - + "\01620.google.devtools.artifactregistry.v1." - + "VersionView\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"o\n\024Li" - + "stVersionsResponse\022>\n\010versions\030\001 \003(\0132,.g" - + "oogle.devtools.artifactregistry.v1.Versi" - + "on\022\027\n\017next_page_token\030\002 \001(\t\"a\n\021GetVersio" - + "nRequest\022\014\n\004name\030\001 \001(\t\022>\n\004view\030\002 \001(\01620.g" - + "oogle.devtools.artifactregistry.v1.Versi" - + "onView\"3\n\024DeleteVersionRequest\022\014\n\004name\030\001" - + " \001(\t\022\r\n\005force\030\002 \001(\010\"\261\001\n\032BatchDeleteVersi" - + "onsRequest\022<\n\006parent\030\001 \001(\tB,\372A)\022\'artifac" - + "tregistry.googleapis.com/Version\022>\n\005name" - + "s\030\002 \003(\tB/\340A\002\372A)\n\'artifactregistry.google" - + "apis.com/Version\022\025\n\rvalidate_only\030\003 \001(\010\"" - + "6\n\033BatchDeleteVersionsMetadata\022\027\n\017failed" - + "_versions\030\002 \003(\t*@\n\013VersionView\022\034\n\030VERSIO" - + "N_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020" - + "\002B\367\001\n\'com.google.devtools.artifactregist" - + "ry.v1B\014VersionProtoP\001ZPcloud.google.com/" - + "go/artifactregistry/apiv1/artifactregist" - + "rypb;artifactregistrypb\252\002 Google.Cloud.A" - + "rtifactRegistry.V1\312\002 Google\\Cloud\\Artifa" - + "ctRegistry\\V1\352\002#Google::Cloud::ArtifactR" - + "egistry::V1b\006proto3" + + "tools/artifactregistry/v1/tag.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\034google/pr" + + "otobuf/struct.proto\032\037google/protobuf/tim" + + "estamp.proto\"\244\004\n\007Version\022\014\n\004name\030\001 \001(\t\022\023" + + "\n\013description\030\003 \001(\t\022/\n\013create_time\030\005 \001(\013" + + "2\032.google.protobuf.Timestamp\022/\n\013update_t" + + "ime\030\006 \001(\0132\032.google.protobuf.Timestamp\022>\n" + + "\014related_tags\030\007 \003(\0132(.google.devtools.ar" + + "tifactregistry.v1.Tag\022.\n\010metadata\030\010 \001(\0132" + + "\027.google.protobuf.StructB\003\340A\003\022W\n\013annotat" + + "ions\030\t \003(\0132=.google.devtools.artifactreg" + + "istry.v1.Version.AnnotationsEntryB\003\340A\001\0322" + + "\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001:\226\001\352A\222\001\n\'artifactregistry.goog" + + "leapis.com/Version\022gprojects/{project}/l" + + "ocations/{location}/repositories/{reposi" + + "tory}/packages/{package}/versions/{versi" + + "on}\"\270\001\n\023ListVersionsRequest\022\016\n\006parent\030\001 " + + "\001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\022>\n\004view\030\004 \001(\01620.google.devtools.artif" + + "actregistry.v1.VersionView\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\022\023\n\006filter\030\006 \001(\tB\003\340A\001\"o\n\024ListVe" + + "rsionsResponse\022>\n\010versions\030\001 \003(\0132,.googl" + + "e.devtools.artifactregistry.v1.Version\022\027" + + "\n\017next_page_token\030\002 \001(\t\"a\n\021GetVersionReq" + + "uest\022\014\n\004name\030\001 \001(\t\022>\n\004view\030\002 \001(\01620.googl" + + "e.devtools.artifactregistry.v1.VersionVi" + + "ew\"3\n\024DeleteVersionRequest\022\014\n\004name\030\001 \001(\t" + + "\022\r\n\005force\030\002 \001(\010\"\261\001\n\032BatchDeleteVersionsR" + + "equest\022<\n\006parent\030\001 \001(\tB,\372A)\022\'artifactreg" + + "istry.googleapis.com/Version\022>\n\005names\030\002 " + + "\003(\tB/\340A\002\372A)\n\'artifactregistry.googleapis" + + ".com/Version\022\025\n\rvalidate_only\030\003 \001(\010\"6\n\033B" + + "atchDeleteVersionsMetadata\022\027\n\017failed_ver" + + "sions\030\002 \003(\t\"\213\001\n\024UpdateVersionRequest\022B\n\007" + + "version\030\001 \001(\0132,.google.devtools.artifact" + + "registry.v1.VersionB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask*@\n\013Ver" + + "sionView\022\034\n\030VERSION_VIEW_UNSPECIFIED\020\000\022\t" + + "\n\005BASIC\020\001\022\010\n\004FULL\020\002B\367\001\n\'com.google.devto" + + "ols.artifactregistry.v1B\014VersionProtoP\001Z" + + "Pcloud.google.com/go/artifactregistry/ap" + + "iv1/artifactregistrypb;artifactregistryp" + + "b\252\002 Google.Cloud.ArtifactRegistry.V1\312\002 G" + + "oogle\\Cloud\\ArtifactRegistry\\V1\352\002#Google" + + "::Cloud::ArtifactRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,6 +131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.devtools.artifactregistry.v1.TagProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -124,7 +141,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_Version_descriptor, new java.lang.String[] { - "Name", "Description", "CreateTime", "UpdateTime", "RelatedTags", "Metadata", + "Name", + "Description", + "CreateTime", + "UpdateTime", + "RelatedTags", + "Metadata", + "Annotations", + }); + internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_descriptor = + internal_static_google_devtools_artifactregistry_v1_Version_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_Version_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_devtools_artifactregistry_v1_ListVersionsRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -132,7 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListVersionsRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "View", "OrderBy", + "Parent", "PageSize", "PageToken", "View", "OrderBy", "Filter", }); internal_static_google_devtools_artifactregistry_v1_ListVersionsResponse_descriptor = getDescriptor().getMessageTypes().get(2); @@ -174,6 +207,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FailedVersions", }); + internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_UpdateVersionRequest_descriptor, + new java.lang.String[] { + "Version", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -184,6 +225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.devtools.artifactregistry.v1.TagProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto index 9f5f61cec6c9..c1895c724127 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto @@ -92,7 +92,7 @@ message ListDockerImagesRequest { // listed. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of artifacts to return. + // The maximum number of artifacts to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. @@ -176,7 +176,7 @@ message ListMavenArtifactsRequest { } ]; - // The maximum number of artifacts to return. + // The maximum number of artifacts to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. @@ -249,7 +249,7 @@ message ListNpmPackagesRequest { } ]; - // The maximum number of artifacts to return. + // The maximum number of artifacts to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. @@ -326,7 +326,7 @@ message ListPythonPackagesRequest { } ]; - // The maximum number of artifacts to return. + // The maximum number of artifacts to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto new file mode 100644 index 000000000000..a9c17ae2a121 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto @@ -0,0 +1,160 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.devtools.artifactregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; +option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "AttachmentProto"; +option java_package = "com.google.devtools.artifactregistry.v1"; +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; + +// An Attachment refers to additional metadata that can be attached to +// artifacts in Artifact Registry. An attachment consists of one or more files. +message Attachment { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/Attachment" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}" + }; + + // The name of the attachment. E.g. + // `projects/p1/locations/us/repositories/repo/attachments/sbom`. + string name = 1; + + // Required. The target the attachment is for, can be a Version, Package or + // Repository. E.g. + // `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. + string target = 2 [(google.api.field_behavior) = REQUIRED]; + + // Type of attachment. + // E.g. `application/vnd.spdx+json` + string type = 3; + + // The namespace this attachment belongs to. + // E.g. If an attachment is created by artifact analysis, namespace is set + // to `artifactanalysis.googleapis.com`. + string attachment_namespace = 4; + + // Optional. User annotations. These attributes can only be set and used by + // the user, and not by Artifact Registry. See + // https://google.aip.dev/128#annotations for more details such as format and + // size limitations. + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time when the attachment was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the attachment was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The files that belong to this attachment. + // If the file ID part contains slashes, they are escaped. E.g. + // `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. + repeated string files = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/File" + } + ]; + + // Output only. The name of the OCI version that this attachment created. Only + // populated for Docker attachments. E.g. + // `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. + string oci_version_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request to list attachments. +message ListAttachmentsRequest { + // Required. The name of the parent resource whose attachments will be listed. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/Attachment" + } + ]; + + // Optional. An expression for filtering the results of the request. Filter + // rules are case insensitive. The fields eligible for filtering are: + // + // * `target` + // * `type` + // * `attachment_namespace` + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The maximum number of attachments to return. Maximum page size is 1,000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request, if any. + string page_token = 4; +} + +// The response from listing attachments. +message ListAttachmentsResponse { + // The attachments returned. + repeated Attachment attachments = 1; + + // The token to retrieve the next page of attachments, or empty if there are + // no more attachments to return. + string next_page_token = 2; +} + +// The request to retrieve an attachment. +message GetAttachmentRequest { + // Required. The name of the attachment to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Attachment" + } + ]; +} + +// The request to create a new attachment. +message CreateAttachmentRequest { + // Required. The name of the parent resource where the attachment will be + // created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/Attachment" + } + ]; + + // Required. The attachment id to use for this attachment. + string attachment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The attachment to be created. + Attachment attachment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request to delete an attachment. +message DeleteAttachmentRequest { + // Required. The name of the attachment to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Attachment" + } + ]; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto index de92588844e4..0b19953b8efc 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto @@ -18,6 +18,7 @@ package google.devtools.artifactregistry.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; @@ -57,7 +58,7 @@ message File { }; // The name of the file, for example: - // "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". + // `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. // If the file ID part contains slashes, they are escaped. string name = 1; @@ -82,6 +83,9 @@ message File { // made. Only set when the repository is remote. google.protobuf.Timestamp fetch_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Client specified annotations. + map annotations = 9 [(google.api.field_behavior) = OPTIONAL]; } // The request to list files. @@ -100,16 +104,54 @@ message ListFilesRequest { // // * `name` // * `owner` + // * `annotations` + // + // Examples of using a filter: + // + // To filter the results of your request to files with the name `my_file.txt` + // in project `my-project` in the `us-central` region, in repository + // `my-repo`, append the following filter expression to your request: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` + // + // You can also use wildcards to match any number of characters before or + // after the value: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` + // + // To filter the results of your request to files owned by the version `1.0` + // in package `pkg1`, append the following filter expression to your request: + // + // * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` + // + // To filter the results of your request to files with the annotation + // key-value pair [`external_link`: `external_link_value`], append the + // following filter expression to your request: + // + // * `"annotations.external_link:external_link_value"` + // + // To filter just for a specific annotation key `external_link`, append the + // following filter expression to your request: + // + // * `"annotations.external_link"` + // + // If the annotation key or value contains special characters, you can escape + // them by surrounding the value with backticks. For example, to filter the + // results of your request to files with the annotation key-value pair + // [`external.link`:`https://example.com/my-file`], append the following + // filter expression to your request: // - // An example of using a filter: + // * `` "annotations.`external.link`:`https://example.com/my-file`" `` // - // * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an - // ID starting with "a/b/". - // * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> - // Files owned by the version `1.0` in package `pkg1`. + // You can also filter with annotations with a wildcard to + // match any number of characters before or after the value: + // + // * `` "annotations.*_link:`*example.com*`" `` string filter = 4; - // The maximum number of files to return. + // The maximum number of files to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. @@ -139,3 +181,26 @@ message GetFileRequest { } ]; } + +// The request to delete a file. +message DeleteFileRequest { + // Required. The name of the file to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/File" + } + ]; +} + +// The request to update a file. +message UpdateFileRequest { + // Required. The File that replaces the resource on the server. + File file = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto new file mode 100644 index 000000000000..64b71bc8affd --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto @@ -0,0 +1,55 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.devtools.artifactregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; +option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "GenericProto"; +option java_package = "com.google.devtools.artifactregistry.v1"; +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; + +// GenericArtifact represents a generic artifact +message GenericArtifact { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/GenericArtifact" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/genericArtifacts/{generic_artifact}" + }; + + // Resource name of the generic artifact. + // project, location, repository, package_id and version_id + // create a unique generic artifact. + // i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ + // genericArtifacts/package_id:version_id" + string name = 1; + + // The version of the generic artifact. + string version = 2; + + // Output only. The time when the Generic module is created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the Generic module is updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto index d6ec4b4406f5..27cddcf3502e 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto @@ -18,6 +18,7 @@ package google.devtools.artifactregistry.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; @@ -49,6 +50,9 @@ message Package { // The time when the package was last updated. This includes publishing a new // version of the package. google.protobuf.Timestamp update_time = 6; + + // Optional. Client specified annotations. + map annotations = 7 [(google.api.field_behavior) = OPTIONAL]; } // The request to list packages. @@ -66,6 +70,56 @@ message ListPackagesRequest { // The next_page_token value returned from a previous list request, if any. string page_token = 3; + + // Optional. An expression for filtering the results of the request. Filter + // rules are case insensitive. The fields eligible for filtering are: + // + // * `name` + // * `annotations` + // + // Examples of using a filter: + // + // To filter the results of your request to packages with the name + // `my-package` in project `my-project` in the `us-central` region, in + // repository `my-repo`, append the following filter expression to your + // request: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` + // + // You can also use wildcards to match any number of characters before or + // after the value: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"` + // + // To filter the results of your request to packages with the annotation + // key-value pair [`external_link`: `external_link_value`], append the + // following filter expression to your request": + // + // * `"annotations.external_link:external_link_value"` + // + // To filter the results just for a specific annotation key `external_link`, + // append the following filter expression to your request: + // + // * `"annotations.external_link"` + // + // If the annotation key or value contains special characters, you can escape + // them by surrounding the value with backticks. For example, to filter the + // results of your request to packages with the annotation key-value pair + // [`external.link`:`https://example.com/my-package`], append the following + // filter expression to your request: + // + // * `` "annotations.`external.link`:`https://example.com/my-package`" `` + // + // You can also filter with annotations with a wildcard to + // match any number of characters before or after the value: + // + // * `` "annotations.*_link:`*example.com*`" `` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The field to order the results by. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // The response from listing packages. @@ -99,3 +153,14 @@ message DeletePackageRequest { } ]; } + +// The request to update a package. +message UpdatePackageRequest { + // The package that replaces the resource on the server. + Package package = 1; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto index 33ae7de45fa4..9ef8180b4a58 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto @@ -33,6 +33,10 @@ option (google.api.resource_definition) = { type: "secretmanager.googleapis.com/SecretVersion" pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}" }; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; // Artifact policy configuration for the repository contents. message UpstreamPolicy { @@ -159,6 +163,13 @@ message RemoteRepositoryConfig { // Configuration for a Docker remote repository. message DockerRepository { + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the custom remote repository, for ex: + // "https://registry-1.docker.io". + string uri = 1; + } + // Predefined list of publicly available Docker repositories like Docker // Hub. enum PublicRepository { @@ -174,11 +185,21 @@ message RemoteRepositoryConfig { // One of the publicly available Docker repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } // Configuration for a Maven remote repository. message MavenRepository { + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the upstream remote repository, for ex: + // "https://my.maven.registry/". + string uri = 1; + } + // Predefined list of publicly available Maven repositories like Maven // Central. enum PublicRepository { @@ -194,11 +215,21 @@ message RemoteRepositoryConfig { // One of the publicly available Maven repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } // Configuration for a Npm remote repository. message NpmRepository { + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the upstream remote repository, for ex: + // "https://my.npm.registry/". + string uri = 1; + } + // Predefined list of publicly available NPM repositories like npmjs. enum PublicRepository { // Unspecified repository. @@ -213,11 +244,21 @@ message RemoteRepositoryConfig { // One of the publicly available Npm repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } // Configuration for a Python remote repository. message PythonRepository { + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the upstream remote repository, for ex: + // "https://my.python.registry/". + string uri = 1; + } + // Predefined list of publicly available Python repositories like PyPI.org. enum PublicRepository { // Unspecified repository. @@ -232,6 +273,9 @@ message RemoteRepositoryConfig { // One of the publicly available Python repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } @@ -250,6 +294,9 @@ message RemoteRepositoryConfig { // Ubuntu LTS/Pro. UBUNTU = 2; + + // Archived Debian. + DEBIAN_SNAPSHOT = 3; } // A common public repository base for Apt. @@ -259,11 +306,21 @@ message RemoteRepositoryConfig { string repository_path = 2; } + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the upstream remote repository, for ex: + // "https://my.apt.registry/". + string uri = 1; + } + // Address of the remote repository. oneof upstream { // One of the publicly available Apt repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } @@ -303,14 +360,30 @@ message RemoteRepositoryConfig { string repository_path = 2; } + // Customer-specified publicly available remote repository. + message CustomRepository { + // An http/https uri reference to the upstream remote repository, for ex: + // "https://my.yum.registry/". + string uri = 1; + } + // Address of the remote repository. oneof upstream { // One of the publicly available Yum repositories supported by Artifact // Registry. PublicRepository public_repository = 1; + + // Customer-specified remote repository. + CustomRepository custom_repository = 3; } } + // Common remote repository settings type. + message CommonRemoteRepository { + // Required. A common public repository base for remote repository. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Settings specific to the remote repository. oneof remote_source { // Specific settings for a Docker remote repository. @@ -330,6 +403,10 @@ message RemoteRepositoryConfig { // Specific settings for a Yum remote repository. YumRepository yum_repository = 7; + + // Common remote repository settings. + // Used as the remote repository upstream URL. + CommonRemoteRepository common_repository = 14; } // The description of the remote source. @@ -338,6 +415,11 @@ message RemoteRepositoryConfig { // Optional. The credentials used to access the remote repository. UpstreamCredentials upstream_credentials = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Input only. A create/update remote repo option to avoid making a HEAD/GET + // request to validate a remote repo and any supplied upstream credentials. + bool disable_upstream_validation = 12 + [(google.api.field_behavior) = INPUT_ONLY]; } // A Repository for storing artifacts with a specific format. @@ -383,6 +465,57 @@ message Repository { bool immutable_tags = 1; } + // Config on whether to perform vulnerability scanning for resources in this + // repository, as well as output fields describing current state. + message VulnerabilityScanningConfig { + // Config for vulnerability scanning of resources in this repository. + enum EnablementConfig { + // Not set. This will be treated as INHERITED. + ENABLEMENT_CONFIG_UNSPECIFIED = 0; + + // Scanning is Enabled, but dependent on API enablement. + INHERITED = 1; + + // No automatic vulnerability scanning will be performed for this + // repository. + DISABLED = 2; + } + + // Describes the state of vulnerability scanning in this repository, + // including both repository enablement and API enablement. + enum EnablementState { + // Enablement state is unclear. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // Repository does not support vulnerability scanning. + SCANNING_UNSUPPORTED = 1; + + // Vulnerability scanning is disabled for this repository. + SCANNING_DISABLED = 2; + + // Vulnerability scanning is active for this repository. + SCANNING_ACTIVE = 3; + } + + // Optional. Config for whether this repository has vulnerability scanning + // disabled. + EnablementConfig enablement_config = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The last time this repository config was enabled. + google.protobuf.Timestamp last_enable_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of feature enablement, combining repository enablement + // config and API enablement state. + EnablementState enablement_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reason for the repository state. + string enablement_state_reason = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // A package format. enum Format { // Unspecified package format. @@ -411,6 +544,9 @@ message Repository { // Go package format. GO = 10; + + // Generic package format. + GENERIC = 11; } // The mode configures the repository to serve artifacts from different @@ -451,7 +587,8 @@ message Repository { } // The name of the repository, for example: - // `projects/p1/locations/us-central1/repositories/repo1`. + // `projects/p1/locations/us-central1/repositories/repo1`. For each location + // in a project, repository names must be unique. string name = 1; // Optional. The format of packages that are stored in the repository. @@ -502,6 +639,18 @@ message Repository { // Optional. If true, the cleanup pipeline is prevented from deleting versions // in this repository. bool cleanup_policy_dry_run = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config and state for vulnerability scanning of resources within + // this Repository. + VulnerabilityScanningConfig vulnerability_scanning_config = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If this is true, an unspecified repo type will be treated as + // error rather than defaulting to standard. + bool disallow_unspecified_mode = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If set, the repository satisfies physical zone isolation. + bool satisfies_pzi = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request to list repositories. @@ -520,6 +669,30 @@ message ListRepositoriesRequest { // The next_page_token value returned from a previous list request, if any. string page_token = 3; + + // Optional. An expression for filtering the results of the request. Filter + // rules are case insensitive. The fields eligible for filtering are: + // + // * `name` + // + // Examples of using a filter: + // + // To filter the results of your request to repositories with the name + // `my-repo` in project `my-project` in the `us-central` region, append the + // following filter expression to your request: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo"` + // + // You can also use wildcards to match any number of characters before or + // after the value: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-*"` + // * `name="projects/my-project/locations/us-central1/repositories/*repo"` + // * `name="projects/my-project/locations/us-central1/repositories/*repo*"` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The field to order the results by. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // The response from listing repositories. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto new file mode 100644 index 000000000000..9d1d5b220d75 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto @@ -0,0 +1,157 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.devtools.artifactregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; +option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "RuleProto"; +option java_package = "com.google.devtools.artifactregistry.v1"; +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; + +// A rule defines the deny or allow action of the operation it applies to and +// the conditions required for the rule to apply. You can set one rule for an +// entire repository and one rule for each package within. +message Rule { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/Rule" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/rules/{rule}" + }; + + // Defines the action of the rule. + enum Action { + // Action not specified. + ACTION_UNSPECIFIED = 0; + + // Allow the operation. + ALLOW = 1; + + // Deny the operation. + DENY = 2; + } + + // The operation the rule applies to. + enum Operation { + // Operation not specified. + OPERATION_UNSPECIFIED = 0; + + // Download operation. + DOWNLOAD = 1; + } + + // The name of the rule, for example: + // `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. + string name = 1; + + // The action this rule takes. + Action action = 2; + + Operation operation = 3; + + // Optional. A CEL expression for conditions that must be met in order for the + // rule to apply. If not provided, the rule matches all objects. + google.type.Expr condition = 4 [(google.api.field_behavior) = OPTIONAL]; + + // The package ID the rule applies to. + // If empty, this rule applies to all packages inside the repository. + string package_id = 5; +} + +// The request to list rules. +message ListRulesRequest { + // Required. The name of the parent repository whose rules will be listed. + // For example: + // `projects/p1/locations/us-central1/repositories/repo1`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/Rule" + } + ]; + + // The maximum number of rules to return. Maximum page size is 1,000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request, if any. + string page_token = 3; +} + +// The response from listing rules. +message ListRulesResponse { + // The rules returned. + repeated Rule rules = 1; + + // The token to retrieve the next page of rules, or empty if there are no + // more rules to return. + string next_page_token = 2; +} + +// The request to retrieve a rule. +message GetRuleRequest { + // Required. The name of the rule to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Rule" + } + ]; +} + +// The request to create a new rule. +message CreateRuleRequest { + // Required. The name of the parent resource where the rule will be created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/Rule" + } + ]; + + // The rule id to use for this repository. + string rule_id = 2; + + // The rule to be created. + Rule rule = 3; +} + +// The request to update a rule. +message UpdateRuleRequest { + // The rule that replaces the resource on the server. + Rule rule = 1; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} + +// The request to delete a rule. +message DeleteRuleRequest { + // Required. The name of the rule to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Rule" + } + ]; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto index 882b8c714a9c..29daf6cdcb82 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto @@ -20,9 +20,11 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/devtools/artifactregistry/v1/apt_artifact.proto"; import "google/devtools/artifactregistry/v1/artifact.proto"; +import "google/devtools/artifactregistry/v1/attachment.proto"; import "google/devtools/artifactregistry/v1/file.proto"; import "google/devtools/artifactregistry/v1/package.proto"; import "google/devtools/artifactregistry/v1/repository.proto"; +import "google/devtools/artifactregistry/v1/rule.proto"; import "google/devtools/artifactregistry/v1/settings.proto"; import "google/devtools/artifactregistry/v1/tag.proto"; import "google/devtools/artifactregistry/v1/version.proto"; @@ -291,6 +293,15 @@ service ArtifactRegistry { }; } + // Updates a version. + rpc UpdateVersion(UpdateVersionRequest) returns (Version) { + option (google.api.http) = { + patch: "/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}" + body: "version" + }; + option (google.api.method_signature) = "version,update_mask"; + } + // Lists files. rpc ListFiles(ListFilesRequest) returns (ListFilesResponse) { option (google.api.http) = { @@ -307,6 +318,29 @@ service ArtifactRegistry { option (google.api.method_signature) = "name"; } + // Deletes a file and all of its content. It is only allowed on generic + // repositories. The returned operation will complete once the file has been + // deleted. + rpc DeleteFile(DeleteFileRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/repositories/*/files/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.devtools.artifactregistry.v1.OperationMetadata" + }; + } + + // Updates a file. + rpc UpdateFile(UpdateFileRequest) returns (File) { + option (google.api.http) = { + patch: "/v1/{file.name=projects/*/locations/*/repositories/*/files/*}" + body: "file" + }; + option (google.api.method_signature) = "file,update_mask"; + } + // Lists tags. rpc ListTags(ListTagsRequest) returns (ListTagsResponse) { option (google.api.http) = { @@ -349,6 +383,48 @@ service ArtifactRegistry { option (google.api.method_signature) = "name"; } + // Creates a rule. + rpc CreateRule(CreateRuleRequest) returns (Rule) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/repositories/*}/rules" + body: "rule" + }; + option (google.api.method_signature) = "parent,rule,rule_id"; + } + + // Lists rules. + rpc ListRules(ListRulesRequest) returns (ListRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/rules" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a rule. + rpc GetRule(GetRuleRequest) returns (Rule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/rules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a rule. + rpc UpdateRule(UpdateRuleRequest) returns (Rule) { + option (google.api.http) = { + patch: "/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}" + body: "rule" + }; + option (google.api.method_signature) = "rule,update_mask"; + } + + // Deletes a rule. + rpc DeleteRule(DeleteRuleRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/repositories/*/rules/*}" + }; + option (google.api.method_signature) = "name"; + } + // Updates the IAM policy for a given resource. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { @@ -409,6 +485,62 @@ service ArtifactRegistry { }; option (google.api.method_signature) = "vpcsc_config,update_mask"; } + + // Updates a package. + rpc UpdatePackage(UpdatePackageRequest) returns (Package) { + option (google.api.http) = { + patch: "/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}" + body: "package" + }; + option (google.api.method_signature) = "package,update_mask"; + } + + // Lists attachments. + rpc ListAttachments(ListAttachmentsRequest) + returns (ListAttachmentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/attachments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets an attachment. + rpc GetAttachment(GetAttachmentRequest) returns (Attachment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/attachments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an attachment. The returned Operation will finish once the + // attachment has been created. Its response will be the created attachment. + rpc CreateAttachment(CreateAttachmentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/repositories/*}/attachments" + body: "attachment" + }; + option (google.api.method_signature) = "parent,attachment,attachment_id"; + option (google.longrunning.operation_info) = { + response_type: "google.devtools.artifactregistry.v1.Attachment" + metadata_type: "google.devtools.artifactregistry.v1.OperationMetadata" + }; + } + + // Deletes an attachment. The returned Operation will + // finish once the attachments has been deleted. It will not have any + // Operation metadata and will return a `google.protobuf.Empty` response. + rpc DeleteAttachment(DeleteAttachmentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/repositories/*/attachments/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.devtools.artifactregistry.v1.OperationMetadata" + }; + } } // Metadata type for longrunning-operations, currently empty. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto index e37bfc98be5d..8a2792ff1d04 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto @@ -48,6 +48,12 @@ message ProjectSettings { // Redirection is enabled, and has been finalized so cannot be reverted. REDIRECTION_FROM_GCR_IO_FINALIZED = 3 [deprecated = true]; + + // Redirection is enabled and missing images are copied from GCR + REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING = 5; + + // Redirection is partially enabled and missing images are copied from GCR + REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING = 6; } // The name of the project's settings. @@ -61,6 +67,10 @@ message ProjectSettings { // The redirection state of the legacy repositories in this project. RedirectionState legacy_redirection_state = 2; + + // The percentage of pull traffic to redirect from GCR to AR when using + // partial redirection. + int32 pull_percent = 3; } // Gets the redirection status for a project. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto index e4a59826f821..3708e9a96941 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto @@ -43,7 +43,7 @@ message Tag { string name = 1; // The name of the version the tag refers to, for example: - // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" + // `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` // If the package or version ID parts contain slashes, the slashes are // escaped. string version = 2; @@ -59,15 +59,33 @@ message ListTagsRequest { // An expression for filtering the results of the request. Filter rules are // case insensitive. The fields eligible for filtering are: // + // * `name` // * `version` // - // An example of using a filter: + // Examples of using a filter: // - // * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` - // --> Tags that are applied to the version `1.0` in package `pkg1`. + // To filter the results of your request to tags with the name `my-tag` in + // package `my-package` in repository `my-repo` in project "`y-project` in + // the us-central region, append the following filter expression to your + // request: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` + // + // You can also use wildcards to match any number of characters before or + // after the value: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` + // + // To filter the results of your request to tags applied to the version + // `1.0` in package `my-package`, append the following filter expression to + // your request: + // + // * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` string filter = 4; - // The maximum number of tags to return. Maximum page size is 10,000. + // The maximum number of tags to return. Maximum page size is 1,000. int32 page_size = 2; // The next_page_token value returned from a previous list request, if any. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto index 13f22dcf3a4b..fc9984d792fd 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto @@ -19,6 +19,7 @@ package google.devtools.artifactregistry.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/devtools/artifactregistry/v1/tag.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -54,7 +55,7 @@ message Version { }; // The name of the version, for example: - // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1". + // `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. // If the package or version ID parts contain slashes, the slashes are // escaped. string name = 1; @@ -79,6 +80,9 @@ message Version { // [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] google.protobuf.Struct metadata = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Client specified annotations. + map annotations = 9 [(google.api.field_behavior) = OPTIONAL]; } // The request to list versions. @@ -97,6 +101,53 @@ message ListVersionsRequest { // Optional. The field to order the results by. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Filter + // rules are case insensitive. The fields eligible for filtering are: + // + // * `name` + // * `annotations` + // + // Examples of using a filter: + // + // To filter the results of your request to versions with the name + // `my-version` in project `my-project` in the `us-central` region, in + // repository `my-repo`, append the following filter expression to your + // request: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"` + // + // You can also use wildcards to match any number of characters before or + // after the value: + // + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"` + // * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"` + // + // To filter the results of your request to versions with the annotation + // key-value pair [`external_link`: `external_link_value`], append the + // following filter expression to your request: + // + // * `"annotations.external_link:external_link_value"` + // + // To filter just for a specific annotation key `external_link`, append the + // following filter expression to your request: + // + // * `"annotations.external_link"` + // + // If the annotation key or value contains special characters, you can escape + // them by surrounding the value with backticks. For example, to filter the + // results of your request to versions with the annotation key-value pair + // [`external.link`:`https://example.com/my-version`], append the following + // filter expression to your request: + // + // * `` "annotations.`external.link`:`https://example.com/my-version`" `` + // + // You can also filter with annotations with a wildcard to + // match any number of characters before or after the value: + // + // * `` "annotations.*_link:`*example.com*`" `` + string filter = 6 [(google.api.field_behavior) = OPTIONAL]; } // The response from listing versions. @@ -153,3 +204,14 @@ message BatchDeleteVersionsMetadata { // The versions the operation failed to delete. repeated string failed_versions = 2; } + +// The request to update a version. +message UpdateVersionRequest { + // Required. The Version that replaces the resource on the server. + Version version = 1 [(google.api.field_behavior) = REQUIRED]; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateSetCredentialsProvider1.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f1873e662059..000000000000 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.artifactregistry.v1.samples; - -// [START artifactregistry_v1_generated_ArtifactRegistry_Create_SetCredentialsProvider1_sync] -import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; -import com.google.devtools.artifactregistry.v1.ArtifactRegistrySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ArtifactRegistrySettings artifactRegistrySettings = - ArtifactRegistrySettings.newHttpJsonBuilder().build(); - ArtifactRegistryClient artifactRegistryClient = - ArtifactRegistryClient.create(artifactRegistrySettings); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_Create_SetCredentialsProvider1_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateUseHttpJsonTransport.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d77db886efa6 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_Create_UseHttpJsonTransport_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ArtifactRegistrySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ArtifactRegistrySettings artifactRegistrySettings = + ArtifactRegistrySettings.newHttpJsonBuilder().build(); + ArtifactRegistryClient artifactRegistryClient = + ArtifactRegistryClient.create(artifactRegistrySettings); + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_Create_UseHttpJsonTransport_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachment.java new file mode 100644 index 000000000000..70ec057701c8 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncCreateAttachment { + + public static void main(String[] args) throws Exception { + asyncCreateAttachment(); + } + + public static void asyncCreateAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + CreateAttachmentRequest request = + CreateAttachmentRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setAttachmentId("attachmentId-1434081890") + .setAttachment(Attachment.newBuilder().build()) + .build(); + ApiFuture future = + artifactRegistryClient.createAttachmentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachmentLRO.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachmentLRO.java new file mode 100644 index 000000000000..e91daab644a6 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/AsyncCreateAttachmentLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; +import com.google.devtools.artifactregistry.v1.OperationMetadata; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class AsyncCreateAttachmentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAttachmentLRO(); + } + + public static void asyncCreateAttachmentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + CreateAttachmentRequest request = + CreateAttachmentRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setAttachmentId("attachmentId-1434081890") + .setAttachment(Attachment.newBuilder().build()) + .build(); + OperationFuture future = + artifactRegistryClient.createAttachmentOperationCallable().futureCall(request); + // Do something. + Attachment response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_LRO_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachment.java new file mode 100644 index 000000000000..e813d8662fbc --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.CreateAttachmentRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncCreateAttachment { + + public static void main(String[] args) throws Exception { + syncCreateAttachment(); + } + + public static void syncCreateAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + CreateAttachmentRequest request = + CreateAttachmentRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setAttachmentId("attachmentId-1434081890") + .setAttachment(Attachment.newBuilder().build()) + .build(); + Attachment response = artifactRegistryClient.createAttachmentAsync(request).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentRepositorynameAttachmentString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentRepositorynameAttachmentString.java new file mode 100644 index 000000000000..a43431abc1b8 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentRepositorynameAttachmentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_RepositorynameAttachmentString_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncCreateAttachmentRepositorynameAttachmentString { + + public static void main(String[] args) throws Exception { + syncCreateAttachmentRepositorynameAttachmentString(); + } + + public static void syncCreateAttachmentRepositorynameAttachmentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + Attachment response = + artifactRegistryClient.createAttachmentAsync(parent, attachment, attachmentId).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_RepositorynameAttachmentString_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentStringAttachmentString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentStringAttachmentString.java new file mode 100644 index 000000000000..c1e539609e79 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createattachment/SyncCreateAttachmentStringAttachmentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_StringAttachmentString_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncCreateAttachmentStringAttachmentString { + + public static void main(String[] args) throws Exception { + syncCreateAttachmentStringAttachmentString(); + } + + public static void syncCreateAttachmentStringAttachmentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Attachment attachment = Attachment.newBuilder().build(); + String attachmentId = "attachmentId-1434081890"; + Attachment response = + artifactRegistryClient.createAttachmentAsync(parent, attachment, attachmentId).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_StringAttachmentString_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/AsyncCreateRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/AsyncCreateRule.java new file mode 100644 index 000000000000..25c3911e3f16 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/AsyncCreateRule.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateRule_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class AsyncCreateRule { + + public static void main(String[] args) throws Exception { + asyncCreateRule(); + } + + public static void asyncCreateRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + CreateRuleRequest request = + CreateRuleRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setRuleId("ruleId-919875273") + .setRule(Rule.newBuilder().build()) + .build(); + ApiFuture future = artifactRegistryClient.createRuleCallable().futureCall(request); + // Do something. + Rule response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRule_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRule.java new file mode 100644 index 000000000000..eaeac1b23a8c --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRule.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateRule_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.CreateRuleRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncCreateRule { + + public static void main(String[] args) throws Exception { + syncCreateRule(); + } + + public static void syncCreateRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + CreateRuleRequest request = + CreateRuleRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setRuleId("ruleId-919875273") + .setRule(Rule.newBuilder().build()) + .build(); + Rule response = artifactRegistryClient.createRule(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRule_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleRepositorynameRuleString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleRepositorynameRuleString.java new file mode 100644 index 000000000000..6b24f1649d51 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleRepositorynameRuleString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateRule_RepositorynameRuleString_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncCreateRuleRepositorynameRuleString { + + public static void main(String[] args) throws Exception { + syncCreateRuleRepositorynameRuleString(); + } + + public static void syncCreateRuleRepositorynameRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + Rule response = artifactRegistryClient.createRule(parent, rule, ruleId); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRule_RepositorynameRuleString_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleStringRuleString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleStringRuleString.java new file mode 100644 index 000000000000..ffab2fd7a4cc --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/createrule/SyncCreateRuleStringRuleString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_CreateRule_StringRuleString_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncCreateRuleStringRuleString { + + public static void main(String[] args) throws Exception { + syncCreateRuleStringRuleString(); + } + + public static void syncCreateRuleStringRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Rule rule = Rule.newBuilder().build(); + String ruleId = "ruleId-919875273"; + Rule response = artifactRegistryClient.createRule(parent, rule, ruleId); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRule_StringRuleString_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachment.java new file mode 100644 index 000000000000..0f6900a6749b --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAttachment { + + public static void main(String[] args) throws Exception { + asyncDeleteAttachment(); + } + + public static void asyncDeleteAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteAttachmentRequest request = + DeleteAttachmentRequest.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .build(); + ApiFuture future = + artifactRegistryClient.deleteAttachmentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachmentLRO.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachmentLRO.java new file mode 100644 index 000000000000..ff8439e8e412 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/AsyncDeleteAttachmentLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.devtools.artifactregistry.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAttachmentLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAttachmentLRO(); + } + + public static void asyncDeleteAttachmentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteAttachmentRequest request = + DeleteAttachmentRequest.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .build(); + OperationFuture future = + artifactRegistryClient.deleteAttachmentOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_LRO_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachment.java new file mode 100644 index 000000000000..344e5b89f547 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachment { + + public static void main(String[] args) throws Exception { + syncDeleteAttachment(); + } + + public static void syncDeleteAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteAttachmentRequest request = + DeleteAttachmentRequest.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .build(); + artifactRegistryClient.deleteAttachmentAsync(request).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentAttachmentname.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentAttachmentname.java new file mode 100644 index 000000000000..071742e63aa4 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentAttachmentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_Attachmentname_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachmentAttachmentname { + + public static void main(String[] args) throws Exception { + syncDeleteAttachmentAttachmentname(); + } + + public static void syncDeleteAttachmentAttachmentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + artifactRegistryClient.deleteAttachmentAsync(name).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_Attachmentname_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentString.java new file mode 100644 index 000000000000..aa2fae9426b6 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleteattachment/SyncDeleteAttachmentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachmentString { + + public static void main(String[] args) throws Exception { + syncDeleteAttachmentString(); + } + + public static void syncDeleteAttachmentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]").toString(); + artifactRegistryClient.deleteAttachmentAsync(name).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFile.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFile.java new file mode 100644 index 000000000000..b3bae8458364 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFile.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; +import com.google.devtools.artifactregistry.v1.FileName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFile { + + public static void main(String[] args) throws Exception { + asyncDeleteFile(); + } + + public static void asyncDeleteFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteFileRequest request = + DeleteFileRequest.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .build(); + ApiFuture future = artifactRegistryClient.deleteFileCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFileLRO.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFileLRO.java new file mode 100644 index 000000000000..ceabff5011e5 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/AsyncDeleteFileLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; +import com.google.devtools.artifactregistry.v1.FileName; +import com.google.devtools.artifactregistry.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFileLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFileLRO(); + } + + public static void asyncDeleteFileLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteFileRequest request = + DeleteFileRequest.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .build(); + OperationFuture future = + artifactRegistryClient.deleteFileOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_LRO_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFile.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFile.java new file mode 100644 index 000000000000..547d4c775279 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFile.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.DeleteFileRequest; +import com.google.devtools.artifactregistry.v1.FileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFile { + + public static void main(String[] args) throws Exception { + syncDeleteFile(); + } + + public static void syncDeleteFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteFileRequest request = + DeleteFileRequest.newBuilder() + .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) + .build(); + artifactRegistryClient.deleteFileAsync(request).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileFilename.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileFilename.java new file mode 100644 index 000000000000..998accbe0001 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileFilename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_Filename_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.FileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFileFilename { + + public static void main(String[] args) throws Exception { + syncDeleteFileFilename(); + } + + public static void syncDeleteFileFilename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); + artifactRegistryClient.deleteFileAsync(name).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_Filename_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileString.java new file mode 100644 index 000000000000..9f658ad48f6c --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deletefile/SyncDeleteFileString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.FileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFileString { + + public static void main(String[] args) throws Exception { + syncDeleteFileString(); + } + + public static void syncDeleteFileString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString(); + artifactRegistryClient.deleteFileAsync(name).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/AsyncDeleteRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/AsyncDeleteRule.java new file mode 100644 index 000000000000..903f9080f0cc --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/AsyncDeleteRule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; +import com.google.devtools.artifactregistry.v1.RuleName; +import com.google.protobuf.Empty; + +public class AsyncDeleteRule { + + public static void main(String[] args) throws Exception { + asyncDeleteRule(); + } + + public static void asyncDeleteRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteRuleRequest request = + DeleteRuleRequest.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .build(); + ApiFuture future = artifactRegistryClient.deleteRuleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRule.java new file mode 100644 index 000000000000..f04c61f977fb --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRule.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.DeleteRuleRequest; +import com.google.devtools.artifactregistry.v1.RuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteRule { + + public static void main(String[] args) throws Exception { + syncDeleteRule(); + } + + public static void syncDeleteRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + DeleteRuleRequest request = + DeleteRuleRequest.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .build(); + artifactRegistryClient.deleteRule(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleRulename.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleRulename.java new file mode 100644 index 000000000000..ed4ff3ba14df --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleRulename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_Rulename_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteRuleRulename { + + public static void main(String[] args) throws Exception { + syncDeleteRuleRulename(); + } + + public static void syncDeleteRuleRulename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + artifactRegistryClient.deleteRule(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_Rulename_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleString.java new file mode 100644 index 000000000000..17ac48a0c4e2 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/deleterule/SyncDeleteRuleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteRuleString { + + public static void main(String[] args) throws Exception { + syncDeleteRuleString(); + } + + public static void syncDeleteRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString(); + artifactRegistryClient.deleteRule(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/AsyncGetAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/AsyncGetAttachment.java new file mode 100644 index 000000000000..7331950d609d --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/AsyncGetAttachment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; + +public class AsyncGetAttachment { + + public static void main(String[] args) throws Exception { + asyncGetAttachment(); + } + + public static void asyncGetAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + GetAttachmentRequest request = + GetAttachmentRequest.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .build(); + ApiFuture future = + artifactRegistryClient.getAttachmentCallable().futureCall(request); + // Do something. + Attachment response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachment.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachment.java new file mode 100644 index 000000000000..e61233272525 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.AttachmentName; +import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; + +public class SyncGetAttachment { + + public static void main(String[] args) throws Exception { + syncGetAttachment(); + } + + public static void syncGetAttachment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + GetAttachmentRequest request = + GetAttachmentRequest.newBuilder() + .setName( + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]") + .toString()) + .build(); + Attachment response = artifactRegistryClient.getAttachment(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentAttachmentname.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentAttachmentname.java new file mode 100644 index 000000000000..ac585f0c4650 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentAttachmentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_Attachmentname_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.AttachmentName; + +public class SyncGetAttachmentAttachmentname { + + public static void main(String[] args) throws Exception { + syncGetAttachmentAttachmentname(); + } + + public static void syncGetAttachmentAttachmentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + AttachmentName name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"); + Attachment response = artifactRegistryClient.getAttachment(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_Attachmentname_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentString.java new file mode 100644 index 000000000000..c1c961546236 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getattachment/SyncGetAttachmentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.AttachmentName; + +public class SyncGetAttachmentString { + + public static void main(String[] args) throws Exception { + syncGetAttachmentString(); + } + + public static void syncGetAttachmentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String name = + AttachmentName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]").toString(); + Attachment response = artifactRegistryClient.getAttachment(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/AsyncGetRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/AsyncGetRule.java new file mode 100644 index 000000000000..92a460f0ca4d --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/AsyncGetRule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetRule_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.RuleName; + +public class AsyncGetRule { + + public static void main(String[] args) throws Exception { + asyncGetRule(); + } + + public static void asyncGetRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + GetRuleRequest request = + GetRuleRequest.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .build(); + ApiFuture future = artifactRegistryClient.getRuleCallable().futureCall(request); + // Do something. + Rule response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetRule_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRule.java new file mode 100644 index 000000000000..53aa6c7ac2c9 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRule.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetRule_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.GetRuleRequest; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.RuleName; + +public class SyncGetRule { + + public static void main(String[] args) throws Exception { + syncGetRule(); + } + + public static void syncGetRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + GetRuleRequest request = + GetRuleRequest.newBuilder() + .setName(RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString()) + .build(); + Rule response = artifactRegistryClient.getRule(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetRule_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleRulename.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleRulename.java new file mode 100644 index 000000000000..251f8df7b07f --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleRulename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetRule_Rulename_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.RuleName; + +public class SyncGetRuleRulename { + + public static void main(String[] args) throws Exception { + syncGetRuleRulename(); + } + + public static void syncGetRuleRulename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RuleName name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"); + Rule response = artifactRegistryClient.getRule(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetRule_Rulename_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleString.java new file mode 100644 index 000000000000..17213bc559a0 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getrule/SyncGetRuleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_GetRule_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.RuleName; + +public class SyncGetRuleString { + + public static void main(String[] args) throws Exception { + syncGetRuleString(); + } + + public static void syncGetRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String name = RuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]").toString(); + Rule response = artifactRegistryClient.getRule(name); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_GetRule_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachments.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachments.java new file mode 100644 index 000000000000..e446fb173661 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachments.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class AsyncListAttachments { + + public static void main(String[] args) throws Exception { + asyncListAttachments(); + } + + public static void asyncListAttachments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListAttachmentsRequest request = + ListAttachmentsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + artifactRegistryClient.listAttachmentsPagedCallable().futureCall(request); + // Do something. + for (Attachment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachmentsPaged.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachmentsPaged.java new file mode 100644 index 000000000000..f09d8c0999d0 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/AsyncListAttachmentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_Paged_async] +import com.google.common.base.Strings; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.ListAttachmentsResponse; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class AsyncListAttachmentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAttachmentsPaged(); + } + + public static void asyncListAttachmentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListAttachmentsRequest request = + ListAttachmentsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAttachmentsResponse response = + artifactRegistryClient.listAttachmentsCallable().call(request); + for (Attachment element : response.getAttachmentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_Paged_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachments.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachments.java new file mode 100644 index 000000000000..723262d3616b --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachments.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.ListAttachmentsRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncListAttachments { + + public static void main(String[] args) throws Exception { + syncListAttachments(); + } + + public static void syncListAttachments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListAttachmentsRequest request = + ListAttachmentsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Attachment element : artifactRegistryClient.listAttachments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsRepositoryname.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsRepositoryname.java new file mode 100644 index 000000000000..7d6ea0fa6eb6 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsRepositoryname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_Repositoryname_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncListAttachmentsRepositoryname { + + public static void main(String[] args) throws Exception { + syncListAttachmentsRepositoryname(); + } + + public static void syncListAttachmentsRepositoryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + for (Attachment element : artifactRegistryClient.listAttachments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_Repositoryname_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsString.java new file mode 100644 index 000000000000..9dafd260b283 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listattachments/SyncListAttachmentsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Attachment; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncListAttachmentsString { + + public static void main(String[] args) throws Exception { + syncListAttachmentsString(); + } + + public static void syncListAttachmentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + for (Attachment element : artifactRegistryClient.listAttachments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackages.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackages.java index 591fae58381c..e6eaf22bdfe8 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackages.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackages.java @@ -41,6 +41,8 @@ public static void asyncListPackages() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); ApiFuture future = artifactRegistryClient.listPackagesPagedCallable().futureCall(request); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackagesPaged.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackagesPaged.java index 02f400f0d433..9f6d02499026 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackagesPaged.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/AsyncListPackagesPaged.java @@ -42,6 +42,8 @@ public static void asyncListPackagesPaged() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); while (true) { ListPackagesResponse response = artifactRegistryClient.listPackagesCallable().call(request); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/SyncListPackages.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/SyncListPackages.java index 3f3326ab692a..e32f88fd5213 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/SyncListPackages.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listpackages/SyncListPackages.java @@ -40,6 +40,8 @@ public static void syncListPackages() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); for (Package element : artifactRegistryClient.listPackages(request).iterateAll()) { // doThingsWith(element); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositories.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositories.java index d6c4a564a2db..56ef041eb33d 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositories.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositories.java @@ -41,6 +41,8 @@ public static void asyncListRepositories() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); ApiFuture future = artifactRegistryClient.listRepositoriesPagedCallable().futureCall(request); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositoriesPaged.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositoriesPaged.java index e4adcf267e9c..dacc8111d2fd 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositoriesPaged.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/AsyncListRepositoriesPaged.java @@ -42,6 +42,8 @@ public static void asyncListRepositoriesPaged() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); while (true) { ListRepositoriesResponse response = diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/SyncListRepositories.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/SyncListRepositories.java index dc915011ba01..522f62f21ed2 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/SyncListRepositories.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrepositories/SyncListRepositories.java @@ -40,6 +40,8 @@ public static void syncListRepositories() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); for (Repository element : artifactRegistryClient.listRepositories(request).iterateAll()) { // doThingsWith(element); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRules.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRules.java new file mode 100644 index 000000000000..28d1f6b4ccd6 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRules.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListRules_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class AsyncListRules { + + public static void main(String[] args) throws Exception { + asyncListRules(); + } + + public static void asyncListRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListRulesRequest request = + ListRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = artifactRegistryClient.listRulesPagedCallable().futureCall(request); + // Do something. + for (Rule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRulesPaged.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRulesPaged.java new file mode 100644 index 000000000000..737ab6e8a994 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/AsyncListRulesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListRules_Paged_async] +import com.google.common.base.Strings; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.ListRulesResponse; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class AsyncListRulesPaged { + + public static void main(String[] args) throws Exception { + asyncListRulesPaged(); + } + + public static void asyncListRulesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListRulesRequest request = + ListRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRulesResponse response = artifactRegistryClient.listRulesCallable().call(request); + for (Rule element : response.getRulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_Paged_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRules.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRules.java new file mode 100644 index 000000000000..5acc4b901677 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRules.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListRules_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ListRulesRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncListRules { + + public static void main(String[] args) throws Exception { + syncListRules(); + } + + public static void syncListRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ListRulesRequest request = + ListRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Rule element : artifactRegistryClient.listRules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesRepositoryname.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesRepositoryname.java new file mode 100644 index 000000000000..28c36919e124 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesRepositoryname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListRules_Repositoryname_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncListRulesRepositoryname { + + public static void main(String[] args) throws Exception { + syncListRulesRepositoryname(); + } + + public static void syncListRulesRepositoryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + for (Rule element : artifactRegistryClient.listRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_Repositoryname_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesString.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesString.java new file mode 100644 index 000000000000..03060aeef4fd --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listrules/SyncListRulesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ListRules_String_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.devtools.artifactregistry.v1.Rule; + +public class SyncListRulesString { + + public static void main(String[] args) throws Exception { + syncListRulesString(); + } + + public static void syncListRulesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + for (Rule element : artifactRegistryClient.listRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_String_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersions.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersions.java index 9cc4892a79eb..520fc5fd77ee 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersions.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersions.java @@ -43,6 +43,7 @@ public static void asyncListVersions() throws Exception { .setPageToken("pageToken873572522") .setView(VersionView.forNumber(0)) .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); ApiFuture future = artifactRegistryClient.listVersionsPagedCallable().futureCall(request); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersionsPaged.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersionsPaged.java index 6de13e0f216d..ec811b408a8f 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersionsPaged.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/AsyncListVersionsPaged.java @@ -44,6 +44,7 @@ public static void asyncListVersionsPaged() throws Exception { .setPageToken("pageToken873572522") .setView(VersionView.forNumber(0)) .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); while (true) { ListVersionsResponse response = artifactRegistryClient.listVersionsCallable().call(request); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/SyncListVersions.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/SyncListVersions.java index 6bb9adacd241..c31a05a6229a 100644 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/SyncListVersions.java +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/listversions/SyncListVersions.java @@ -42,6 +42,7 @@ public static void syncListVersions() throws Exception { .setPageToken("pageToken873572522") .setView(VersionView.forNumber(0)) .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); for (Version element : artifactRegistryClient.listVersions(request).iterateAll()) { // doThingsWith(element); diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/AsyncUpdateFile.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/AsyncUpdateFile.java new file mode 100644 index 000000000000..711db3651a32 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/AsyncUpdateFile.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFile { + + public static void main(String[] args) throws Exception { + asyncUpdateFile(); + } + + public static void asyncUpdateFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateFileRequest request = + UpdateFileRequest.newBuilder() + .setFile(File.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = artifactRegistryClient.updateFileCallable().futureCall(request); + // Do something. + File response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFile.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFile.java new file mode 100644 index 000000000000..a9ea8d06b0c1 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFile.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.File; +import com.google.devtools.artifactregistry.v1.UpdateFileRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFile { + + public static void main(String[] args) throws Exception { + syncUpdateFile(); + } + + public static void syncUpdateFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateFileRequest request = + UpdateFileRequest.newBuilder() + .setFile(File.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + File response = artifactRegistryClient.updateFile(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFileFileFieldmask.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFileFileFieldmask.java new file mode 100644 index 000000000000..05c03c38788d --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatefile/SyncUpdateFileFileFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_FileFieldmask_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.File; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFileFileFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFileFileFieldmask(); + } + + public static void syncUpdateFileFileFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + File file = File.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + File response = artifactRegistryClient.updateFile(file, updateMask); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_FileFieldmask_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/AsyncUpdatePackage.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/AsyncUpdatePackage.java new file mode 100644 index 000000000000..90a7d314abb9 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/AsyncUpdatePackage.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Package; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePackage { + + public static void main(String[] args) throws Exception { + asyncUpdatePackage(); + } + + public static void asyncUpdatePackage() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdatePackageRequest request = + UpdatePackageRequest.newBuilder() + .setPackage(Package.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + artifactRegistryClient.updatePackageCallable().futureCall(request); + // Do something. + Package response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackage.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackage.java new file mode 100644 index 000000000000..d5ee1dcd9d55 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackage.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Package; +import com.google.devtools.artifactregistry.v1.UpdatePackageRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePackage { + + public static void main(String[] args) throws Exception { + syncUpdatePackage(); + } + + public static void syncUpdatePackage() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdatePackageRequest request = + UpdatePackageRequest.newBuilder() + .setPackage(Package.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Package response = artifactRegistryClient.updatePackage(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackagePackageFieldmask.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackagePackageFieldmask.java new file mode 100644 index 000000000000..efeab165714b --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updatepackage/SyncUpdatePackagePackageFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_PackageFieldmask_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Package; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePackagePackageFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePackagePackageFieldmask(); + } + + public static void syncUpdatePackagePackageFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + Package package_ = Package.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Package response = artifactRegistryClient.updatePackage(package_, updateMask); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_PackageFieldmask_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/AsyncUpdateRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/AsyncUpdateRule.java new file mode 100644 index 000000000000..607df38057af --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/AsyncUpdateRule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateRule { + + public static void main(String[] args) throws Exception { + asyncUpdateRule(); + } + + public static void asyncUpdateRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateRuleRequest request = + UpdateRuleRequest.newBuilder() + .setRule(Rule.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = artifactRegistryClient.updateRuleCallable().futureCall(request); + // Do something. + Rule response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRule.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRule.java new file mode 100644 index 000000000000..3b955095653a --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRule.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.devtools.artifactregistry.v1.UpdateRuleRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRule { + + public static void main(String[] args) throws Exception { + syncUpdateRule(); + } + + public static void syncUpdateRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateRuleRequest request = + UpdateRuleRequest.newBuilder() + .setRule(Rule.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Rule response = artifactRegistryClient.updateRule(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRuleRuleFieldmask.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRuleRuleFieldmask.java new file mode 100644 index 000000000000..f24505b0e078 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updaterule/SyncUpdateRuleRuleFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_RuleFieldmask_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Rule; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRuleRuleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateRuleRuleFieldmask(); + } + + public static void syncUpdateRuleRuleFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + Rule rule = Rule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Rule response = artifactRegistryClient.updateRule(rule, updateMask); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_RuleFieldmask_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/AsyncUpdateVersion.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/AsyncUpdateVersion.java new file mode 100644 index 000000000000..1a97b9548400 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/AsyncUpdateVersion.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; +import com.google.devtools.artifactregistry.v1.Version; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVersion { + + public static void main(String[] args) throws Exception { + asyncUpdateVersion(); + } + + public static void asyncUpdateVersion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateVersionRequest request = + UpdateVersionRequest.newBuilder() + .setVersion(Version.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + artifactRegistryClient.updateVersionCallable().futureCall(request); + // Do something. + Version response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersion.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersion.java new file mode 100644 index 000000000000..0fae396beef2 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersion.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.UpdateVersionRequest; +import com.google.devtools.artifactregistry.v1.Version; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVersion { + + public static void main(String[] args) throws Exception { + syncUpdateVersion(); + } + + public static void syncUpdateVersion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + UpdateVersionRequest request = + UpdateVersionRequest.newBuilder() + .setVersion(Version.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Version response = artifactRegistryClient.updateVersion(request); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersionVersionFieldmask.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersionVersionFieldmask.java new file mode 100644 index 000000000000..7271ad6dc6ec --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/updateversion/SyncUpdateVersionVersionFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_VersionFieldmask_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.Version; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVersionVersionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVersionVersionFieldmask(); + } + + public static void syncUpdateVersionVersionFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + Version version = Version.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Version response = artifactRegistryClient.updateVersion(version, updateMask); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_VersionFieldmask_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateSetCredentialsProvider1.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e0e73ee38b19..000000000000 --- a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.artifactregistry.v1beta2.samples; - -// [START artifactregistry_v1beta2_generated_ArtifactRegistry_Create_SetCredentialsProvider1_sync] -import com.google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient; -import com.google.devtools.artifactregistry.v1beta2.ArtifactRegistrySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ArtifactRegistrySettings artifactRegistrySettings = - ArtifactRegistrySettings.newHttpJsonBuilder().build(); - ArtifactRegistryClient artifactRegistryClient = - ArtifactRegistryClient.create(artifactRegistrySettings); - } -} -// [END artifactregistry_v1beta2_generated_ArtifactRegistry_Create_SetCredentialsProvider1_sync] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateUseHttpJsonTransport.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..322b07790262 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1beta2/artifactregistry/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1beta2.samples; + +// [START artifactregistry_v1beta2_generated_ArtifactRegistry_Create_UseHttpJsonTransport_sync] +import com.google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1beta2.ArtifactRegistrySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ArtifactRegistrySettings artifactRegistrySettings = + ArtifactRegistrySettings.newHttpJsonBuilder().build(); + ArtifactRegistryClient artifactRegistryClient = + ArtifactRegistryClient.create(artifactRegistrySettings); + } +} +// [END artifactregistry_v1beta2_generated_ArtifactRegistry_Create_UseHttpJsonTransport_sync] diff --git a/java-asset/README.md b/java-asset/README.md index 0238f4acb16d..294ff9cbf034 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.56.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1/reflect-config.json b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1/reflect-config.json index b667ec4f29e1..5773f7dfcfea 100644 --- a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1/reflect-config.json +++ b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p1beta1/reflect-config.json b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p1beta1/reflect-config.json index cd01f8521f6c..63780d5c8d3c 100644 --- a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p1beta1/reflect-config.json +++ b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.asset.v1p1beta1.IamPolicySearchResult", "queryAllDeclaredConstructors": true, diff --git a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p2beta1/reflect-config.json b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p2beta1/reflect-config.json index d72287f3f1bb..740b42f52221 100644 --- a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p2beta1/reflect-config.json +++ b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p2beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.asset.v1p2beta1.Asset", "queryAllDeclaredConstructors": true, diff --git a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p5beta1/reflect-config.json b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p5beta1/reflect-config.json index dda92e3b207e..26719a2a05ce 100644 --- a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p5beta1/reflect-config.json +++ b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p5beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.asset.v1p5beta1.Asset", "queryAllDeclaredConstructors": true, diff --git a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p7beta1/reflect-config.json b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p7beta1/reflect-config.json index 6d6c64e496eb..1b184d375724 100644 --- a/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p7beta1/reflect-config.json +++ b/java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1p7beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.asset.v1p7beta1.Asset", "queryAllDeclaredConstructors": true, diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5d2931115cae..000000000000 --- a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.asset.v1.samples; - -// [START cloudasset_v1_generated_AssetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.asset.v1.AssetServiceClient; -import com.google.cloud.asset.v1.AssetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); - AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); - } -} -// [END cloudasset_v1_generated_AssetService_Create_SetCredentialsProvider1_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateUseHttpJsonTransport.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4dccfd6eb5ce --- /dev/null +++ b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.asset.v1.samples; + +// [START cloudasset_v1_generated_AssetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.asset.v1.AssetServiceClient; +import com.google.cloud.asset.v1.AssetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); + AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); + } +} +// [END cloudasset_v1_generated_AssetService_Create_UseHttpJsonTransport_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3cad641143bb..000000000000 --- a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.asset.v1p1beta1.samples; - -// [START cloudasset_v1p1beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.asset.v1p1beta1.AssetServiceClient; -import com.google.cloud.asset.v1p1beta1.AssetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); - AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); - } -} -// [END cloudasset_v1p1beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e865fc9d1a03 --- /dev/null +++ b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.asset.v1p1beta1.samples; + +// [START cloudasset_v1p1beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.asset.v1p1beta1.AssetServiceClient; +import com.google.cloud.asset.v1p1beta1.AssetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); + AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); + } +} +// [END cloudasset_v1p1beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5653f10305a7..000000000000 --- a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.asset.v1p2beta1.samples; - -// [START cloudasset_v1p2beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.asset.v1p2beta1.AssetServiceClient; -import com.google.cloud.asset.v1p2beta1.AssetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); - AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); - } -} -// [END cloudasset_v1p2beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a02e21317fd5 --- /dev/null +++ b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.asset.v1p2beta1.samples; + +// [START cloudasset_v1p2beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.asset.v1p2beta1.AssetServiceClient; +import com.google.cloud.asset.v1p2beta1.AssetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); + AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); + } +} +// [END cloudasset_v1p2beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 58093bca5b5b..000000000000 --- a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.asset.v1p5beta1.samples; - -// [START cloudasset_v1p5beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.asset.v1p5beta1.AssetServiceClient; -import com.google.cloud.asset.v1p5beta1.AssetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); - AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); - } -} -// [END cloudasset_v1p5beta1_generated_AssetService_Create_SetCredentialsProvider1_sync] diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..16d05e948ab0 --- /dev/null +++ b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.asset.v1p5beta1.samples; + +// [START cloudasset_v1p5beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.asset.v1p5beta1.AssetServiceClient; +import com.google.cloud.asset.v1p5beta1.AssetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssetServiceSettings assetServiceSettings = AssetServiceSettings.newHttpJsonBuilder().build(); + AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); + } +} +// [END cloudasset_v1p5beta1_generated_AssetService_Create_UseHttpJsonTransport_sync] diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 7ce0a7016cdd..ae1b356ea7a2 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1/reflect-config.json b/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1/reflect-config.json index 2cd1313e88ed..0f2b01c21442 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1/reflect-config.json +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1beta1/reflect-config.json b/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1beta1/reflect-config.json index e2bf22a0cc2a..e91e803c57b2 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1beta1/reflect-config.json +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/resources/META-INF/native-image/com.google.cloud.assuredworkloads.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest", "queryAllDeclaredConstructors": true, diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0fa5561f44fb..000000000000 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.assuredworkloads.v1.samples; - -// [START assuredworkloads_v1_generated_AssuredWorkloadsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; -import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = - AssuredWorkloadsServiceSettings.newHttpJsonBuilder().build(); - AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = - AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); - } -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_Create_SetCredentialsProvider1_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..556a3c80034a --- /dev/null +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_AssuredWorkloadsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newHttpJsonBuilder().build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1_generated_AssuredWorkloadsService_Create_UseHttpJsonTransport_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f9c10892c49a..000000000000 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.assuredworkloads.v1beta1.samples; - -// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; -import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = - AssuredWorkloadsServiceSettings.newHttpJsonBuilder().build(); - AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = - AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); - } -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_Create_SetCredentialsProvider1_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..77a4136d3f02 --- /dev/null +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_AssuredWorkloadsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newHttpJsonBuilder().build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_Create_UseHttpJsonTransport_sync] diff --git a/java-automl/README.md b/java-automl/README.md index f3bfb1c6eb58..acc9c17395ad 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.52.0" ``` - ## Authentication @@ -207,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1/reflect-config.json b/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1/reflect-config.json index 57817da7d2e1..01b6116e9993 100644 --- a/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1/reflect-config.json +++ b/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.automl.v1.AnnotationPayload", "queryAllDeclaredConstructors": true, diff --git a/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1beta1/reflect-config.json b/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1beta1/reflect-config.json index c493daf6f6c0..7b9ebc2e8cb9 100644 --- a/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1beta1/reflect-config.json +++ b/java-automl/google-cloud-automl/src/main/resources/META-INF/native-image/com.google.cloud.automl.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.automl.v1beta1.AnnotationPayload", "queryAllDeclaredConstructors": true, diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateSetCredentialsProvider1.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ac4c85b9fbf0..000000000000 --- a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.automl.v1.samples; - -// [START automl_v1_generated_AutoMl_Create_SetCredentialsProvider1_sync] -import com.google.cloud.automl.v1.AutoMlClient; -import com.google.cloud.automl.v1.AutoMlSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoMlSettings autoMlSettings = AutoMlSettings.newHttpJsonBuilder().build(); - AutoMlClient autoMlClient = AutoMlClient.create(autoMlSettings); - } -} -// [END automl_v1_generated_AutoMl_Create_SetCredentialsProvider1_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateUseHttpJsonTransport.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b1c9fd11379f --- /dev/null +++ b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/automl/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.automl.v1.samples; + +// [START automl_v1_generated_AutoMl_Create_UseHttpJsonTransport_sync] +import com.google.cloud.automl.v1.AutoMlClient; +import com.google.cloud.automl.v1.AutoMlSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutoMlSettings autoMlSettings = AutoMlSettings.newHttpJsonBuilder().build(); + AutoMlClient autoMlClient = AutoMlClient.create(autoMlSettings); + } +} +// [END automl_v1_generated_AutoMl_Create_UseHttpJsonTransport_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ad63cb96e8f7..000000000000 --- a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.automl.v1.samples; - -// [START automl_v1_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.automl.v1.PredictionServiceClient; -import com.google.cloud.automl.v1.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END automl_v1_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..900c024445d1 --- /dev/null +++ b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.automl.v1.samples; + +// [START automl_v1_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.automl.v1.PredictionServiceClient; +import com.google.cloud.automl.v1.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END automl_v1_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateSetCredentialsProvider1.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9a732d3a8fdc..000000000000 --- a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.automl.v1beta1.samples; - -// [START automl_v1beta1_generated_AutoMl_Create_SetCredentialsProvider1_sync] -import com.google.cloud.automl.v1beta1.AutoMlClient; -import com.google.cloud.automl.v1beta1.AutoMlSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoMlSettings autoMlSettings = AutoMlSettings.newHttpJsonBuilder().build(); - AutoMlClient autoMlClient = AutoMlClient.create(autoMlSettings); - } -} -// [END automl_v1beta1_generated_AutoMl_Create_SetCredentialsProvider1_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateUseHttpJsonTransport.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..888f475b645c --- /dev/null +++ b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/automl/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.automl.v1beta1.samples; + +// [START automl_v1beta1_generated_AutoMl_Create_UseHttpJsonTransport_sync] +import com.google.cloud.automl.v1beta1.AutoMlClient; +import com.google.cloud.automl.v1beta1.AutoMlSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutoMlSettings autoMlSettings = AutoMlSettings.newHttpJsonBuilder().build(); + AutoMlClient autoMlClient = AutoMlClient.create(autoMlSettings); + } +} +// [END automl_v1beta1_generated_AutoMl_Create_UseHttpJsonTransport_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5e8cfd8a4bcc..000000000000 --- a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.automl.v1beta1.samples; - -// [START automl_v1beta1_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.automl.v1beta1.PredictionServiceClient; -import com.google.cloud.automl.v1beta1.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END automl_v1beta1_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..203539b5529c --- /dev/null +++ b/java-automl/samples/snippets/generated/com/google/cloud/automl/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.automl.v1beta1.samples; + +// [START automl_v1beta1_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.automl.v1beta1.PredictionServiceClient; +import com.google.cloud.automl.v1beta1.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END automl_v1beta1_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-backupdr/README.md b/java-backupdr/README.md index b3fbca4cafa9..6934cbb18674 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.11.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index 92f2f58ec0a6..7fd43a4bf38d 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateSetCredentialsProvider1.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 44644a9173e4..000000000000 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.backupdr.v1.samples; - -// [START backupdr_v1_generated_BackupDR_Create_SetCredentialsProvider1_sync] -import com.google.cloud.backupdr.v1.BackupDRClient; -import com.google.cloud.backupdr.v1.BackupDRSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BackupDRSettings backupDRSettings = BackupDRSettings.newHttpJsonBuilder().build(); - BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings); - } -} -// [END backupdr_v1_generated_BackupDR_Create_SetCredentialsProvider1_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateUseHttpJsonTransport.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5dbc78eb8575 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_Create_UseHttpJsonTransport_sync] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BackupDRSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BackupDRSettings backupDRSettings = BackupDRSettings.newHttpJsonBuilder().build(); + BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings); + } +} +// [END backupdr_v1_generated_BackupDR_Create_UseHttpJsonTransport_sync] diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index e2ae6298f32e..563e890a9582 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.52.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/resources/META-INF/native-image/com.google.cloud.baremetalsolution.v2/reflect-config.json b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/resources/META-INF/native-image/com.google.cloud.baremetalsolution.v2/reflect-config.json index 63e68c6da896..e7a4c1c18bca 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/resources/META-INF/native-image/com.google.cloud.baremetalsolution.v2/reflect-config.json +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/resources/META-INF/native-image/com.google.cloud.baremetalsolution.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.baremetalsolution.v2.CreateNfsShareRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateSetCredentialsProvider1.java b/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8dbb73d6f1bf..000000000000 --- a/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.baremetalsolution.v2.samples; - -// [START baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider1_sync] -import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; -import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BareMetalSolutionSettings bareMetalSolutionSettings = - BareMetalSolutionSettings.newHttpJsonBuilder().build(); - BareMetalSolutionClient bareMetalSolutionClient = - BareMetalSolutionClient.create(bareMetalSolutionSettings); - } -} -// [END baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider1_sync] diff --git a/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateUseHttpJsonTransport.java b/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b8fad402d889 --- /dev/null +++ b/java-bare-metal-solution/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolution/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_BareMetalSolution_Create_UseHttpJsonTransport_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BareMetalSolutionSettings bareMetalSolutionSettings = + BareMetalSolutionSettings.newHttpJsonBuilder().build(); + BareMetalSolutionClient bareMetalSolutionClient = + BareMetalSolutionClient.create(bareMetalSolutionSettings); + } +} +// [END baremetalsolution_v2_generated_BareMetalSolution_Create_UseHttpJsonTransport_sync] diff --git a/java-batch/README.md b/java-batch/README.md index d5740ddb09ca..eca27b133fd5 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.52.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json index 6a9b3d587d0e..b8d7c98b14db 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json index 99bb4cd8a17d..2ec6795bcff9 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetCredentialsProvider1.java b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4c5f0048de4a..000000000000 --- a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.batch.v1.samples; - -// [START batch_v1_generated_BatchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.batch.v1.BatchServiceClient; -import com.google.cloud.batch.v1.BatchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchServiceSettings batchServiceSettings = BatchServiceSettings.newHttpJsonBuilder().build(); - BatchServiceClient batchServiceClient = BatchServiceClient.create(batchServiceSettings); - } -} -// [END batch_v1_generated_BatchService_Create_SetCredentialsProvider1_sync] diff --git a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateUseHttpJsonTransport.java b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..41220ce8a3a9 --- /dev/null +++ b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.batch.v1.samples; + +// [START batch_v1_generated_BatchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.batch.v1.BatchServiceClient; +import com.google.cloud.batch.v1.BatchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BatchServiceSettings batchServiceSettings = BatchServiceSettings.newHttpJsonBuilder().build(); + BatchServiceClient batchServiceClient = BatchServiceClient.create(batchServiceSettings); + } +} +// [END batch_v1_generated_BatchService_Create_UseHttpJsonTransport_sync] diff --git a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetCredentialsProvider1.java b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 00520e7459e5..000000000000 --- a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.batch.v1alpha.samples; - -// [START batch_v1alpha_generated_BatchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.batch.v1alpha.BatchServiceClient; -import com.google.cloud.batch.v1alpha.BatchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchServiceSettings batchServiceSettings = BatchServiceSettings.newHttpJsonBuilder().build(); - BatchServiceClient batchServiceClient = BatchServiceClient.create(batchServiceSettings); - } -} -// [END batch_v1alpha_generated_BatchService_Create_SetCredentialsProvider1_sync] diff --git a/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateUseHttpJsonTransport.java b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8bcf125bf5d6 --- /dev/null +++ b/java-batch/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.batch.v1alpha.samples; + +// [START batch_v1alpha_generated_BatchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.batch.v1alpha.BatchServiceClient; +import com.google.cloud.batch.v1alpha.BatchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BatchServiceSettings batchServiceSettings = BatchServiceSettings.newHttpJsonBuilder().build(); + BatchServiceClient batchServiceClient = BatchServiceClient.create(batchServiceSettings); + } +} +// [END batch_v1alpha_generated_BatchService_Create_UseHttpJsonTransport_sync] diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index ad01b5dfb0af..b0642366a6ae 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnections.v1/reflect-config.json b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnections.v1/reflect-config.json index 057fbc42b4e3..9174fb5da06c 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnections.v1/reflect-config.json +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnections.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.beyondcorp.appconnections.v1.AppConnection", "queryAllDeclaredConstructors": true, diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 5b41197f3b3f..48787b04c92f 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnectors.v1/reflect-config.json b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnectors.v1/reflect-config.json index b701d91ccf84..ac824dadc7e7 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnectors.v1/reflect-config.json +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appconnectors.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.beyondcorp.appconnectors.v1.AppConnector", "queryAllDeclaredConstructors": true, diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 3d412a725a7f..cf44178e4dbe 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appgateways.v1/reflect-config.json b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appgateways.v1/reflect-config.json index f4986cde68cb..57adcc029270 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appgateways.v1/reflect-config.json +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.appgateways.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.beyondcorp.appgateways.v1.AppGateway", "queryAllDeclaredConstructors": true, diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index ea10225e184c..ae34402a928a 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientconnectorservices.v1/reflect-config.json b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientconnectorservices.v1/reflect-config.json index 822fcd4ec974..b2ccd17531d8 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientconnectorservices.v1/reflect-config.json +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientconnectorservices.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService", "queryAllDeclaredConstructors": true, diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 59a2c72e1822..ddf37b7f3da3 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientgateways.v1/reflect-config.json b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientgateways.v1/reflect-config.json index 75595582061d..4f98062b7d02 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientgateways.v1/reflect-config.json +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/resources/META-INF/native-image/com.google.cloud.beyondcorp.clientgateways.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway", "queryAllDeclaredConstructors": true, diff --git a/java-biglake/README.md b/java-biglake/README.md index db5a6b5d5671..edef19e44560 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.40.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1/reflect-config.json b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1/reflect-config.json index 88c94860c17b..09ff753a8626 100644 --- a/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1/reflect-config.json +++ b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.biglake.v1.Catalog", "queryAllDeclaredConstructors": true, diff --git a/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1alpha1/reflect-config.json b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1alpha1/reflect-config.json index f47d9e87cc1b..655ef210e028 100644 --- a/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1alpha1/reflect-config.json +++ b/java-biglake/google-cloud-biglake/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.biglake.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.biglake.v1alpha1.Catalog", "queryAllDeclaredConstructors": true, diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e075db17be04..000000000000 --- a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.biglake.v1.samples; - -// [START biglake_v1_generated_MetastoreService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.biglake.v1.MetastoreServiceClient; -import com.google.cloud.bigquery.biglake.v1.MetastoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MetastoreServiceSettings metastoreServiceSettings = - MetastoreServiceSettings.newHttpJsonBuilder().build(); - MetastoreServiceClient metastoreServiceClient = - MetastoreServiceClient.create(metastoreServiceSettings); - } -} -// [END biglake_v1_generated_MetastoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..74dbeec9974b --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.biglake.v1.samples; + +// [START biglake_v1_generated_MetastoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.biglake.v1.MetastoreServiceClient; +import com.google.cloud.bigquery.biglake.v1.MetastoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MetastoreServiceSettings metastoreServiceSettings = + MetastoreServiceSettings.newHttpJsonBuilder().build(); + MetastoreServiceClient metastoreServiceClient = + MetastoreServiceClient.create(metastoreServiceSettings); + } +} +// [END biglake_v1_generated_MetastoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c15cd51707d1..000000000000 --- a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.biglake.v1alpha1.samples; - -// [START biglake_v1alpha1_generated_MetastoreService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.biglake.v1alpha1.MetastoreServiceClient; -import com.google.cloud.bigquery.biglake.v1alpha1.MetastoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MetastoreServiceSettings metastoreServiceSettings = - MetastoreServiceSettings.newHttpJsonBuilder().build(); - MetastoreServiceClient metastoreServiceClient = - MetastoreServiceClient.create(metastoreServiceSettings); - } -} -// [END biglake_v1alpha1_generated_MetastoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6e7076accb03 --- /dev/null +++ b/java-biglake/samples/snippets/generated/com/google/cloud/bigquery/biglake/v1alpha1/metastoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.biglake.v1alpha1.samples; + +// [START biglake_v1alpha1_generated_MetastoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.biglake.v1alpha1.MetastoreServiceClient; +import com.google.cloud.bigquery.biglake.v1alpha1.MetastoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MetastoreServiceSettings metastoreServiceSettings = + MetastoreServiceSettings.newHttpJsonBuilder().build(); + MetastoreServiceClient metastoreServiceClient = + MetastoreServiceClient.create(metastoreServiceSettings); + } +} +// [END biglake_v1alpha1_generated_MetastoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index d6cb66c7c165..2ee7ccb673bd 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.47.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.dataexchange.v1beta1/reflect-config.json b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.dataexchange.v1beta1/reflect-config.json index a1227b768b26..f3faecfb1ed4 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.dataexchange.v1beta1/reflect-config.json +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.dataexchange.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cf5df29cb09a..000000000000 --- a/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.dataexchange.v1beta1.samples; - -// [START analyticshub_v1beta1_generated_AnalyticsHubService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient; -import com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsHubServiceSettings analyticsHubServiceSettings = - AnalyticsHubServiceSettings.newHttpJsonBuilder().build(); - AnalyticsHubServiceClient analyticsHubServiceClient = - AnalyticsHubServiceClient.create(analyticsHubServiceSettings); - } -} -// [END analyticshub_v1beta1_generated_AnalyticsHubService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dfe5b6100591 --- /dev/null +++ b/java-bigquery-data-exchange/samples/snippets/generated/com/google/cloud/bigquery/dataexchange/v1beta1/analyticshubservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.dataexchange.v1beta1.samples; + +// [START analyticshub_v1beta1_generated_AnalyticsHubService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsHubServiceSettings analyticsHubServiceSettings = + AnalyticsHubServiceSettings.newHttpJsonBuilder().build(); + AnalyticsHubServiceClient analyticsHubServiceClient = + AnalyticsHubServiceClient.create(analyticsHubServiceSettings); + } +} +// [END analyticshub_v1beta1_generated_AnalyticsHubService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 6af687818429..9c8970db8392 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.connection.v1beta1/reflect-config.json b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.connection.v1beta1/reflect-config.json index 7d3b0e503d18..e4e39c5a8ea4 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.connection.v1beta1/reflect-config.json +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.connection.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.connection.v1beta1.ConnectionProto$CloudSqlCredential", "queryAllDeclaredConstructors": true, diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigqueryconnection.v1/reflect-config.json b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigqueryconnection.v1/reflect-config.json index 200d0cbf8a9c..57ff2db76287 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigqueryconnection.v1/reflect-config.json +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/resources/META-INF/native-image/com.google.cloud.bigqueryconnection.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.connection.v1.AwsAccessRole", "queryAllDeclaredConstructors": true, diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1651ca317b3c..000000000000 --- a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.connection.v1beta1.samples; - -// [START bigqueryconnection_v1beta1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient; -import com.google.cloud.bigquery.connection.v1beta1.ConnectionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConnectionServiceSettings connectionServiceSettings = - ConnectionServiceSettings.newHttpJsonBuilder().build(); - ConnectionServiceClient connectionServiceClient = - ConnectionServiceClient.create(connectionServiceSettings); - } -} -// [END bigqueryconnection_v1beta1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a50c5d38a36a --- /dev/null +++ b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.connection.v1beta1.samples; + +// [START bigqueryconnection_v1beta1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient; +import com.google.cloud.bigquery.connection.v1beta1.ConnectionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newHttpJsonBuilder().build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END bigqueryconnection_v1beta1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ee95d4f09a44..000000000000 --- a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigqueryconnection.v1.samples; - -// [START bigqueryconnection_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigqueryconnection.v1.ConnectionServiceClient; -import com.google.cloud.bigqueryconnection.v1.ConnectionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConnectionServiceSettings connectionServiceSettings = - ConnectionServiceSettings.newHttpJsonBuilder().build(); - ConnectionServiceClient connectionServiceClient = - ConnectionServiceClient.create(connectionServiceSettings); - } -} -// [END bigqueryconnection_v1_generated_ConnectionService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6706912b1550 --- /dev/null +++ b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigqueryconnection.v1.samples; + +// [START bigqueryconnection_v1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigqueryconnection.v1.ConnectionServiceClient; +import com.google.cloud.bigqueryconnection.v1.ConnectionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newHttpJsonBuilder().build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END bigqueryconnection_v1_generated_ConnectionService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 6423e62c8eb7..f4bcb3b41b97 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.49.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1/reflect-config.json b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1/reflect-config.json index 34dccdf4dc20..9645a8462ef9 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1/reflect-config.json +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1beta1/reflect-config.json b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1beta1/reflect-config.json index 1418a95e9235..469863f23313 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1beta1/reflect-config.json +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b4a719650959..000000000000 --- a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datapolicies.v1.samples; - -// [START bigquerydatapolicy_v1_generated_DataPolicyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient; -import com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataPolicyServiceSettings dataPolicyServiceSettings = - DataPolicyServiceSettings.newHttpJsonBuilder().build(); - DataPolicyServiceClient dataPolicyServiceClient = - DataPolicyServiceClient.create(dataPolicyServiceSettings); - } -} -// [END bigquerydatapolicy_v1_generated_DataPolicyService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..923f88393ead --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datapolicies.v1.samples; + +// [START bigquerydatapolicy_v1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataPolicyServiceSettings dataPolicyServiceSettings = + DataPolicyServiceSettings.newHttpJsonBuilder().build(); + DataPolicyServiceClient dataPolicyServiceClient = + DataPolicyServiceClient.create(dataPolicyServiceSettings); + } +} +// [END bigquerydatapolicy_v1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d39e243e2436..000000000000 --- a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datapolicies.v1beta1.samples; - -// [START bigquerydatapolicy_v1beta1_generated_DataPolicyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient; -import com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataPolicyServiceSettings dataPolicyServiceSettings = - DataPolicyServiceSettings.newHttpJsonBuilder().build(); - DataPolicyServiceClient dataPolicyServiceClient = - DataPolicyServiceClient.create(dataPolicyServiceSettings); - } -} -// [END bigquerydatapolicy_v1beta1_generated_DataPolicyService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dae3b7cced66 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v1beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datapolicies.v1beta1.samples; + +// [START bigquerydatapolicy_v1beta1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataPolicyServiceSettings dataPolicyServiceSettings = + DataPolicyServiceSettings.newHttpJsonBuilder().build(); + DataPolicyServiceClient dataPolicyServiceClient = + DataPolicyServiceClient.create(dataPolicyServiceSettings); + } +} +// [END bigquerydatapolicy_v1beta1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index a7f670be9b90..47c348621ed7 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json index 5ea9d5529b05..7bc92706e8ea 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 22f9f38e17c7..000000000000 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.datatransfer.v1.samples; - -// [START bigquerydatatransfer_v1_generated_DataTransferService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; -import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataTransferServiceSettings dataTransferServiceSettings = - DataTransferServiceSettings.newHttpJsonBuilder().build(); - DataTransferServiceClient dataTransferServiceClient = - DataTransferServiceClient.create(dataTransferServiceSettings); - } -} -// [END bigquerydatatransfer_v1_generated_DataTransferService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e751a991375f --- /dev/null +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.datatransfer.v1.samples; + +// [START bigquerydatatransfer_v1_generated_DataTransferService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTransferServiceSettings dataTransferServiceSettings = + DataTransferServiceSettings.newHttpJsonBuilder().build(); + DataTransferServiceClient dataTransferServiceClient = + DataTransferServiceClient.create(dataTransferServiceSettings); + } +} +// [END bigquerydatatransfer_v1_generated_DataTransferService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index f7f73a0e4e6c..5519fa014e38 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.55.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json index a0745a69f873..1854a4c5855c 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json @@ -440,6 +440,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$TimeSeriesResourceHierarchyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.MetricDescriptor$MetricKind", "queryAllDeclaredConstructors": true, @@ -620,6 +629,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.AzureSynapseDialect", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2alpha/reflect-config.json b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2alpha/reflect-config.json index 44b808e4a697..b42ddeedd519 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2alpha/reflect-config.json +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2alpha/reflect-config.json @@ -440,6 +440,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$TimeSeriesResourceHierarchyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.MetricDescriptor$MetricKind", "queryAllDeclaredConstructors": true, @@ -620,6 +629,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 643000fd5ce6..000000000000 --- a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.migration.v2.samples; - -// [START bigquerymigration_v2_generated_MigrationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.migration.v2.MigrationServiceClient; -import com.google.cloud.bigquery.migration.v2.MigrationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MigrationServiceSettings migrationServiceSettings = - MigrationServiceSettings.newHttpJsonBuilder().build(); - MigrationServiceClient migrationServiceClient = - MigrationServiceClient.create(migrationServiceSettings); - } -} -// [END bigquerymigration_v2_generated_MigrationService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..55e07d61de5f --- /dev/null +++ b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2/migrationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.migration.v2.samples; + +// [START bigquerymigration_v2_generated_MigrationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.migration.v2.MigrationServiceClient; +import com.google.cloud.bigquery.migration.v2.MigrationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MigrationServiceSettings migrationServiceSettings = + MigrationServiceSettings.newHttpJsonBuilder().build(); + MigrationServiceClient migrationServiceClient = + MigrationServiceClient.create(migrationServiceSettings); + } +} +// [END bigquerymigration_v2_generated_MigrationService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c2d55c404e88..000000000000 --- a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.migration.v2alpha.samples; - -// [START bigquerymigration_v2alpha_generated_MigrationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClient; -import com.google.cloud.bigquery.migration.v2alpha.MigrationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MigrationServiceSettings migrationServiceSettings = - MigrationServiceSettings.newHttpJsonBuilder().build(); - MigrationServiceClient migrationServiceClient = - MigrationServiceClient.create(migrationServiceSettings); - } -} -// [END bigquerymigration_v2alpha_generated_MigrationService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..22536957ef72 --- /dev/null +++ b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/migrationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.migration.v2alpha.samples; + +// [START bigquerymigration_v2alpha_generated_MigrationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClient; +import com.google.cloud.bigquery.migration.v2alpha.MigrationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MigrationServiceSettings migrationServiceSettings = + MigrationServiceSettings.newHttpJsonBuilder().build(); + MigrationServiceClient migrationServiceClient = + MigrationServiceClient.create(migrationServiceSettings); + } +} +// [END bigquerymigration_v2alpha_generated_MigrationService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6fc2062c3eff..000000000000 --- a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.migration.v2alpha.samples; - -// [START bigquerymigration_v2alpha_generated_SqlTranslationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.migration.v2alpha.SqlTranslationServiceClient; -import com.google.cloud.bigquery.migration.v2alpha.SqlTranslationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SqlTranslationServiceSettings sqlTranslationServiceSettings = - SqlTranslationServiceSettings.newHttpJsonBuilder().build(); - SqlTranslationServiceClient sqlTranslationServiceClient = - SqlTranslationServiceClient.create(sqlTranslationServiceSettings); - } -} -// [END bigquerymigration_v2alpha_generated_SqlTranslationService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..353bb5796969 --- /dev/null +++ b/java-bigquerymigration/samples/snippets/generated/com/google/cloud/bigquery/migration/v2alpha/sqltranslationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.migration.v2alpha.samples; + +// [START bigquerymigration_v2alpha_generated_SqlTranslationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.migration.v2alpha.SqlTranslationServiceClient; +import com.google.cloud.bigquery.migration.v2alpha.SqlTranslationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SqlTranslationServiceSettings sqlTranslationServiceSettings = + SqlTranslationServiceSettings.newHttpJsonBuilder().build(); + SqlTranslationServiceClient sqlTranslationServiceClient = + SqlTranslationServiceClient.create(sqlTranslationServiceSettings); + } +} +// [END bigquerymigration_v2alpha_generated_SqlTranslationService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 3e00c2c89a44..0cddcb1916ca 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json index 8a07a3da1abc..beacee5d6908 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.reservation.v1.Assignment", "queryAllDeclaredConstructors": true, diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 225abeaaa16d..000000000000 --- a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.reservation.v1.samples; - -// [START bigqueryreservation_v1_generated_ReservationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.bigquery.reservation.v1.ReservationServiceClient; -import com.google.cloud.bigquery.reservation.v1.ReservationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ReservationServiceSettings reservationServiceSettings = - ReservationServiceSettings.newHttpJsonBuilder().build(); - ReservationServiceClient reservationServiceClient = - ReservationServiceClient.create(reservationServiceSettings); - } -} -// [END bigqueryreservation_v1_generated_ReservationService_Create_SetCredentialsProvider1_sync] diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..16cfa894edd6 --- /dev/null +++ b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.reservation.v1.samples; + +// [START bigqueryreservation_v1_generated_ReservationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.reservation.v1.ReservationServiceClient; +import com.google.cloud.bigquery.reservation.v1.ReservationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReservationServiceSettings reservationServiceSettings = + ReservationServiceSettings.newHttpJsonBuilder().build(); + ReservationServiceClient reservationServiceClient = + ReservationServiceClient.create(reservationServiceSettings); + } +} +// [END bigqueryreservation_v1_generated_ReservationService_Create_UseHttpJsonTransport_sync] diff --git a/java-billing/README.md b/java-billing/README.md index f9325bddb4ca..d80caed8009a 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json b/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json index 3014b6867193..2b2c4e640cf2 100644 --- a/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json +++ b/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.billing.v1.AggregationInfo", "queryAllDeclaredConstructors": true, diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a121e52f628d..000000000000 --- a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.billing.v1.samples; - -// [START cloudbilling_v1_generated_CloudBilling_Create_SetCredentialsProvider1_sync] -import com.google.cloud.billing.v1.CloudBillingClient; -import com.google.cloud.billing.v1.CloudBillingSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudBillingSettings cloudBillingSettings = CloudBillingSettings.newHttpJsonBuilder().build(); - CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings); - } -} -// [END cloudbilling_v1_generated_CloudBilling_Create_SetCredentialsProvider1_sync] diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateUseHttpJsonTransport.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..340f8370868e --- /dev/null +++ b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.billing.v1.samples; + +// [START cloudbilling_v1_generated_CloudBilling_Create_UseHttpJsonTransport_sync] +import com.google.cloud.billing.v1.CloudBillingClient; +import com.google.cloud.billing.v1.CloudBillingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudBillingSettings cloudBillingSettings = CloudBillingSettings.newHttpJsonBuilder().build(); + CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings); + } +} +// [END cloudbilling_v1_generated_CloudBilling_Create_UseHttpJsonTransport_sync] diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8d675206c4b6..000000000000 --- a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.billing.v1.samples; - -// [START cloudbilling_v1_generated_CloudCatalog_Create_SetCredentialsProvider1_sync] -import com.google.cloud.billing.v1.CloudCatalogClient; -import com.google.cloud.billing.v1.CloudCatalogSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudCatalogSettings cloudCatalogSettings = CloudCatalogSettings.newHttpJsonBuilder().build(); - CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings); - } -} -// [END cloudbilling_v1_generated_CloudCatalog_Create_SetCredentialsProvider1_sync] diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateUseHttpJsonTransport.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..98044dd38f35 --- /dev/null +++ b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.billing.v1.samples; + +// [START cloudbilling_v1_generated_CloudCatalog_Create_UseHttpJsonTransport_sync] +import com.google.cloud.billing.v1.CloudCatalogClient; +import com.google.cloud.billing.v1.CloudCatalogSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudCatalogSettings cloudCatalogSettings = CloudCatalogSettings.newHttpJsonBuilder().build(); + CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings); + } +} +// [END cloudbilling_v1_generated_CloudCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 5e9aa23f18ff..cf15b90df813 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json index aa61cf4fc9c0..edef1909dfdb 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.billing.budgets.v1.Budget", "queryAllDeclaredConstructors": true, diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json index bde128ff788c..f9e46379fe97 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/resources/META-INF/native-image/com.google.cloud.billing.budgets.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.billing.budgets.v1beta1.AllUpdatesRule", "queryAllDeclaredConstructors": true, diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2b652b9875d7..000000000000 --- a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.billing.budgets.v1.samples; - -// [START billingbudgets_v1_generated_BudgetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.billing.budgets.v1.BudgetServiceClient; -import com.google.cloud.billing.budgets.v1.BudgetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BudgetServiceSettings budgetServiceSettings = - BudgetServiceSettings.newHttpJsonBuilder().build(); - BudgetServiceClient budgetServiceClient = BudgetServiceClient.create(budgetServiceSettings); - } -} -// [END billingbudgets_v1_generated_BudgetService_Create_SetCredentialsProvider1_sync] diff --git a/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateUseHttpJsonTransport.java b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f9c54faf8590 --- /dev/null +++ b/java-billingbudgets/samples/snippets/generated/com/google/cloud/billing/budgets/v1/budgetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.billing.budgets.v1.samples; + +// [START billingbudgets_v1_generated_BudgetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.billing.budgets.v1.BudgetServiceClient; +import com.google.cloud.billing.budgets.v1.BudgetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BudgetServiceSettings budgetServiceSettings = + BudgetServiceSettings.newHttpJsonBuilder().build(); + BudgetServiceClient budgetServiceClient = BudgetServiceClient.create(budgetServiceSettings); + } +} +// [END billingbudgets_v1_generated_BudgetService_Create_UseHttpJsonTransport_sync] diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 9309b1627650..40b697ddb85d 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.cloud.binaryauthorization.v1beta1/reflect-config.json b/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.cloud.binaryauthorization.v1beta1/reflect-config.json index 57e8d28c5902..2ce4487309a8 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.cloud.binaryauthorization.v1beta1/reflect-config.json +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.cloud.binaryauthorization.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.binaryauthorization.v1beta1.AdmissionRule", "queryAllDeclaredConstructors": true, diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.protos.google.cloud.binaryauthorization.v1/reflect-config.json b/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.protos.google.cloud.binaryauthorization.v1/reflect-config.json index 7716dd2470f5..c71706ea4619 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.protos.google.cloud.binaryauthorization.v1/reflect-config.json +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/resources/META-INF/native-image/com.google.protos.google.cloud.binaryauthorization.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7067a8e164b4..000000000000 --- a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.binaryauthorization.v1beta1.samples; - -// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider1_sync] -import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client; -import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings = - BinauthzManagementServiceV1Beta1Settings.newHttpJsonBuilder().build(); - BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = - BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings); - } -} -// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateUseHttpJsonTransport.java b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5f261e766112 --- /dev/null +++ b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.samples; + +// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_UseHttpJsonTransport_sync] +import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client; +import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings = + BinauthzManagementServiceV1Beta1Settings.newHttpJsonBuilder().build(); + BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = + BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings); + } +} +// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_UseHttpJsonTransport_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f3264f441fc3..000000000000 --- a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.binaryauthorization.v1beta1.samples; - -// [START binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_Create_SetCredentialsProvider1_sync] -import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Client; -import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings = - SystemPolicyV1Beta1Settings.newHttpJsonBuilder().build(); - SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = - SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings); - } -} -// [END binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateUseHttpJsonTransport.java b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..281b6c61f941 --- /dev/null +++ b/java-binary-authorization/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.samples; + +// [START binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_Create_UseHttpJsonTransport_sync] +import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Client; +import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings = + SystemPolicyV1Beta1Settings.newHttpJsonBuilder().build(); + SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = + SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings); + } +} +// [END binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_Create_UseHttpJsonTransport_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateSetCredentialsProvider1.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b99df07ece5f..000000000000 --- a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.protos.google.cloud.binaryauthorization.v1.samples; - -// [START binaryauthorization_v1_generated_BinauthzManagementServiceV1_Create_SetCredentialsProvider1_sync] -import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client; -import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings = - BinauthzManagementServiceV1Settings.newHttpJsonBuilder().build(); - BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = - BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings); - } -} -// [END binaryauthorization_v1_generated_BinauthzManagementServiceV1_Create_SetCredentialsProvider1_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateUseHttpJsonTransport.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4266497267b3 --- /dev/null +++ b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_BinauthzManagementServiceV1_Create_UseHttpJsonTransport_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings = + BinauthzManagementServiceV1Settings.newHttpJsonBuilder().build(); + BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = + BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings); + } +} +// [END binaryauthorization_v1_generated_BinauthzManagementServiceV1_Create_UseHttpJsonTransport_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateSetCredentialsProvider1.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2c18a3ace7af..000000000000 --- a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.protos.google.cloud.binaryauthorization.v1.samples; - -// [START binaryauthorization_v1_generated_SystemPolicyV1_Create_SetCredentialsProvider1_sync] -import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Client; -import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SystemPolicyV1Settings systemPolicyV1Settings = - SystemPolicyV1Settings.newHttpJsonBuilder().build(); - SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings); - } -} -// [END binaryauthorization_v1_generated_SystemPolicyV1_Create_SetCredentialsProvider1_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateUseHttpJsonTransport.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2a2bdf443ee5 --- /dev/null +++ b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_SystemPolicyV1_Create_UseHttpJsonTransport_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SystemPolicyV1Settings systemPolicyV1Settings = + SystemPolicyV1Settings.newHttpJsonBuilder().build(); + SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings); + } +} +// [END binaryauthorization_v1_generated_SystemPolicyV1_Create_UseHttpJsonTransport_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateSetCredentialsProvider1.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e77b2f84cd32..000000000000 --- a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.protos.google.cloud.binaryauthorization.v1.samples; - -// [START binaryauthorization_v1_generated_ValidationHelperV1_Create_SetCredentialsProvider1_sync] -import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Client; -import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ValidationHelperV1Settings validationHelperV1Settings = - ValidationHelperV1Settings.newHttpJsonBuilder().build(); - ValidationHelperV1Client validationHelperV1Client = - ValidationHelperV1Client.create(validationHelperV1Settings); - } -} -// [END binaryauthorization_v1_generated_ValidationHelperV1_Create_SetCredentialsProvider1_sync] diff --git a/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateUseHttpJsonTransport.java b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..508179ff7a33 --- /dev/null +++ b/java-binary-authorization/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_ValidationHelperV1_Create_UseHttpJsonTransport_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ValidationHelperV1Settings validationHelperV1Settings = + ValidationHelperV1Settings.newHttpJsonBuilder().build(); + ValidationHelperV1Client validationHelperV1Client = + ValidationHelperV1Client.create(validationHelperV1Settings); + } +} +// [END binaryauthorization_v1_generated_ValidationHelperV1_Create_UseHttpJsonTransport_sync] diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 3f5119ade103..422052adf61b 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.55.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/resources/META-INF/native-image/com.google.cloud.certificatemanager.v1/reflect-config.json b/java-certificate-manager/google-cloud-certificate-manager/src/main/resources/META-INF/native-image/com.google.cloud.certificatemanager.v1/reflect-config.json index 6a33d78adf74..0112337ce8e9 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/resources/META-INF/native-image/com.google.cloud.certificatemanager.v1/reflect-config.json +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/resources/META-INF/native-image/com.google.cloud.certificatemanager.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.certificatemanager.v1.Certificate", "queryAllDeclaredConstructors": true, diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateSetCredentialsProvider1.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 99f5bd0a3cd9..000000000000 --- a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.certificatemanager.v1.samples; - -// [START certificatemanager_v1_generated_CertificateManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.certificatemanager.v1.CertificateManagerClient; -import com.google.cloud.certificatemanager.v1.CertificateManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CertificateManagerSettings certificateManagerSettings = - CertificateManagerSettings.newHttpJsonBuilder().build(); - CertificateManagerClient certificateManagerClient = - CertificateManagerClient.create(certificateManagerSettings); - } -} -// [END certificatemanager_v1_generated_CertificateManager_Create_SetCredentialsProvider1_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateUseHttpJsonTransport.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..48f7db17ea80 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_CertificateManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CertificateManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CertificateManagerSettings certificateManagerSettings = + CertificateManagerSettings.newHttpJsonBuilder().build(); + CertificateManagerClient certificateManagerClient = + CertificateManagerClient.create(certificateManagerSettings); + } +} +// [END certificatemanager_v1_generated_CertificateManager_Create_UseHttpJsonTransport_sync] diff --git a/java-channel/README.md b/java-channel/README.md index 85bcb4de5b76..1c33a7c9f9c0 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.56.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json index 2ff4e6a190c7..d64cd9e1a341 100644 --- a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json +++ b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.channel.v1.ActivateEntitlementRequest", "queryAllDeclaredConstructors": true, diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateSetCredentialsProvider1.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 837d1af96524..000000000000 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.channel.v1.samples; - -// [START cloudchannel_v1_generated_CloudChannelReportsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.channel.v1.CloudChannelReportsServiceClient; -import com.google.cloud.channel.v1.CloudChannelReportsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings = - CloudChannelReportsServiceSettings.newHttpJsonBuilder().build(); - CloudChannelReportsServiceClient cloudChannelReportsServiceClient = - CloudChannelReportsServiceClient.create(cloudChannelReportsServiceSettings); - } -} -// [END cloudchannel_v1_generated_CloudChannelReportsService_Create_SetCredentialsProvider1_sync] diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateUseHttpJsonTransport.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..db27b46f1909 --- /dev/null +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelreportsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.channel.v1.samples; + +// [START cloudchannel_v1_generated_CloudChannelReportsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.channel.v1.CloudChannelReportsServiceClient; +import com.google.cloud.channel.v1.CloudChannelReportsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings = + CloudChannelReportsServiceSettings.newHttpJsonBuilder().build(); + CloudChannelReportsServiceClient cloudChannelReportsServiceClient = + CloudChannelReportsServiceClient.create(cloudChannelReportsServiceSettings); + } +} +// [END cloudchannel_v1_generated_CloudChannelReportsService_Create_UseHttpJsonTransport_sync] diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateSetCredentialsProvider1.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2c65c1ba02ce..000000000000 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.channel.v1.samples; - -// [START cloudchannel_v1_generated_CloudChannelService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.channel.v1.CloudChannelServiceClient; -import com.google.cloud.channel.v1.CloudChannelServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudChannelServiceSettings cloudChannelServiceSettings = - CloudChannelServiceSettings.newHttpJsonBuilder().build(); - CloudChannelServiceClient cloudChannelServiceClient = - CloudChannelServiceClient.create(cloudChannelServiceSettings); - } -} -// [END cloudchannel_v1_generated_CloudChannelService_Create_SetCredentialsProvider1_sync] diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateUseHttpJsonTransport.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ffb18b0f9f8d --- /dev/null +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.channel.v1.samples; + +// [START cloudchannel_v1_generated_CloudChannelService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.channel.v1.CloudChannelServiceClient; +import com.google.cloud.channel.v1.CloudChannelServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudChannelServiceSettings cloudChannelServiceSettings = + CloudChannelServiceSettings.newHttpJsonBuilder().build(); + CloudChannelServiceClient cloudChannelServiceClient = + CloudChannelServiceClient.create(cloudChannelServiceSettings); + } +} +// [END cloudchannel_v1_generated_CloudChannelService_Create_UseHttpJsonTransport_sync] diff --git a/java-chat/README.md b/java-chat/README.md index 631e2f99d23c..31ed58fc6305 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.16.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-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 16642e15ac04..23f66efd7966 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 @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.card.v1.Action", "queryAllDeclaredConstructors": true, diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateSetCredentialsProvider1.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 645c8514a27b..000000000000 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.chat.v1.samples; - -// [START chat_v1_generated_ChatService_Create_SetCredentialsProvider1_sync] -import com.google.chat.v1.ChatServiceClient; -import com.google.chat.v1.ChatServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ChatServiceSettings chatServiceSettings = ChatServiceSettings.newHttpJsonBuilder().build(); - ChatServiceClient chatServiceClient = ChatServiceClient.create(chatServiceSettings); - } -} -// [END chat_v1_generated_ChatService_Create_SetCredentialsProvider1_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateUseHttpJsonTransport.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..031047d1bd27 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_Create_UseHttpJsonTransport_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ChatServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ChatServiceSettings chatServiceSettings = ChatServiceSettings.newHttpJsonBuilder().build(); + ChatServiceClient chatServiceClient = ChatServiceClient.create(chatServiceSettings); + } +} +// [END chat_v1_generated_ChatService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 0aef5a0ce62e..0356c9f27f0c 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json index 44dd8d9d560b..e0808b749357 100644 --- a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json +++ b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json @@ -449,6 +449,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloudbuild.v1.ApprovalConfig", "queryAllDeclaredConstructors": true, @@ -1421,6 +1439,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloudbuild.v1.PrivatePoolV1Config$PrivateServiceConnect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloudbuild.v1.PrivatePoolV1Config$PrivateServiceConnect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloudbuild.v1.PrivatePoolV1Config$WorkerConfig", "queryAllDeclaredConstructors": true, diff --git a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v2/reflect-config.json b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v2/reflect-config.json index 649e6701d7a5..428f388c53e0 100644 --- a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v2/reflect-config.json +++ b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v2/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-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 b6da6b5f7283..bff52b44c2a6 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 @@ -2162,7 +2162,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return The workerPool. */ @java.lang.Override @@ -2188,7 +2188,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return The bytes for workerPool. */ @java.lang.Override @@ -4279,7 +4279,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return The workerPool. */ @java.lang.Deprecated @@ -4304,7 +4304,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4329,7 +4329,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4353,7 +4353,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4373,7 +4373,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @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 3d7ce55a700d..d2469798d5ff 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 @@ -262,7 +262,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @return The workerPool. */ @java.lang.Deprecated @@ -277,7 +277,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=2284 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2288 * @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 981ecdb3e86e..8eff68de4214 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 @@ -324,6 +324,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_NetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -802,222 +806,233 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".com/WorkerPool\022Aprojects/{project}/loca" + "tions/{location}/workerPools/{worker_poo" + "l}*\013workerPools2\nworkerPoolR\001\001B\010\n\006config" - + "\"\274\004\n\023PrivatePoolV1Config\022V\n\rworker_confi" + + "\"\343\006\n\023PrivatePoolV1Config\022V\n\rworker_confi" + "g\030\001 \001(\0132?.google.devtools.cloudbuild.v1." + "PrivatePoolV1Config.WorkerConfig\022X\n\016netw" + "ork_config\030\002 \001(\0132@.google.devtools.cloud" + "build.v1.PrivatePoolV1Config.NetworkConf" - + "ig\032:\n\014WorkerConfig\022\024\n\014machine_type\030\001 \001(\t" - + "\022\024\n\014disk_size_gb\030\002 \001(\003\032\266\002\n\rNetworkConfig" - + "\022A\n\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n\036com" - + "pute.googleapis.com/Network\022d\n\regress_op" - + "tion\030\002 \001(\0162M.google.devtools.cloudbuild." - + "v1.PrivatePoolV1Config.NetworkConfig.Egr" - + "essOption\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\020NO_PUBLIC_EGRESS\020\001\022\021\n\r" - + "PUBLIC_EGRESS\020\002\"\320\001\n\027CreateWorkerPoolRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" - + "oogleapis.com/Location\022C\n\013worker_pool\030\002 " - + "\001(\0132).google.devtools.cloudbuild.v1.Work" - + "erPoolB\003\340A\002\022\036\n\016worker_pool_id\030\003 \001(\tB\006\340A\005" - + "\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"R\n\024GetWorkerP" - + "oolRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$cloudb" - + "uild.googleapis.com/WorkerPool\"\226\001\n\027Delet" - + "eWorkerPoolRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" - + "\n$cloudbuild.googleapis.com/WorkerPool\022\021" - + "\n\004etag\030\002 \001(\tB\003\340A\001\022\025\n\rallow_missing\030\003 \001(\010" - + "\022\025\n\rvalidate_only\030\004 \001(\010\"\246\001\n\027UpdateWorker" - + "PoolRequest\022C\n\013worker_pool\030\001 \001(\0132).googl" - + "e.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002" - + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"z\n\026List" - + "WorkerPoolsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027" - + "ListWorkerPoolsResponse\022?\n\014worker_pools\030" - + "\001 \003(\0132).google.devtools.cloudbuild.v1.Wo" - + "rkerPool\022\027\n\017next_page_token\030\002 \001(\t\"\307\001\n!Cr" - + "eateWorkerPoolOperationMetadata\022>\n\013worke" - + "r_pool\030\001 \001(\tB)\372A&\n$cloudbuild.googleapis" - + ".com/WorkerPool\022/\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0221\n\rcomplete_tim" - + "e\030\003 \001(\0132\032.google.protobuf.Timestamp\"\307\001\n!" - + "UpdateWorkerPoolOperationMetadata\022>\n\013wor" - + "ker_pool\030\001 \001(\tB)\372A&\n$cloudbuild.googleap" - + "is.com/WorkerPool\022/\n\013create_time\030\002 \001(\0132\032" - + ".google.protobuf.Timestamp\0221\n\rcomplete_t" - + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\"\307\001" - + "\n!DeleteWorkerPoolOperationMetadata\022>\n\013w" - + "orker_pool\030\001 \001(\tB)\372A&\n$cloudbuild.google" - + "apis.com/WorkerPool\022/\n\013create_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\0221\n\rcomplete" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp2" - + "\241+\n\nCloudBuild\022\256\002\n\013CreateBuild\0221.google." - + "devtools.cloudbuild.v1.CreateBuildReques" - + "t\032\035.google.longrunning.Operation\"\314\001\312A\037\n\005" - + "Build\022\026BuildOperationMetadata\332A\020project_" - + "id,build\202\323\344\223\002^\" /v1/projects/{project_id" - + "}/builds:\005buildZ3\"*/v1/{parent=projects/" - + "*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n\006pa" + + "ig\022n\n\027private_service_connect\030\005 \001(\0132H.go" + + "ogle.devtools.cloudbuild.v1.PrivatePoolV" + + "1Config.PrivateServiceConnectB\003\340A\005\032:\n\014Wo" + + "rkerConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014disk" + + "_size_gb\030\002 \001(\003\032\266\002\n\rNetworkConfig\022A\n\016peer" + + "ed_network\030\001 \001(\tB)\340A\005\340A\002\372A \n\036compute.goo" + + "gleapis.com/Network\022d\n\regress_option\030\002 \001" + + "(\0162M.google.devtools.cloudbuild.v1.Priva" + + "tePoolV1Config.NetworkConfig.EgressOptio" + + "n\022$\n\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"" + + "V\n\014EgressOption\022\035\n\031EGRESS_OPTION_UNSPECI" + + "FIED\020\000\022\024\n\020NO_PUBLIC_EGRESS\020\001\022\021\n\rPUBLIC_E" + + "GRESS\020\002\032\264\001\n\025PrivateServiceConnect\022O\n\022net" + + "work_attachment\030\001 \001(\tB3\340A\005\340A\002\372A*\n(comput" + + "e.googleapis.com/NetworkAttachment\022*\n\032pu" + + "blic_ip_address_disabled\030\002 \001(\010B\006\340A\002\340A\005\022\036" + + "\n\021route_all_traffic\030\003 \001(\010B\003\340A\005\"\320\001\n\027Creat" + + "eWorkerPoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\022C\n" + + "\013worker_pool\030\002 \001(\0132).google.devtools.clo" + + "udbuild.v1.WorkerPoolB\003\340A\002\022\036\n\016worker_poo" + + "l_id\030\003 \001(\tB\006\340A\005\340A\002\022\025\n\rvalidate_only\030\004 \001(" + + "\010\"R\n\024GetWorkerPoolRequest\022:\n\004name\030\001 \001(\tB" + + ",\340A\002\372A&\n$cloudbuild.googleapis.com/Worke" + + "rPool\"\226\001\n\027DeleteWorkerPoolRequest\022:\n\004nam" + + "e\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleapis.c" + + "om/WorkerPool\022\021\n\004etag\030\002 \001(\tB\003\340A\001\022\025\n\rallo" + + "w_missing\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\246" + + "\001\n\027UpdateWorkerPoolRequest\022C\n\013worker_poo" + + "l\030\001 \001(\0132).google.devtools.cloudbuild.v1." + + "WorkerPoolB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\022\025\n\rvalidate_onl" + + "y\030\004 \001(\010\"z\n\026ListWorkerPoolsRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"s\n\027ListWorkerPoolsResponse\022?" + + "\n\014worker_pools\030\001 \003(\0132).google.devtools.c" + + "loudbuild.v1.WorkerPool\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\307\001\n!CreateWorkerPoolOperationMe" + + "tadata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$cloudb" + + "uild.googleapis.com/WorkerPool\022/\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + + "1\n\rcomplete_time\030\003 \001(\0132\032.google.protobuf" + + ".Timestamp\"\307\001\n!UpdateWorkerPoolOperation" + + "Metadata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$clou" + + "dbuild.googleapis.com/WorkerPool\022/\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\0221\n\rcomplete_time\030\003 \001(\0132\032.google.protob" + + "uf.Timestamp\"\307\001\n!DeleteWorkerPoolOperati" + + "onMetadata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$cl" + + "oudbuild.googleapis.com/WorkerPool\022/\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\0221\n\rcomplete_time\030\003 \001(\0132\032.google.prot" + + "obuf.Timestamp2\241+\n\nCloudBuild\022\256\002\n\013Create" + + "Build\0221.google.devtools.cloudbuild.v1.Cr" + + "eateBuildRequest\032\035.google.longrunning.Op" + + "eration\"\314\001\312A\037\n\005Build\022\026BuildOperationMeta" + + "data\332A\020project_id,build\202\323\344\223\002^\" /v1/proje" + + "cts/{project_id}/builds:\005buildZ3\"*/v1/{p" + + "arent=projects/*/locations/*}/builds:\005bu" + + "ild\212\323\344\223\002-\022+\n\006parent\022!projects/*/location" + + "s/{location=*}\022\210\002\n\010GetBuild\022..google.dev" + + "tools.cloudbuild.v1.GetBuildRequest\032$.go" + + "ogle.devtools.cloudbuild.v1.Build\"\245\001\332A\rp" + + "roject_id,id\202\323\344\223\002U\022%/v1/projects/{projec" + + "t_id}/builds/{id}Z,\022*/v1/{name=projects/" + + "*/locations/*/builds/*}\212\323\344\223\0024\0222\n\004name\022*p" + + "rojects/*/locations/{location=*}/builds/" + + "*\022\221\002\n\nListBuilds\0220.google.devtools.cloud" + + "build.v1.ListBuildsRequest\0321.google.devt" + + "ools.cloudbuild.v1.ListBuildsResponse\"\235\001" + + "\332A\021project_id,filter\202\323\344\223\002P\022 /v1/projects" + + "/{project_id}/buildsZ,\022*/v1/{parent=proj" + + "ects/*/locations/*}/builds\212\323\344\223\002-\022+\n\006pare" + + "nt\022!projects/*/locations/{location=*}\022\242\002" + + "\n\013CancelBuild\0221.google.devtools.cloudbui" + + "ld.v1.CancelBuildRequest\032$.google.devtoo" + + "ls.cloudbuild.v1.Build\"\271\001\332A\rproject_id,i" + + "d\202\323\344\223\002i\",/v1/projects/{project_id}/build" + + "s/{id}:cancel:\001*Z6\"1/v1/{name=projects/*" + + "/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222" + + "\n\004name\022*projects/*/locations/{location=*" + + "}/builds/*\022\271\002\n\nRetryBuild\0220.google.devto" + + "ols.cloudbuild.v1.RetryBuildRequest\032\035.go" + + "ogle.longrunning.Operation\"\331\001\312A\037\n\005Build\022" + + "\026BuildOperationMetadata\332A\rproject_id,id\202" + + "\323\344\223\002g\"+/v1/projects/{project_id}/builds/" + + "{id}:retry:\001*Z5\"0/v1/{name=projects/*/lo" + + "cations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n\004na" + + "me\022*projects/*/locations/{location=*}/bu" + + "ilds/*\022\301\002\n\014ApproveBuild\0222.google.devtool" + + "s.cloudbuild.v1.ApproveBuildRequest\032\035.go" + + "ogle.longrunning.Operation\"\335\001\312A\037\n\005Build\022" + + "\026BuildOperationMetadata\332A\024name,approval_" + + "result\202\323\344\223\002d\"&/v1/{name=projects/*/build" + + "s/*}:approve:\001*Z7\"2/v1/{name=projects/*/" + + "locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222" + + "\n\004name\022*projects/*/locations/{location=*" + + "}/builds/*\022\262\002\n\022CreateBuildTrigger\0228.goog" + + "le.devtools.cloudbuild.v1.CreateBuildTri" + + "ggerRequest\032+.google.devtools.cloudbuild" + + ".v1.BuildTrigger\"\264\001\332A\022project_id,trigger" + + "\202\323\344\223\002f\"\"/v1/projects/{project_id}/trigge" + + "rs:\007triggerZ7\",/v1/{parent=projects/*/lo" + + "cations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n\006pa" + "rent\022!projects/*/locations/{location=*}\022" - + "\210\002\n\010GetBuild\022..google.devtools.cloudbuil" - + "d.v1.GetBuildRequest\032$.google.devtools.c" - + "loudbuild.v1.Build\"\245\001\332A\rproject_id,id\202\323\344" - + "\223\002U\022%/v1/projects/{project_id}/builds/{i" - + "d}Z,\022*/v1/{name=projects/*/locations/*/b" - + "uilds/*}\212\323\344\223\0024\0222\n\004name\022*projects/*/locat" - + "ions/{location=*}/builds/*\022\221\002\n\nListBuild" - + "s\0220.google.devtools.cloudbuild.v1.ListBu" - + "ildsRequest\0321.google.devtools.cloudbuild" - + ".v1.ListBuildsResponse\"\235\001\332A\021project_id,f" - + "ilter\202\323\344\223\002P\022 /v1/projects/{project_id}/b" - + "uildsZ,\022*/v1/{parent=projects/*/location" - + "s/*}/builds\212\323\344\223\002-\022+\n\006parent\022!projects/*/" - + "locations/{location=*}\022\242\002\n\013CancelBuild\0221" - + ".google.devtools.cloudbuild.v1.CancelBui" - + "ldRequest\032$.google.devtools.cloudbuild.v" - + "1.Build\"\271\001\332A\rproject_id,id\202\323\344\223\002i\",/v1/pr" - + "ojects/{project_id}/builds/{id}:cancel:\001" - + "*Z6\"1/v1/{name=projects/*/locations/*/bu" - + "ilds/*}:cancel:\001*\212\323\344\223\0024\0222\n\004name\022*project" - + "s/*/locations/{location=*}/builds/*\022\271\002\n\n" - + "RetryBuild\0220.google.devtools.cloudbuild." - + "v1.RetryBuildRequest\032\035.google.longrunnin" - + "g.Operation\"\331\001\312A\037\n\005Build\022\026BuildOperation" - + "Metadata\332A\rproject_id,id\202\323\344\223\002g\"+/v1/proj" - + "ects/{project_id}/builds/{id}:retry:\001*Z5" - + "\"0/v1/{name=projects/*/locations/*/build" - + "s/*}:retry:\001*\212\323\344\223\0024\0222\n\004name\022*projects/*/" - + "locations/{location=*}/builds/*\022\301\002\n\014Appr" - + "oveBuild\0222.google.devtools.cloudbuild.v1" - + ".ApproveBuildRequest\032\035.google.longrunnin" - + "g.Operation\"\335\001\312A\037\n\005Build\022\026BuildOperation" - + "Metadata\332A\024name,approval_result\202\323\344\223\002d\"&/" - + "v1/{name=projects/*/builds/*}:approve:\001*" - + "Z7\"2/v1/{name=projects/*/locations/*/bui" - + "lds/*}:approve:\001*\212\323\344\223\0024\0222\n\004name\022*project" - + "s/*/locations/{location=*}/builds/*\022\262\002\n\022" - + "CreateBuildTrigger\0228.google.devtools.clo" - + "udbuild.v1.CreateBuildTriggerRequest\032+.g" - + "oogle.devtools.cloudbuild.v1.BuildTrigge" - + "r\"\264\001\332A\022project_id,trigger\202\323\344\223\002f\"\"/v1/pro" - + "jects/{project_id}/triggers:\007triggerZ7\"," - + "/v1/{parent=projects/*/locations/*}/trig" - + "gers:\007trigger\212\323\344\223\002-\022+\n\006parent\022!projects/" - + "*/locations/{location=*}\022\263\002\n\017GetBuildTri" - + "gger\0225.google.devtools.cloudbuild.v1.Get" + + "\263\002\n\017GetBuildTrigger\0225.google.devtools.cl" + + "oudbuild.v1.GetBuildTriggerRequest\032+.goo" + + "gle.devtools.cloudbuild.v1.BuildTrigger\"" + + "\273\001\332A\025project_id,trigger_id\202\323\344\223\002a\022//v1/pr" + + "ojects/{project_id}/triggers/{trigger_id" + + "}Z.\022,/v1/{name=projects/*/locations/*/tr" + + "iggers/*}\212\323\344\223\0026\0224\n\004name\022,projects/*/loca" + + "tions/{location=*}/triggers/*\022\243\002\n\021ListBu" + + "ildTriggers\0227.google.devtools.cloudbuild" + + ".v1.ListBuildTriggersRequest\0328.google.de" + + "vtools.cloudbuild.v1.ListBuildTriggersRe" + + "sponse\"\232\001\332A\nproject_id\202\323\344\223\002T\022\"/v1/projec" + + "ts/{project_id}/triggersZ.\022,/v1/{parent=" + + "projects/*/locations/*}/triggers\212\323\344\223\002-\022+" + + "\n\006parent\022!projects/*/locations/{location" + + "=*}\022\244\002\n\022DeleteBuildTrigger\0228.google.devt" + + "ools.cloudbuild.v1.DeleteBuildTriggerReq" + + "uest\032\026.google.protobuf.Empty\"\273\001\332A\025projec" + + "t_id,trigger_id\202\323\344\223\002a*//v1/projects/{pro" + + "ject_id}/triggers/{trigger_id}Z.*,/v1/{n" + + "ame=projects/*/locations/*/triggers/*}\212\323" + + "\344\223\0026\0224\n\004name\022,projects/*/locations/{loca" + + "tion=*}/triggers/*\022\366\002\n\022UpdateBuildTrigge" + + "r\0228.google.devtools.cloudbuild.v1.Update" + "BuildTriggerRequest\032+.google.devtools.cl" - + "oudbuild.v1.BuildTrigger\"\273\001\332A\025project_id" - + ",trigger_id\202\323\344\223\002a\022//v1/projects/{project" - + "_id}/triggers/{trigger_id}Z.\022,/v1/{name=" - + "projects/*/locations/*/triggers/*}\212\323\344\223\0026" - + "\0224\n\004name\022,projects/*/locations/{location" - + "=*}/triggers/*\022\243\002\n\021ListBuildTriggers\0227.g" - + "oogle.devtools.cloudbuild.v1.ListBuildTr" - + "iggersRequest\0328.google.devtools.cloudbui" - + "ld.v1.ListBuildTriggersResponse\"\232\001\332A\npro" - + "ject_id\202\323\344\223\002T\022\"/v1/projects/{project_id}" - + "/triggersZ.\022,/v1/{parent=projects/*/loca" - + "tions/*}/triggers\212\323\344\223\002-\022+\n\006parent\022!proje" - + "cts/*/locations/{location=*}\022\244\002\n\022DeleteB" - + "uildTrigger\0228.google.devtools.cloudbuild" - + ".v1.DeleteBuildTriggerRequest\032\026.google.p" - + "rotobuf.Empty\"\273\001\332A\025project_id,trigger_id" - + "\202\323\344\223\002a*//v1/projects/{project_id}/trigge" - + "rs/{trigger_id}Z.*,/v1/{name=projects/*/" - + "locations/*/triggers/*}\212\323\344\223\0026\0224\n\004name\022,p" - + "rojects/*/locations/{location=*}/trigger" - + "s/*\022\366\002\n\022UpdateBuildTrigger\0228.google.devt" - + "ools.cloudbuild.v1.UpdateBuildTriggerReq" - + "uest\032+.google.devtools.cloudbuild.v1.Bui" - + "ldTrigger\"\370\001\332A\035project_id,trigger_id,tri" - + "gger\202\323\344\223\002\204\0012//v1/projects/{project_id}/t" - + "riggers/{trigger_id}:\007triggerZH2=/v1/{tr" - + "igger.resource_name=projects/*/locations" - + "/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n\025trigger" - + ".resource_name\022,projects/*/locations/{lo" - + "cation=*}/triggers/*\022\341\002\n\017RunBuildTrigger" - + "\0225.google.devtools.cloudbuild.v1.RunBuil" - + "dTriggerRequest\032\035.google.longrunning.Ope" - + "ration\"\367\001\312A\037\n\005Build\022\026BuildOperationMetad" - + "ata\332A\034project_id,trigger_id,source\202\323\344\223\002t" - + "\"3/v1/projects/{project_id}/triggers/{tr" - + "igger_id}:run:\006sourceZ5\"0/v1/{name=proje" - + "cts/*/locations/*/triggers/*}:run:\001*\212\323\344\223" - + "\0026\0224\n\004name\022,projects/*/locations/{locati" - + "on=*}/triggers/*\022\225\002\n\025ReceiveTriggerWebho" - + "ok\022;.google.devtools.cloudbuild.v1.Recei" - + "veTriggerWebhookRequest\032<.google.devtool" - + "s.cloudbuild.v1.ReceiveTriggerWebhookRes" - + "ponse\"\200\001\202\323\344\223\002z\"4/v1/projects/{project_id" - + "}/triggers/{trigger}:webhook:\004bodyZ<\"4/v" - + "1/{name=projects/*/locations/*/triggers/" - + "*}:webhook:\004body\022\271\002\n\020CreateWorkerPool\0226." - + "google.devtools.cloudbuild.v1.CreateWork" - + "erPoolRequest\032\035.google.longrunning.Opera" - + "tion\"\315\001\312A/\n\nWorkerPool\022!CreateWorkerPool" - + "OperationMetadata\332A!parent,worker_pool,w" - + "orker_pool_id\202\323\344\223\002>\"//v1/{parent=project" - + "s/*/locations/*}/workerPools:\013worker_poo" - + "l\212\323\344\223\002-\022+\n\006parent\022!projects/*/locations/" - + "{location=*}\022\356\001\n\rGetWorkerPool\0223.google." - + "devtools.cloudbuild.v1.GetWorkerPoolRequ" - + "est\032).google.devtools.cloudbuild.v1.Work" - + "erPool\"}\332A\004name\202\323\344\223\0021\022//v1/{name=project" - + "s/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n\004" - + "name\022/projects/*/locations/{location=*}/" - + "workerPools/*\022\246\002\n\020DeleteWorkerPool\0226.goo" - + "gle.devtools.cloudbuild.v1.DeleteWorkerP" - + "oolRequest\032\035.google.longrunning.Operatio" - + "n\"\272\001\312A:\n\025google.protobuf.Empty\022!DeleteWo" - + "rkerPoolOperationMetadata\332A\004name\202\323\344\223\0021*/" - + "/v1/{name=projects/*/locations/*/workerP" - + "ools/*}\212\323\344\223\0029\0227\n\004name\022/projects/*/locati" - + "ons/{location=*}/workerPools/*\022\323\002\n\020Updat" - + "eWorkerPool\0226.google.devtools.cloudbuild" - + ".v1.UpdateWorkerPoolRequest\032\035.google.lon" - + "grunning.Operation\"\347\001\312A/\n\nWorkerPool\022!Up" - + "dateWorkerPoolOperationMetadata\332A\027worker" - + "_pool,update_mask\202\323\344\223\002J2;/v1/{worker_poo" - + "l.name=projects/*/locations/*/workerPool" - + "s/*}:\013worker_pool\212\323\344\223\002E\022C\n\020worker_pool.n" - + "ame\022/projects/*/locations/{location=*}/w" - + "orkerPools/*\022\365\001\n\017ListWorkerPools\0225.googl" - + "e.devtools.cloudbuild.v1.ListWorkerPools" - + "Request\0326.google.devtools.cloudbuild.v1." - + "ListWorkerPoolsResponse\"s\332A\006parent\202\323\344\223\0021" - + "\022//v1/{parent=projects/*/locations/*}/wo" - + "rkerPools\212\323\344\223\002-\022+\n\006parent\022!projects/*/lo" - + "cations/{location=*}\032M\312A\031cloudbuild.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\223\010\n\030com.google.cloud" - + "build.v1P\001ZAcloud.google.com/go/cloudbui" - + "ld/apiv1/v2/cloudbuildpb;cloudbuildpb\242\002\003" - + "GCB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Googl" - + "e\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build:" - + ":V1\352AN\n\036compute.googleapis.com/Network\022," - + "projects/{project}/global/networks/{netw" - + "ork}\352AY\n!iam.googleapis.com/ServiceAccou" - + "nt\0224projects/{project}/serviceAccounts/{" - + "service_account}\352AJ\n#secretmanager.googl" - + "eapis.com/Secret\022#projects/{project}/sec" - + "rets/{secret}\352Ad\n*secretmanager.googleap" - + "is.com/SecretVersion\0226projects/{project}" - + "/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Membership\022Bproje" - + "cts/{project}/locations/{location}/membe" - + "rships/{cluster_name}\352Ap\n!cloudkms.googl" - + "eapis.com/CryptoKey\022Kprojects/{project}/" - + "locations/{location}/keyRings/{keyring}/" - + "cryptoKeys/{key}\352AU\n\"pubsub.googleapis.c" - + "om/Subscription\022/projects/{project}/subs" - + "criptions/{subscription}\352A@\n\033pubsub.goog" - + "leapis.com/Topic\022!projects/{project}/top" - + "ics/{topic}\352A\202\001\n$cloudbuild.googleapis.c" - + "om/Repository\022Zprojects/{project}/locati" - + "ons/{location}/connections/{connection}/" - + "repositories/{repository}b\006proto3" + + "oudbuild.v1.BuildTrigger\"\370\001\332A\035project_id" + + ",trigger_id,trigger\202\323\344\223\002\204\0012//v1/projects" + + "/{project_id}/triggers/{trigger_id}:\007tri" + + "ggerZH2=/v1/{trigger.resource_name=proje" + + "cts/*/locations/*/triggers/*}:\007trigger\212\323" + + "\344\223\002G\022E\n\025trigger.resource_name\022,projects/" + + "*/locations/{location=*}/triggers/*\022\341\002\n\017" + + "RunBuildTrigger\0225.google.devtools.cloudb" + + "uild.v1.RunBuildTriggerRequest\032\035.google." + + "longrunning.Operation\"\367\001\312A\037\n\005Build\022\026Buil" + + "dOperationMetadata\332A\034project_id,trigger_" + + "id,source\202\323\344\223\002t\"3/v1/projects/{project_i" + + "d}/triggers/{trigger_id}:run:\006sourceZ5\"0" + + "/v1/{name=projects/*/locations/*/trigger" + + "s/*}:run:\001*\212\323\344\223\0026\0224\n\004name\022,projects/*/lo" + + "cations/{location=*}/triggers/*\022\225\002\n\025Rece" + + "iveTriggerWebhook\022;.google.devtools.clou" + + "dbuild.v1.ReceiveTriggerWebhookRequest\032<" + + ".google.devtools.cloudbuild.v1.ReceiveTr" + + "iggerWebhookResponse\"\200\001\202\323\344\223\002z\"4/v1/proje" + + "cts/{project_id}/triggers/{trigger}:webh" + + "ook:\004bodyZ<\"4/v1/{name=projects/*/locati" + + "ons/*/triggers/*}:webhook:\004body\022\271\002\n\020Crea" + + "teWorkerPool\0226.google.devtools.cloudbuil" + + "d.v1.CreateWorkerPoolRequest\032\035.google.lo" + + "ngrunning.Operation\"\315\001\312A/\n\nWorkerPool\022!C" + + "reateWorkerPoolOperationMetadata\332A!paren" + + "t,worker_pool,worker_pool_id\202\323\344\223\002>\"//v1/" + + "{parent=projects/*/locations/*}/workerPo" + + "ols:\013worker_pool\212\323\344\223\002-\022+\n\006parent\022!projec" + + "ts/*/locations/{location=*}\022\356\001\n\rGetWorke" + + "rPool\0223.google.devtools.cloudbuild.v1.Ge" + + "tWorkerPoolRequest\032).google.devtools.clo" + + "udbuild.v1.WorkerPool\"}\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/workerPoo" + + "ls/*}\212\323\344\223\0029\0227\n\004name\022/projects/*/location" + + "s/{location=*}/workerPools/*\022\246\002\n\020DeleteW" + + "orkerPool\0226.google.devtools.cloudbuild.v" + + "1.DeleteWorkerPoolRequest\032\035.google.longr" + + "unning.Operation\"\272\001\312A:\n\025google.protobuf." + + "Empty\022!DeleteWorkerPoolOperationMetadata" + + "\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/loca" + + "tions/*/workerPools/*}\212\323\344\223\0029\0227\n\004name\022/pr" + + "ojects/*/locations/{location=*}/workerPo" + + "ols/*\022\323\002\n\020UpdateWorkerPool\0226.google.devt" + + "ools.cloudbuild.v1.UpdateWorkerPoolReque" + + "st\032\035.google.longrunning.Operation\"\347\001\312A/\n" + + "\nWorkerPool\022!UpdateWorkerPoolOperationMe" + + "tadata\332A\027worker_pool,update_mask\202\323\344\223\002J2;" + + "/v1/{worker_pool.name=projects/*/locatio" + + "ns/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C" + + "\n\020worker_pool.name\022/projects/*/locations" + + "/{location=*}/workerPools/*\022\365\001\n\017ListWork" + + "erPools\0225.google.devtools.cloudbuild.v1." + + "ListWorkerPoolsRequest\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\006parent" + + "\022!projects/*/locations/{location=*}\032M\312A\031" + + "cloudbuild.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\214\t\n\030c" + + "om.google.cloudbuild.v1P\001ZAcloud.google." + + "com/go/cloudbuild/apiv1/v2/cloudbuildpb;" + + "cloudbuildpb\242\002\003GCB\252\002\032Google.Cloud.CloudB" + + "uild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google" + + "::Cloud::Build::V1\352AN\n\036compute.googleapi" + + "s.com/Network\022,projects/{project}/global" + + "/networks/{network}\352AY\n!iam.googleapis.c" + + "om/ServiceAccount\0224projects/{project}/se" + + "rviceAccounts/{service_account}\352AJ\n#secr" + + "etmanager.googleapis.com/Secret\022#project" + + "s/{project}/secrets/{secret}\352Ad\n*secretm" + + "anager.googleapis.com/SecretVersion\0226pro" + + "jects/{project}/secrets/{secret}/version" + + "s/{version}\352Af\n gkehub.googleapis.com/Me" + + "mbership\022Bprojects/{project}/locations/{" + + "location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kproj" + + "ects/{project}/locations/{location}/keyR" + + "ings/{keyring}/cryptoKeys/{key}\352AU\n\"pubs" + + "ub.googleapis.com/Subscription\022/projects" + + "/{project}/subscriptions/{subscription}\352" + + "A@\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\352Av\n(compute.g" + + "oogleapis.com/NetworkAttachment\022Jproject" + + "s/{project}/regions/{region}/networkAtta" + + "chments/{networkattachment}\352A\202\001\n$cloudbu" + + "ild.googleapis.com/Repository\022Zprojects/" + + "{project}/locations/{location}/connectio" + + "ns/{connection}/repositories/{repository" + + "}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1749,7 +1764,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor, new java.lang.String[] { - "WorkerConfig", "NetworkConfig", + "WorkerConfig", "NetworkConfig", "PrivateServiceConnect", }); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_WorkerConfig_descriptor = internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor @@ -1771,6 +1786,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "PeeredNetwork", "EgressOption", "PeeredNetworkIpRange", }); + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor = + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor + .getNestedTypes() + .get(2); + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor, + new java.lang.String[] { + "NetworkAttachment", "PublicIpAddressDisabled", "RouteAllTraffic", + }); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_fieldAccessorTable = 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 42ae2c383491..dc06ef2c49ea 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 @@ -126,7 +126,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=1876 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The installationId. */ @java.lang.Override @@ -845,7 +845,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=1876 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The installationId. */ @java.lang.Override @@ -863,7 +863,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=1876 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @param value The installationId to set. * @return This builder for chaining. */ @@ -885,7 +885,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=1876 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @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 1671dd5db74a..7f5040ab38bb 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 @@ -34,7 +34,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=1876 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The installationId. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java index 4400b556b18e..5f574c62752d 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java @@ -2225,6 +2225,1009 @@ public com.google.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig getDefaultInst } } + public interface PrivateServiceConnectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Immutable. The network attachment that the worker network
+     * interface is peered to. Must be in the format
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * The region of network attachment must be the same as the worker pool.
+     * See [Network
+     * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + java.lang.String getNetworkAttachment(); + /** + * + * + *
+     * Required. Immutable. The network attachment that the worker network
+     * interface is peered to. Must be in the format
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * The region of network attachment must be the same as the worker pool.
+     * See [Network
+     * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + com.google.protobuf.ByteString getNetworkAttachmentBytes(); + + /** + * + * + *
+     * Required. Immutable. Disable public IP on the primary network interface.
+     *
+     * If true, workers are created without any public address, which prevents
+     * network egress to public IPs unless a network proxy is configured.
+     * If false, workers are created with a public address which allows for
+     * public internet egress. The public address only applies to traffic
+     * through the primary network interface.
+     * If `route_all_traffic` is set to true, all traffic will go through the
+     * non-primary network interface, this boolean has no effect.
+     * 
+ * + * + * bool public_ip_address_disabled = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The publicIpAddressDisabled. + */ + boolean getPublicIpAddressDisabled(); + + /** + * + * + *
+     * Immutable. Route all traffic through PSC interface. Enable this if you
+     * want full control of traffic in the private pool. Configure Cloud NAT for
+     * the subnet of network attachment if you need to access public Internet.
+     *
+     * If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and
+     * 192.168.0.0/16 through PSC interface.
+     * 
+ * + * bool route_all_traffic = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The routeAllTraffic. + */ + boolean getRouteAllTraffic(); + } + /** + * + * + *
+   * Defines the Private Service Connect network configuration for the pool.
+   * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect} + */ + public static final class PrivateServiceConnect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) + PrivateServiceConnectOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateServiceConnect.newBuilder() to construct. + private PrivateServiceConnect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateServiceConnect() { + networkAttachment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateServiceConnect(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.class, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder.class); + } + + public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachment_ = ""; + /** + * + * + *
+     * Required. Immutable. The network attachment that the worker network
+     * interface is peered to. Must be in the format
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * The region of network attachment must be the same as the worker pool.
+     * See [Network
+     * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + @java.lang.Override + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + 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(); + networkAttachment_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Immutable. The network attachment that the worker network
+     * interface is peered to. Must be in the format
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * The region of network attachment must be the same as the worker pool.
+     * See [Network
+     * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_IP_ADDRESS_DISABLED_FIELD_NUMBER = 2; + private boolean publicIpAddressDisabled_ = false; + /** + * + * + *
+     * Required. Immutable. Disable public IP on the primary network interface.
+     *
+     * If true, workers are created without any public address, which prevents
+     * network egress to public IPs unless a network proxy is configured.
+     * If false, workers are created with a public address which allows for
+     * public internet egress. The public address only applies to traffic
+     * through the primary network interface.
+     * If `route_all_traffic` is set to true, all traffic will go through the
+     * non-primary network interface, this boolean has no effect.
+     * 
+ * + * + * bool public_ip_address_disabled = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The publicIpAddressDisabled. + */ + @java.lang.Override + public boolean getPublicIpAddressDisabled() { + return publicIpAddressDisabled_; + } + + public static final int ROUTE_ALL_TRAFFIC_FIELD_NUMBER = 3; + private boolean routeAllTraffic_ = false; + /** + * + * + *
+     * Immutable. Route all traffic through PSC interface. Enable this if you
+     * want full control of traffic in the private pool. Configure Cloud NAT for
+     * the subnet of network attachment if you need to access public Internet.
+     *
+     * If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and
+     * 192.168.0.0/16 through PSC interface.
+     * 
+ * + * bool route_all_traffic = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The routeAllTraffic. + */ + @java.lang.Override + public boolean getRouteAllTraffic() { + return routeAllTraffic_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkAttachment_); + } + if (publicIpAddressDisabled_ != false) { + output.writeBool(2, publicIpAddressDisabled_); + } + if (routeAllTraffic_ != false) { + output.writeBool(3, routeAllTraffic_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkAttachment_); + } + if (publicIpAddressDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, publicIpAddressDisabled_); + } + if (routeAllTraffic_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, routeAllTraffic_); + } + 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.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect other = + (com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) obj; + + if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false; + if (getPublicIpAddressDisabled() != other.getPublicIpAddressDisabled()) return false; + if (getRouteAllTraffic() != other.getRouteAllTraffic()) 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) + NETWORK_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachment().hashCode(); + hash = (37 * hash) + PUBLIC_IP_ADDRESS_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublicIpAddressDisabled()); + hash = (37 * hash) + ROUTE_ALL_TRAFFIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRouteAllTraffic()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect 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.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines the Private Service Connect network configuration for the pool.
+     * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.class, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder.class); + } + + // Construct using + // com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachment_ = ""; + publicIpAddressDisabled_ = false; + routeAllTraffic_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_PrivateServiceConnect_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + getDefaultInstanceForType() { + return com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect build() { + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect buildPartial() { + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect result = + new com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.publicIpAddressDisabled_ = publicIpAddressDisabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routeAllTraffic_ = routeAllTraffic_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) { + return mergeFrom( + (com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect other) { + if (other + == com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + .getDefaultInstance()) return this; + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPublicIpAddressDisabled() != false) { + setPublicIpAddressDisabled(other.getPublicIpAddressDisabled()); + } + if (other.getRouteAllTraffic() != false) { + setRouteAllTraffic(other.getRouteAllTraffic()); + } + 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: + { + networkAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + publicIpAddressDisabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + routeAllTraffic_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object networkAttachment_ = ""; + /** + * + * + *
+       * Required. Immutable. The network attachment that the worker network
+       * interface is peered to. Must be in the format
+       * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+       * The region of network attachment must be the same as the worker pool.
+       * See [Network
+       * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+       * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The network attachment that the worker network
+       * interface is peered to. Must be in the format
+       * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+       * The region of network attachment must be the same as the worker pool.
+       * See [Network
+       * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+       * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The network attachment that the worker network
+       * interface is peered to. Must be in the format
+       * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+       * The region of network attachment must be the same as the worker pool.
+       * See [Network
+       * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+       * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The network attachment that the worker network
+       * interface is peered to. Must be in the format
+       * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+       * The region of network attachment must be the same as the worker pool.
+       * See [Network
+       * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+       * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The network attachment that the worker network
+       * interface is peered to. Must be in the format
+       * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+       * The region of network attachment must be the same as the worker pool.
+       * See [Network
+       * Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)
+       * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean publicIpAddressDisabled_; + /** + * + * + *
+       * Required. Immutable. Disable public IP on the primary network interface.
+       *
+       * If true, workers are created without any public address, which prevents
+       * network egress to public IPs unless a network proxy is configured.
+       * If false, workers are created with a public address which allows for
+       * public internet egress. The public address only applies to traffic
+       * through the primary network interface.
+       * If `route_all_traffic` is set to true, all traffic will go through the
+       * non-primary network interface, this boolean has no effect.
+       * 
+ * + * + * bool public_ip_address_disabled = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The publicIpAddressDisabled. + */ + @java.lang.Override + public boolean getPublicIpAddressDisabled() { + return publicIpAddressDisabled_; + } + /** + * + * + *
+       * Required. Immutable. Disable public IP on the primary network interface.
+       *
+       * If true, workers are created without any public address, which prevents
+       * network egress to public IPs unless a network proxy is configured.
+       * If false, workers are created with a public address which allows for
+       * public internet egress. The public address only applies to traffic
+       * through the primary network interface.
+       * If `route_all_traffic` is set to true, all traffic will go through the
+       * non-primary network interface, this boolean has no effect.
+       * 
+ * + * + * bool public_ip_address_disabled = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The publicIpAddressDisabled to set. + * @return This builder for chaining. + */ + public Builder setPublicIpAddressDisabled(boolean value) { + + publicIpAddressDisabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. Disable public IP on the primary network interface.
+       *
+       * If true, workers are created without any public address, which prevents
+       * network egress to public IPs unless a network proxy is configured.
+       * If false, workers are created with a public address which allows for
+       * public internet egress. The public address only applies to traffic
+       * through the primary network interface.
+       * If `route_all_traffic` is set to true, all traffic will go through the
+       * non-primary network interface, this boolean has no effect.
+       * 
+ * + * + * bool public_ip_address_disabled = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPublicIpAddressDisabled() { + bitField0_ = (bitField0_ & ~0x00000002); + publicIpAddressDisabled_ = false; + onChanged(); + return this; + } + + private boolean routeAllTraffic_; + /** + * + * + *
+       * Immutable. Route all traffic through PSC interface. Enable this if you
+       * want full control of traffic in the private pool. Configure Cloud NAT for
+       * the subnet of network attachment if you need to access public Internet.
+       *
+       * If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and
+       * 192.168.0.0/16 through PSC interface.
+       * 
+ * + * bool route_all_traffic = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The routeAllTraffic. + */ + @java.lang.Override + public boolean getRouteAllTraffic() { + return routeAllTraffic_; + } + /** + * + * + *
+       * Immutable. Route all traffic through PSC interface. Enable this if you
+       * want full control of traffic in the private pool. Configure Cloud NAT for
+       * the subnet of network attachment if you need to access public Internet.
+       *
+       * If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and
+       * 192.168.0.0/16 through PSC interface.
+       * 
+ * + * bool route_all_traffic = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The routeAllTraffic to set. + * @return This builder for chaining. + */ + public Builder setRouteAllTraffic(boolean value) { + + routeAllTraffic_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. Route all traffic through PSC interface. Enable this if you
+       * want full control of traffic in the private pool. Configure Cloud NAT for
+       * the subnet of network attachment if you need to access public Internet.
+       *
+       * If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and
+       * 192.168.0.0/16 through PSC interface.
+       * 
+ * + * bool route_all_traffic = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearRouteAllTraffic() { + bitField0_ = (bitField0_ & ~0x00000004); + routeAllTraffic_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect) + private static final com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect(); + } + + public static com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateServiceConnect 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.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int WORKER_CONFIG_FIELD_NUMBER = 1; private com.google.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig workerConfig_; @@ -2331,6 +3334,64 @@ public com.google.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig getNetworkConf : networkConfig_; } + public static final int PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 5; + private com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect privateServiceConnect_; + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the privateServiceConnect field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnect() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The privateServiceConnect. + */ + @java.lang.Override + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + getPrivateServiceConnect() { + return privateServiceConnect_ == null + ? com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.getDefaultInstance() + : privateServiceConnect_; + } + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder + getPrivateServiceConnectOrBuilder() { + return privateServiceConnect_ == null + ? com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.getDefaultInstance() + : privateServiceConnect_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2351,6 +3412,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNetworkConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getPrivateServiceConnect()); + } getUnknownFields().writeTo(output); } @@ -2366,6 +3430,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNetworkConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPrivateServiceConnect()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2390,6 +3458,10 @@ public boolean equals(final java.lang.Object obj) { if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; } + if (hasPrivateServiceConnect() != other.hasPrivateServiceConnect()) return false; + if (hasPrivateServiceConnect()) { + if (!getPrivateServiceConnect().equals(other.getPrivateServiceConnect())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2409,6 +3481,10 @@ public int hashCode() { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); } + if (hasPrivateServiceConnect()) { + hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateServiceConnect().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2551,6 +3627,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWorkerConfigFieldBuilder(); getNetworkConfigFieldBuilder(); + getPrivateServiceConnectFieldBuilder(); } } @@ -2568,6 +3645,11 @@ public Builder clear() { networkConfigBuilder_.dispose(); networkConfigBuilder_ = null; } + privateServiceConnect_ = null; + if (privateServiceConnectBuilder_ != null) { + privateServiceConnectBuilder_.dispose(); + privateServiceConnectBuilder_ = null; + } return this; } @@ -2615,6 +3697,13 @@ private void buildPartial0(com.google.cloudbuild.v1.PrivatePoolV1Config result) networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.privateServiceConnect_ = + privateServiceConnectBuilder_ == null + ? privateServiceConnect_ + : privateServiceConnectBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -2669,6 +3758,9 @@ public Builder mergeFrom(com.google.cloudbuild.v1.PrivatePoolV1Config other) { if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } + if (other.hasPrivateServiceConnect()) { + mergePrivateServiceConnect(other.getPrivateServiceConnect()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2707,6 +3799,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 42: + { + input.readMessage( + getPrivateServiceConnectFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3127,6 +4226,221 @@ public Builder clearNetworkConfig() { return networkConfigBuilder_; } + private com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + privateServiceConnect_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder> + privateServiceConnectBuilder_; + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the privateServiceConnect field is set. + */ + public boolean hasPrivateServiceConnect() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The privateServiceConnect. + */ + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + getPrivateServiceConnect() { + if (privateServiceConnectBuilder_ == null) { + return privateServiceConnect_ == null + ? com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + .getDefaultInstance() + : privateServiceConnect_; + } else { + return privateServiceConnectBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setPrivateServiceConnect( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect value) { + if (privateServiceConnectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateServiceConnect_ = value; + } else { + privateServiceConnectBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setPrivateServiceConnect( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder + builderForValue) { + if (privateServiceConnectBuilder_ == null) { + privateServiceConnect_ = builderForValue.build(); + } else { + privateServiceConnectBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergePrivateServiceConnect( + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect value) { + if (privateServiceConnectBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && privateServiceConnect_ != null + && privateServiceConnect_ + != com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + .getDefaultInstance()) { + getPrivateServiceConnectBuilder().mergeFrom(value); + } else { + privateServiceConnect_ = value; + } + } else { + privateServiceConnectBuilder_.mergeFrom(value); + } + if (privateServiceConnect_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearPrivateServiceConnect() { + bitField0_ = (bitField0_ & ~0x00000004); + privateServiceConnect_ = null; + if (privateServiceConnectBuilder_ != null) { + privateServiceConnectBuilder_.dispose(); + privateServiceConnectBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder + getPrivateServiceConnectBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPrivateServiceConnectFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder + getPrivateServiceConnectOrBuilder() { + if (privateServiceConnectBuilder_ != null) { + return privateServiceConnectBuilder_.getMessageOrBuilder(); + } else { + return privateServiceConnect_ == null + ? com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect + .getDefaultInstance() + : privateServiceConnect_; + } + } + /** + * + * + *
+     * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder> + getPrivateServiceConnectFieldBuilder() { + if (privateServiceConnectBuilder_ == null) { + privateServiceConnectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect.Builder, + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder>( + getPrivateServiceConnect(), getParentForChildren(), isClean()); + privateServiceConnect_ = null; + } + return privateServiceConnectBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1ConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1ConfigOrBuilder.java index 7395127c7038..5e20c226dec1 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1ConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1ConfigOrBuilder.java @@ -96,4 +96,46 @@ public interface PrivatePoolV1ConfigOrBuilder *
*/ com.google.cloudbuild.v1.PrivatePoolV1Config.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the privateServiceConnect field is set. + */ + boolean hasPrivateServiceConnect(); + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The privateServiceConnect. + */ + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect getPrivateServiceConnect(); + /** + * + * + *
+   * Immutable. Private Service Connect(PSC) Network configuration for the pool.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnect private_service_connect = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectOrBuilder + getPrivateServiceConnectOrBuilder(); } 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 965d1c297b89..b288169fe7da 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 @@ -67,6 +67,10 @@ option (google.api.resource_definition) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" }; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/NetworkAttachment" + pattern: "projects/{project}/regions/{region}/networkAttachments/{networkattachment}" +}; option (google.api.resource_definition) = { type: "cloudbuild.googleapis.com/Repository" pattern: "projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}" @@ -2583,11 +2587,54 @@ message PrivatePoolV1Config { [(google.api.field_behavior) = IMMUTABLE]; } + // Defines the Private Service Connect network configuration for the pool. + message PrivateServiceConnect { + // Required. Immutable. The network attachment that the worker network + // interface is peered to. Must be in the format + // `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. + // The region of network attachment must be the same as the worker pool. + // See [Network + // Attachments](https://cloud.google.com/vpc/docs/about-network-attachments) + string network_attachment = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/NetworkAttachment" + } + ]; + + // Required. Immutable. Disable public IP on the primary network interface. + // + // If true, workers are created without any public address, which prevents + // network egress to public IPs unless a network proxy is configured. + // If false, workers are created with a public address which allows for + // public internet egress. The public address only applies to traffic + // through the primary network interface. + // If `route_all_traffic` is set to true, all traffic will go through the + // non-primary network interface, this boolean has no effect. + bool public_ip_address_disabled = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Immutable. Route all traffic through PSC interface. Enable this if you + // want full control of traffic in the private pool. Configure Cloud NAT for + // the subnet of network attachment if you need to access public Internet. + // + // If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and + // 192.168.0.0/16 through PSC interface. + bool route_all_traffic = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + // Machine configuration for the workers in the pool. WorkerConfig worker_config = 1; // Network configuration for the pool. NetworkConfig network_config = 2; + + // Immutable. Private Service Connect(PSC) Network configuration for the pool. + PrivateServiceConnect private_service_connect = 5 + [(google.api.field_behavior) = IMMUTABLE]; } // Request to create a new `WorkerPool`. diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateSetCredentialsProvider1.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2b75626c8605..000000000000 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.devtools.cloudbuild.v1.samples; - -// [START cloudbuild_v1_generated_CloudBuild_Create_SetCredentialsProvider1_sync] -import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; -import com.google.cloud.devtools.cloudbuild.v1.CloudBuildSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudBuildSettings cloudBuildSettings = CloudBuildSettings.newHttpJsonBuilder().build(); - CloudBuildClient cloudBuildClient = CloudBuildClient.create(cloudBuildSettings); - } -} -// [END cloudbuild_v1_generated_CloudBuild_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateUseHttpJsonTransport.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d6d22df98ff6 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_Create_UseHttpJsonTransport_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudBuildSettings cloudBuildSettings = CloudBuildSettings.newHttpJsonBuilder().build(); + CloudBuildClient cloudBuildClient = CloudBuildClient.create(cloudBuildSettings); + } +} +// [END cloudbuild_v1_generated_CloudBuild_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateSetCredentialsProvider1.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d655f762e894..000000000000 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.devtools.cloudbuild.v2.samples; - -// [START cloudbuild_v2_generated_RepositoryManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.devtools.cloudbuild.v2.RepositoryManagerClient; -import com.google.cloud.devtools.cloudbuild.v2.RepositoryManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RepositoryManagerSettings repositoryManagerSettings = - RepositoryManagerSettings.newHttpJsonBuilder().build(); - RepositoryManagerClient repositoryManagerClient = - RepositoryManagerClient.create(repositoryManagerSettings); - } -} -// [END cloudbuild_v2_generated_RepositoryManager_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateUseHttpJsonTransport.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bea79652fefe --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v2/repositorymanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v2.samples; + +// [START cloudbuild_v2_generated_RepositoryManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.devtools.cloudbuild.v2.RepositoryManagerClient; +import com.google.cloud.devtools.cloudbuild.v2.RepositoryManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RepositoryManagerSettings repositoryManagerSettings = + RepositoryManagerSettings.newHttpJsonBuilder().build(); + RepositoryManagerClient repositoryManagerClient = + RepositoryManagerClient.create(repositoryManagerSettings); + } +} +// [END cloudbuild_v2_generated_RepositoryManager_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 745c2579462d..449726a1a0f6 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.50.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json index cb5b59ceb023..602546293715 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.commerce.consumer.procurement.v1.AssignRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json index 22ae6a57dd51..d6cce7ee6dcd 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 62ba7a1693e8..000000000000 --- a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.commerce.consumer.procurement.v1.samples; - -// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; -import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConsumerProcurementServiceSettings consumerProcurementServiceSettings = - ConsumerProcurementServiceSettings.newHttpJsonBuilder().build(); - ConsumerProcurementServiceClient consumerProcurementServiceClient = - ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); - } -} -// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..58f106f34313 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + ConsumerProcurementServiceSettings.newHttpJsonBuilder().build(); + ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9fd61c82c3e7..000000000000 --- a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.commerce.consumer.procurement.v1.samples; - -// [START cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient; -import com.google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LicenseManagementServiceSettings licenseManagementServiceSettings = - LicenseManagementServiceSettings.newHttpJsonBuilder().build(); - LicenseManagementServiceClient licenseManagementServiceClient = - LicenseManagementServiceClient.create(licenseManagementServiceSettings); - } -} -// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0722f0783478 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/licensemanagementservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseManagementServiceSettings licenseManagementServiceSettings = + LicenseManagementServiceSettings.newHttpJsonBuilder().build(); + LicenseManagementServiceClient licenseManagementServiceClient = + LicenseManagementServiceClient.create(licenseManagementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0279afd5e65a..000000000000 --- a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.commerce.consumer.procurement.v1alpha1.samples; - -// [START cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClient; -import com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConsumerProcurementServiceSettings consumerProcurementServiceSettings = - ConsumerProcurementServiceSettings.newHttpJsonBuilder().build(); - ConsumerProcurementServiceClient consumerProcurementServiceClient = - ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); - } -} -// [END cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6bc3cd911a9c --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.commerce.consumer.procurement.v1alpha1.samples; + +// [START cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + ConsumerProcurementServiceSettings.newHttpJsonBuilder().build(); + ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 31ca790cf39f..6cf8fe6121da 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.16.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1/reflect-config.json b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1/reflect-config.json index 8d9fa4d25dc8..d5c5acd0c576 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1/reflect-config.json +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudcontrolspartner.v1.AccessApprovalRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json index 1a20e820f98b..2d922c4d63ea 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cec74492350d..000000000000 --- a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.cloudcontrolspartner.v1.samples; - -// [START cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient; -import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings = - CloudControlsPartnerCoreSettings.newHttpJsonBuilder().build(); - CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = - CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings); - } -} -// [END cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8f5a51aecb3f --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1.samples; + +// [START cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings = + CloudControlsPartnerCoreSettings.newHttpJsonBuilder().build(); + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings); + } +} +// [END cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c1881d34c1fe..000000000000 --- a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.cloudcontrolspartner.v1.samples; - -// [START cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_Create_SetCredentialsProvider1_sync] -import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringClient; -import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudControlsPartnerMonitoringSettings cloudControlsPartnerMonitoringSettings = - CloudControlsPartnerMonitoringSettings.newHttpJsonBuilder().build(); - CloudControlsPartnerMonitoringClient cloudControlsPartnerMonitoringClient = - CloudControlsPartnerMonitoringClient.create(cloudControlsPartnerMonitoringSettings); - } -} -// [END cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4ea8d587f0c9 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1.samples; + +// [START cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringClient; +import com.google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudControlsPartnerMonitoringSettings cloudControlsPartnerMonitoringSettings = + CloudControlsPartnerMonitoringSettings.newHttpJsonBuilder().build(); + CloudControlsPartnerMonitoringClient cloudControlsPartnerMonitoringClient = + CloudControlsPartnerMonitoringClient.create(cloudControlsPartnerMonitoringSettings); + } +} +// [END cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e0a7cc730202..000000000000 --- a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.cloudcontrolspartner.v1beta.samples; - -// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; -import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings = - CloudControlsPartnerCoreSettings.newHttpJsonBuilder().build(); - CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = - CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings); - } -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2c06453f4146 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings = + CloudControlsPartnerCoreSettings.newHttpJsonBuilder().build(); + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings); + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e5d431dfb9ce..000000000000 --- a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.cloudcontrolspartner.v1beta.samples; - -// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_Create_SetCredentialsProvider1_sync] -import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringClient; -import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudControlsPartnerMonitoringSettings cloudControlsPartnerMonitoringSettings = - CloudControlsPartnerMonitoringSettings.newHttpJsonBuilder().build(); - CloudControlsPartnerMonitoringClient cloudControlsPartnerMonitoringClient = - CloudControlsPartnerMonitoringClient.create(cloudControlsPartnerMonitoringSettings); - } -} -// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3cf6f005e7ce --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnermonitoring/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudControlsPartnerMonitoringSettings cloudControlsPartnerMonitoringSettings = + CloudControlsPartnerMonitoringSettings.newHttpJsonBuilder().build(); + CloudControlsPartnerMonitoringClient cloudControlsPartnerMonitoringClient = + CloudControlsPartnerMonitoringClient.create(cloudControlsPartnerMonitoringSettings); + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 7bb8900a2193..3cbe2168bc2d 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.20.0" ``` - ## Authentication @@ -198,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/resources/META-INF/native-image/com.google.api.cloudquotas.v1/reflect-config.json b/java-cloudquotas/google-cloud-cloudquotas/src/main/resources/META-INF/native-image/com.google.api.cloudquotas.v1/reflect-config.json index 93339aa9a749..d5b315d62b2d 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/resources/META-INF/native-image/com.google.api.cloudquotas.v1/reflect-config.json +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/resources/META-INF/native-image/com.google.api.cloudquotas.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.cloudquotas.v1.CreateQuotaPreferenceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateSetCredentialsProvider1.java b/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e06e0372090c..000000000000 --- a/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.cloudquotas.v1.samples; - -// [START cloudquotas_v1_generated_CloudQuotas_Create_SetCredentialsProvider1_sync] -import com.google.api.cloudquotas.v1.CloudQuotasClient; -import com.google.api.cloudquotas.v1.CloudQuotasSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudQuotasSettings cloudQuotasSettings = CloudQuotasSettings.newHttpJsonBuilder().build(); - CloudQuotasClient cloudQuotasClient = CloudQuotasClient.create(cloudQuotasSettings); - } -} -// [END cloudquotas_v1_generated_CloudQuotas_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateUseHttpJsonTransport.java b/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5b2d174d1039 --- /dev/null +++ b/java-cloudquotas/samples/snippets/generated/com/google/api/cloudquotas/v1/cloudquotas/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.cloudquotas.v1.samples; + +// [START cloudquotas_v1_generated_CloudQuotas_Create_UseHttpJsonTransport_sync] +import com.google.api.cloudquotas.v1.CloudQuotasClient; +import com.google.api.cloudquotas.v1.CloudQuotasSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudQuotasSettings cloudQuotasSettings = CloudQuotasSettings.newHttpJsonBuilder().build(); + CloudQuotasClient cloudQuotasClient = CloudQuotasClient.create(cloudQuotasSettings); + } +} +// [END cloudquotas_v1_generated_CloudQuotas_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index aa812ad405f5..69d24aa9a9ad 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.36.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/resources/META-INF/native-image/com.google.cloud.support.v2/reflect-config.json b/java-cloudsupport/google-cloud-cloudsupport/src/main/resources/META-INF/native-image/com.google.cloud.support.v2/reflect-config.json index 640fef4ed0fb..ddf8a6bb37f1 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/resources/META-INF/native-image/com.google.cloud.support.v2/reflect-config.json +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/resources/META-INF/native-image/com.google.cloud.support.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.support.v2.Actor", "queryAllDeclaredConstructors": true, diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4ddfd6e33d2f..000000000000 --- a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.support.v2.samples; - -// [START cloudsupport_v2_generated_CaseAttachmentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.support.v2.CaseAttachmentServiceClient; -import com.google.cloud.support.v2.CaseAttachmentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CaseAttachmentServiceSettings caseAttachmentServiceSettings = - CaseAttachmentServiceSettings.newHttpJsonBuilder().build(); - CaseAttachmentServiceClient caseAttachmentServiceClient = - CaseAttachmentServiceClient.create(caseAttachmentServiceSettings); - } -} -// [END cloudsupport_v2_generated_CaseAttachmentService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dd2ebf724ebd --- /dev/null +++ b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseattachmentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.support.v2.samples; + +// [START cloudsupport_v2_generated_CaseAttachmentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.support.v2.CaseAttachmentServiceClient; +import com.google.cloud.support.v2.CaseAttachmentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CaseAttachmentServiceSettings caseAttachmentServiceSettings = + CaseAttachmentServiceSettings.newHttpJsonBuilder().build(); + CaseAttachmentServiceClient caseAttachmentServiceClient = + CaseAttachmentServiceClient.create(caseAttachmentServiceSettings); + } +} +// [END cloudsupport_v2_generated_CaseAttachmentService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e83be3d6cd1d..000000000000 --- a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.support.v2.samples; - -// [START cloudsupport_v2_generated_CaseService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.support.v2.CaseServiceClient; -import com.google.cloud.support.v2.CaseServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CaseServiceSettings caseServiceSettings = CaseServiceSettings.newHttpJsonBuilder().build(); - CaseServiceClient caseServiceClient = CaseServiceClient.create(caseServiceSettings); - } -} -// [END cloudsupport_v2_generated_CaseService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a851c824bca8 --- /dev/null +++ b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/caseservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.support.v2.samples; + +// [START cloudsupport_v2_generated_CaseService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.support.v2.CaseServiceClient; +import com.google.cloud.support.v2.CaseServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CaseServiceSettings caseServiceSettings = CaseServiceSettings.newHttpJsonBuilder().build(); + CaseServiceClient caseServiceClient = CaseServiceClient.create(caseServiceSettings); + } +} +// [END cloudsupport_v2_generated_CaseService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0879c8623bac..000000000000 --- a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.support.v2.samples; - -// [START cloudsupport_v2_generated_CommentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.support.v2.CommentServiceClient; -import com.google.cloud.support.v2.CommentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CommentServiceSettings commentServiceSettings = - CommentServiceSettings.newHttpJsonBuilder().build(); - CommentServiceClient commentServiceClient = CommentServiceClient.create(commentServiceSettings); - } -} -// [END cloudsupport_v2_generated_CommentService_Create_SetCredentialsProvider1_sync] diff --git a/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9ccf299c6546 --- /dev/null +++ b/java-cloudsupport/samples/snippets/generated/com/google/cloud/support/v2/commentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.support.v2.samples; + +// [START cloudsupport_v2_generated_CommentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.support.v2.CommentServiceClient; +import com.google.cloud.support.v2.CommentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CommentServiceSettings commentServiceSettings = + CommentServiceSettings.newHttpJsonBuilder().build(); + CommentServiceClient commentServiceClient = CommentServiceClient.create(commentServiceSettings); + } +} +// [END cloudsupport_v2_generated_CommentService_Create_UseHttpJsonTransport_sync] diff --git a/java-compute/README.md b/java-compute/README.md index 5503f1484ba6..5d87ae99f8a6 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.62.0" ``` - ## Authentication @@ -259,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json index 29c8bf70e125..9034ccb18c8d 100644 --- a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json +++ b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.OperationResponseMapping", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 3897c09ea6d8..c1b988ac2605 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.38.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.38.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index 02523931360f..5ba2f46acf71 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.Challenge", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json index e19b071f6452..9db4504ee5c5 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1alpha1.Challenge", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d2efa0b3b316..000000000000 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.confidentialcomputing.v1.samples; - -// [START confidentialcomputing_v1_generated_ConfidentialComputing_Create_SetCredentialsProvider1_sync] -import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; -import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConfidentialComputingSettings confidentialComputingSettings = - ConfidentialComputingSettings.newHttpJsonBuilder().build(); - ConfidentialComputingClient confidentialComputingClient = - ConfidentialComputingClient.create(confidentialComputingSettings); - } -} -// [END confidentialcomputing_v1_generated_ConfidentialComputing_Create_SetCredentialsProvider1_sync] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..facb4e1256b3 --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.confidentialcomputing.v1.samples; + +// [START confidentialcomputing_v1_generated_ConfidentialComputing_Create_UseHttpJsonTransport_sync] +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConfidentialComputingSettings confidentialComputingSettings = + ConfidentialComputingSettings.newHttpJsonBuilder().build(); + ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create(confidentialComputingSettings); + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_Create_UseHttpJsonTransport_sync] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c42fac14d63b..000000000000 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.confidentialcomputing.v1alpha1.samples; - -// [START confidentialcomputing_v1alpha1_generated_ConfidentialComputing_Create_SetCredentialsProvider1_sync] -import com.google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingClient; -import com.google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConfidentialComputingSettings confidentialComputingSettings = - ConfidentialComputingSettings.newHttpJsonBuilder().build(); - ConfidentialComputingClient confidentialComputingClient = - ConfidentialComputingClient.create(confidentialComputingSettings); - } -} -// [END confidentialcomputing_v1alpha1_generated_ConfidentialComputing_Create_SetCredentialsProvider1_sync] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d2abeeb6baa9 --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.confidentialcomputing.v1alpha1.samples; + +// [START confidentialcomputing_v1alpha1_generated_ConfidentialComputing_Create_UseHttpJsonTransport_sync] +import com.google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConfidentialComputingSettings confidentialComputingSettings = + ConfidentialComputingSettings.newHttpJsonBuilder().build(); + ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create(confidentialComputingSettings); + } +} +// [END confidentialcomputing_v1alpha1_generated_ConfidentialComputing_Create_UseHttpJsonTransport_sync] diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 13d4cdbcae1d..b723dcf824ee 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.4.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/google-cloud-connectgateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1/reflect-config.json b/java-connectgateway/google-cloud-connectgateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1/reflect-config.json index 3b6b3d02e6f1..2097517513cb 100644 --- a/java-connectgateway/google-cloud-connectgateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1/reflect-config.json +++ b/java-connectgateway/google-cloud-connectgateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateSetCredentialsProvider1.java b/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 707589247056..000000000000 --- a/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkeconnect.gateway.v1.samples; - -// [START connectgateway_v1_generated_GatewayControl_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkeconnect.gateway.v1.GatewayControlClient; -import com.google.cloud.gkeconnect.gateway.v1.GatewayControlSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GatewayControlSettings gatewayControlSettings = - GatewayControlSettings.newHttpJsonBuilder().build(); - GatewayControlClient gatewayControlClient = GatewayControlClient.create(gatewayControlSettings); - } -} -// [END connectgateway_v1_generated_GatewayControl_Create_SetCredentialsProvider1_sync] diff --git a/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateUseHttpJsonTransport.java b/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4cc4219180a4 --- /dev/null +++ b/java-connectgateway/samples/snippets/generated/com/google/cloud/gkeconnect/gateway/v1/gatewaycontrol/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkeconnect.gateway.v1.samples; + +// [START connectgateway_v1_generated_GatewayControl_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkeconnect.gateway.v1.GatewayControlClient; +import com.google.cloud.gkeconnect.gateway.v1.GatewayControlSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GatewayControlSettings gatewayControlSettings = + GatewayControlSettings.newHttpJsonBuilder().build(); + GatewayControlClient gatewayControlClient = GatewayControlClient.create(gatewayControlSettings); + } +} +// [END connectgateway_v1_generated_GatewayControl_Create_UseHttpJsonTransport_sync] diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 796fa51358e7..a091f8d2af5f 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json index a6ead02c4976..93c230f43b47 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.contactcenterinsights.v1.Analysis", "queryAllDeclaredConstructors": true, diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateSetCredentialsProvider1.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 883f5b02e5b9..000000000000 --- a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contactcenterinsights.v1.samples; - -// [START contactcenterinsights_v1_generated_ContactCenterInsights_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; -import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ContactCenterInsightsSettings contactCenterInsightsSettings = - ContactCenterInsightsSettings.newHttpJsonBuilder().build(); - ContactCenterInsightsClient contactCenterInsightsClient = - ContactCenterInsightsClient.create(contactCenterInsightsSettings); - } -} -// [END contactcenterinsights_v1_generated_ContactCenterInsights_Create_SetCredentialsProvider1_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateUseHttpJsonTransport.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..107bba430ffd --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ContactCenterInsightsSettings contactCenterInsightsSettings = + ContactCenterInsightsSettings.newHttpJsonBuilder().build(); + ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create(contactCenterInsightsSettings); + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_Create_UseHttpJsonTransport_sync] diff --git a/java-container/README.md b/java-container/README.md index 2f3d1d491b85..e9f6cbc4d7ac 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.55.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index 5c589a5fe7db..0701e503f512 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -1428,6 +1428,7 @@ public final UnaryCallable updateClusterCallabl * .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) * .setContainerdConfig(ContainerdConfig.newBuilder().build()) * .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + * .addAllStoragePools(new ArrayList()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); * } @@ -1486,6 +1487,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) * .setContainerdConfig(ContainerdConfig.newBuilder().build()) * .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + * .addAllStoragePools(new ArrayList()) * .build(); * ApiFuture future = * clusterManagerClient.updateNodePoolCallable().futureCall(request); diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index 22681a2dc201..3ca905284ea8 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.AcceleratorConfig", "queryAllDeclaredConstructors": true, @@ -917,6 +935,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.CompliancePostureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.CompliancePostureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.CompliancePostureConfig$ComplianceStandard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.CompliancePostureConfig$ComplianceStandard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.CompliancePostureConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.ConfidentialNodes", "queryAllDeclaredConstructors": true, @@ -1025,6 +1088,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig$DNSEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig$DNSEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig$IPEndpointsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ControlPlaneEndpointsConfig$IPEndpointsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.CostManagementConfig", "queryAllDeclaredConstructors": true, @@ -2483,6 +2600,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.NodeConfig$EffectiveCgroupMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.NodeConfigDefaults", "queryAllDeclaredConstructors": true, @@ -3005,6 +3131,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.ParallelstoreCsiDriverConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ParallelstoreCsiDriverConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.PodCIDROverprovisionConfig", "queryAllDeclaredConstructors": true, @@ -3068,6 +3212,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.RBACBindingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RBACBindingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.RangeInfo", "queryAllDeclaredConstructors": true, @@ -3410,6 +3572,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.SecretManagerConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.SecretManagerConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.SecurityBulletinEvent", "queryAllDeclaredConstructors": true, @@ -4058,6 +4238,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.UserManagedKeysConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.UserManagedKeysConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.VerticalPodAutoscaling", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json index 06155b5b8201..248846e3709a 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1beta1.AcceleratorConfig", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java index 68187946c25b..aeba68ca7bd1 100644 --- a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java +++ b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java @@ -42,8 +42,10 @@ import com.google.container.v1.ClusterAutoscaling; import com.google.container.v1.ClusterUpdate; import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CompliancePostureConfig; import com.google.container.v1.ConfidentialNodes; import com.google.container.v1.ContainerdConfig; +import com.google.container.v1.ControlPlaneEndpointsConfig; import com.google.container.v1.CostManagementConfig; import com.google.container.v1.DatabaseEncryption; import com.google.container.v1.EnterpriseConfig; @@ -88,10 +90,12 @@ import com.google.container.v1.Operation; import com.google.container.v1.OperationProgress; import com.google.container.v1.PrivateClusterConfig; +import com.google.container.v1.RBACBindingConfig; import com.google.container.v1.ReleaseChannel; import com.google.container.v1.ResourceLabels; import com.google.container.v1.ResourceManagerTags; import com.google.container.v1.ResourceUsageExportConfig; +import com.google.container.v1.SecretManagerConfig; import com.google.container.v1.SecurityPostureConfig; import com.google.container.v1.ServerConfig; import com.google.container.v1.SetLabelsRequest; @@ -103,6 +107,7 @@ import com.google.container.v1.StatusCondition; import com.google.container.v1.UpdateNodePoolRequest; import com.google.container.v1.UsableSubnetwork; +import com.google.container.v1.UserManagedKeysConfig; import com.google.container.v1.VerticalPodAutoscaling; import com.google.container.v1.VirtualNIC; import com.google.container.v1.WindowsNodeConfig; @@ -318,10 +323,15 @@ public void getClusterTest() throws Exception { .setEtag("etag3123477") .setFleet(Fleet.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setControlPlaneEndpointsConfig(ControlPlaneEndpointsConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSecretManagerConfig(SecretManagerConfig.newBuilder().build()) + .setCompliancePostureConfig(CompliancePostureConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .setUserManagedKeysConfig(UserManagedKeysConfig.newBuilder().build()) + .setRbacBindingConfig(RBACBindingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -429,10 +439,15 @@ public void getClusterTest2() throws Exception { .setEtag("etag3123477") .setFleet(Fleet.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setControlPlaneEndpointsConfig(ControlPlaneEndpointsConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSecretManagerConfig(SecretManagerConfig.newBuilder().build()) + .setCompliancePostureConfig(CompliancePostureConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .setUserManagedKeysConfig(UserManagedKeysConfig.newBuilder().build()) + .setRbacBindingConfig(RBACBindingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -768,6 +783,7 @@ public void updateNodePoolTest() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); Operation actualResponse = client.updateNodePool(request); @@ -830,6 +846,7 @@ public void updateNodePoolExceptionTest() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); client.updateNodePool(request); Assert.fail("No exception raised"); diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java index 681f583c56c7..e1ee5497bbfe 100644 --- a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java @@ -41,8 +41,10 @@ import com.google.container.v1.ClusterUpdate; import com.google.container.v1.CompleteIPRotationRequest; import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CompliancePostureConfig; import com.google.container.v1.ConfidentialNodes; import com.google.container.v1.ContainerdConfig; +import com.google.container.v1.ControlPlaneEndpointsConfig; import com.google.container.v1.CostManagementConfig; import com.google.container.v1.CreateClusterRequest; import com.google.container.v1.CreateNodePoolRequest; @@ -98,11 +100,13 @@ import com.google.container.v1.Operation; import com.google.container.v1.OperationProgress; import com.google.container.v1.PrivateClusterConfig; +import com.google.container.v1.RBACBindingConfig; import com.google.container.v1.ReleaseChannel; import com.google.container.v1.ResourceLabels; import com.google.container.v1.ResourceManagerTags; import com.google.container.v1.ResourceUsageExportConfig; import com.google.container.v1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1.SecretManagerConfig; import com.google.container.v1.SecurityPostureConfig; import com.google.container.v1.ServerConfig; import com.google.container.v1.SetAddonsConfigRequest; @@ -124,6 +128,7 @@ import com.google.container.v1.UpdateMasterRequest; import com.google.container.v1.UpdateNodePoolRequest; import com.google.container.v1.UsableSubnetwork; +import com.google.container.v1.UserManagedKeysConfig; import com.google.container.v1.VerticalPodAutoscaling; import com.google.container.v1.VirtualNIC; import com.google.container.v1.WindowsNodeConfig; @@ -334,10 +339,15 @@ public void getClusterTest() throws Exception { .setEtag("etag3123477") .setFleet(Fleet.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setControlPlaneEndpointsConfig(ControlPlaneEndpointsConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSecretManagerConfig(SecretManagerConfig.newBuilder().build()) + .setCompliancePostureConfig(CompliancePostureConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .setUserManagedKeysConfig(UserManagedKeysConfig.newBuilder().build()) + .setRbacBindingConfig(RBACBindingConfig.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -439,10 +449,15 @@ public void getClusterTest2() throws Exception { .setEtag("etag3123477") .setFleet(Fleet.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setControlPlaneEndpointsConfig(ControlPlaneEndpointsConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSecretManagerConfig(SecretManagerConfig.newBuilder().build()) + .setCompliancePostureConfig(CompliancePostureConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .setUserManagedKeysConfig(UserManagedKeysConfig.newBuilder().build()) + .setRbacBindingConfig(RBACBindingConfig.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -756,6 +771,7 @@ public void updateNodePoolTest() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); Operation actualResponse = client.updateNodePool(request); @@ -797,6 +813,7 @@ public void updateNodePoolTest() throws Exception { Assert.assertEquals(request.getResourceManagerTags(), actualRequest.getResourceManagerTags()); Assert.assertEquals(request.getContainerdConfig(), actualRequest.getContainerdConfig()); Assert.assertEquals(request.getQueuedProvisioning(), actualRequest.getQueuedProvisioning()); + Assert.assertEquals(request.getStoragePoolsList(), actualRequest.getStoragePoolsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -842,6 +859,7 @@ public void updateNodePoolExceptionTest() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); client.updateNodePool(request); Assert.fail("No exception raised"); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index c84105084e4f..d5bc2b2f7548 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -190,7 +190,7 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -213,7 +213,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return The kubernetesDashboard. */ @java.lang.Override @@ -728,6 +728,60 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu : statefulHaConfig_; } + public static final int PARALLELSTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1.ParallelstoreCsiDriverConfig parallelstoreCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return Whether the parallelstoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasParallelstoreCsiDriverConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return The parallelstoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.ParallelstoreCsiDriverConfig getParallelstoreCsiDriverConfig() { + return parallelstoreCsiDriverConfig_ == null + ? com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance() + : parallelstoreCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + @java.lang.Override + public com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder + getParallelstoreCsiDriverConfigOrBuilder() { + return parallelstoreCsiDriverConfig_ == null + ? com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance() + : parallelstoreCsiDriverConfig_; + } + public static final int RAY_OPERATOR_CONFIG_FIELD_NUMBER = 21; private com.google.container.v1.RayOperatorConfig rayOperatorConfig_; /** @@ -745,7 +799,7 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu */ @java.lang.Override public boolean hasRayOperatorConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -835,6 +889,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(18, getStatefulHaConfig()); } if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(19, getParallelstoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(21, getRayOperatorConfig()); } getUnknownFields().writeTo(output); @@ -892,6 +949,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStatefulHaConfig()); } if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getParallelstoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRayOperatorConfig()); } size += getUnknownFields().getSerializedSize(); @@ -960,6 +1022,11 @@ public boolean equals(final java.lang.Object obj) { if (hasStatefulHaConfig()) { if (!getStatefulHaConfig().equals(other.getStatefulHaConfig())) return false; } + if (hasParallelstoreCsiDriverConfig() != other.hasParallelstoreCsiDriverConfig()) return false; + if (hasParallelstoreCsiDriverConfig()) { + if (!getParallelstoreCsiDriverConfig().equals(other.getParallelstoreCsiDriverConfig())) + return false; + } if (hasRayOperatorConfig() != other.hasRayOperatorConfig()) return false; if (hasRayOperatorConfig()) { if (!getRayOperatorConfig().equals(other.getRayOperatorConfig())) return false; @@ -1023,6 +1090,10 @@ public int hashCode() { hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStatefulHaConfig().hashCode(); } + if (hasParallelstoreCsiDriverConfig()) { + hash = (37 * hash) + PARALLELSTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getParallelstoreCsiDriverConfig().hashCode(); + } if (hasRayOperatorConfig()) { hash = (37 * hash) + RAY_OPERATOR_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRayOperatorConfig().hashCode(); @@ -1179,6 +1250,7 @@ private void maybeForceBuilderInitialization() { getGkeBackupAgentConfigFieldBuilder(); getGcsFuseCsiDriverConfigFieldBuilder(); getStatefulHaConfigFieldBuilder(); + getParallelstoreCsiDriverConfigFieldBuilder(); getRayOperatorConfigFieldBuilder(); } } @@ -1247,6 +1319,11 @@ public Builder clear() { statefulHaConfigBuilder_.dispose(); statefulHaConfigBuilder_ = null; } + parallelstoreCsiDriverConfig_ = null; + if (parallelstoreCsiDriverConfigBuilder_ != null) { + parallelstoreCsiDriverConfigBuilder_.dispose(); + parallelstoreCsiDriverConfigBuilder_ = null; + } rayOperatorConfig_ = null; if (rayOperatorConfigBuilder_ != null) { rayOperatorConfigBuilder_.dispose(); @@ -1367,11 +1444,18 @@ private void buildPartial0(com.google.container.v1.AddonsConfig result) { to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.parallelstoreCsiDriverConfig_ = + parallelstoreCsiDriverConfigBuilder_ == null + ? parallelstoreCsiDriverConfig_ + : parallelstoreCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.rayOperatorConfig_ = rayOperatorConfigBuilder_ == null ? rayOperatorConfig_ : rayOperatorConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; + to_bitField0_ |= 0x00002000; } result.bitField0_ |= to_bitField0_; } @@ -1457,6 +1541,9 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { if (other.hasStatefulHaConfig()) { mergeStatefulHaConfig(other.getStatefulHaConfig()); } + if (other.hasParallelstoreCsiDriverConfig()) { + mergeParallelstoreCsiDriverConfig(other.getParallelstoreCsiDriverConfig()); + } if (other.hasRayOperatorConfig()) { mergeRayOperatorConfig(other.getRayOperatorConfig()); } @@ -1569,11 +1656,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 146 + case 154: + { + input.readMessage( + getParallelstoreCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 154 case 170: { input.readMessage( getRayOperatorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 170 default: @@ -2021,7 +2115,7 @@ public Builder clearHorizontalPodAutoscaling() { *
* * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -2043,7 +2137,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -4020,6 +4114,206 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu return statefulHaConfigBuilder_; } + private com.google.container.v1.ParallelstoreCsiDriverConfig parallelstoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ParallelstoreCsiDriverConfig, + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder, + com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder> + parallelstoreCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return Whether the parallelstoreCsiDriverConfig field is set. + */ + public boolean hasParallelstoreCsiDriverConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return The parallelstoreCsiDriverConfig. + */ + public com.google.container.v1.ParallelstoreCsiDriverConfig getParallelstoreCsiDriverConfig() { + if (parallelstoreCsiDriverConfigBuilder_ == null) { + return parallelstoreCsiDriverConfig_ == null + ? com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance() + : parallelstoreCsiDriverConfig_; + } else { + return parallelstoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public Builder setParallelstoreCsiDriverConfig( + com.google.container.v1.ParallelstoreCsiDriverConfig value) { + if (parallelstoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parallelstoreCsiDriverConfig_ = value; + } else { + parallelstoreCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public Builder setParallelstoreCsiDriverConfig( + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder builderForValue) { + if (parallelstoreCsiDriverConfigBuilder_ == null) { + parallelstoreCsiDriverConfig_ = builderForValue.build(); + } else { + parallelstoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public Builder mergeParallelstoreCsiDriverConfig( + com.google.container.v1.ParallelstoreCsiDriverConfig value) { + if (parallelstoreCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && parallelstoreCsiDriverConfig_ != null + && parallelstoreCsiDriverConfig_ + != com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance()) { + getParallelstoreCsiDriverConfigBuilder().mergeFrom(value); + } else { + parallelstoreCsiDriverConfig_ = value; + } + } else { + parallelstoreCsiDriverConfigBuilder_.mergeFrom(value); + } + if (parallelstoreCsiDriverConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public Builder clearParallelstoreCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + parallelstoreCsiDriverConfig_ = null; + if (parallelstoreCsiDriverConfigBuilder_ != null) { + parallelstoreCsiDriverConfigBuilder_.dispose(); + parallelstoreCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public com.google.container.v1.ParallelstoreCsiDriverConfig.Builder + getParallelstoreCsiDriverConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getParallelstoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + public com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder + getParallelstoreCsiDriverConfigOrBuilder() { + if (parallelstoreCsiDriverConfigBuilder_ != null) { + return parallelstoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return parallelstoreCsiDriverConfig_ == null + ? com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance() + : parallelstoreCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the Cloud Storage Parallelstore CSI driver.
+     * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ParallelstoreCsiDriverConfig, + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder, + com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder> + getParallelstoreCsiDriverConfigFieldBuilder() { + if (parallelstoreCsiDriverConfigBuilder_ == null) { + parallelstoreCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ParallelstoreCsiDriverConfig, + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder, + com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder>( + getParallelstoreCsiDriverConfig(), getParentForChildren(), isClean()); + parallelstoreCsiDriverConfig_ = null; + } + return parallelstoreCsiDriverConfigBuilder_; + } + private com.google.container.v1.RayOperatorConfig rayOperatorConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.RayOperatorConfig, @@ -4040,7 +4334,7 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu * @return Whether the rayOperatorConfig field is set. */ public boolean hasRayOperatorConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4084,7 +4378,7 @@ public Builder setRayOperatorConfig(com.google.container.v1.RayOperatorConfig va } else { rayOperatorConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4106,7 +4400,7 @@ public Builder setRayOperatorConfig( } else { rayOperatorConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4123,7 +4417,7 @@ public Builder setRayOperatorConfig( */ public Builder mergeRayOperatorConfig(com.google.container.v1.RayOperatorConfig value) { if (rayOperatorConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && rayOperatorConfig_ != null && rayOperatorConfig_ != com.google.container.v1.RayOperatorConfig.getDefaultInstance()) { @@ -4135,7 +4429,7 @@ public Builder mergeRayOperatorConfig(com.google.container.v1.RayOperatorConfig rayOperatorConfigBuilder_.mergeFrom(value); } if (rayOperatorConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4152,7 +4446,7 @@ public Builder mergeRayOperatorConfig(com.google.container.v1.RayOperatorConfig * */ public Builder clearRayOperatorConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); rayOperatorConfig_ = null; if (rayOperatorConfigBuilder_ != null) { rayOperatorConfigBuilder_.dispose(); @@ -4173,7 +4467,7 @@ public Builder clearRayOperatorConfig() { * */ public com.google.container.v1.RayOperatorConfig.Builder getRayOperatorConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getRayOperatorConfigFieldBuilder().getBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 17a7a42f92ee..bd9afcbdff86 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -118,7 +118,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1275 + * google/container/v1/cluster_service.proto;l=1309 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -504,6 +504,45 @@ public interface AddonsConfigOrBuilder */ com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return Whether the parallelstoreCsiDriverConfig field is set. + */ + boolean hasParallelstoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + * + * @return The parallelstoreCsiDriverConfig. + */ + com.google.container.v1.ParallelstoreCsiDriverConfig getParallelstoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + * + */ + com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder + getParallelstoreCsiDriverConfigOrBuilder(); + /** * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index 11d867d74485..dc4319d2a3db 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -310,7 +310,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The minCpuPlatform. */ @java.lang.Override @@ -346,7 +346,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -1963,7 +1963,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -1998,7 +1998,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2033,7 +2033,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2067,7 +2067,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2097,7 +2097,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index bf43a9b01061..ded4c5feaea5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -190,7 +190,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -215,7 +215,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4095 + * deprecated. See google/container/v1/cluster_service.proto;l=4337 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java index 48f1744405b4..d8f5115d61de 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -238,7 +238,7 @@ private EvaluationMode(int value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1547 + * google/container/v1/cluster_service.proto;l=1622 * @return The enabled. */ @java.lang.Override @@ -664,7 +664,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1547 + * google/container/v1/cluster_service.proto;l=1622 * @return The enabled. */ @java.lang.Override @@ -684,7 +684,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1547 + * google/container/v1/cluster_service.proto;l=1622 * @param value The enabled to set. * @return This builder for chaining. */ @@ -708,7 +708,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1547 + * google/container/v1/cluster_service.proto;l=1622 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java index 2af9050685e2..03d44d94adcf 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1547 + * google/container/v1/cluster_service.proto;l=1622 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index c16b36af5a2a..d7e9208e37a6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index d66202aff5c4..77ba2637b971 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3261 + * google/container/v1/cluster_service.proto;l=3500 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3506 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3271 + * google/container/v1/cluster_service.proto;l=3510 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index c4a544076442..50bbfc25889f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -492,7 +492,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1775 + * google/container/v1/cluster_service.proto;l=1850 * @return The initialNodeCount. */ @java.lang.Override @@ -523,7 +523,7 @@ public int getInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -551,7 +551,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return The nodeConfig. */ @java.lang.Override @@ -1535,15 +1535,22 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasMasterAuthorizedNetworksConfig() { return ((bitField0_ & 0x00000040) != 0); } @@ -1552,15 +1559,22 @@ public boolean hasMasterAuthorizedNetworksConfig() { * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { return masterAuthorizedNetworksConfig_ == null @@ -1572,13 +1586,18 @@ public boolean hasMasterAuthorizedNetworksConfig() { * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { return masterAuthorizedNetworksConfig_ == null @@ -2591,7 +2610,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The zone. */ @java.lang.Override @@ -2619,7 +2638,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The bytes for zone. */ @java.lang.Override @@ -2843,7 +2862,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The currentNodeVersion. */ @java.lang.Override @@ -2875,7 +2894,7 @@ public java.lang.String getCurrentNodeVersion() { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -3002,7 +3021,7 @@ public com.google.container.v1.Cluster.Status getStatus() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The statusMessage. */ @java.lang.Override @@ -3032,7 +3051,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3146,7 +3165,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3165,7 +3184,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3184,7 +3203,7 @@ public int getInstanceGroupUrlsCount() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3204,7 +3223,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3228,7 +3247,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2029 + * google/container/v1/cluster_service.proto;l=2109 * @return The currentNodeCount. */ @java.lang.Override @@ -3948,6 +3967,60 @@ public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() : securityPostureConfig_; } + public static final int CONTROL_PLANE_ENDPOINTS_CONFIG_FIELD_NUMBER = 146; + private com.google.container.v1.ControlPlaneEndpointsConfig controlPlaneEndpointsConfig_; + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return Whether the controlPlaneEndpointsConfig field is set. + */ + @java.lang.Override + public boolean hasControlPlaneEndpointsConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return The controlPlaneEndpointsConfig. + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig getControlPlaneEndpointsConfig() { + return controlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : controlPlaneEndpointsConfig_; + } + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getControlPlaneEndpointsConfigOrBuilder() { + return controlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : controlPlaneEndpointsConfig_; + } + public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 143; private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; /** @@ -3963,7 +4036,7 @@ public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() */ @java.lang.Override public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** * @@ -4013,7 +4086,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB */ @java.lang.Override public boolean hasEnterpriseConfig() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** * @@ -4048,6 +4121,107 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu : enterpriseConfig_; } + public static final int SECRET_MANAGER_CONFIG_FIELD_NUMBER = 150; + private com.google.container.v1.SecretManagerConfig secretManagerConfig_; + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + * + * @return Whether the secretManagerConfig field is set. + */ + @java.lang.Override + public boolean hasSecretManagerConfig() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + * + * @return The secretManagerConfig. + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfig getSecretManagerConfig() { + return secretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfigOrBuilder getSecretManagerConfigOrBuilder() { + return secretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + + public static final int COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER = 151; + private com.google.container.v1.CompliancePostureConfig compliancePostureConfig_; + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return Whether the compliancePostureConfig field is set. + */ + @java.lang.Override + public boolean hasCompliancePostureConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return The compliancePostureConfig. + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig getCompliancePostureConfig() { + return compliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + return compliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + public static final int SATISFIES_PZS_FIELD_NUMBER = 152; private boolean satisfiesPzs_ = false; /** @@ -4063,7 +4237,7 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** * @@ -4096,7 +4270,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasSatisfiesPzi() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** * @@ -4114,6 +4288,113 @@ public boolean getSatisfiesPzi() { return satisfiesPzi_; } + public static final int USER_MANAGED_KEYS_CONFIG_FIELD_NUMBER = 154; + private com.google.container.v1.UserManagedKeysConfig userManagedKeysConfig_; + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return Whether the userManagedKeysConfig field is set. + */ + @java.lang.Override + public boolean hasUserManagedKeysConfig() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return The userManagedKeysConfig. + */ + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig() { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfigOrBuilder + getUserManagedKeysConfigOrBuilder() { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + + public static final int RBAC_BINDING_CONFIG_FIELD_NUMBER = 156; + private com.google.container.v1.RBACBindingConfig rbacBindingConfig_; + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return Whether the rbacBindingConfig field is set. + */ + @java.lang.Override + public boolean hasRbacBindingConfig() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return The rbacBindingConfig. + */ + @java.lang.Override + public com.google.container.v1.RBACBindingConfig getRbacBindingConfig() { + return rbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : rbacBindingConfig_; + } + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + @java.lang.Override + public com.google.container.v1.RBACBindingConfigOrBuilder getRbacBindingConfigOrBuilder() { + return rbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : rbacBindingConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4319,21 +4600,36 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x40000000) != 0)) { output.writeMessage(140, getFleet()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { output.writeMessage(143, getEnableK8SBetaApis()); } if (((bitField0_ & 0x80000000) != 0)) { output.writeMessage(145, getSecurityPostureConfig()); } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(149, getEnterpriseConfig()); + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(146, getControlPlaneEndpointsConfig()); } if (((bitField1_ & 0x00000004) != 0)) { - output.writeBool(152, satisfiesPzs_); + output.writeMessage(149, getEnterpriseConfig()); } if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(150, getSecretManagerConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(151, getCompliancePostureConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeBool(152, satisfiesPzs_); + } + if (((bitField1_ & 0x00000040) != 0)) { output.writeBool(153, satisfiesPzi_); } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(154, getUserManagedKeysConfig()); + } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(156, getRbacBindingConfig()); + } getUnknownFields().writeTo(output); } @@ -4567,22 +4863,43 @@ public int getSerializedSize() { if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(140, getFleet()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(143, getEnableK8SBetaApis()); } if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(145, getSecurityPostureConfig()); } - if (((bitField1_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); + if (((bitField1_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 146, getControlPlaneEndpointsConfig()); } if (((bitField1_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(152, satisfiesPzs_); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); } if (((bitField1_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(150, getSecretManagerConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 151, getCompliancePostureConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(152, satisfiesPzs_); + } + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(153, satisfiesPzi_); } + if (((bitField1_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(154, getUserManagedKeysConfig()); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(156, getRbacBindingConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4763,6 +5080,11 @@ public boolean equals(final java.lang.Object obj) { if (hasSecurityPostureConfig()) { if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; } + if (hasControlPlaneEndpointsConfig() != other.hasControlPlaneEndpointsConfig()) return false; + if (hasControlPlaneEndpointsConfig()) { + if (!getControlPlaneEndpointsConfig().equals(other.getControlPlaneEndpointsConfig())) + return false; + } if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; if (hasEnableK8SBetaApis()) { if (!getEnableK8SBetaApis().equals(other.getEnableK8SBetaApis())) return false; @@ -4771,6 +5093,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEnterpriseConfig()) { if (!getEnterpriseConfig().equals(other.getEnterpriseConfig())) return false; } + if (hasSecretManagerConfig() != other.hasSecretManagerConfig()) return false; + if (hasSecretManagerConfig()) { + if (!getSecretManagerConfig().equals(other.getSecretManagerConfig())) return false; + } + if (hasCompliancePostureConfig() != other.hasCompliancePostureConfig()) return false; + if (hasCompliancePostureConfig()) { + if (!getCompliancePostureConfig().equals(other.getCompliancePostureConfig())) return false; + } if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; @@ -4779,6 +5109,14 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzi()) { if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; } + if (hasUserManagedKeysConfig() != other.hasUserManagedKeysConfig()) return false; + if (hasUserManagedKeysConfig()) { + if (!getUserManagedKeysConfig().equals(other.getUserManagedKeysConfig())) return false; + } + if (hasRbacBindingConfig() != other.hasRbacBindingConfig()) return false; + if (hasRbacBindingConfig()) { + if (!getRbacBindingConfig().equals(other.getRbacBindingConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4994,6 +5332,10 @@ public int hashCode() { hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSecurityPostureConfig().hashCode(); } + if (hasControlPlaneEndpointsConfig()) { + hash = (37 * hash) + CONTROL_PLANE_ENDPOINTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getControlPlaneEndpointsConfig().hashCode(); + } if (hasEnableK8SBetaApis()) { hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); @@ -5002,6 +5344,14 @@ public int hashCode() { hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEnterpriseConfig().hashCode(); } + if (hasSecretManagerConfig()) { + hash = (37 * hash) + SECRET_MANAGER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecretManagerConfig().hashCode(); + } + if (hasCompliancePostureConfig()) { + hash = (37 * hash) + COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompliancePostureConfig().hashCode(); + } if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); @@ -5010,6 +5360,14 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); } + if (hasUserManagedKeysConfig()) { + hash = (37 * hash) + USER_MANAGED_KEYS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUserManagedKeysConfig().hashCode(); + } + if (hasRbacBindingConfig()) { + hash = (37 * hash) + RBAC_BINDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRbacBindingConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5204,8 +5562,13 @@ private void maybeForceBuilderInitialization() { getNodePoolAutoConfigFieldBuilder(); getFleetFieldBuilder(); getSecurityPostureConfigFieldBuilder(); + getControlPlaneEndpointsConfigFieldBuilder(); getEnableK8SBetaApisFieldBuilder(); getEnterpriseConfigFieldBuilder(); + getSecretManagerConfigFieldBuilder(); + getCompliancePostureConfigFieldBuilder(); + getUserManagedKeysConfigFieldBuilder(); + getRbacBindingConfigFieldBuilder(); } } @@ -5420,6 +5783,11 @@ public Builder clear() { securityPostureConfigBuilder_.dispose(); securityPostureConfigBuilder_ = null; } + controlPlaneEndpointsConfig_ = null; + if (controlPlaneEndpointsConfigBuilder_ != null) { + controlPlaneEndpointsConfigBuilder_.dispose(); + controlPlaneEndpointsConfigBuilder_ = null; + } enableK8SBetaApis_ = null; if (enableK8SBetaApisBuilder_ != null) { enableK8SBetaApisBuilder_.dispose(); @@ -5430,8 +5798,28 @@ public Builder clear() { enterpriseConfigBuilder_.dispose(); enterpriseConfigBuilder_ = null; } + secretManagerConfig_ = null; + if (secretManagerConfigBuilder_ != null) { + secretManagerConfigBuilder_.dispose(); + secretManagerConfigBuilder_ = null; + } + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } satisfiesPzs_ = false; satisfiesPzi_ = false; + userManagedKeysConfig_ = null; + if (userManagedKeysConfigBuilder_ != null) { + userManagedKeysConfigBuilder_.dispose(); + userManagedKeysConfigBuilder_ = null; + } + rbacBindingConfig_ = null; + if (rbacBindingConfigBuilder_ != null) { + rbacBindingConfigBuilder_.dispose(); + rbacBindingConfigBuilder_ = null; + } return this; } @@ -5795,25 +6183,60 @@ private void buildPartial2(com.google.container.v1.Cluster result) { } int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000002) != 0)) { + result.controlPlaneEndpointsConfig_ = + controlPlaneEndpointsConfigBuilder_ == null + ? controlPlaneEndpointsConfig_ + : controlPlaneEndpointsConfigBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField2_ & 0x00000004) != 0)) { result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null ? enableK8SBetaApis_ : enableK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000001; - } - if (((from_bitField2_ & 0x00000004) != 0)) { - result.enterpriseConfig_ = - enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); to_bitField1_ |= 0x00000002; } if (((from_bitField2_ & 0x00000008) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + result.enterpriseConfig_ = + enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); to_bitField1_ |= 0x00000004; } if (((from_bitField2_ & 0x00000010) != 0)) { - result.satisfiesPzi_ = satisfiesPzi_; + result.secretManagerConfig_ = + secretManagerConfigBuilder_ == null + ? secretManagerConfig_ + : secretManagerConfigBuilder_.build(); to_bitField1_ |= 0x00000008; } + if (((from_bitField2_ & 0x00000020) != 0)) { + result.compliancePostureConfig_ = + compliancePostureConfigBuilder_ == null + ? compliancePostureConfig_ + : compliancePostureConfigBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField2_ & 0x00000040) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField1_ |= 0x00000020; + } + if (((from_bitField2_ & 0x00000080) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField1_ |= 0x00000040; + } + if (((from_bitField2_ & 0x00000100) != 0)) { + result.userManagedKeysConfig_ = + userManagedKeysConfigBuilder_ == null + ? userManagedKeysConfig_ + : userManagedKeysConfigBuilder_.build(); + to_bitField1_ |= 0x00000080; + } + if (((from_bitField2_ & 0x00000200) != 0)) { + result.rbacBindingConfig_ = + rbacBindingConfigBuilder_ == null + ? rbacBindingConfig_ + : rbacBindingConfigBuilder_.build(); + to_bitField1_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -6163,18 +6586,33 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (other.hasSecurityPostureConfig()) { mergeSecurityPostureConfig(other.getSecurityPostureConfig()); } + if (other.hasControlPlaneEndpointsConfig()) { + mergeControlPlaneEndpointsConfig(other.getControlPlaneEndpointsConfig()); + } if (other.hasEnableK8SBetaApis()) { mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); } if (other.hasEnterpriseConfig()) { mergeEnterpriseConfig(other.getEnterpriseConfig()); } + if (other.hasSecretManagerConfig()) { + mergeSecretManagerConfig(other.getSecretManagerConfig()); + } + if (other.hasCompliancePostureConfig()) { + mergeCompliancePostureConfig(other.getCompliancePostureConfig()); + } if (other.hasSatisfiesPzs()) { setSatisfiesPzs(other.getSatisfiesPzs()); } if (other.hasSatisfiesPzi()) { setSatisfiesPzi(other.getSatisfiesPzi()); } + if (other.hasUserManagedKeysConfig()) { + mergeUserManagedKeysConfig(other.getUserManagedKeysConfig()); + } + if (other.hasRbacBindingConfig()) { + mergeRbacBindingConfig(other.getRbacBindingConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6630,7 +7068,7 @@ public Builder mergeFrom( { input.readMessage( getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; break; } // case 1146 case 1162: @@ -6640,25 +7078,60 @@ public Builder mergeFrom( bitField2_ |= 0x00000001; break; } // case 1162 + case 1170: + { + input.readMessage( + getControlPlaneEndpointsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000002; + break; + } // case 1170 case 1194: { input.readMessage( getEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; break; } // case 1194 + case 1202: + { + input.readMessage( + getSecretManagerConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000010; + break; + } // case 1202 + case 1210: + { + input.readMessage( + getCompliancePostureConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000020; + break; + } // case 1210 case 1216: { satisfiesPzs_ = input.readBool(); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000040; break; } // case 1216 case 1224: { satisfiesPzi_ = input.readBool(); - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000080; break; } // case 1224 + case 1234: + { + input.readMessage( + getUserManagedKeysConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000100; + break; + } // case 1234 + case 1250: + { + input.readMessage( + getRbacBindingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000200; + break; + } // case 1250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6942,7 +7415,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1775 + * google/container/v1/cluster_service.proto;l=1850 * @return The initialNodeCount. */ @java.lang.Override @@ -6969,7 +7442,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1775 + * google/container/v1/cluster_service.proto;l=1850 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -7000,7 +7473,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1775 + * google/container/v1/cluster_service.proto;l=1850 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7037,7 +7510,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -7064,7 +7537,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return The nodeConfig. */ @java.lang.Deprecated @@ -9937,14 +10410,21 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return Whether the masterAuthorizedNetworksConfig field is set. */ + @java.lang.Deprecated public boolean hasMasterAuthorizedNetworksConfig() { return ((bitField0_ & 0x00080000) != 0); } @@ -9953,14 +10433,21 @@ public boolean hasMasterAuthorizedNetworksConfig() { * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return The masterAuthorizedNetworksConfig. */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { if (masterAuthorizedNetworksConfigBuilder_ == null) { @@ -9976,12 +10463,17 @@ public boolean hasMasterAuthorizedNetworksConfig() { * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig value) { if (masterAuthorizedNetworksConfigBuilder_ == null) { @@ -10001,12 +10493,17 @@ public Builder setMasterAuthorizedNetworksConfig( * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { if (masterAuthorizedNetworksConfigBuilder_ == null) { @@ -10023,12 +10520,17 @@ public Builder setMasterAuthorizedNetworksConfig( * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig value) { if (masterAuthorizedNetworksConfigBuilder_ == null) { @@ -10054,12 +10556,17 @@ public Builder mergeMasterAuthorizedNetworksConfig( * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearMasterAuthorizedNetworksConfig() { bitField0_ = (bitField0_ & ~0x00080000); masterAuthorizedNetworksConfig_ = null; @@ -10075,12 +10582,17 @@ public Builder clearMasterAuthorizedNetworksConfig() { * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { bitField0_ |= 0x00080000; @@ -10092,12 +10604,17 @@ public Builder clearMasterAuthorizedNetworksConfig() { * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { if (masterAuthorizedNetworksConfigBuilder_ != null) { @@ -10113,10 +10630,14 @@ public Builder clearMasterAuthorizedNetworksConfig() { * *
      * The configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -13741,7 +14262,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The zone. */ @java.lang.Deprecated @@ -13769,7 +14290,7 @@ public java.lang.String getZone() { * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The bytes for zone. */ @java.lang.Deprecated @@ -13797,7 +14318,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @param value The zone to set. * @return This builder for chaining. */ @@ -13824,7 +14345,7 @@ public Builder setZone(java.lang.String value) { * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13847,7 +14368,7 @@ public Builder clearZone() { * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -14288,7 +14809,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -14319,7 +14840,7 @@ public java.lang.String getCurrentNodeVersion() { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -14350,7 +14871,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -14380,7 +14901,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14406,7 +14927,7 @@ public Builder clearCurrentNodeVersion() { * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -14648,7 +15169,7 @@ public Builder clearStatus() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The statusMessage. */ @java.lang.Deprecated @@ -14677,7 +15198,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -14706,7 +15227,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -14734,7 +15255,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14758,7 +15279,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -14983,7 +15504,7 @@ private void ensureInstanceGroupUrlsIsMutable() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -15003,7 +15524,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -15022,7 +15543,7 @@ public int getInstanceGroupUrlsCount() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -15042,7 +15563,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -15062,7 +15583,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -15090,7 +15611,7 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15117,7 +15638,7 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15141,7 +15662,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15164,7 +15685,7 @@ public Builder clearInstanceGroupUrls() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15195,7 +15716,7 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2029 + * google/container/v1/cluster_service.proto;l=2109 * @return The currentNodeCount. */ @java.lang.Override @@ -15216,7 +15737,7 @@ public int getCurrentNodeCount() { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2029 + * google/container/v1/cluster_service.proto;l=2109 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -15241,7 +15762,7 @@ public Builder setCurrentNodeCount(int value) { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2029 + * google/container/v1/cluster_service.proto;l=2109 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17545,6 +18066,206 @@ public com.google.container.v1.SecurityPostureConfig.Builder getSecurityPostureC return securityPostureConfigBuilder_; } + private com.google.container.v1.ControlPlaneEndpointsConfig controlPlaneEndpointsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder> + controlPlaneEndpointsConfigBuilder_; + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return Whether the controlPlaneEndpointsConfig field is set. + */ + public boolean hasControlPlaneEndpointsConfig() { + return ((bitField2_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return The controlPlaneEndpointsConfig. + */ + public com.google.container.v1.ControlPlaneEndpointsConfig getControlPlaneEndpointsConfig() { + if (controlPlaneEndpointsConfigBuilder_ == null) { + return controlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : controlPlaneEndpointsConfig_; + } else { + return controlPlaneEndpointsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public Builder setControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig value) { + if (controlPlaneEndpointsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlPlaneEndpointsConfig_ = value; + } else { + controlPlaneEndpointsConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public Builder setControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.Builder builderForValue) { + if (controlPlaneEndpointsConfigBuilder_ == null) { + controlPlaneEndpointsConfig_ = builderForValue.build(); + } else { + controlPlaneEndpointsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public Builder mergeControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig value) { + if (controlPlaneEndpointsConfigBuilder_ == null) { + if (((bitField2_ & 0x00000002) != 0) + && controlPlaneEndpointsConfig_ != null + && controlPlaneEndpointsConfig_ + != com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance()) { + getControlPlaneEndpointsConfigBuilder().mergeFrom(value); + } else { + controlPlaneEndpointsConfig_ = value; + } + } else { + controlPlaneEndpointsConfigBuilder_.mergeFrom(value); + } + if (controlPlaneEndpointsConfig_ != null) { + bitField2_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public Builder clearControlPlaneEndpointsConfig() { + bitField2_ = (bitField2_ & ~0x00000002); + controlPlaneEndpointsConfig_ = null; + if (controlPlaneEndpointsConfigBuilder_ != null) { + controlPlaneEndpointsConfigBuilder_.dispose(); + controlPlaneEndpointsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.Builder + getControlPlaneEndpointsConfigBuilder() { + bitField2_ |= 0x00000002; + onChanged(); + return getControlPlaneEndpointsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getControlPlaneEndpointsConfigOrBuilder() { + if (controlPlaneEndpointsConfigBuilder_ != null) { + return controlPlaneEndpointsConfigBuilder_.getMessageOrBuilder(); + } else { + return controlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : controlPlaneEndpointsConfig_; + } + } + /** + * + * + *
+     * Configuration for all cluster's control plane endpoints.
+     * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder> + getControlPlaneEndpointsConfigFieldBuilder() { + if (controlPlaneEndpointsConfigBuilder_ == null) { + controlPlaneEndpointsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder>( + getControlPlaneEndpointsConfig(), getParentForChildren(), isClean()); + controlPlaneEndpointsConfig_ = null; + } + return controlPlaneEndpointsConfigBuilder_; + } + private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.K8sBetaAPIConfig, @@ -17563,7 +18284,7 @@ public com.google.container.v1.SecurityPostureConfig.Builder getSecurityPostureC * @return Whether the enableK8sBetaApis field is set. */ public boolean hasEnableK8SBetaApis() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** * @@ -17603,7 +18324,7 @@ public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig val } else { enableK8SBetaApisBuilder_.setMessage(value); } - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -17623,7 +18344,7 @@ public Builder setEnableK8SBetaApis( } else { enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -17638,7 +18359,7 @@ public Builder setEnableK8SBetaApis( */ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { if (enableK8SBetaApisBuilder_ == null) { - if (((bitField2_ & 0x00000002) != 0) + if (((bitField2_ & 0x00000004) != 0) && enableK8SBetaApis_ != null && enableK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { @@ -17650,7 +18371,7 @@ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig v enableK8SBetaApisBuilder_.mergeFrom(value); } if (enableK8SBetaApis_ != null) { - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); } return this; @@ -17665,7 +18386,7 @@ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig v * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; */ public Builder clearEnableK8SBetaApis() { - bitField2_ = (bitField2_ & ~0x00000002); + bitField2_ = (bitField2_ & ~0x00000004); enableK8SBetaApis_ = null; if (enableK8SBetaApisBuilder_ != null) { enableK8SBetaApisBuilder_.dispose(); @@ -17684,7 +18405,7 @@ public Builder clearEnableK8SBetaApis() { * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; */ public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return getEnableK8SBetaApisFieldBuilder().getBuilder(); } @@ -17750,7 +18471,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB * @return Whether the enterpriseConfig field is set. */ public boolean hasEnterpriseConfig() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** * @@ -17790,7 +18511,7 @@ public Builder setEnterpriseConfig(com.google.container.v1.EnterpriseConfig valu } else { enterpriseConfigBuilder_.setMessage(value); } - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -17810,7 +18531,7 @@ public Builder setEnterpriseConfig( } else { enterpriseConfigBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -17825,7 +18546,7 @@ public Builder setEnterpriseConfig( */ public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { if (enterpriseConfigBuilder_ == null) { - if (((bitField2_ & 0x00000004) != 0) + if (((bitField2_ & 0x00000008) != 0) && enterpriseConfig_ != null && enterpriseConfig_ != com.google.container.v1.EnterpriseConfig.getDefaultInstance()) { getEnterpriseConfigBuilder().mergeFrom(value); @@ -17836,7 +18557,7 @@ public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig va enterpriseConfigBuilder_.mergeFrom(value); } if (enterpriseConfig_ != null) { - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); } return this; @@ -17851,7 +18572,7 @@ public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig va * .google.container.v1.EnterpriseConfig enterprise_config = 149; */ public Builder clearEnterpriseConfig() { - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); enterpriseConfig_ = null; if (enterpriseConfigBuilder_ != null) { enterpriseConfigBuilder_.dispose(); @@ -17870,7 +18591,7 @@ public Builder clearEnterpriseConfig() { * .google.container.v1.EnterpriseConfig enterprise_config = 149; */ public com.google.container.v1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return getEnterpriseConfigFieldBuilder().getBuilder(); } @@ -17918,53 +18639,65 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu return enterpriseConfigBuilder_; } - private boolean satisfiesPzs_; + private com.google.container.v1.SecretManagerConfig secretManagerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder> + secretManagerConfigBuilder_; /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; * - * @return Whether the satisfiesPzs field is set. + * @return Whether the secretManagerConfig field is set. */ - @java.lang.Override - public boolean hasSatisfiesPzs() { - return ((bitField2_ & 0x00000008) != 0); + public boolean hasSecretManagerConfig() { + return ((bitField2_ & 0x00000010) != 0); } /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; * - * @return The satisfiesPzs. + * @return The secretManagerConfig. */ - @java.lang.Override - public boolean getSatisfiesPzs() { - return satisfiesPzs_; + public com.google.container.v1.SecretManagerConfig getSecretManagerConfig() { + if (secretManagerConfigBuilder_ == null) { + return secretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } else { + return secretManagerConfigBuilder_.getMessage(); + } } /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The satisfiesPzs to set. - * @return This builder for chaining. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - public Builder setSatisfiesPzs(boolean value) { - - satisfiesPzs_ = value; - bitField2_ |= 0x00000008; + public Builder setSecretManagerConfig(com.google.container.v1.SecretManagerConfig value) { + if (secretManagerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secretManagerConfig_ = value; + } else { + secretManagerConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -17972,87 +18705,846 @@ public Builder setSatisfiesPzs(boolean value) { * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - public Builder clearSatisfiesPzs() { - bitField2_ = (bitField2_ & ~0x00000008); - satisfiesPzs_ = false; + public Builder setSecretManagerConfig( + com.google.container.v1.SecretManagerConfig.Builder builderForValue) { + if (secretManagerConfigBuilder_ == null) { + secretManagerConfig_ = builderForValue.build(); + } else { + secretManagerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000010; onChanged(); return this; } - - private boolean satisfiesPzi_; /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the satisfiesPzi field is set. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - @java.lang.Override - public boolean hasSatisfiesPzi() { - return ((bitField2_ & 0x00000010) != 0); + public Builder mergeSecretManagerConfig(com.google.container.v1.SecretManagerConfig value) { + if (secretManagerConfigBuilder_ == null) { + if (((bitField2_ & 0x00000010) != 0) + && secretManagerConfig_ != null + && secretManagerConfig_ + != com.google.container.v1.SecretManagerConfig.getDefaultInstance()) { + getSecretManagerConfigBuilder().mergeFrom(value); + } else { + secretManagerConfig_ = value; + } + } else { + secretManagerConfigBuilder_.mergeFrom(value); + } + if (secretManagerConfig_ != null) { + bitField2_ |= 0x00000010; + onChanged(); + } + return this; } /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzi. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - @java.lang.Override - public boolean getSatisfiesPzi() { - return satisfiesPzi_; + public Builder clearSecretManagerConfig() { + bitField2_ = (bitField2_ & ~0x00000010); + secretManagerConfig_ = null; + if (secretManagerConfigBuilder_ != null) { + secretManagerConfigBuilder_.dispose(); + secretManagerConfigBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The satisfiesPzi to set. - * @return This builder for chaining. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - public Builder setSatisfiesPzi(boolean value) { - - satisfiesPzi_ = value; + public com.google.container.v1.SecretManagerConfig.Builder getSecretManagerConfigBuilder() { bitField2_ |= 0x00000010; onChanged(); - return this; + return getSecretManagerConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Reserved for future use.
+     * Secret CSI driver configuration.
      * 
* - * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; */ - public Builder clearSatisfiesPzi() { - bitField2_ = (bitField2_ & ~0x00000010); - satisfiesPzi_ = false; + public com.google.container.v1.SecretManagerConfigOrBuilder getSecretManagerConfigOrBuilder() { + if (secretManagerConfigBuilder_ != null) { + return secretManagerConfigBuilder_.getMessageOrBuilder(); + } else { + return secretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + } + /** + * + * + *
+     * Secret CSI driver configuration.
+     * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder> + getSecretManagerConfigFieldBuilder() { + if (secretManagerConfigBuilder_ == null) { + secretManagerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder>( + getSecretManagerConfig(), getParentForChildren(), isClean()); + secretManagerConfig_ = null; + } + return secretManagerConfigBuilder_; + } + + private com.google.container.v1.CompliancePostureConfig compliancePostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder> + compliancePostureConfigBuilder_; + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return Whether the compliancePostureConfig field is set. + */ + public boolean hasCompliancePostureConfig() { + return ((bitField2_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return The compliancePostureConfig. + */ + public com.google.container.v1.CompliancePostureConfig getCompliancePostureConfig() { + if (compliancePostureConfigBuilder_ == null) { + return compliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } else { + return compliancePostureConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public Builder setCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compliancePostureConfig_ = value; + } else { + compliancePostureConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000020; onChanged(); return this; } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public Builder setCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig.Builder builderForValue) { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfig_ = builderForValue.build(); + } else { + compliancePostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public Builder mergeCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (((bitField2_ & 0x00000020) != 0) + && compliancePostureConfig_ != null + && compliancePostureConfig_ + != com.google.container.v1.CompliancePostureConfig.getDefaultInstance()) { + getCompliancePostureConfigBuilder().mergeFrom(value); + } else { + compliancePostureConfig_ = value; + } + } else { + compliancePostureConfigBuilder_.mergeFrom(value); + } + if (compliancePostureConfig_ != null) { + bitField2_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public Builder clearCompliancePostureConfig() { + bitField2_ = (bitField2_ & ~0x00000020); + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public com.google.container.v1.CompliancePostureConfig.Builder + getCompliancePostureConfigBuilder() { + bitField2_ |= 0x00000020; + onChanged(); + return getCompliancePostureConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + public com.google.container.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + if (compliancePostureConfigBuilder_ != null) { + return compliancePostureConfigBuilder_.getMessageOrBuilder(); + } else { + return compliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder> + getCompliancePostureConfigFieldBuilder() { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder>( + getCompliancePostureConfig(), getParentForChildren(), isClean()); + compliancePostureConfig_ = null; + } + return compliancePostureConfigBuilder_; + } + + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField2_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField2_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField2_ = (bitField2_ & ~0x00000040); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField2_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField2_ = (bitField2_ & ~0x00000080); + satisfiesPzi_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.UserManagedKeysConfig userManagedKeysConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder> + userManagedKeysConfigBuilder_; + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return Whether the userManagedKeysConfig field is set. + */ + public boolean hasUserManagedKeysConfig() { + return ((bitField2_ & 0x00000100) != 0); + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return The userManagedKeysConfig. + */ + public com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig() { + if (userManagedKeysConfigBuilder_ == null) { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } else { + return userManagedKeysConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public Builder setUserManagedKeysConfig(com.google.container.v1.UserManagedKeysConfig value) { + if (userManagedKeysConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userManagedKeysConfig_ = value; + } else { + userManagedKeysConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public Builder setUserManagedKeysConfig( + com.google.container.v1.UserManagedKeysConfig.Builder builderForValue) { + if (userManagedKeysConfigBuilder_ == null) { + userManagedKeysConfig_ = builderForValue.build(); + } else { + userManagedKeysConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public Builder mergeUserManagedKeysConfig(com.google.container.v1.UserManagedKeysConfig value) { + if (userManagedKeysConfigBuilder_ == null) { + if (((bitField2_ & 0x00000100) != 0) + && userManagedKeysConfig_ != null + && userManagedKeysConfig_ + != com.google.container.v1.UserManagedKeysConfig.getDefaultInstance()) { + getUserManagedKeysConfigBuilder().mergeFrom(value); + } else { + userManagedKeysConfig_ = value; + } + } else { + userManagedKeysConfigBuilder_.mergeFrom(value); + } + if (userManagedKeysConfig_ != null) { + bitField2_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public Builder clearUserManagedKeysConfig() { + bitField2_ = (bitField2_ & ~0x00000100); + userManagedKeysConfig_ = null; + if (userManagedKeysConfigBuilder_ != null) { + userManagedKeysConfigBuilder_.dispose(); + userManagedKeysConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public com.google.container.v1.UserManagedKeysConfig.Builder getUserManagedKeysConfigBuilder() { + bitField2_ |= 0x00000100; + onChanged(); + return getUserManagedKeysConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + public com.google.container.v1.UserManagedKeysConfigOrBuilder + getUserManagedKeysConfigOrBuilder() { + if (userManagedKeysConfigBuilder_ != null) { + return userManagedKeysConfigBuilder_.getMessageOrBuilder(); + } else { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder> + getUserManagedKeysConfigFieldBuilder() { + if (userManagedKeysConfigBuilder_ == null) { + userManagedKeysConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder>( + getUserManagedKeysConfig(), getParentForChildren(), isClean()); + userManagedKeysConfig_ = null; + } + return userManagedKeysConfigBuilder_; + } + + private com.google.container.v1.RBACBindingConfig rbacBindingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder> + rbacBindingConfigBuilder_; + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return Whether the rbacBindingConfig field is set. + */ + public boolean hasRbacBindingConfig() { + return ((bitField2_ & 0x00000200) != 0); + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return The rbacBindingConfig. + */ + public com.google.container.v1.RBACBindingConfig getRbacBindingConfig() { + if (rbacBindingConfigBuilder_ == null) { + return rbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : rbacBindingConfig_; + } else { + return rbacBindingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public Builder setRbacBindingConfig(com.google.container.v1.RBACBindingConfig value) { + if (rbacBindingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacBindingConfig_ = value; + } else { + rbacBindingConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public Builder setRbacBindingConfig( + com.google.container.v1.RBACBindingConfig.Builder builderForValue) { + if (rbacBindingConfigBuilder_ == null) { + rbacBindingConfig_ = builderForValue.build(); + } else { + rbacBindingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public Builder mergeRbacBindingConfig(com.google.container.v1.RBACBindingConfig value) { + if (rbacBindingConfigBuilder_ == null) { + if (((bitField2_ & 0x00000200) != 0) + && rbacBindingConfig_ != null + && rbacBindingConfig_ + != com.google.container.v1.RBACBindingConfig.getDefaultInstance()) { + getRbacBindingConfigBuilder().mergeFrom(value); + } else { + rbacBindingConfig_ = value; + } + } else { + rbacBindingConfigBuilder_.mergeFrom(value); + } + if (rbacBindingConfig_ != null) { + bitField2_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public Builder clearRbacBindingConfig() { + bitField2_ = (bitField2_ & ~0x00000200); + rbacBindingConfig_ = null; + if (rbacBindingConfigBuilder_ != null) { + rbacBindingConfigBuilder_.dispose(); + rbacBindingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public com.google.container.v1.RBACBindingConfig.Builder getRbacBindingConfigBuilder() { + bitField2_ |= 0x00000200; + onChanged(); + return getRbacBindingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + public com.google.container.v1.RBACBindingConfigOrBuilder getRbacBindingConfigOrBuilder() { + if (rbacBindingConfigBuilder_ != null) { + return rbacBindingConfigBuilder_.getMessageOrBuilder(); + } else { + return rbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : rbacBindingConfig_; + } + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder> + getRbacBindingConfigFieldBuilder() { + if (rbacBindingConfigBuilder_ == null) { + rbacBindingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder>( + getRbacBindingConfig(), getParentForChildren(), isClean()); + rbacBindingConfig_ = null; + } + return rbacBindingConfigBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index ad7b6a8d2e56..c7f83d115539 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -105,7 +105,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1775 + * google/container/v1/cluster_service.proto;l=1850 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1788 + * google/container/v1/cluster_service.proto;l=1863 * @return The nodeConfig. */ @java.lang.Deprecated @@ -814,40 +814,59 @@ java.lang.String getResourceLabelsOrDefault( * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return Whether the masterAuthorizedNetworksConfig field is set. */ + @java.lang.Deprecated boolean hasMasterAuthorizedNetworksConfig(); /** * * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * * + * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1965 * @return The masterAuthorizedNetworksConfig. */ + @java.lang.Deprecated com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); /** * * *
    * The configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config]
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; * */ + @java.lang.Deprecated com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder(); @@ -1553,7 +1572,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The zone. */ @java.lang.Deprecated @@ -1570,7 +1589,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1959 + * google/container/v1/cluster_service.proto;l=2039 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1701,7 +1720,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1722,7 +1741,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1994 + * google/container/v1/cluster_service.proto;l=2074 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1798,7 +1817,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The statusMessage. */ @java.lang.Deprecated @@ -1817,7 +1836,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2007 + * google/container/v1/cluster_service.proto;l=2087 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -1884,7 +1903,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -1901,7 +1920,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -1918,7 +1937,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -1936,7 +1955,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2024 + * google/container/v1/cluster_service.proto;l=2104 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -1956,7 +1975,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2029 + * google/container/v1/cluster_service.proto;l=2109 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -2421,6 +2440,45 @@ java.lang.String getResourceLabelsOrDefault( */ com.google.container.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return Whether the controlPlaneEndpointsConfig field is set. + */ + boolean hasControlPlaneEndpointsConfig(); + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + * + * @return The controlPlaneEndpointsConfig. + */ + com.google.container.v1.ControlPlaneEndpointsConfig getControlPlaneEndpointsConfig(); + /** + * + * + *
+   * Configuration for all cluster's control plane endpoints.
+   * 
+ * + * .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + * + */ + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getControlPlaneEndpointsConfigOrBuilder(); + /** * * @@ -2491,6 +2549,76 @@ java.lang.String getResourceLabelsOrDefault( */ com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + * + * @return Whether the secretManagerConfig field is set. + */ + boolean hasSecretManagerConfig(); + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + * + * @return The secretManagerConfig. + */ + com.google.container.v1.SecretManagerConfig getSecretManagerConfig(); + /** + * + * + *
+   * Secret CSI driver configuration.
+   * 
+ * + * .google.container.v1.SecretManagerConfig secret_manager_config = 150; + */ + com.google.container.v1.SecretManagerConfigOrBuilder getSecretManagerConfigOrBuilder(); + + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return Whether the compliancePostureConfig field is set. + */ + boolean hasCompliancePostureConfig(); + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + * + * @return The compliancePostureConfig. + */ + com.google.container.v1.CompliancePostureConfig getCompliancePostureConfig(); + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; + */ + com.google.container.v1.CompliancePostureConfigOrBuilder getCompliancePostureConfigOrBuilder(); + /** * * @@ -2540,4 +2668,80 @@ java.lang.String getResourceLabelsOrDefault( * @return The satisfiesPzi. */ boolean getSatisfiesPzi(); + + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return Whether the userManagedKeysConfig field is set. + */ + boolean hasUserManagedKeysConfig(); + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + * + * @return The userManagedKeysConfig. + */ + com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig(); + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; + * + */ + com.google.container.v1.UserManagedKeysConfigOrBuilder getUserManagedKeysConfigOrBuilder(); + + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return Whether the rbacBindingConfig field is set. + */ + boolean hasRbacBindingConfig(); + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + * + * @return The rbacBindingConfig. + */ + com.google.container.v1.RBACBindingConfig getRbacBindingConfig(); + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; + */ + com.google.container.v1.RBACBindingConfigOrBuilder getRbacBindingConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index cc9987bfa2cf..156f88c6064c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -216,6 +216,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ParallelstoreCsiDriverConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ParallelstoreCsiDriverConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_RayOperatorConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -264,6 +268,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RBACBindingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RBACBindingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UserManagedKeysConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UserManagedKeysConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CompliancePostureConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CompliancePostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -784,6 +804,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_Fleet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_Fleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ControlPlaneEndpointsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ControlPlaneEndpointsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -804,6 +836,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_EnterpriseConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecretManagerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecretManagerConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_SecondaryBootDisk_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -853,7 +889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cfs_quota_period\030\003 \001(\t\022\026\n\016pod_pids_limit" + "\030\004 \001(\003\0223\n&insecure_kubelet_readonly_port" + "_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_insecure_kubelet" - + "_readonly_port_enabled\"\346\021\n\nNodeConfig\022\024\n" + + "_readonly_port_enabled\"\320\023\n\nNodeConfig\022\024\n" + "\014machine_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(" + "\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017service_accou" + "nt\030\t \001(\t\022?\n\010metadata\030\004 \003(\0132-.google.cont" @@ -902,1276 +938,1375 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.container.v1.ResourceManagerTags" + "\022(\n\033enable_confidential_storage\030. \001(\010B\003\340" + "A\001\022D\n\024secondary_boot_disks\0300 \003(\0132&.googl" - + "e.container.v1.SecondaryBootDisk\022f\n#seco" - + "ndary_boot_disk_update_strategy\0302 \001(\01324." - + "google.container.v1.SecondaryBootDiskUpd" - + "ateStrategyH\001\210\001\001\032/\n\rMetadataEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023Reso" - + "urceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001B\016\n\014_fast_socketB&\n$_secondary_bo" - + "ot_disk_update_strategy\"\231\001\n\027AdvancedMach" - + "ineFeatures\022\035\n\020threads_per_core\030\001 \001(\003H\000\210" - + "\001\001\022)\n\034enable_nested_virtualization\030\002 \001(\010" - + "H\001\210\001\001B\023\n\021_threads_per_coreB\037\n\035_enable_ne" - + "sted_virtualization\"\263\006\n\021NodeNetworkConfi" - + "g\022\035\n\020create_pod_range\030\004 \001(\010B\003\340A\004\022\021\n\tpod_" - + "range\030\005 \001(\t\022\033\n\023pod_ipv4_cidr_block\030\006 \001(\t" - + "\022!\n\024enable_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032n" - + "etwork_performance_config\030\013 \001(\0132?.google" - + ".container.v1.NodeNetworkConfig.NetworkP" - + "erformanceConfigH\001\210\001\001\022V\n\035pod_cidr_overpr" - + "ovision_config\030\r \001(\0132/.google.container." - + "v1.PodCIDROverprovisionConfig\022Y\n\037additio" - + "nal_node_network_configs\030\016 \003(\01320.google." - + "container.v1.AdditionalNodeNetworkConfig" - + "\022W\n\036additional_pod_network_configs\030\017 \003(\013" - + "2/.google.container.v1.AdditionalPodNetw" - + "orkConfig\022\'\n\032pod_ipv4_range_utilization\030" - + "\020 \001(\001B\003\340A\003\032\324\001\n\030NetworkPerformanceConfig\022" - + "n\n\033total_egress_bandwidth_tier\030\001 \001(\0162D.g" - + "oogle.container.v1.NodeNetworkConfig.Net" - + "workPerformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022" - + "\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_to" - + "tal_egress_bandwidth_tierB\027\n\025_enable_pri" - + "vate_nodesB\035\n\033_network_performance_confi" - + "g\"B\n\033AdditionalNodeNetworkConfig\022\017\n\007netw" - + "ork\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"\253\001\n\032Additi" - + "onalPodNetworkConfig\022\022\n\nsubnetwork\030\001 \001(\t" - + "\022\033\n\023secondary_pod_range\030\002 \001(\t\022F\n\021max_pod" - + "s_per_node\030\003 \001(\0132&.google.container.v1.M" - + "axPodsConstraintH\000\210\001\001B\024\n\022_max_pods_per_n" - + "ode\"Y\n\026ShieldedInstanceConfig\022\032\n\022enable_" - + "secure_boot\030\001 \001(\010\022#\n\033enable_integrity_mo" - + "nitoring\030\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030" - + "\002 \001(\0162\'.google.container.v1.SandboxConfi" - + "g.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISO" - + "R\020\001\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023R" - + "eservationAffinity\022O\n\030consume_reservatio" - + "n_type\030\001 \001(\0162-.google.container.v1.Reser" - + "vationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006valu" - + "es\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_" - + "RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SP" - + "ECIFIC_RESERVATION\020\003\"\226\002\n\020SoleTenantConfi" - + "g\022K\n\017node_affinities\030\001 \003(\01322.google.cont" - + "ainer.v1.SoleTenantConfig.NodeAffinity\032\264" - + "\001\n\014NodeAffinity\022\013\n\003key\030\001 \001(\t\022M\n\010operator" - + "\030\002 \001(\0162;.google.container.v1.SoleTenantC" - + "onfig.NodeAffinity.Operator\022\016\n\006values\030\003 " - + "\003(\t\"8\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020" - + "\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\374\004\n\020ContainerdConf" - + "ig\022i\n\036private_registry_access_config\030\001 \001" - + "(\0132A.google.container.v1.ContainerdConfi" - + "g.PrivateRegistryAccessConfig\032\374\003\n\033Privat" - + "eRegistryAccessConfig\022\017\n\007enabled\030\001 \001(\010\022\217" - + "\001\n#certificate_authority_domain_config\030\002" - + " \003(\0132b.google.container.v1.ContainerdCon" - + "fig.PrivateRegistryAccessConfig.Certific" - + "ateAuthorityDomainConfig\032\271\002\n Certificate" - + "AuthorityDomainConfig\022\r\n\005fqdns\030\001 \003(\t\022\266\001\n" - + "%gcp_secret_manager_certificate_config\030\002" - + " \001(\0132\204\001.google.container.v1.ContainerdCo" - + "nfig.PrivateRegistryAccessConfig.Certifi" - + "cateAuthorityDomainConfig.GCPSecretManag" - + "erCertificateConfigH\000\0327\n!GCPSecretManage" - + "rCertificateConfig\022\022\n\nsecret_uri\030\001 \001(\tB\024" - + "\n\022certificate_config\"\271\001\n\tNodeTaint\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%" - + ".google.container.v1.NodeTaint.Effect\"Y\n" - + "\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SC" - + "HEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_E" - + "XECUTE\020\003\"<\n\nNodeTaints\022.\n\006taints\030\001 \003(\0132\036" - + ".google.container.v1.NodeTaint\"x\n\nNodeLa" - + "bels\022;\n\006labels\030\001 \003(\0132+.google.container." - + "v1.NodeLabels.LabelsEntry\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016Res" - + "ourceLabels\022?\n\006labels\030\001 \003(\0132/.google.con" - + "tainer.v1.ResourceLabels.LabelsEntry\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\350\001\n\nMas" - + "terAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwor" - + "d\030\002 \001(\tB\002\030\001\022O\n\031client_certificate_config" - + "\030\003 \001(\0132,.google.container.v1.ClientCerti" - + "ficateConfig\022#\n\026cluster_ca_certificate\030d" - + " \001(\tB\003\340A\003\022\037\n\022client_certificate\030e \001(\tB\003\340" - + "A\003\022\027\n\nclient_key\030f \001(\tB\003\340A\003\";\n\027ClientCer" - + "tificateConfig\022 \n\030issue_client_certifica" - + "te\030\001 \001(\010\"\366\007\n\014AddonsConfig\022C\n\023http_load_b" - + "alancing\030\001 \001(\0132&.google.container.v1.Htt" - + "pLoadBalancing\022Q\n\032horizontal_pod_autosca" - + "ling\030\002 \001(\0132-.google.container.v1.Horizon" - + "talPodAutoscaling\022J\n\024kubernetes_dashboar" - + "d\030\003 \001(\0132(.google.container.v1.Kubernetes" - + "DashboardB\002\030\001\022G\n\025network_policy_config\030\004" - + " \001(\0132(.google.container.v1.NetworkPolicy" - + "Config\022=\n\020cloud_run_config\030\007 \001(\0132#.googl" - + "e.container.v1.CloudRunConfig\022=\n\020dns_cac" - + "he_config\030\010 \001(\0132#.google.container.v1.Dn" - + "sCacheConfig\022K\n\027config_connector_config\030" - + "\n \001(\0132*.google.container.v1.ConfigConnec" - + "torConfig\022d\n%gce_persistent_disk_csi_dri" - + "ver_config\030\013 \001(\01325.google.container.v1.G" - + "cePersistentDiskCsiDriverConfig\022Y\n\037gcp_f" - + "ilestore_csi_driver_config\030\016 \001(\01320.googl" - + "e.container.v1.GcpFilestoreCsiDriverConf" - + "ig\022J\n\027gke_backup_agent_config\030\020 \001(\0132).go" - + "ogle.container.v1.GkeBackupAgentConfig\022O" - + "\n\032gcs_fuse_csi_driver_config\030\021 \001(\0132+.goo" - + "gle.container.v1.GcsFuseCsiDriverConfig\022" - + "F\n\022stateful_ha_config\030\022 \001(\0132%.google.con" - + "tainer.v1.StatefulHAConfigB\003\340A\001\022H\n\023ray_o" - + "perator_config\030\025 \001(\0132&.google.container." - + "v1.RayOperatorConfigB\003\340A\001\"%\n\021HttpLoadBal" - + "ancing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPo" - + "dAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kubern" - + "etesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Netwo" - + "rkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsC" - + "acheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateCl" - + "usterMasterGlobalAccessConfig\022\017\n\007enabled" - + "\030\001 \001(\010\"\324\002\n\024PrivateClusterConfig\022\034\n\024enabl" - + "e_private_nodes\030\001 \001(\010\022\037\n\027enable_private_" - + "endpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block" - + "\030\003 \001(\t\022\035\n\020private_endpoint\030\004 \001(\tB\003\340A\003\022\034\n" - + "\017public_endpoint\030\005 \001(\tB\003\340A\003\022\031\n\014peering_n" - + "ame\030\007 \001(\tB\003\340A\003\022`\n\033master_global_access_c" - + "onfig\030\010 \001(\0132;.google.container.v1.Privat" - + "eClusterMasterGlobalAccessConfig\022#\n\033priv" - + "ate_endpoint_subnetwork\030\n \001(\t\"D\n\031Authent" - + "icatorGroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016s" - + "ecurity_group\030\002 \001(\t\"\356\001\n\016CloudRunConfig\022\020" - + "\n\010disabled\030\001 \001(\010\022P\n\022load_balancer_type\030\003" - + " \001(\01624.google.container.v1.CloudRunConfi" - + "g.LoadBalancerType\"x\n\020LoadBalancerType\022\"" - + "\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LO" - + "AD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALA" - + "NCER_TYPE_INTERNAL\020\002\"(\n\025ConfigConnectorC" - + "onfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersistentD" - + "iskCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\".\n\033G" - + "cpFilestoreCsiDriverConfig\022\017\n\007enabled\030\001 " - + "\001(\010\")\n\026GcsFuseCsiDriverConfig\022\017\n\007enabled" - + "\030\001 \001(\010\"\330\001\n\021RayOperatorConfig\022\017\n\007enabled\030" - + "\001 \001(\010\022U\n\032ray_cluster_logging_config\030\002 \001(" - + "\0132,.google.container.v1.RayClusterLoggin" - + "gConfigB\003\340A\001\022[\n\035ray_cluster_monitoring_c" - + "onfig\030\003 \001(\0132/.google.container.v1.RayClu" - + "sterMonitoringConfigB\003\340A\001\"\'\n\024GkeBackupAg" - + "entConfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHA" - + "Config\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterAuthor" - + "izedNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013c" - + "idr_blocks\030\002 \003(\0132=.google.container.v1.M" - + "asterAuthorizedNetworksConfig.CidrBlock\022" - + ",\n\037gcp_public_cidrs_access_enabled\030\003 \001(\010" - + "H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t" - + "\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gcp_public_cidr" - + "s_access_enabled\"\035\n\nLegacyAbac\022\017\n\007enable" - + "d\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provider\030\001 " - + "\001(\0162+.google.container.v1.NetworkPolicy." - + "Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n" - + "\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023" - + "BinaryAuthorization\022\023\n\007enabled\030\001 \001(\010B\002\030\001" - + "\022P\n\017evaluation_mode\030\002 \001(\01627.google.conta" - + "iner.v1.BinaryAuthorization.EvaluationMo" - + "de\"e\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_" - + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_S" - + "INGLETON_POLICY_ENFORCE\020\002\"-\n\032PodCIDROver" - + "provisionConfig\022\017\n\007disable\030\001 \001(\010\"\275\006\n\022IPA" - + "llocationPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022" - + "\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017subnetwork" - + "_name\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002" - + "\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022servic" - + "es_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_second" - + "ary_range_name\030\007 \001(\t\022%\n\035services_seconda" - + "ry_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr" - + "_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001" - + "(\t\022 \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033\n\023" - + "tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_routes\030" - + "\017 \001(\010\0222\n\nstack_type\030\020 \001(\0162\036.google.conta" - + "iner.v1.StackType\022=\n\020ipv6_access_type\030\021 " - + "\001(\0162#.google.container.v1.IPv6AccessType" - + "\022V\n\035pod_cidr_overprovision_config\030\025 \001(\0132" - + "/.google.container.v1.PodCIDROverprovisi" - + "onConfig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\t" - + "B\003\340A\003\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB" - + "\003\340A\003\022Y\n\034additional_pod_ranges_config\030\030 \001" - + "(\0132..google.container.v1.AdditionalPodRa" - + "ngesConfigB\003\340A\003\022/\n\"default_pod_ipv4_rang" - + "e_utilization\030\031 \001(\001B\003\340A\003\"\302\034\n\007Cluster\022\014\n\004" - + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initi" - + "al_node_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004" - + " \001(\0132\037.google.container.v1.NodeConfigB\002\030" - + "\001\0224\n\013master_auth\030\005 \001(\0132\037.google.containe" - + "r.v1.MasterAuth\022\027\n\017logging_service\030\006 \001(\t" - + "\022\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007network\030" - + "\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n\raddo" - + "ns_config\030\n \001(\0132!.google.container.v1.Ad" - + "donsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_p" - + "ools\030\014 \003(\0132\035.google.container.v1.NodePoo" - + "l\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernete" - + "s_alpha\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320" - + ".google.container.v1.Cluster.ResourceLab" - + "elsEntry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013l" - + "egacy_abac\030\022 \001(\0132\037.google.container.v1.L" - + "egacyAbac\022:\n\016network_policy\030\023 \001(\0132\".goog" - + "le.container.v1.NetworkPolicy\022E\n\024ip_allo" - + "cation_policy\030\024 \001(\0132\'.google.container.v" - + "1.IPAllocationPolicy\022^\n!master_authorize" - + "d_networks_config\030\026 \001(\01323.google.contain" - + "er.v1.MasterAuthorizedNetworksConfig\022B\n\022" - + "maintenance_policy\030\027 \001(\0132&.google.contai" - + "ner.v1.MaintenancePolicy\022F\n\024binary_autho" - + "rization\030\030 \001(\0132(.google.container.v1.Bin" - + "aryAuthorization\022<\n\013autoscaling\030\032 \001(\0132\'." - + "google.container.v1.ClusterAutoscaling\022:" - + "\n\016network_config\030\033 \001(\0132\".google.containe" - + "r.v1.NetworkConfig\022K\n\033default_max_pods_c" - + "onstraint\030\036 \001(\0132&.google.container.v1.Ma" - + "xPodsConstraint\022T\n\034resource_usage_export" - + "_config\030! \001(\0132..google.container.v1.Reso" - + "urceUsageExportConfig\022S\n\033authenticator_g" - + "roups_config\030\" \001(\0132..google.container.v1" - + ".AuthenticatorGroupsConfig\022I\n\026private_cl" - + "uster_config\030% \001(\0132).google.container.v1" - + ".PrivateClusterConfig\022D\n\023database_encryp" - + "tion\030& \001(\0132\'.google.container.v1.Databas" - + "eEncryption\022M\n\030vertical_pod_autoscaling\030" - + "\' \001(\0132+.google.container.v1.VerticalPodA" - + "utoscaling\022:\n\016shielded_nodes\030( \001(\0132\".goo" - + "gle.container.v1.ShieldedNodes\022<\n\017releas" - + "e_channel\030) \001(\0132#.google.container.v1.Re" - + "leaseChannel\022M\n\030workload_identity_config" - + "\030+ \001(\0132+.google.container.v1.WorkloadIde" - + "ntityConfig\022@\n\021mesh_certificates\030C \001(\0132%" - + ".google.container.v1.MeshCertificates\022I\n" - + "\026cost_management_config\030- \001(\0132).google.c" - + "ontainer.v1.CostManagementConfig\022D\n\023noti" - + "fication_config\0301 \001(\0132\'.google.container" - + ".v1.NotificationConfig\022B\n\022confidential_n" - + "odes\0302 \001(\0132&.google.container.v1.Confide" - + "ntialNodes\022K\n\027identity_service_config\0306 " - + "\001(\0132*.google.container.v1.IdentityServic" - + "eConfig\022\026\n\tself_link\030d \001(\tB\003\340A\003\022\023\n\004zone\030" - + "e \001(\tB\005\030\001\340A\003\022\025\n\010endpoint\030f \001(\tB\003\340A\003\022\037\n\027i" - + "nitial_cluster_version\030g \001(\t\022#\n\026current_" - + "master_version\030h \001(\tB\003\340A\003\022#\n\024current_nod" - + "e_version\030i \001(\tB\005\030\001\340A\003\022\030\n\013create_time\030j " - + "\001(\tB\003\340A\003\0228\n\006status\030k \001(\0162#.google.contai" - + "ner.v1.Cluster.StatusB\003\340A\003\022\035\n\016status_mes" - + "sage\030l \001(\tB\005\030\001\340A\003\022 \n\023node_ipv4_cidr_size" - + "\030m \001(\005B\003\340A\003\022\037\n\022services_ipv4_cidr\030n \001(\tB" - + "\003\340A\003\022\"\n\023instance_group_urls\030o \003(\tB\005\030\001\340A\003" - + "\022!\n\022current_node_count\030p \001(\005B\005\030\001\340A\003\022\030\n\013e" - + "xpire_time\030q \001(\tB\003\340A\003\022\025\n\010location\030r \001(\tB" - + "\003\340A\003\022\022\n\nenable_tpu\030s \001(\010\022 \n\023tpu_ipv4_cid" - + "r_block\030t \001(\tB\003\340A\003\0228\n\nconditions\030v \003(\0132$" - + ".google.container.v1.StatusCondition\0222\n\t" - + "autopilot\030\200\001 \001(\0132\036.google.container.v1.A" - + "utopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_" - + "defaults\030\203\001 \001(\0132%.google.container.v1.No" - + "dePoolDefaultsH\000\210\001\001\022;\n\016logging_config\030\204\001" - + " \001(\0132\".google.container.v1.LoggingConfig" - + "\022A\n\021monitoring_config\030\205\001 \001(\0132%.google.co" - + "ntainer.v1.MonitoringConfig\022G\n\025node_pool" - + "_auto_config\030\210\001 \001(\0132\'.google.container.v" - + "1.NodePoolAutoConfig\022\r\n\004etag\030\213\001 \001(\t\022*\n\005f" - + "leet\030\214\001 \001(\0132\032.google.container.v1.Fleet\022" - + "L\n\027security_posture_config\030\221\001 \001(\0132*.goog" - + "le.container.v1.SecurityPostureConfig\022D\n" - + "\024enable_k8s_beta_apis\030\217\001 \001(\0132%.google.co" - + "ntainer.v1.K8sBetaAPIConfig\022A\n\021enterpris" - + "e_config\030\225\001 \001(\0132%.google.container.v1.En" - + "terpriseConfig\022 \n\rsatisfies_pzs\030\230\001 \001(\010B\003" - + "\340A\003H\001\210\001\001\022 \n\rsatisfies_pzi\030\231\001 \001(\010B\003\340A\003H\002\210" - + "\001\001\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UN" - + "SPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING" - + "\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERR" - + "OR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_default" - + "sB\020\n\016_satisfies_pzsB\020\n\016_satisfies_pzi\"(\n" - + "\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030\001 \003(\t\"" - + "\256\003\n\025SecurityPostureConfig\022B\n\004mode\030\001 \001(\0162" - + "/.google.container.v1.SecurityPostureCon" - + "fig.ModeH\000\210\001\001\022]\n\022vulnerability_mode\030\002 \001(" - + "\0162<.google.container.v1.SecurityPostureC" - + "onfig.VulnerabilityModeH\001\210\001\001\"E\n\004Mode\022\024\n\020" - + "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASI" - + "C\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021VulnerabilityMod" - + "e\022\"\n\036VULNERABILITY_MODE_UNSPECIFIED\020\000\022\032\n" - + "\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNERABILI" - + "TY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERPRISE\020\003" - + "B\007\n\005_modeB\025\n\023_vulnerability_mode\"\332\001\n\022Nod" - + "ePoolAutoConfig\0226\n\014network_tags\030\001 \001(\0132 ." - + "google.container.v1.NetworkTags\022G\n\025resou" - + "rce_manager_tags\030\002 \001(\0132(.google.containe" - + "r.v1.ResourceManagerTags\022C\n\023node_kubelet" - + "_config\030\003 \001(\0132&.google.container.v1.Node" - + "KubeletConfig\"Y\n\020NodePoolDefaults\022E\n\024nod" - + "e_config_defaults\030\001 \001(\0132\'.google.contain" - + "er.v1.NodeConfigDefaults\"\225\002\n\022NodeConfigD" - + "efaults\0224\n\013gcfs_config\030\001 \001(\0132\037.google.co" - + "ntainer.v1.GcfsConfig\022B\n\016logging_config\030" - + "\003 \001(\0132*.google.container.v1.NodePoolLogg" - + "ingConfig\022@\n\021containerd_config\030\004 \001(\0132%.g" - + "oogle.container.v1.ContainerdConfig\022C\n\023n" - + "ode_kubelet_config\030\006 \001(\0132&.google.contai" - + "ner.v1.NodeKubeletConfig\"\220!\n\rClusterUpda" - + "te\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032desi" - + "red_monitoring_service\030\005 \001(\t\022@\n\025desired_" - + "addons_config\030\006 \001(\0132!.google.container.v" - + "1.AddonsConfig\022\034\n\024desired_node_pool_id\030\007" - + " \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033desi" - + "red_database_encryption\030. \001(\0132\'.google.c" - + "ontainer.v1.DatabaseEncryption\022U\n desire", - "d_workload_identity_config\030/ \001(\0132+.googl" - + "e.container.v1.WorkloadIdentityConfig\022H\n" - + "\031desired_mesh_certificates\030C \001(\0132%.googl" - + "e.container.v1.MeshCertificates\022B\n\026desir" - + "ed_shielded_nodes\0300 \001(\0132\".google.contain" - + "er.v1.ShieldedNodes\022Q\n\036desired_cost_mana" - + "gement_config\0301 \001(\0132).google.container.v" - + "1.CostManagementConfig\022:\n\022desired_dns_co" - + "nfig\0305 \001(\0132\036.google.container.v1.DNSConf" - + "ig\022O\n\035desired_node_pool_autoscaling\030\t \001(" - + "\0132(.google.container.v1.NodePoolAutoscal" - + "ing\022\031\n\021desired_locations\030\n \003(\t\022f\n)desire" - + "d_master_authorized_networks_config\030\014 \001(" - + "\01323.google.container.v1.MasterAuthorized" - + "NetworksConfig\022L\n\033desired_cluster_autosc" - + "aling\030\017 \001(\0132\'.google.container.v1.Cluste" - + "rAutoscaling\022N\n\034desired_binary_authoriza" - + "tion\030\020 \001(\0132(.google.container.v1.BinaryA" - + "uthorization\022\037\n\027desired_logging_service\030" - + "\023 \001(\t\022\\\n$desired_resource_usage_export_c" - + "onfig\030\025 \001(\0132..google.container.v1.Resour" - + "ceUsageExportConfig\022U\n desired_vertical_" - + "pod_autoscaling\030\026 \001(\0132+.google.container" - + ".v1.VerticalPodAutoscaling\022Q\n\036desired_pr" - + "ivate_cluster_config\030\031 \001(\0132).google.cont" - + "ainer.v1.PrivateClusterConfig\022\\\n$desired" - + "_intra_node_visibility_config\030\032 \001(\0132..go" - + "ogle.container.v1.IntraNodeVisibilityCon" - + "fig\022K\n\033desired_default_snat_status\030\034 \001(\013" - + "2&.google.container.v1.DefaultSnatStatus" - + "\022D\n\027desired_release_channel\030\037 \001(\0132#.goog" - + "le.container.v1.ReleaseChannel\022Q\n\037desire" - + "d_l4ilb_subsetting_config\030\' \001(\0132(.google" - + ".container.v1.ILBSubsettingConfig\022H\n\031des" - + "ired_datapath_provider\0302 \001(\0162%.google.co" - + "ntainer.v1.DatapathProvider\022X\n\"desired_p" - + "rivate_ipv6_google_access\0303 \001(\0162,.google" - + ".container.v1.PrivateIPv6GoogleAccess\022L\n" - + "\033desired_notification_config\0307 \001(\0132\'.goo" - + "gle.container.v1.NotificationConfig\022[\n#d" - + "esired_authenticator_groups_config\030? \001(\013" - + "2..google.container.v1.AuthenticatorGrou" - + "psConfig\022B\n\026desired_logging_config\030@ \001(\013" - + "2\".google.container.v1.LoggingConfig\022H\n\031" - + "desired_monitoring_config\030A \001(\0132%.google" - + ".container.v1.MonitoringConfig\022S\n\037desire" - + "d_identity_service_config\030B \001(\0132*.google" - + ".container.v1.IdentityServiceConfig\022Z\n#d" - + "esired_service_external_ips_config\030< \001(\013" - + "2-.google.container.v1.ServiceExternalIP" - + "sConfig\022,\n\037desired_enable_private_endpoi" - + "nt\030G \001(\010H\000\210\001\001\022\036\n\026desired_master_version\030" - + "d \001(\t\022<\n\023desired_gcfs_config\030m \001(\0132\037.goo" - + "gle.container.v1.GcfsConfig\022T\n*desired_n" - + "ode_pool_auto_config_network_tags\030n \001(\0132" - + " .google.container.v1.NetworkTags\022I\n\032des" - + "ired_gateway_api_config\030r \001(\0132%.google.c" - + "ontainer.v1.GatewayAPIConfig\022\014\n\004etag\030s \001" - + "(\t\022T\n desired_node_pool_logging_config\030t" - + " \001(\0132*.google.container.v1.NodePoolLoggi" - + "ngConfig\0221\n\rdesired_fleet\030u \001(\0132\032.google" - + ".container.v1.Fleet\022:\n\022desired_stack_typ" - + "e\030w \001(\0162\036.google.container.v1.StackType\022" - + "T\n\034additional_pod_ranges_config\030x \001(\0132.." - + "google.container.v1.AdditionalPodRangesC" - + "onfig\022\\\n$removed_additional_pod_ranges_c" - + "onfig\030y \001(\0132..google.container.v1.Additi" - + "onalPodRangesConfig\022C\n\024enable_k8s_beta_a" - + "pis\030z \001(\0132%.google.container.v1.K8sBetaA" - + "PIConfig\022S\n\037desired_security_posture_con" - + "fig\030| \001(\0132*.google.container.v1.Security" - + "PostureConfig\022n\n\"desired_network_perform" - + "ance_config\030} \001(\0132B.google.container.v1." - + "NetworkConfig.ClusterNetworkPerformanceC" - + "onfig\022/\n\"desired_enable_fqdn_network_pol" - + "icy\030~ \001(\010H\001\210\001\001\022\\\n(desired_autopilot_work" - + "load_policy_config\030\200\001 \001(\0132).google.conta" - + "iner.v1.WorkloadPolicyConfig\022E\n\025desired_" - + "k8s_beta_apis\030\203\001 \001(\0132%.google.container." - + "v1.K8sBetaAPIConfig\022I\n\031desired_container" - + "d_config\030\206\001 \001(\0132%.google.container.v1.Co" - + "ntainerdConfig\022-\n\037desired_enable_multi_n" - + "etworking\030\207\001 \001(\010H\002\210\001\001\022f\n3desired_node_po" - + "ol_auto_config_resource_manager_tags\030\210\001 " - + "\001(\0132(.google.container.v1.ResourceManage" - + "rTags\022b\n$desired_in_transit_encryption_c" - + "onfig\030\211\001 \001(\0162..google.container.v1.InTra" - + "nsitEncryptionConfigH\003\210\001\001\022>\n0desired_ena" - + "ble_cilium_clusterwide_network_policy\030\212\001" - + " \001(\010H\004\210\001\001\022L\n\033desired_node_kubelet_config" - + "\030\215\001 \001(\0132&.google.container.v1.NodeKubele" - + "tConfig\022]\n,desired_node_pool_auto_config" - + "_kubelet_config\030\216\001 \001(\0132&.google.containe" - + "r.v1.NodeKubeletConfigB\"\n _desired_enabl" - + "e_private_endpointB%\n#_desired_enable_fq" - + "dn_network_policyB\"\n _desired_enable_mul" - + "ti_networkingB\'\n%_desired_in_transit_enc" - + "ryption_configB3\n1_desired_enable_cilium" - + "_clusterwide_network_policy\"q\n\031Additiona" - + "lPodRangesConfig\022\027\n\017pod_range_names\030\001 \003(" - + "\t\022;\n\016pod_range_info\030\002 \003(\0132\036.google.conta" - + "iner.v1.RangeInfoB\003\340A\003\">\n\tRangeInfo\022\027\n\nr" - + "ange_name\030\001 \001(\tB\003\340A\003\022\030\n\013utilization\030\002 \001(" - + "\001B\003\340A\003\"\344\010\n\tOperation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "\023\n\004zone\030\002 \001(\tB\005\030\001\340A\003\022@\n\016operation_type\030\003" - + " \001(\0162#.google.container.v1.Operation.Typ" - + "eB\003\340A\003\022:\n\006status\030\004 \001(\0162%.google.containe" - + "r.v1.Operation.StatusB\003\340A\003\022\023\n\006detail\030\010 \001" - + "(\tB\003\340A\003\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\026" - + "\n\tself_link\030\006 \001(\tB\003\340A\003\022\030\n\013target_link\030\007 " - + "\001(\tB\003\340A\003\022\025\n\010location\030\t \001(\tB\003\340A\003\022\027\n\nstart" - + "_time\030\n \001(\tB\003\340A\003\022\025\n\010end_time\030\013 \001(\tB\003\340A\003\022" - + "=\n\010progress\030\014 \001(\0132&.google.container.v1." - + "OperationProgressB\003\340A\003\022D\n\022cluster_condit" - + "ions\030\r \003(\0132$.google.container.v1.StatusC" - + "onditionB\002\030\001\022E\n\023nodepool_conditions\030\016 \003(" - + "\0132$.google.container.v1.StatusConditionB" - + "\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R" - + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PEND" - + "ING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING" - + "\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CRE" - + "ATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPG" - + "RADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPA" - + "IR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREA" - + "TE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030" - + "SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAI" - + "R_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n" - + "\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002" - + "\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWOR" - + "K_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY" - + "\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEAT" - + "URE_UPGRADE\020\023\"\273\002\n\021OperationProgress\022\014\n\004n" - + "ame\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.conta" - + "iner.v1.Operation.Status\022>\n\007metrics\030\003 \003(" - + "\0132-.google.container.v1.OperationProgres" - + "s.Metric\0226\n\006stages\030\004 \003(\0132&.google.contai" - + "ner.v1.OperationProgress\032i\n\006Metric\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014do" - + "uble_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\t" - + "H\000B\007\n\005value\"\204\001\n\024CreateClusterRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0222" - + "\n\007cluster\030\003 \001(\0132\034.google.container.v1.Cl" - + "usterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetCluster" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004nam" - + "e\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\nproj" - + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" - + "uster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".goo" - + "gle.container.v1.ClusterUpdateB\003\340A\002\022\014\n\004n" - + "ame\030\005 \001(\t\"\323\013\n\025UpdateNodePoolRequest\022\026\n\np" - + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" - + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " - + "\001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nim" - + "age_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tloc" - + "ations\030\r \003(\t\022M\n\030workload_metadata_config" - + "\030\016 \001(\0132+.google.container.v1.WorkloadMet" - + "adataConfig\022G\n\020upgrade_settings\030\017 \001(\0132-." - + "google.container.v1.NodePool.UpgradeSett" - + "ings\022.\n\004tags\030\020 \001(\0132 .google.container.v1" - + ".NetworkTags\022/\n\006taints\030\021 \001(\0132\037.google.co" - + "ntainer.v1.NodeTaints\022/\n\006labels\030\022 \001(\0132\037." - + "google.container.v1.NodeLabels\022?\n\021linux_" - + "node_config\030\023 \001(\0132$.google.container.v1." - + "LinuxNodeConfig\022>\n\016kubelet_config\030\024 \001(\0132" + + "e.container.v1.SecondaryBootDisk\022\025\n\rstor" + + "age_pools\0301 \003(\t\022f\n#secondary_boot_disk_u" + + "pdate_strategy\0302 \001(\01324.google.container." + + "v1.SecondaryBootDiskUpdateStrategyH\001\210\001\001\022" + + "W\n\025effective_cgroup_mode\0307 \001(\01623.google." + + "container.v1.NodeConfig.EffectiveCgroupM" + + "odeB\003\340A\003\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023ResourceLabe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "x\n\023EffectiveCgroupMode\022%\n!EFFECTIVE_CGRO" + + "UP_MODE_UNSPECIFIED\020\000\022\034\n\030EFFECTIVE_CGROU" + + "P_MODE_V1\020\001\022\034\n\030EFFECTIVE_CGROUP_MODE_V2\020" + + "\002B\016\n\014_fast_socketB&\n$_secondary_boot_dis" + + "k_update_strategy\"\231\001\n\027AdvancedMachineFea" + + "tures\022\035\n\020threads_per_core\030\001 \001(\003H\000\210\001\001\022)\n\034" + + "enable_nested_virtualization\030\002 \001(\010H\001\210\001\001B" + + "\023\n\021_threads_per_coreB\037\n\035_enable_nested_v" + + "irtualization\"\263\006\n\021NodeNetworkConfig\022\035\n\020c" + + "reate_pod_range\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030" + + "\005 \001(\t\022\033\n\023pod_ipv4_cidr_block\030\006 \001(\t\022!\n\024en" + + "able_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032network" + + "_performance_config\030\013 \001(\0132?.google.conta" + + "iner.v1.NodeNetworkConfig.NetworkPerform" + + "anceConfigH\001\210\001\001\022V\n\035pod_cidr_overprovisio" + + "n_config\030\r \001(\0132/.google.container.v1.Pod" + + "CIDROverprovisionConfig\022Y\n\037additional_no" + + "de_network_configs\030\016 \003(\01320.google.contai" + + "ner.v1.AdditionalNodeNetworkConfig\022W\n\036ad" + + "ditional_pod_network_configs\030\017 \003(\0132/.goo" + + "gle.container.v1.AdditionalPodNetworkCon" + + "fig\022\'\n\032pod_ipv4_range_utilization\030\020 \001(\001B" + + "\003\340A\003\032\324\001\n\030NetworkPerformanceConfig\022n\n\033tot" + + "al_egress_bandwidth_tier\030\001 \001(\0162D.google." + + "container.v1.NodeNetworkConfig.NetworkPe" + + "rformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIE" + + "R_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_eg" + + "ress_bandwidth_tierB\027\n\025_enable_private_n" + + "odesB\035\n\033_network_performance_config\"B\n\033A" + + "dditionalNodeNetworkConfig\022\017\n\007network\030\001 " + + "\001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"\253\001\n\032AdditionalPo" + + "dNetworkConfig\022\022\n\nsubnetwork\030\001 \001(\t\022\033\n\023se" + + "condary_pod_range\030\002 \001(\t\022F\n\021max_pods_per_" + + "node\030\003 \001(\0132&.google.container.v1.MaxPods" + + "ConstraintH\000\210\001\001B\024\n\022_max_pods_per_node\"Y\n" + + "\026ShieldedInstanceConfig\022\032\n\022enable_secure" + + "_boot\030\001 \001(\010\022#\n\033enable_integrity_monitori" + + "ng\030\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030\002 \001(\0162" + + "\'.google.container.v1.SandboxConfig.Type" + + "\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISOR\020\001\"\035\n" + + "\nGcfsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023Reserva" + + "tionAffinity\022O\n\030consume_reservation_type" + + "\030\001 \001(\0162-.google.container.v1.Reservation" + + "Affinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003" + + "(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RESERV" + + "ATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC" + + "_RESERVATION\020\003\"\226\002\n\020SoleTenantConfig\022K\n\017n" + + "ode_affinities\030\001 \003(\01322.google.container." + + "v1.SoleTenantConfig.NodeAffinity\032\264\001\n\014Nod" + + "eAffinity\022\013\n\003key\030\001 \001(\t\022M\n\010operator\030\002 \001(\016" + + "2;.google.container.v1.SoleTenantConfig." + + "NodeAffinity.Operator\022\016\n\006values\030\003 \003(\t\"8\n" + + "\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002I" + + "N\020\001\022\n\n\006NOT_IN\020\002\"\374\004\n\020ContainerdConfig\022i\n\036" + + "private_registry_access_config\030\001 \001(\0132A.g" + + "oogle.container.v1.ContainerdConfig.Priv" + + "ateRegistryAccessConfig\032\374\003\n\033PrivateRegis" + + "tryAccessConfig\022\017\n\007enabled\030\001 \001(\010\022\217\001\n#cer" + + "tificate_authority_domain_config\030\002 \003(\0132b" + + ".google.container.v1.ContainerdConfig.Pr" + + "ivateRegistryAccessConfig.CertificateAut" + + "horityDomainConfig\032\271\002\n CertificateAuthor" + + "ityDomainConfig\022\r\n\005fqdns\030\001 \003(\t\022\266\001\n%gcp_s" + + "ecret_manager_certificate_config\030\002 \001(\0132\204" + + "\001.google.container.v1.ContainerdConfig.P" + + "rivateRegistryAccessConfig.CertificateAu" + + "thorityDomainConfig.GCPSecretManagerCert" + + "ificateConfigH\000\0327\n!GCPSecretManagerCerti" + + "ficateConfig\022\022\n\nsecret_uri\030\001 \001(\tB\024\n\022cert" + + "ificate_config\"\271\001\n\tNodeTaint\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%.googl" + + "e.container.v1.NodeTaint.Effect\"Y\n\006Effec" + + "t\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE" + + "\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE" + + "\020\003\"<\n\nNodeTaints\022.\n\006taints\030\001 \003(\0132\036.googl" + + "e.container.v1.NodeTaint\"x\n\nNodeLabels\022;" + + "\n\006labels\030\001 \003(\0132+.google.container.v1.Nod" + + "eLabels.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016ResourceL" + + "abels\022?\n\006labels\030\001 \003(\0132/.google.container" + + ".v1.ResourceLabels.LabelsEntry\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n" + + "\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\350\001\n\nMasterAut" + + "h\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010password\030\002 \001(" + + "\tB\002\030\001\022O\n\031client_certificate_config\030\003 \001(\013" + + "2,.google.container.v1.ClientCertificate" + + "Config\022#\n\026cluster_ca_certificate\030d \001(\tB\003" + + "\340A\003\022\037\n\022client_certificate\030e \001(\tB\003\340A\003\022\027\n\n" + + "client_key\030f \001(\tB\003\340A\003\";\n\027ClientCertifica" + + "teConfig\022 \n\030issue_client_certificate\030\001 \001" + + "(\010\"\322\010\n\014AddonsConfig\022C\n\023http_load_balanci" + + "ng\030\001 \001(\0132&.google.container.v1.HttpLoadB" + + "alancing\022Q\n\032horizontal_pod_autoscaling\030\002" + + " \001(\0132-.google.container.v1.HorizontalPod" + + "Autoscaling\022J\n\024kubernetes_dashboard\030\003 \001(" + + "\0132(.google.container.v1.KubernetesDashbo" + + "ardB\002\030\001\022G\n\025network_policy_config\030\004 \001(\0132(" + + ".google.container.v1.NetworkPolicyConfig" + + "\022=\n\020cloud_run_config\030\007 \001(\0132#.google.cont" + + "ainer.v1.CloudRunConfig\022=\n\020dns_cache_con" + + "fig\030\010 \001(\0132#.google.container.v1.DnsCache" + + "Config\022K\n\027config_connector_config\030\n \001(\0132" + + "*.google.container.v1.ConfigConnectorCon" + + "fig\022d\n%gce_persistent_disk_csi_driver_co" + + "nfig\030\013 \001(\01325.google.container.v1.GcePers" + + "istentDiskCsiDriverConfig\022Y\n\037gcp_filesto" + + "re_csi_driver_config\030\016 \001(\01320.google.cont" + + "ainer.v1.GcpFilestoreCsiDriverConfig\022J\n\027" + + "gke_backup_agent_config\030\020 \001(\0132).google.c" + + "ontainer.v1.GkeBackupAgentConfig\022O\n\032gcs_" + + "fuse_csi_driver_config\030\021 \001(\0132+.google.co" + + "ntainer.v1.GcsFuseCsiDriverConfig\022F\n\022sta" + + "teful_ha_config\030\022 \001(\0132%.google.container" + + ".v1.StatefulHAConfigB\003\340A\001\022Z\n\037parallelsto" + + "re_csi_driver_config\030\023 \001(\01321.google.cont" + + "ainer.v1.ParallelstoreCsiDriverConfig\022H\n" + + "\023ray_operator_config\030\025 \001(\0132&.google.cont" + + "ainer.v1.RayOperatorConfigB\003\340A\001\"%\n\021HttpL" + + "oadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Horizo" + + "ntalPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023" + + "KubernetesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n" + + "\023NetworkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!" + + "\n\016DnsCacheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&Pri" + + "vateClusterMasterGlobalAccessConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\"\350\002\n\024PrivateClusterConfig\022 \n" + + "\024enable_private_nodes\030\001 \001(\010B\002\030\001\022#\n\027enabl" + + "e_private_endpoint\030\002 \001(\010B\002\030\001\022\036\n\026master_i" + + "pv4_cidr_block\030\003 \001(\t\022\037\n\020private_endpoint" + + "\030\004 \001(\tB\005\030\001\340A\003\022\036\n\017public_endpoint\030\005 \001(\tB\005" + + "\030\001\340A\003\022\031\n\014peering_name\030\007 \001(\tB\003\340A\003\022d\n\033mast" + + "er_global_access_config\030\010 \001(\0132;.google.c" + + "ontainer.v1.PrivateClusterMasterGlobalAc" + + "cessConfigB\002\030\001\022\'\n\033private_endpoint_subne" + + "twork\030\n \001(\tB\002\030\001\"D\n\031AuthenticatorGroupsCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_group\030" + + "\002 \001(\t\"\356\001\n\016CloudRunConfig\022\020\n\010disabled\030\001 \001" + + "(\010\022P\n\022load_balancer_type\030\003 \001(\01624.google." + + "container.v1.CloudRunConfig.LoadBalancer" + + "Type\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCE" + + "R_TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TY" + + "PE_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTE" + + "RNAL\020\002\"(\n\025ConfigConnectorConfig\022\017\n\007enabl" + + "ed\030\001 \001(\010\"3\n GcePersistentDiskCsiDriverCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsi" + + "DriverConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026GcsFuse" + + "CsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\"/\n\034Para" + + "llelstoreCsiDriverConfig\022\017\n\007enabled\030\001 \001(" + + "\010\"\330\001\n\021RayOperatorConfig\022\017\n\007enabled\030\001 \001(\010" + + "\022U\n\032ray_cluster_logging_config\030\002 \001(\0132,.g" + + "oogle.container.v1.RayClusterLoggingConf" + + "igB\003\340A\001\022[\n\035ray_cluster_monitoring_config" + + "\030\003 \001(\0132/.google.container.v1.RayClusterM" + + "onitoringConfigB\003\340A\001\"\'\n\024GkeBackupAgentCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHAConfi" + + "g\022\017\n\007enabled\030\001 \001(\010\"\352\002\n\036MasterAuthorizedN" + + "etworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr_b" + + "locks\030\002 \003(\0132=.google.container.v1.Master" + + "AuthorizedNetworksConfig.CidrBlock\022,\n\037gc" + + "p_public_cidrs_access_enabled\030\003 \001(\010H\000\210\001\001" + + "\0221\n$private_endpoint_enforcement_enabled" + + "\030\005 \001(\010H\001\210\001\001\0325\n\tCidrBlock\022\024\n\014display_name" + + "\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gcp_publi" + + "c_cidrs_access_enabledB\'\n%_private_endpo" + + "int_enforcement_enabled\"\035\n\nLegacyAbac\022\017\n" + + "\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010prov" + + "ider\030\001 \001(\0162+.google.container.v1.Network" + + "Policy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Prov" + + "ider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO" + + "\020\001\"\343\001\n\023BinaryAuthorization\022\023\n\007enabled\030\001 " + + "\001(\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\01627.googl" + + "e.container.v1.BinaryAuthorization.Evalu" + + "ationMode\"e\n\016EvaluationMode\022\037\n\033EVALUATIO" + + "N_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PR" + + "OJECT_SINGLETON_POLICY_ENFORCE\020\002\"-\n\032PodC" + + "IDROverprovisionConfig\022\017\n\007disable\030\001 \001(\010\"" + + "\275\006\n\022IPAllocationPolicy\022\026\n\016use_ip_aliases" + + "\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017sub" + + "network_name\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030" + + "\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n" + + "\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster" + + "_secondary_range_name\030\007 \001(\t\022%\n\035services_" + + "secondary_range_name\030\010 \001(\t\022\037\n\027cluster_ip" + + "v4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_bl" + + "ock\030\n \001(\t\022 \n\030services_ipv4_cidr_block\030\013 " + + "\001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_" + + "routes\030\017 \001(\010\0222\n\nstack_type\030\020 \001(\0162\036.googl" + + "e.container.v1.StackType\022=\n\020ipv6_access_" + + "type\030\021 \001(\0162#.google.container.v1.IPv6Acc" + + "essType\022V\n\035pod_cidr_overprovision_config" + + "\030\025 \001(\0132/.google.container.v1.PodCIDROver" + + "provisionConfig\022#\n\026subnet_ipv6_cidr_bloc" + + "k\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_cidr_block" + + "\030\027 \001(\tB\003\340A\003\022Y\n\034additional_pod_ranges_con" + + "fig\030\030 \001(\0132..google.container.v1.Addition" + + "alPodRangesConfigB\003\340A\003\022/\n\"default_pod_ip" + + "v4_range_utilization\030\031 \001(\001B\003\340A\003\"\221 \n\007Clus" + + "ter\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036" + + "\n\022initial_node_count\030\003 \001(\005B\002\030\001\0228\n\013node_c" + + "onfig\030\004 \001(\0132\037.google.container.v1.NodeCo" + + "nfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.google.c" + + "ontainer.v1.MasterAuth\022\027\n\017logging_servic" + + "e\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007n" + + "etwork\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\022" + + "8\n\raddons_config\030\n \001(\0132!.google.containe" + + "r.v1.AddonsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n" + + "\nnode_pools\030\014 \003(\0132\035.google.container.v1." + + "NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_ku" + + "bernetes_alpha\030\016 \001(\010\022I\n\017resource_labels\030" + + "\017 \003(\01320.google.container.v1.Cluster.Reso" + + "urceLabelsEntry\022\031\n\021label_fingerprint\030\020 \001" + + "(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google.contain" + + "er.v1.LegacyAbac\022:\n\016network_policy\030\023 \001(\013" + + "2\".google.container.v1.NetworkPolicy\022E\n\024" + + "ip_allocation_policy\030\024 \001(\0132\'.google.cont" + + "ainer.v1.IPAllocationPolicy\022b\n!master_au" + + "thorized_networks_config\030\026 \001(\01323.google." + + "container.v1.MasterAuthorizedNetworksCon" + + "figB\002\030\001\022B\n\022maintenance_policy\030\027 \001(\0132&.go" + + "ogle.container.v1.MaintenancePolicy\022F\n\024b" + + "inary_authorization\030\030 \001(\0132(.google.conta" + + "iner.v1.BinaryAuthorization\022<\n\013autoscali" + + "ng\030\032 \001(\0132\'.google.container.v1.ClusterAu" + + "toscaling\022:\n\016network_config\030\033 \001(\0132\".goog" + + "le.container.v1.NetworkConfig\022K\n\033default" + + "_max_pods_constraint\030\036 \001(\0132&.google.cont" + + "ainer.v1.MaxPodsConstraint\022T\n\034resource_u" + + "sage_export_config\030! \001(\0132..google.contai" + + "ner.v1.ResourceUsageExportConfig\022S\n\033auth" + + "enticator_groups_config\030\" \001(\0132..google.c" + + "ontainer.v1.AuthenticatorGroupsConfig\022I\n" + + "\026private_cluster_config\030% \001(\0132).google.c" + + "ontainer.v1.PrivateClusterConfig\022D\n\023data" + + "base_encryption\030& \001(\0132\'.google.container" + + ".v1.DatabaseEncryption\022M\n\030vertical_pod_a" + + "utoscaling\030\' \001(\0132+.google.container.v1.V" + + "erticalPodAutoscaling\022:\n\016shielded_nodes\030" + + "( \001(\0132\".google.container.v1.ShieldedNode" + + "s\022<\n\017release_channel\030) \001(\0132#.google.cont" + + "ainer.v1.ReleaseChannel\022M\n\030workload_iden" + + "tity_config\030+ \001(\0132+.google.container.v1." + + "WorkloadIdentityConfig\022@\n\021mesh_certifica" + + "tes\030C \001(\0132%.google.container.v1.MeshCert" + + "ificates\022I\n\026cost_management_config\030- \001(\013" + + "2).google.container.v1.CostManagementCon" + + "fig\022D\n\023notification_config\0301 \001(\0132\'.googl" + + "e.container.v1.NotificationConfig\022B\n\022con" + + "fidential_nodes\0302 \001(\0132&.google.container" + + ".v1.ConfidentialNodes\022K\n\027identity_servic" + + "e_config\0306 \001(\0132*.google.container.v1.Ide" + + "ntityServiceConfig\022\026\n\tself_link\030d \001(\tB\003\340" + + "A\003\022\023\n\004zone\030e \001(\tB\005\030\001\340A\003\022\025\n\010endpoint\030f \001(" + + "\tB\003\340A\003\022\037\n\027initial_cluster_version\030g \001(\t\022" + + "#\n\026current_master_version\030h \001(\tB\003\340A\003\022#\n\024" + + "current_node_version\030i \001(\tB\005\030\001\340A\003\022\030\n\013cre" + + "ate_time\030j \001(\tB\003\340A\003\0228\n\006status\030k \001(\0162#.go" + + "ogle.container.v1.Cluster.StatusB\003\340A\003\022\035\n" + + "\016status_message\030l \001(\tB\005\030\001\340A\003\022 \n\023node_ipv" + + "4_cidr_size\030m \001(\005B\003\340A\003\022\037\n\022services_ipv4_" + + "cidr\030n \001(\tB\003\340A\003\022\"\n\023instance_group_urls\030o" + + " \003(\tB\005\030\001\340A\003\022!\n\022current_node_count\030p \001(\005B" + + "\005\030\001\340A\003\022\030\n\013expire_time\030q \001(\tB\003\340A\003\022\025\n\010loca" + + "tion\030r \001(\tB\003\340A\003\022\022\n\nenable_tpu\030s \001(\010\022 \n\023t" + + "pu_ipv4_cidr_block\030t \001(\tB\003\340A\003\0228\n\nconditi" + + "ons\030v \003(\0132$.google.container.v1.StatusCo" + + "ndition\0222\n\tautopilot\030\200\001 \001(\0132\036.google.con" + + "tainer.v1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n" + + "\022node_pool_defaults\030\203\001 \001(\0132%.google.cont" + + "ainer.v1.NodePoolDefaultsH\000\210\001\001\022;\n\016loggin" + + "g_config\030\204\001 \001(\0132\".google.container.v1.Lo" + + "ggingConfig\022A\n\021monitoring_config\030\205\001 \001(\0132" + + "%.google.container.v1.MonitoringConfig\022G" + + "\n\025node_pool_auto_config\030\210\001 \001(\0132\'.google." + + "container.v1.NodePoolAutoConfig\022\r\n\004etag\030" + + "\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(\0132\032.google.containe" + + "r.v1.Fleet\022L\n\027security_posture_config\030\221\001" + + " \001(\0132*.google.container.v1.SecurityPostu" + + "reConfig\022Y\n\036control_plane_endpoints_conf" + + "ig\030\222\001 \001(\01320.google.container.v1.ControlP" + + "laneEndpointsConfig\022D\n\024enable_k8s_beta_a" + + "pis\030\217\001 \001(\0132%.google.container.v1.K8sBeta" + + "APIConfig\022A\n\021enterprise_config\030\225\001 \001(\0132%." + + "google.container.v1.EnterpriseConfig\022H\n\025" + + "secret_manager_config\030\226\001 \001(\0132(.google.co" + + "ntainer.v1.SecretManagerConfig\022P\n\031compli" + + "ance_posture_config\030\227\001 \001(\0132,.google.cont" + + "ainer.v1.CompliancePostureConfig\022 \n\rsati" + + "sfies_pzs\030\230\001 \001(\010B\003\340A\003H\001\210\001\001\022 \n\rsatisfies_" + + "pzi\030\231\001 \001(\010B\003\340A\003H\002\210\001\001\022R\n\030user_managed_key" + + "s_config\030\232\001 \001(\0132*.google.container.v1.Us" + + "erManagedKeysConfigH\003\210\001\001\022I\n\023rbac_binding" + + "_config\030\234\001 \001(\0132&.google.container.v1.RBA" + + "CBindingConfigH\004\210\001\001\0325\n\023ResourceLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006St" + + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIO" + + "NING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010" + + "STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_" + + "node_pool_defaultsB\020\n\016_satisfies_pzsB\020\n\016" + + "_satisfies_pziB\033\n\031_user_managed_keys_con" + + "figB\026\n\024_rbac_binding_config\"\357\001\n\021RBACBind" + + "ingConfig\022;\n.enable_insecure_binding_sys" + + "tem_unauthenticated\030\001 \001(\010H\000\210\001\001\0229\n,enable" + + "_insecure_binding_system_authenticated\030\002" + + " \001(\010H\001\210\001\001B1\n/_enable_insecure_binding_sy" + + "stem_unauthenticatedB/\n-_enable_insecure" + + "_binding_system_authenticated\"\351\004\n\025UserMa" + + "nagedKeysConfig\0228\n\ncluster_ca\030\n \001(\tB$\372A!" + + "\n\037privateca.googleapis.com/CaPool\0229\n\013etc" + + "d_api_ca\030\013 \001(\tB$\372A!\n\037privateca.googleapi" + + "s.com/CaPool\022:\n\014etcd_peer_ca\030\014 \001(\tB$\372A!\n", + "\037privateca.googleapis.com/CaPool\022S\n\034serv" + + "ice_account_signing_keys\030\r \003(\tB-\372A*\n(clo" + + "udkms.googleapis.com/CryptoKeyVersion\022X\n" + + "!service_account_verification_keys\030\016 \003(\t" + + "B-\372A*\n(cloudkms.googleapis.com/CryptoKey" + + "Version\022<\n\016aggregation_ca\030\017 \001(\tB$\372A!\n\037pr" + + "ivateca.googleapis.com/CaPool\022X\n!control" + + "_plane_disk_encryption_key\030\020 \001(\tB-\372A*\n(c" + + "loudkms.googleapis.com/CryptoKeyVersion\022" + + "X\n!gkeops_etcd_backup_encryption_key\030\021 \001" + + "(\tB-\372A*\n(cloudkms.googleapis.com/CryptoK" + + "eyVersion\"\272\002\n\027CompliancePostureConfig\022D\n" + + "\004mode\030\001 \001(\01621.google.container.v1.Compli" + + "ancePostureConfig.ModeH\000\210\001\001\022]\n\024complianc" + + "e_standards\030\002 \003(\0132?.google.container.v1." + + "CompliancePostureConfig.ComplianceStanda" + + "rd\0328\n\022ComplianceStandard\022\025\n\010standard\030\001 \001" + + "(\tH\000\210\001\001B\013\n\t_standard\"7\n\004Mode\022\024\n\020MODE_UNS" + + "PECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002B\007\n" + + "\005_mode\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled_ap" + + "is\030\001 \003(\t\"\256\003\n\025SecurityPostureConfig\022B\n\004mo" + + "de\030\001 \001(\0162/.google.container.v1.SecurityP" + + "ostureConfig.ModeH\000\210\001\001\022]\n\022vulnerability_" + + "mode\030\002 \001(\0162<.google.container.v1.Securit" + + "yPostureConfig.VulnerabilityModeH\001\210\001\001\"E\n" + + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020" + + "\001\022\t\n\005BASIC\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021Vulnera" + + "bilityMode\022\"\n\036VULNERABILITY_MODE_UNSPECI" + + "FIED\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VU" + + "LNERABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENT" + + "ERPRISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mod" + + "e\"\332\001\n\022NodePoolAutoConfig\0226\n\014network_tags" + + "\030\001 \001(\0132 .google.container.v1.NetworkTags" + + "\022G\n\025resource_manager_tags\030\002 \001(\0132(.google" + + ".container.v1.ResourceManagerTags\022C\n\023nod" + + "e_kubelet_config\030\003 \001(\0132&.google.containe" + + "r.v1.NodeKubeletConfig\"Y\n\020NodePoolDefaul" + + "ts\022E\n\024node_config_defaults\030\001 \001(\0132\'.googl" + + "e.container.v1.NodeConfigDefaults\"\225\002\n\022No" + + "deConfigDefaults\0224\n\013gcfs_config\030\001 \001(\0132\037." + + "google.container.v1.GcfsConfig\022B\n\016loggin" + + "g_config\030\003 \001(\0132*.google.container.v1.Nod" + + "ePoolLoggingConfig\022@\n\021containerd_config\030" + + "\004 \001(\0132%.google.container.v1.ContainerdCo" + + "nfig\022C\n\023node_kubelet_config\030\006 \001(\0132&.goog" + + "le.container.v1.NodeKubeletConfig\"\232&\n\rCl" + + "usterUpdate\022\034\n\024desired_node_version\030\004 \001(" + + "\t\022\"\n\032desired_monitoring_service\030\005 \001(\t\022@\n" + + "\025desired_addons_config\030\006 \001(\0132!.google.co" + + "ntainer.v1.AddonsConfig\022\034\n\024desired_node_" + + "pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(" + + "\t\022L\n\033desired_database_encryption\030. \001(\0132\'" + + ".google.container.v1.DatabaseEncryption\022" + + "U\n desired_workload_identity_config\030/ \001(" + + "\0132+.google.container.v1.WorkloadIdentity" + + "Config\022H\n\031desired_mesh_certificates\030C \001(" + + "\0132%.google.container.v1.MeshCertificates" + + "\022B\n\026desired_shielded_nodes\0300 \001(\0132\".googl" + + "e.container.v1.ShieldedNodes\022Q\n\036desired_" + + "cost_management_config\0301 \001(\0132).google.co" + + "ntainer.v1.CostManagementConfig\022:\n\022desir" + + "ed_dns_config\0305 \001(\0132\036.google.container.v" + + "1.DNSConfig\022O\n\035desired_node_pool_autosca" + + "ling\030\t \001(\0132(.google.container.v1.NodePoo" + + "lAutoscaling\022\031\n\021desired_locations\030\n \003(\t\022" + + "j\n)desired_master_authorized_networks_co" + + "nfig\030\014 \001(\01323.google.container.v1.MasterA" + + "uthorizedNetworksConfigB\002\030\001\022L\n\033desired_c" + + "luster_autoscaling\030\017 \001(\0132\'.google.contai" + + "ner.v1.ClusterAutoscaling\022N\n\034desired_bin" + + "ary_authorization\030\020 \001(\0132(.google.contain" + + "er.v1.BinaryAuthorization\022\037\n\027desired_log" + + "ging_service\030\023 \001(\t\022\\\n$desired_resource_u" + + "sage_export_config\030\025 \001(\0132..google.contai" + + "ner.v1.ResourceUsageExportConfig\022U\n desi" + + "red_vertical_pod_autoscaling\030\026 \001(\0132+.goo" + + "gle.container.v1.VerticalPodAutoscaling\022" + + "U\n\036desired_private_cluster_config\030\031 \001(\0132" + + ").google.container.v1.PrivateClusterConf" + + "igB\002\030\001\022\\\n$desired_intra_node_visibility_" + + "config\030\032 \001(\0132..google.container.v1.Intra" + + "NodeVisibilityConfig\022K\n\033desired_default_" + + "snat_status\030\034 \001(\0132&.google.container.v1." + + "DefaultSnatStatus\022D\n\027desired_release_cha" + + "nnel\030\037 \001(\0132#.google.container.v1.Release" + + "Channel\022Q\n\037desired_l4ilb_subsetting_conf" + + "ig\030\' \001(\0132(.google.container.v1.ILBSubset" + + "tingConfig\022H\n\031desired_datapath_provider\030" + + "2 \001(\0162%.google.container.v1.DatapathProv" + + "ider\022X\n\"desired_private_ipv6_google_acce" + + "ss\0303 \001(\0162,.google.container.v1.PrivateIP" + + "v6GoogleAccess\022L\n\033desired_notification_c" + + "onfig\0307 \001(\0132\'.google.container.v1.Notifi" + + "cationConfig\022[\n#desired_authenticator_gr" + + "oups_config\030? \001(\0132..google.container.v1." + + "AuthenticatorGroupsConfig\022B\n\026desired_log" + + "ging_config\030@ \001(\0132\".google.container.v1." + + "LoggingConfig\022H\n\031desired_monitoring_conf" + + "ig\030A \001(\0132%.google.container.v1.Monitorin" + + "gConfig\022S\n\037desired_identity_service_conf" + + "ig\030B \001(\0132*.google.container.v1.IdentityS" + + "erviceConfig\022Z\n#desired_service_external" + + "_ips_config\030< \001(\0132-.google.container.v1." + + "ServiceExternalIPsConfig\0220\n\037desired_enab" + + "le_private_endpoint\030G \001(\010B\002\030\001H\000\210\001\001\0221\n$de" + + "sired_default_enable_private_nodes\030H \001(\010" + + "H\001\210\001\001\022`\n&desired_control_plane_endpoints" + + "_config\030I \001(\01320.google.container.v1.Cont" + + "rolPlaneEndpointsConfig\022\036\n\026desired_maste" + + "r_version\030d \001(\t\022<\n\023desired_gcfs_config\030m" + + " \001(\0132\037.google.container.v1.GcfsConfig\022T\n" + + "*desired_node_pool_auto_config_network_t" + + "ags\030n \001(\0132 .google.container.v1.NetworkT" + + "ags\022I\n\032desired_gateway_api_config\030r \001(\0132" + + "%.google.container.v1.GatewayAPIConfig\022\014" + + "\n\004etag\030s \001(\t\022T\n desired_node_pool_loggin" + + "g_config\030t \001(\0132*.google.container.v1.Nod" + + "ePoolLoggingConfig\0221\n\rdesired_fleet\030u \001(" + + "\0132\032.google.container.v1.Fleet\022:\n\022desired" + + "_stack_type\030w \001(\0162\036.google.container.v1." + + "StackType\022T\n\034additional_pod_ranges_confi" + + "g\030x \001(\0132..google.container.v1.Additional" + + "PodRangesConfig\022\\\n$removed_additional_po" + + "d_ranges_config\030y \001(\0132..google.container" + + ".v1.AdditionalPodRangesConfig\022C\n\024enable_" + + "k8s_beta_apis\030z \001(\0132%.google.container.v" + + "1.K8sBetaAPIConfig\022S\n\037desired_security_p" + + "osture_config\030| \001(\0132*.google.container.v" + + "1.SecurityPostureConfig\022n\n\"desired_netwo" + + "rk_performance_config\030} \001(\0132B.google.con" + + "tainer.v1.NetworkConfig.ClusterNetworkPe" + + "rformanceConfig\022/\n\"desired_enable_fqdn_n" + + "etwork_policy\030~ \001(\010H\002\210\001\001\022\\\n(desired_auto" + + "pilot_workload_policy_config\030\200\001 \001(\0132).go" + + "ogle.container.v1.WorkloadPolicyConfig\022E" + + "\n\025desired_k8s_beta_apis\030\203\001 \001(\0132%.google." + + "container.v1.K8sBetaAPIConfig\022I\n\031desired" + + "_containerd_config\030\206\001 \001(\0132%.google.conta" + + "iner.v1.ContainerdConfig\022-\n\037desired_enab" + + "le_multi_networking\030\207\001 \001(\010H\003\210\001\001\022f\n3desir" + + "ed_node_pool_auto_config_resource_manage" + + "r_tags\030\210\001 \001(\0132(.google.container.v1.Reso" + + "urceManagerTags\022b\n$desired_in_transit_en" + + "cryption_config\030\211\001 \001(\0162..google.containe" + + "r.v1.InTransitEncryptionConfigH\004\210\001\001\022>\n0d" + + "esired_enable_cilium_clusterwide_network" + + "_policy\030\212\001 \001(\010H\005\210\001\001\022U\n\035desired_secret_ma" + + "nager_config\030\213\001 \001(\0132(.google.container.v" + + "1.SecretManagerConfigH\006\210\001\001\022]\n!desired_co" + + "mpliance_posture_config\030\214\001 \001(\0132,.google." + + "container.v1.CompliancePostureConfigH\007\210\001" + + "\001\022L\n\033desired_node_kubelet_config\030\215\001 \001(\0132" + "&.google.container.v1.NodeKubeletConfig\022" - + "C\n\023node_network_config\030\025 \001(\0132&.google.co" - + "ntainer.v1.NodeNetworkConfig\0224\n\013gcfs_con" - + "fig\030\026 \001(\0132\037.google.container.v1.GcfsConf" - + "ig\022B\n\022confidential_nodes\030\027 \001(\0132&.google." - + "container.v1.ConfidentialNodes\022.\n\005gvnic\030" - + "\035 \001(\0132\037.google.container.v1.VirtualNIC\022\014" - + "\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037.goog" - + "le.container.v1.FastSocket\022B\n\016logging_co" - + "nfig\030 \001(\0132*.google.container.v1.NodePoo" - + "lLoggingConfig\022<\n\017resource_labels\030! \001(\0132" - + "#.google.container.v1.ResourceLabels\022C\n\023" - + "windows_node_config\030\" \001(\0132&.google.conta" - + "iner.v1.WindowsNodeConfig\022<\n\014accelerator" - + "s\030# \003(\0132&.google.container.v1.Accelerato" - + "rConfig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdi" - + "sk_type\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003" - + "B\003\340A\001\022G\n\025resource_manager_tags\030\' \001(\0132(.g" - + "oogle.container.v1.ResourceManagerTags\022@" - + "\n\021containerd_config\030( \001(\0132%.google.conta" - + "iner.v1.ContainerdConfig\022M\n\023queued_provi" - + "sioning\030* \001(\01320.google.container.v1.Node" - + "Pool.QueuedProvisioning\"\315\001\n\035SetNodePoolA" - + "utoscalingRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autosca" - + "ling\030\005 \001(\0132(.google.container.v1.NodePoo" - + "lAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetL" - + "oggingServiceRequest\022\026\n\nproject_id\030\001 \001(\t" - + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" - + "(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004" - + "name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceReque" - + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" - + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitori" - + "ng_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026" - + "SetAddonsConfigRequest\022\026\n\nproject_id\030\001 \001" + + "]\n,desired_node_pool_auto_config_kubelet" + + "_config\030\216\001 \001(\0132&.google.container.v1.Nod" + + "eKubeletConfig\022M\n\030user_managed_keys_conf" + + "ig\030\217\001 \001(\0132*.google.container.v1.UserMana" + + "gedKeysConfig\022Q\n\033desired_rbac_binding_co" + + "nfig\030\220\001 \001(\0132&.google.container.v1.RBACBi" + + "ndingConfigH\010\210\001\001B\"\n _desired_enable_priv" + + "ate_endpointB\'\n%_desired_default_enable_" + + "private_nodesB%\n#_desired_enable_fqdn_ne" + + "twork_policyB\"\n _desired_enable_multi_ne" + + "tworkingB\'\n%_desired_in_transit_encrypti" + + "on_configB3\n1_desired_enable_cilium_clus" + + "terwide_network_policyB \n\036_desired_secre" + + "t_manager_configB$\n\"_desired_compliance_" + + "posture_configB\036\n\034_desired_rbac_binding_" + + "config\"q\n\031AdditionalPodRangesConfig\022\027\n\017p" + + "od_range_names\030\001 \003(\t\022;\n\016pod_range_info\030\002" + + " \003(\0132\036.google.container.v1.RangeInfoB\003\340A" + + "\003\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022" + + "\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\344\010\n\tOperation\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\003\022" + + "@\n\016operation_type\030\003 \001(\0162#.google.contain" + + "er.v1.Operation.TypeB\003\340A\003\022:\n\006status\030\004 \001(" + + "\0162%.google.container.v1.Operation.Status" + + "B\003\340A\003\022\023\n\006detail\030\010 \001(\tB\003\340A\003\022\035\n\016status_mes" + + "sage\030\005 \001(\tB\005\030\001\340A\003\022\026\n\tself_link\030\006 \001(\tB\003\340A" + + "\003\022\030\n\013target_link\030\007 \001(\tB\003\340A\003\022\025\n\010location\030" + + "\t \001(\tB\003\340A\003\022\027\n\nstart_time\030\n \001(\tB\003\340A\003\022\025\n\010e" + + "nd_time\030\013 \001(\tB\003\340A\003\022=\n\010progress\030\014 \001(\0132&.g" + + "oogle.container.v1.OperationProgressB\003\340A" + + "\003\022D\n\022cluster_conditions\030\r \003(\0132$.google.c" + + "ontainer.v1.StatusConditionB\002\030\001\022E\n\023nodep" + + "ool_conditions\030\016 \003(\0132$.google.container." + + "v1.StatusConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022." + + "google.rpc.Status\"R\n\006Status\022\026\n\022STATUS_UN" + + "SPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n" + + "\004DONE\020\003\022\014\n\010ABORTING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELE" + + "TE_CLUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGR" + + "ADE_NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDAT" + + "E_CLUSTER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DEL" + + "ETE_NODE_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEM" + + "ENT\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\032\n\022AUTO_UPG" + + "RADE_NODES\020\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017" + + "SET_MASTER_AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_S" + + "IZE\020\016\022\032\n\022SET_NETWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET" + + "_MAINTENANCE_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUS" + + "TER\020\022\022\031\n\025FLEET_FEATURE_UPGRADE\020\023\"\273\002\n\021Ope" + + "rationProgress\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002" + + " \001(\0162%.google.container.v1.Operation.Sta" + + "tus\022>\n\007metrics\030\003 \003(\0132-.google.container." + + "v1.OperationProgress.Metric\0226\n\006stages\030\004 " + + "\003(\0132&.google.container.v1.OperationProgr" + + "ess\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_" + + "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n" + + "\014string_value\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024Creat" + + "eClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" + + "\020\n\004zone\030\002 \001(\tB\002\030\001\0222\n\007cluster\030\003 \001(\0132\034.goo" + + "gle.container.v1.ClusterB\003\340A\002\022\016\n\006parent\030" + + "\005 \001(\t\"c\n\021GetClusterRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" + + "id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024UpdateClu" + + "sterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n" + + "\006update\030\004 \001(\0132\".google.container.v1.Clus" + + "terUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\352\013\n\025UpdateN" + + "odePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" + + "\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\031\n\014node_versi" + + "on\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014" + + "\n\004name\030\010 \001(\t\022\021\n\tlocations\030\r \003(\t\022M\n\030workl" + + "oad_metadata_config\030\016 \001(\0132+.google.conta" + + "iner.v1.WorkloadMetadataConfig\022G\n\020upgrad" + + "e_settings\030\017 \001(\0132-.google.container.v1.N" + + "odePool.UpgradeSettings\022.\n\004tags\030\020 \001(\0132 ." + + "google.container.v1.NetworkTags\022/\n\006taint" + + "s\030\021 \001(\0132\037.google.container.v1.NodeTaints" + + "\022/\n\006labels\030\022 \001(\0132\037.google.container.v1.N" + + "odeLabels\022?\n\021linux_node_config\030\023 \001(\0132$.g" + + "oogle.container.v1.LinuxNodeConfig\022>\n\016ku" + + "belet_config\030\024 \001(\0132&.google.container.v1" + + ".NodeKubeletConfig\022C\n\023node_network_confi" + + "g\030\025 \001(\0132&.google.container.v1.NodeNetwor" + + "kConfig\0224\n\013gcfs_config\030\026 \001(\0132\037.google.co" + + "ntainer.v1.GcfsConfig\022B\n\022confidential_no" + + "des\030\027 \001(\0132&.google.container.v1.Confiden" + + "tialNodes\022.\n\005gvnic\030\035 \001(\0132\037.google.contai" + + "ner.v1.VirtualNIC\022\014\n\004etag\030\036 \001(\t\0224\n\013fast_" + + "socket\030\037 \001(\0132\037.google.container.v1.FastS" + + "ocket\022B\n\016logging_config\030 \001(\0132*.google.c" + + "ontainer.v1.NodePoolLoggingConfig\022<\n\017res" + + "ource_labels\030! \001(\0132#.google.container.v1" + + ".ResourceLabels\022C\n\023windows_node_config\030\"" + + " \001(\0132&.google.container.v1.WindowsNodeCo" + + "nfig\022<\n\014accelerators\030# \003(\0132&.google.cont" + + "ainer.v1.AcceleratorConfig\022\031\n\014machine_ty" + + "pe\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type\030% \001(\tB\003\340A\001\022\031\n" + + "\014disk_size_gb\030& \001(\003B\003\340A\001\022G\n\025resource_man" + + "ager_tags\030\' \001(\0132(.google.container.v1.Re" + + "sourceManagerTags\022@\n\021containerd_config\030(" + + " \001(\0132%.google.container.v1.ContainerdCon" + + "fig\022M\n\023queued_provisioning\030* \001(\01320.googl" + + "e.container.v1.NodePool.QueuedProvisioni" + + "ng\022\025\n\rstorage_pools\030+ \003(\t\"\315\001\n\035SetNodePoo" + + "lAutoscalingRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" + + "\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autos" + + "caling\030\005 \001(\0132(.google.container.v1.NodeP" + + "oolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030Se" + + "tLoggingServiceRequest\022\026\n\nproject_id\030\001 \001" + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.google" - + ".container.v1.AddonsConfigB\003\340A\002\022\014\n\004name\030" - + "\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" - + "r_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014" - + "\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_version" - + "\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterA" - + "uthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006" - + "action\030\004 \001(\01620.google.container.v1.SetMa" - + "sterAuthRequest.ActionB\003\340A\002\0224\n\006update\030\005 " - + "\001(\0132\037.google.container.v1.MasterAuthB\003\340A" - + "\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020" - + "\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022" - + "\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(" - + "\t\"O\n\023ListClustersRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001" - + "(\t\"]\n\024ListClustersResponse\022.\n\010clusters\030\001" - + " \003(\0132\034.google.container.v1.Cluster\022\025\n\rmi" - + "ssing_zones\030\002 \003(\t\"g\n\023GetOperationRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001" - + "(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_i" - + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030" - + "\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014ope" - + "ration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026Lis" - + "tOperationsResponse\0222\n\noperations\030\001 \003(\0132" - + "\036.google.container.v1.Operation\022\025\n\rmissi" - + "ng_zones\030\002 \003(\t\"P\n\026GetServerConfigRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027def" - + "ault_cluster_version\030\001 \001(\t\022\033\n\023valid_node" - + "_versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 " - + "\001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_" - + "master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\0132" - + "6.google.container.v1.ServerConfig.Relea" - + "seChannelConfig\032\205\001\n\024ReleaseChannelConfig" - + "\022<\n\007channel\030\001 \001(\0162+.google.container.v1." - + "ReleaseChannel.Channel\022\027\n\017default_versio" - + "n\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025Crea" - + "teNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.containe" - + "r.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025D" - + "eleteNodePoolRequest\022\026\n\nproject_id\030\001 \001(\t" - + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" - + "(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name" - + "\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\nprojec" + + " \001(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014" + + "\n\004name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monito" + + "ring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001" + + "\n\026SetAddonsConfigRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" + + "\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.goog" + + "le.container.v1.AddonsConfigB\003\340A\002\022\014\n\004nam" + + "e\030\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nprojec" + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" - + "ter_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetN" + + "ter_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002" + + "\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest\022\026" + + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_versi" + + "on\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMaste" + + "rAuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E" + + "\n\006action\030\004 \001(\01620.google.container.v1.Set" + + "MasterAuthRequest.ActionB\003\340A\002\0224\n\006update\030" + + "\005 \001(\0132\037.google.container.v1.MasterAuthB\003" + + "\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000" + + "\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020" + + "\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 " + + "\001(\t\"O\n\023ListClustersRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004" + + " \001(\t\"]\n\024ListClustersResponse\022.\n\010clusters" + + "\030\001 \003(\0132\034.google.container.v1.Cluster\022\025\n\r" + + "missing_zones\030\002 \003(\t\"g\n\023GetOperationReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005" + + " \001(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006paren" + + "t\030\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014o" + + "peration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026L" + + "istOperationsResponse\0222\n\noperations\030\001 \003(" + + "\0132\036.google.container.v1.Operation\022\025\n\rmis" + + "sing_zones\030\002 \003(\t\"P\n\026GetServerConfigReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\014\n\004name\030\004 \001(\t\"\224\003\n\014ServerConfig\022\037\n\027d" + + "efault_cluster_version\030\001 \001(\t\022\033\n\023valid_no" + + "de_versions\030\003 \003(\t\022\032\n\022default_image_type\030" + + "\004 \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025vali" + + "d_master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(" + + "\01326.google.container.v1.ServerConfig.Rel" + + "easeChannelConfig\032\245\001\n\024ReleaseChannelConf" + + "ig\022<\n\007channel\030\001 \001(\0162+.google.container.v" + + "1.ReleaseChannel.Channel\022\027\n\017default_vers" + + "ion\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\022\036\n\026upg" + + "rade_target_version\030\005 \001(\t\"\240\001\n\025CreateNode" + + "PoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n" + + "\tnode_pool\030\004 \001(\0132\035.google.container.v1.N" + + "odePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteN" + "odePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" + "\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t" - + "\"\237\003\n\021BlueGreenSettings\022_\n\027standard_rollo" - + "ut_policy\030\001 \001(\0132<.google.container.v1.Bl" - + "ueGreenSettings.StandardRolloutPolicyH\000\022" - + "?\n\027node_pool_soak_duration\030\002 \001(\0132\031.googl" - + "e.protobuf.DurationH\001\210\001\001\032\271\001\n\025StandardRol" - + "loutPolicy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022\032" - + "\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_soak" - + "_duration\030\003 \001(\0132\031.google.protobuf.Durati" - + "onH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_batch_s" - + "oak_durationB\020\n\016rollout_policyB\032\n\030_node_" - + "pool_soak_duration\"\321\020\n\010NodePool\022\014\n\004name\030" - + "\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.container" - + ".v1.NodeConfig\022\032\n\022initial_node_count\030\003 \001" - + "(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_config\030" - + "\016 \001(\0132&.google.container.v1.NodeNetworkC" - + "onfig\022\026\n\tself_link\030d \001(\tB\003\340A\003\022\017\n\007version" - + "\030e \001(\t\022 \n\023instance_group_urls\030f \003(\tB\003\340A\003" - + "\0229\n\006status\030g \001(\0162$.google.container.v1.N" - + "odePool.StatusB\003\340A\003\022\035\n\016status_message\030h " - + "\001(\tB\005\030\001\340A\003\022=\n\013autoscaling\030\004 \001(\0132(.google" - + ".container.v1.NodePoolAutoscaling\0227\n\nman" - + "agement\030\005 \001(\0132#.google.container.v1.Node" - + "Management\022C\n\023max_pods_constraint\030\006 \001(\0132" - + "&.google.container.v1.MaxPodsConstraint\022" - + "8\n\nconditions\030i \003(\0132$.google.container.v" - + "1.StatusCondition\022\037\n\022pod_ipv4_cidr_size\030" - + "\007 \001(\005B\003\340A\003\022G\n\020upgrade_settings\030k \001(\0132-.g" - + "oogle.container.v1.NodePool.UpgradeSetti" - + "ngs\022G\n\020placement_policy\030l \001(\0132-.google.c" - + "ontainer.v1.NodePool.PlacementPolicy\022B\n\013" - + "update_info\030m \001(\0132(.google.container.v1." - + "NodePool.UpdateInfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022M" - + "\n\023queued_provisioning\030p \001(\01320.google.con" - + "tainer.v1.NodePool.QueuedProvisioning\022M\n" - + "\030best_effort_provisioning\030q \001(\0132+.google" - + ".container.v1.BestEffortProvisioning\032\360\001\n" - + "\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017m" - + "ax_unavailable\030\002 \001(\005\022B\n\010strategy\030\003 \001(\0162+" - + ".google.container.v1.NodePoolUpdateStrat" - + "egyH\000\210\001\001\022H\n\023blue_green_settings\030\004 \001(\0132&." - + "google.container.v1.BlueGreenSettingsH\001\210" - + "\001\001B\013\n\t_strategyB\026\n\024_blue_green_settings\032" - + "\210\004\n\nUpdateInfo\022O\n\017blue_green_info\030\001 \001(\0132" - + "6.google.container.v1.NodePool.UpdateInf" - + "o.BlueGreenInfo\032\250\003\n\rBlueGreenInfo\022K\n\005pha" - + "se\030\001 \001(\0162<.google.container.v1.NodePool." - + "UpdateInfo.BlueGreenInfo.Phase\022 \n\030blue_i" - + "nstance_group_urls\030\002 \003(\t\022!\n\031green_instan" - + "ce_group_urls\030\003 \003(\t\022%\n\035blue_pool_deletio" - + "n_start_time\030\004 \001(\t\022\032\n\022green_pool_version" - + "\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022" - + "\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREATING_GREEN_PO" - + "OL\020\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRAININ" - + "G_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005\022\026\n\022" - + "DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STARTED" - + "\020\007\032\256\001\n\017PlacementPolicy\022@\n\004type\030\001 \001(\01622.g" - + "oogle.container.v1.NodePool.PlacementPol" - + "icy.Type\022\031\n\014tpu_topology\030\002 \001(\tB\003\340A\001\022\023\n\013p" - + "olicy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNSPECI" - + "FIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvisionin" - + "g\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STATUS_" - + "UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNI" - + "NG\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECONCIL" - + "ING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeMa" - + "nagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013auto_r" - + "epair\030\002 \001(\010\022@\n\017upgrade_options\030\n \001(\0132\'.g" - + "oogle.container.v1.AutoUpgradeOptions\"F\n" - + "\026BestEffortProvisioning\022\017\n\007enabled\030\001 \001(\010" - + "\022\033\n\023min_provision_nodes\030\002 \001(\005\"T\n\022AutoUpg" - + "radeOptions\022$\n\027auto_upgrade_start_time\030\001" - + " \001(\tB\003\340A\003\022\030\n\013description\030\002 \001(\tB\003\340A\003\"e\n\021M" - + "aintenancePolicy\0226\n\006window\030\001 \001(\0132&.googl" - + "e.container.v1.MaintenanceWindow\022\030\n\020reso" - + "urce_version\030\003 \001(\t\"\366\002\n\021MaintenanceWindow" - + "\022O\n\030daily_maintenance_window\030\002 \001(\0132+.goo" - + "gle.container.v1.DailyMaintenanceWindowH" - + "\000\022D\n\020recurring_window\030\003 \001(\0132(.google.con" - + "tainer.v1.RecurringTimeWindowH\000\022a\n\026maint" - + "enance_exclusions\030\004 \003(\0132A.google.contain" - + "er.v1.MaintenanceWindow.MaintenanceExclu" - + "sionsEntry\032]\n\032MaintenanceExclusionsEntry" - + "\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google.co" - + "ntainer.v1.TimeWindow:\0028\001B\010\n\006policy\"\320\001\n\n" - + "TimeWindow\022Y\n\035maintenance_exclusion_opti" - + "ons\030\003 \001(\01320.google.container.v1.Maintena" - + "nceExclusionOptionsH\000\022.\n\nstart_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n\007o" - + "ptions\"\264\001\n\033MaintenanceExclusionOptions\022E" - + "\n\005scope\030\001 \001(\01626.google.container.v1.Main" - + "tenanceExclusionOptions.Scope\"N\n\005Scope\022\017" - + "\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035" - + "\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z\n\023Recurri" - + "ngTimeWindow\022/\n\006window\030\001 \001(\0132\037.google.co" - + "ntainer.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(" - + "\t\"C\n\026DailyMaintenanceWindow\022\022\n\nstart_tim" - + "e\030\002 \001(\t\022\025\n\010duration\030\003 \001(\tB\003\340A\003\"\306\001\n\034SetNo" - + "dePoolManagementRequest\022\026\n\nproject_id\030\001 " - + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" - + "\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<\n\nm" - + "anagement\030\005 \001(\0132#.google.container.v1.No" - + "deManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetN" - + "odePoolSizeRequest\022\026\n\nproject_id\030\001 \001(\tB\002" - + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" - + "B\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnode_c" - + "ount\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036Complet" - + "eNodePoolUpgradeRequest\022\014\n\004name\030\001 \001(\t\"\237\001" - + "\n\036RollbackNodePoolUpgradeRequest\022\026\n\nproj" - + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" - + "uster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\t" - + "B\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"" - + "J\n\025ListNodePoolsResponse\0221\n\nnode_pools\030\001" - + " \003(\0132\035.google.container.v1.NodePool\"\257\003\n\022" - + "ClusterAutoscaling\022$\n\034enable_node_autopr" - + "ovisioning\030\001 \001(\010\022;\n\017resource_limits\030\002 \003(" - + "\0132\".google.container.v1.ResourceLimit\022W\n" - + "\023autoscaling_profile\030\003 \001(\0162:.google.cont" - + "ainer.v1.ClusterAutoscaling.AutoscalingP" - + "rofile\022b\n#autoprovisioning_node_pool_def" - + "aults\030\004 \001(\01325.google.container.v1.Autopr" - + "ovisioningNodePoolDefaults\022\"\n\032autoprovis" - + "ioning_locations\030\005 \003(\t\"U\n\022AutoscalingPro" - + "file\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPTIMIZ" - + "E_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n Autopr" - + "ovisioningNodePoolDefaults\022\024\n\014oauth_scop" - + "es\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022G\n\020upg" - + "rade_settings\030\003 \001(\0132-.google.container.v" - + "1.NodePool.UpgradeSettings\0227\n\nmanagement" - + "\030\004 \001(\0132#.google.container.v1.NodeManagem" - + "ent\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014dis" - + "k_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M\n\030sh" - + "ielded_instance_config\030\010 \001(\0132+.google.co" - + "ntainer.v1.ShieldedInstanceConfig\022\031\n\021boo" - + "t_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t" - + "\0223\n&insecure_kubelet_readonly_port_enabl" - + "ed\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_reado" - + "nly_port_enabled\"H\n\rResourceLimit\022\025\n\rres" - + "ource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007max" - + "imum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscaling\022\017\n\007en" - + "abled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016m" - + "ax_node_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004", - " \001(\010\022P\n\017location_policy\030\005 \001(\01627.google.c" - + "ontainer.v1.NodePoolAutoscaling.Location" - + "Policy\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024" - + "total_max_node_count\030\007 \001(\005\"H\n\016LocationPo" - + "licy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n" - + "\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabelsReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017resource_" - + "labels\030\004 \003(\01329.google.container.v1.SetLa" - + "belsRequest.ResourceLabelsEntryB\003\340A\002\022\036\n\021" - + "label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001" - + "(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enabled\030\004" - + " \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRotat" - + "ionRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004" - + "name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"k" - + "\n\031CompleteIPRotationRequest\022\026\n\nproject_i" - + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster" - + "_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021Accelera" - + "torConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020" - + "accelerator_type\030\002 \001(\t\022\032\n\022gpu_partition_" - + "size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005 \001(\0132%" - + ".google.container.v1.GPUSharingConfigH\000\210" - + "\001\001\022]\n\036gpu_driver_installation_config\030\006 \001" - + "(\01320.google.container.v1.GPUDriverInstal" - + "lationConfigH\001\210\001\001B\025\n\023_gpu_sharing_config" - + "B!\n\037_gpu_driver_installation_config\"\203\002\n\020" - + "GPUSharingConfig\022\"\n\032max_shared_clients_p" - + "er_gpu\030\001 \001(\003\022[\n\024gpu_sharing_strategy\030\002 \001" - + "(\01628.google.container.v1.GPUSharingConfi" - + "g.GPUSharingStrategyH\000\210\001\001\"U\n\022GPUSharingS" - + "trategy\022$\n GPU_SHARING_STRATEGY_UNSPECIF" - + "IED\020\000\022\020\n\014TIME_SHARING\020\001\022\007\n\003MPS\020\002B\027\n\025_gpu" - + "_sharing_strategy\"\204\002\n\033GPUDriverInstallat" - + "ionConfig\022b\n\022gpu_driver_version\030\001 \001(\0162A." - + "google.container.v1.GPUDriverInstallatio" - + "nConfig.GPUDriverVersionH\000\210\001\001\"j\n\020GPUDriv" - + "erVersion\022\"\n\036GPU_DRIVER_VERSION_UNSPECIF" - + "IED\020\000\022\031\n\025INSTALLATION_DISABLED\020\001\022\013\n\007DEFA" - + "ULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gpu_driver_version" - + "\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mode\030\002 \001(" - + "\01620.google.container.v1.WorkloadMetadata" - + "Config.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001" - + "\n\027SetNetworkPolicyRequest\022\026\n\nproject_id\030" - + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" - + "d\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\".go" - + "ogle.container.v1.NetworkPolicyB\003\340A\002\022\014\n\004" - + "name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolicyReque" - + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(" - + "\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maint" - + "enance_policy\030\004 \001(\0132&.google.container.v" - + "1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251" - + "\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162).googl" - + "e.container.v1.StatusCondition.CodeB\002\030\001\022" - + "\017\n\007message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\016" - + "2\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000" - + "\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUN" - + "T_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017S" - + "ET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020" - + "\007\022\017\n\013CA_EXPIRING\020\t\"\273\t\n\rNetworkConfig\022\024\n\007" - + "network\030\001 \001(\tB\003\340A\003\022\027\n\nsubnetwork\030\002 \001(\tB\003" - + "\340A\003\022$\n\034enable_intra_node_visibility\030\005 \001(" - + "\010\022C\n\023default_snat_status\030\007 \001(\0132&.google." - + "container.v1.DefaultSnatStatus\022\037\n\027enable" - + "_l4ilb_subsetting\030\n \001(\010\022@\n\021datapath_prov" - + "ider\030\013 \001(\0162%.google.container.v1.Datapat" - + "hProvider\022P\n\032private_ipv6_google_access\030" - + "\014 \001(\0162,.google.container.v1.PrivateIPv6G" - + "oogleAccess\0222\n\ndns_config\030\r \001(\0132\036.google" - + ".container.v1.DNSConfig\022R\n\033service_exter" - + "nal_ips_config\030\017 \001(\0132-.google.container." - + "v1.ServiceExternalIPsConfig\022A\n\022gateway_a" - + "pi_config\030\020 \001(\0132%.google.container.v1.Ga" - + "tewayAPIConfig\022\037\n\027enable_multi_networkin" - + "g\030\021 \001(\010\022f\n\032network_performance_config\030\022 " - + "\001(\0132B.google.container.v1.NetworkConfig." - + "ClusterNetworkPerformanceConfig\022\'\n\032enabl" - + "e_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_t" - + "ransit_encryption_config\030\024 \001(\0162..google." - + "container.v1.InTransitEncryptionConfigH\001" - + "\210\001\001\0225\n(enable_cilium_clusterwide_network" - + "_policy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037ClusterNetworkPer" - + "formanceConfig\022q\n\033total_egress_bandwidth" - + "_tier\030\001 \001(\0162G.google.container.v1.Networ" - + "kConfig.ClusterNetworkPerformanceConfig." - + "TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022" - + "\n\n\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_t" - + "ierB\035\n\033_enable_fqdn_network_policyB\037\n\035_i" - + "n_transit_encryption_configB+\n)_enable_c" - + "ilium_clusterwide_network_policy\"\300\001\n\020Gat" - + "ewayAPIConfig\022>\n\007channel\030\001 \001(\0162-.google." - + "container.v1.GatewayAPIConfig.Channel\"l\n" - + "\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHA" - + "NNEL_DISABLED\020\001\022\034\n\024CHANNEL_EXPERIMENTAL\020" - + "\003\032\002\010\001\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceEx" - + "ternalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetO" - + "penIDConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027G" - + "etOpenIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020" - + "\n\010jwks_uri\030\002 \001(\t\022 \n\030response_types_suppo" - + "rted\030\003 \003(\t\022\037\n\027subject_types_supported\030\004 " - + "\003(\t\022-\n%id_token_signing_alg_values_suppo" - + "rted\030\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013" - + "grant_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysReque" - + "st\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013" - + "\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n" - + "\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(" - + "\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWebKeysResponse" - + "\022&\n\004keys\030\001 \003(\0132\030.google.container.v1.Jwk" - + "\"2\n\"CheckAutopilotCompatibilityRequest\022\014" - + "\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCompatibilityI" - + "ssue\0224\n\020last_observation\030\001 \001(\0132\032.google." - + "protobuf.Timestamp\022\027\n\017constraint_type\030\002 " - + "\001(\t\022X\n\024incompatibility_type\030\003 \001(\0162:.goog" - + "le.container.v1.AutopilotCompatibilityIs" - + "sue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021docum" - + "entation_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"" - + "r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPA" - + "TIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED" - + "\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#C" - + "heckAutopilotCompatibilityResponse\022@\n\006is" - + "sues\030\001 \003(\01320.google.container.v1.Autopil" - + "otCompatibilityIssue\022\017\n\007summary\030\002 \001(\t\"\234\001" - + "\n\016ReleaseChannel\022<\n\007channel\030\001 \001(\0162+.goog" - + "le.container.v1.ReleaseChannel.Channel\"L" - + "\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n" - + "\007REGULAR\020\002\022\n\n\006STABLE\020\003\022\014\n\010EXTENDED\020\004\"\'\n\024" - + "CostManagementConfig\022\017\n\007enabled\030\001 \001(\010\",\n" - + "\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001 " - + "\001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 " - + "\001(\010\"\367\002\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162\'" - + ".google.container.v1.DNSConfig.Provider\022" - + "B\n\021cluster_dns_scope\030\002 \001(\0162\'.google.cont" - + "ainer.v1.DNSConfig.DNSScope\022\032\n\022cluster_d" - + "ns_domain\030\003 \001(\t\022*\n\035additive_vpc_scope_dn" - + "s_domain\030\005 \001(\tB\003\340A\001\"W\n\010Provider\022\030\n\024PROVI" - + "DER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022" - + "\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope" - + "\022\031\n\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_S" - + "COPE\020\001\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstrai" - + "nt\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Workloa" - + "dIdentityConfig\022\025\n\rworkload_pool\030\002 \001(\t\"(" - + "\n\025IdentityServiceConfig\022\017\n\007enabled\030\001 \001(\010" - + "\"K\n\020MeshCertificates\0227\n\023enable_certifica" - + "tes\030\001 \001(\0132\032.google.protobuf.BoolValue\"\343\005" - + "\n\022DatabaseEncryption\022\020\n\010key_name\030\001 \001(\t\022<" - + "\n\005state\030\002 \001(\0162-.google.container.v1.Data" - + "baseEncryption.State\022U\n\rcurrent_state\030\003 " - + "\001(\01624.google.container.v1.DatabaseEncryp" - + "tion.CurrentStateB\003\340A\003H\000\210\001\001\022\034\n\017decryptio" - + "n_keys\030\004 \003(\tB\003\340A\003\022Z\n\025last_operation_erro" - + "rs\030\005 \003(\01326.google.container.v1.DatabaseE" - + "ncryption.OperationErrorB\003\340A\003\032h\n\016Operati" - + "onError\022\020\n\010key_name\030\001 \001(\t\022\025\n\rerror_messa" - + "ge\030\002 \001(\t\022-\n\ttimestamp\030\003 \001(\0132\032.google.pro" - + "tobuf.Timestamp\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n" - + "\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"\373\001\n\014CurrentS" - + "tate\022\035\n\031CURRENT_STATE_UNSPECIFIED\020\000\022\033\n\027C" - + "URRENT_STATE_ENCRYPTED\020\007\022\033\n\027CURRENT_STAT" - + "E_DECRYPTED\020\002\022$\n CURRENT_STATE_ENCRYPTIO" - + "N_PENDING\020\003\022\"\n\036CURRENT_STATE_ENCRYPTION_" - + "ERROR\020\004\022$\n CURRENT_STATE_DECRYPTION_PEND" - + "ING\020\005\022\"\n\036CURRENT_STATE_DECRYPTION_ERROR\020" - + "\006B\020\n\016_current_state\"e\n\034ListUsableSubnetw" - + "orksRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 " - + "\001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" - + "(\t\"t\n\035ListUsableSubnetworksResponse\022:\n\013s" - + "ubnetworks\030\001 \003(\0132%.google.container.v1.U" - + "sableSubnetwork\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\200\002\n\036UsableSubnetworkSecondaryRange\022\022\n\nr" - + "ange_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J" - + "\n\006status\030\003 \001(\0162:.google.container.v1.Usa" - + "bleSubnetworkSecondaryRange.Status\"g\n\006St" - + "atus\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_" - + "SERVICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026\n\022I" - + "N_USE_MANAGED_POD\020\004\"\270\001\n\020UsableSubnetwork" - + "\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n" - + "\rip_cidr_range\030\003 \001(\t\022P\n\023secondary_ip_ran" - + "ges\030\004 \003(\01323.google.container.v1.UsableSu" - + "bnetworkSecondaryRange\022\026\n\016status_message" - + "\030\005 \001(\t\"\355\002\n\031ResourceUsageExportConfig\022`\n\024" - + "bigquery_destination\030\001 \001(\0132B.google.cont" - + "ainer.v1.ResourceUsageExportConfig.BigQu" - + "eryDestination\022&\n\036enable_network_egress_" - + "metering\030\002 \001(\010\022m\n\033consumption_metering_c" - + "onfig\030\003 \001(\0132H.google.container.v1.Resour" - + "ceUsageExportConfig.ConsumptionMeteringC" - + "onfig\032)\n\023BigQueryDestination\022\022\n\ndataset_" - + "id\030\001 \001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n" - + "\007enabled\030\001 \001(\010\")\n\026VerticalPodAutoscaling" - + "\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatStatus\022\020" - + "\n\010disabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007ena" - + "bled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(" - + "\010\"\035\n\nFastSocket\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022Not" - + "ificationConfig\022>\n\006pubsub\030\001 \001(\0132..google" - + ".container.v1.NotificationConfig.PubSub\032" - + "\212\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001" - + "(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022>\n\006" - + "filter\030\003 \001(\0132..google.container.v1.Notif" - + "icationConfig.Filter\032O\n\006Filter\022E\n\nevent_" - + "type\030\001 \003(\01621.google.container.v1.Notific" - + "ationConfig.EventType\"t\n\tEventType\022\032\n\026EV" - + "ENT_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILA" - + "BLE_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURI" - + "TY_BULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes" - + "\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014UpgradeEvent\022?\n\rre" - + "source_type\030\001 \001(\0162(.google.container.v1." - + "UpgradeResourceType\022\021\n\toperation\030\002 \001(\t\0228" - + "\n\024operation_start_time\030\003 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\027\n\017current_version\030\004 \001(" - + "\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010resource\030\006 " - + "\001(\t\"\271\001\n\025UpgradeAvailableEvent\022\017\n\007version" - + "\030\001 \001(\t\022?\n\rresource_type\030\002 \001(\0162(.google.c" - + "ontainer.v1.UpgradeResourceType\022<\n\017relea" - + "se_channel\030\003 \001(\0132#.google.container.v1.R" - + "eleaseChannel\022\020\n\010resource\030\004 \001(\t\"\236\002\n\025Secu" - + "rityBulletinEvent\022\036\n\026resource_type_affec" - + "ted\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_id" - + "s\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_ur" - + "i\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031af" - + "fected_supported_minors\030\007 \003(\t\022\030\n\020patched" - + "_versions\030\010 \003(\t\022 \n\030suggested_upgrade_tar" - + "get\030\t \001(\t\022\035\n\025manual_steps_required\030\n \001(\010" - + "\"g\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022I\n\026worklo" - + "ad_policy_config\030\002 \001(\0132).google.containe" - + "r.v1.WorkloadPolicyConfig\"H\n\024WorkloadPol" - + "icyConfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B" - + "\022\n\020_allow_net_admin\"V\n\rLoggingConfig\022E\n\020" - + "component_config\030\001 \001(\0132+.google.containe" - + "r.v1.LoggingComponentConfig\"\357\001\n\026LoggingC" - + "omponentConfig\022P\n\021enable_components\030\001 \003(" - + "\01625.google.container.v1.LoggingComponent" - + "Config.Component\"\202\001\n\tComponent\022\031\n\025COMPON" - + "ENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001" - + "\022\r\n\tWORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDU" - + "LER\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\"*\n\027RayClus" - + "terLoggingConfig\022\017\n\007enabled\030\001 \001(\010\"\227\002\n\020Mo" - + "nitoringConfig\022H\n\020component_config\030\001 \001(\013" - + "2..google.container.v1.MonitoringCompone" - + "ntConfig\022O\n\031managed_prometheus_config\030\002 " - + "\001(\0132,.google.container.v1.ManagedPrometh" - + "eusConfig\022h\n&advanced_datapath_observabi" - + "lity_config\030\003 \001(\01328.google.container.v1." - + "AdvancedDatapathObservabilityConfig\"\236\002\n#" - + "AdvancedDatapathObservabilityConfig\022\026\n\016e" - + "nable_metrics\030\001 \001(\010\022V\n\nrelay_mode\030\002 \001(\0162" - + "B.google.container.v1.AdvancedDatapathOb" - + "servabilityConfig.RelayMode\022\031\n\014enable_re" - + "lay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MOD" - + "E_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNA" - + "L_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_r" - + "elay\"-\n\032RayClusterMonitoringConfig\022\017\n\007en" - + "abled\030\001 \001(\010\"Z\n\025NodePoolLoggingConfig\022A\n\016" - + "variant_config\030\001 \001(\0132).google.container." - + "v1.LoggingVariantConfig\"\237\001\n\024LoggingVaria" - + "ntConfig\022B\n\007variant\030\001 \001(\01621.google.conta" - + "iner.v1.LoggingVariantConfig.Variant\"C\n\007" - + "Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFA" - + "ULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\332\002\n\031Monitoring" - + "ComponentConfig\022S\n\021enable_components\030\001 \003" - + "(\01628.google.container.v1.MonitoringCompo" - + "nentConfig.Component\"\347\001\n\tComponent\022\031\n\025CO" - + "MPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONEN" - + "TS\020\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CO" - + "NTROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010" - + "\022\007\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013" - + "\022\017\n\013STATEFULSET\020\014\022\014\n\010CADVISOR\020\r\022\013\n\007KUBEL" - + "ET\020\016\022\010\n\004DCGM\020\017\"*\n\027ManagedPrometheusConfi" - + "g\022\017\n\007enabled\030\001 \001(\010\"N\n\005Fleet\022\017\n\007project\030\001" - + " \001(\t\022\027\n\nmembership\030\002 \001(\tB\003\340A\003\022\033\n\016pre_reg" - + "istered\030\003 \001(\010B\003\340A\003\"2\n\027LocalNvmeSsdBlockC" - + "onfig\022\027\n\017local_ssd_count\030\001 \001(\005\"9\n\036Epheme" - + "ralStorageLocalSsdConfig\022\027\n\017local_ssd_co" - + "unt\030\001 \001(\005\"\204\001\n\023ResourceManagerTags\022@\n\004tag" - + "s\030\001 \003(\01322.google.container.v1.ResourceMa" - + "nagerTags.TagsEntry\032+\n\tTagsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseC" - + "onfig\022L\n\014cluster_tier\030\001 \001(\01621.google.con" - + "tainer.v1.EnterpriseConfig.ClusterTierB\003" - + "\340A\003\"I\n\013ClusterTier\022\034\n\030CLUSTER_TIER_UNSPE" - + "CIFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\233" - + "\001\n\021SecondaryBootDisk\0229\n\004mode\030\001 \001(\0162+.goo" - + "gle.container.v1.SecondaryBootDisk.Mode\022" - + "\022\n\ndisk_image\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSP" - + "ECIFIED\020\000\022\031\n\025CONTAINER_IMAGE_CACHE\020\001\"!\n\037" - + "SecondaryBootDiskUpdateStrategy*\306\001\n\027Priv" - + "ateIPv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOG" - + "LE_ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_" - + "GOOGLE_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6" - + "_GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IP" - + "V6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023Upgr" - + "adeResourceType\022%\n!UPGRADE_RESOURCE_TYPE" - + "_UNSPECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020" - + "\002*a\n\020DatapathProvider\022!\n\035DATAPATH_PROVID" - + "ER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n" - + "\021ADVANCED_DATAPATH\020\002*^\n\026NodePoolUpdateSt" - + "rategy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSP" - + "ECIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\t" - + "StackType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n" - + "\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002*N\n\016IPv6AccessType" - + "\022 \n\034IPV6_ACCESS_TYPE_UNSPECIFIED\020\000\022\014\n\010IN" - + "TERNAL\020\001\022\014\n\010EXTERNAL\020\002*\237\001\n\031InTransitEncr" - + "yptionConfig\022,\n(IN_TRANSIT_ENCRYPTION_CO" - + "NFIG_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPT" - + "ION_DISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_" - + "INTER_NODE_TRANSPARENT\020\0022\262I\n\016ClusterMana" - + "ger\022\350\001\n\014ListClusters\022(.google.container." - + "v1.ListClustersRequest\032).google.containe" - + "r.v1.ListClustersResponse\"\202\001\332A\017project_i" - + "d,zone\332A\006parent\202\323\344\223\002a\022,/v1/{parent=proje" - + "cts/*/locations/*}/clustersZ1\022//v1/proje" - + "cts/{project_id}/zones/{zone}/clusters\022\355" - + "\001\n\nGetCluster\022&.google.container.v1.GetC" - + "lusterRequest\032\034.google.container.v1.Clus" - + "ter\"\230\001\332A\032project_id,zone,cluster_id\332A\004na" - + "me\202\323\344\223\002n\022,/v1/{name=projects/*/locations" - + "/*/clusters/*}Z>\022*\n\016network_config\030\016 \001(\0132" + + "&.google.container.v1.NodeNetworkConfig\022" + + "\026\n\tself_link\030d \001(\tB\003\340A\003\022\017\n\007version\030e \001(\t" + + "\022 \n\023instance_group_urls\030f \003(\tB\003\340A\003\0229\n\006st" + + "atus\030g \001(\0162$.google.container.v1.NodePoo" + + "l.StatusB\003\340A\003\022\035\n\016status_message\030h \001(\tB\005\030" + + "\001\340A\003\022=\n\013autoscaling\030\004 \001(\0132(.google.conta" + + "iner.v1.NodePoolAutoscaling\0227\n\nmanagemen" + + "t\030\005 \001(\0132#.google.container.v1.NodeManage" + + "ment\022C\n\023max_pods_constraint\030\006 \001(\0132&.goog" + + "le.container.v1.MaxPodsConstraint\0228\n\ncon" + + "ditions\030i \003(\0132$.google.container.v1.Stat" + + "usCondition\022\037\n\022pod_ipv4_cidr_size\030\007 \001(\005B" + + "\003\340A\003\022G\n\020upgrade_settings\030k \001(\0132-.google." + + "container.v1.NodePool.UpgradeSettings\022G\n" + + "\020placement_policy\030l \001(\0132-.google.contain" + + "er.v1.NodePool.PlacementPolicy\022B\n\013update" + + "_info\030m \001(\0132(.google.container.v1.NodePo" + + "ol.UpdateInfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022M\n\023queu" + + "ed_provisioning\030p \001(\01320.google.container" + + ".v1.NodePool.QueuedProvisioning\022M\n\030best_" + + "effort_provisioning\030q \001(\0132+.google.conta" + + "iner.v1.BestEffortProvisioning\032\360\001\n\017Upgra" + + "deSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_una" + + "vailable\030\002 \001(\005\022B\n\010strategy\030\003 \001(\0162+.googl" + + "e.container.v1.NodePoolUpdateStrategyH\000\210" + + "\001\001\022H\n\023blue_green_settings\030\004 \001(\0132&.google" + + ".container.v1.BlueGreenSettingsH\001\210\001\001B\013\n\t" + + "_strategyB\026\n\024_blue_green_settings\032\210\004\n\nUp" + + "dateInfo\022O\n\017blue_green_info\030\001 \001(\01326.goog" + + "le.container.v1.NodePool.UpdateInfo.Blue" + + "GreenInfo\032\250\003\n\rBlueGreenInfo\022K\n\005phase\030\001 \001" + + "(\0162<.google.container.v1.NodePool.Update" + + "Info.BlueGreenInfo.Phase\022 \n\030blue_instanc" + + "e_group_urls\030\002 \003(\t\022!\n\031green_instance_gro" + + "up_urls\030\003 \003(\t\022%\n\035blue_pool_deletion_star" + + "t_time\030\004 \001(\t\022\032\n\022green_pool_version\030\005 \001(\t" + + "\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPD" + + "ATE_STARTED\020\001\022\027\n\023CREATING_GREEN_POOL\020\002\022\027" + + "\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRAINING_BLUE" + + "_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005\022\026\n\022DELETI" + + "NG_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n" + + "\017PlacementPolicy\022@\n\004type\030\001 \001(\01622.google." + + "container.v1.NodePool.PlacementPolicy.Ty" + + "pe\022\031\n\014tpu_topology\030\002 \001(\tB\003\340A\001\022\023\n\013policy_" + + "name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" + + "\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvisioning\022\017\n\007e" + + "nabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STATUS_UNSPEC" + + "IFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026" + + "\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022" + + "\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeManageme" + + "nt\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030" + + "\002 \001(\010\022@\n\017upgrade_options\030\n \001(\0132\'.google." + + "container.v1.AutoUpgradeOptions\"F\n\026BestE" + + "ffortProvisioning\022\017\n\007enabled\030\001 \001(\010\022\033\n\023mi" + + "n_provision_nodes\030\002 \001(\005\"T\n\022AutoUpgradeOp" + + "tions\022$\n\027auto_upgrade_start_time\030\001 \001(\tB\003", + "\340A\003\022\030\n\013description\030\002 \001(\tB\003\340A\003\"e\n\021Mainten" + + "ancePolicy\0226\n\006window\030\001 \001(\0132&.google.cont" + + "ainer.v1.MaintenanceWindow\022\030\n\020resource_v" + + "ersion\030\003 \001(\t\"\366\002\n\021MaintenanceWindow\022O\n\030da" + + "ily_maintenance_window\030\002 \001(\0132+.google.co" + + "ntainer.v1.DailyMaintenanceWindowH\000\022D\n\020r" + + "ecurring_window\030\003 \001(\0132(.google.container" + + ".v1.RecurringTimeWindowH\000\022a\n\026maintenance" + + "_exclusions\030\004 \003(\0132A.google.container.v1." + + "MaintenanceWindow.MaintenanceExclusionsE" + + "ntry\032]\n\032MaintenanceExclusionsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google.containe" + + "r.v1.TimeWindow:\0028\001B\010\n\006policy\"\320\001\n\nTimeWi" + + "ndow\022Y\n\035maintenance_exclusion_options\030\003 " + + "\001(\01320.google.container.v1.MaintenanceExc" + + "lusionOptionsH\000\022.\n\nstart_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\t\n\007options" + + "\"\264\001\n\033MaintenanceExclusionOptions\022E\n\005scop" + + "e\030\001 \001(\01626.google.container.v1.Maintenanc" + + "eExclusionOptions.Scope\"N\n\005Scope\022\017\n\013NO_U" + + "PGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035\n\031NO_M" + + "INOR_OR_NODE_UPGRADES\020\002\"Z\n\023RecurringTime" + + "Window\022/\n\006window\030\001 \001(\0132\037.google.containe" + + "r.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\"C\n\026D" + + "ailyMaintenanceWindow\022\022\n\nstart_time\030\002 \001(" + + "\t\022\025\n\010duration\030\003 \001(\tB\003\340A\003\"\306\001\n\034SetNodePool" + + "ManagementRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" + + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" + + "\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<\n\nmanagem" + + "ent\030\005 \001(\0132#.google.container.v1.NodeMana" + + "gementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetNodePoo" + + "lSizeRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030" + + "\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnode_count\030\005" + + " \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036CompleteNodeP" + + "oolUpgradeRequest\022\014\n\004name\030\001 \001(\t\"\237\001\n\036Roll" + + "backNodePoolUpgradeRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" + + "id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014" + + "\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"J\n\025Lis" + + "tNodePoolsResponse\0221\n\nnode_pools\030\001 \003(\0132\035" + + ".google.container.v1.NodePool\"\257\003\n\022Cluste" + + "rAutoscaling\022$\n\034enable_node_autoprovisio" + + "ning\030\001 \001(\010\022;\n\017resource_limits\030\002 \003(\0132\".go" + + "ogle.container.v1.ResourceLimit\022W\n\023autos" + + "caling_profile\030\003 \001(\0162:.google.container." + + "v1.ClusterAutoscaling.AutoscalingProfile" + + "\022b\n#autoprovisioning_node_pool_defaults\030" + + "\004 \001(\01325.google.container.v1.Autoprovisio" + + "ningNodePoolDefaults\022\"\n\032autoprovisioning" + + "_locations\030\005 \003(\t\"U\n\022AutoscalingProfile\022\027" + + "\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTIL" + + "IZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n Autoprovisio" + + "ningNodePoolDefaults\022\024\n\014oauth_scopes\030\001 \003" + + "(\t\022\027\n\017service_account\030\002 \001(\t\022G\n\020upgrade_s" + + "ettings\030\003 \001(\0132-.google.container.v1.Node" + + "Pool.UpgradeSettings\0227\n\nmanagement\030\004 \001(\013" + + "2#.google.container.v1.NodeManagement\022\034\n" + + "\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_size" + + "_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M\n\030shielded" + + "_instance_config\030\010 \001(\0132+.google.containe" + + "r.v1.ShieldedInstanceConfig\022\031\n\021boot_disk" + + "_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\0223\n&in" + + "secure_kubelet_readonly_port_enabled\030\r \001" + + "(\010H\000\210\001\001B)\n\'_insecure_kubelet_readonly_po" + + "rt_enabled\"H\n\rResourceLimit\022\025\n\rresource_" + + "type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003" + + " \001(\003\"\307\002\n\023NodePoolAutoscaling\022\017\n\007enabled\030" + + "\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016max_nod" + + "e_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022P" + + "\n\017location_policy\030\005 \001(\01627.google.contain" + + "er.v1.NodePoolAutoscaling.LocationPolicy" + + "\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024total_" + + "max_node_count\030\007 \001(\005\"H\n\016LocationPolicy\022\037" + + "\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n\010BALAN" + + "CED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabelsRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017resource_labels" + + "\030\004 \003(\01329.google.container.v1.SetLabelsRe" + + "quest.ResourceLabelsEntryB\003\340A\002\022\036\n\021label_" + + "fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023" + + "ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enabled\030\004 \001(\010B\003" + + "\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRotationReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006" + + " \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"k\n\031Comp" + + "leteIPRotationRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021AcceleratorCon" + + "fig\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accele" + + "rator_type\030\002 \001(\t\022\032\n\022gpu_partition_size\030\003" + + " \001(\t\022F\n\022gpu_sharing_config\030\005 \001(\0132%.googl" + + "e.container.v1.GPUSharingConfigH\000\210\001\001\022]\n\036" + + "gpu_driver_installation_config\030\006 \001(\01320.g" + + "oogle.container.v1.GPUDriverInstallation" + + "ConfigH\001\210\001\001B\025\n\023_gpu_sharing_configB!\n\037_g" + + "pu_driver_installation_config\"\203\002\n\020GPUSha" + + "ringConfig\022\"\n\032max_shared_clients_per_gpu" + + "\030\001 \001(\003\022[\n\024gpu_sharing_strategy\030\002 \001(\01628.g" + + "oogle.container.v1.GPUSharingConfig.GPUS" + + "haringStrategyH\000\210\001\001\"U\n\022GPUSharingStrateg" + + "y\022$\n GPU_SHARING_STRATEGY_UNSPECIFIED\020\000\022" + + "\020\n\014TIME_SHARING\020\001\022\007\n\003MPS\020\002B\027\n\025_gpu_shari" + + "ng_strategy\"\204\002\n\033GPUDriverInstallationCon" + + "fig\022b\n\022gpu_driver_version\030\001 \001(\0162A.google" + + ".container.v1.GPUDriverInstallationConfi" + + "g.GPUDriverVersionH\000\210\001\001\"j\n\020GPUDriverVers" + + "ion\022\"\n\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000\022" + + "\031\n\025INSTALLATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022" + + "\n\n\006LATEST\020\003B\025\n\023_gpu_driver_version\"\232\001\n\026W" + + "orkloadMetadataConfig\022>\n\004mode\030\002 \001(\01620.go" + + "ogle.container.v1.WorkloadMetadataConfig" + + ".Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014G" + + "CE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027SetN" + + "etworkPolicyRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" + + "\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\".google.c" + + "ontainer.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030\006" + + " \001(\t\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002" + + "\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance" + + "_policy\030\004 \001(\0132&.google.container.v1.Main" + + "tenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251\002\n\017Sta" + + "tusCondition\022;\n\004code\030\001 \001(\0162).google.cont" + + "ainer.v1.StatusCondition.CodeB\002\030\001\022\017\n\007mes" + + "sage\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020.goo" + + "gle.rpc.Code\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GC" + + "E_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELE" + + "TED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_" + + "OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013C" + + "A_EXPIRING\020\t\"\207\n\n\rNetworkConfig\022\024\n\007networ" + + "k\030\001 \001(\tB\003\340A\003\022\027\n\nsubnetwork\030\002 \001(\tB\003\340A\003\022$\n" + + "\034enable_intra_node_visibility\030\005 \001(\010\022C\n\023d" + + "efault_snat_status\030\007 \001(\0132&.google.contai" + + "ner.v1.DefaultSnatStatus\022\037\n\027enable_l4ilb" + + "_subsetting\030\n \001(\010\022@\n\021datapath_provider\030\013" + + " \001(\0162%.google.container.v1.DatapathProvi" + + "der\022P\n\032private_ipv6_google_access\030\014 \001(\0162" + + ",.google.container.v1.PrivateIPv6GoogleA" + + "ccess\0222\n\ndns_config\030\r \001(\0132\036.google.conta" + + "iner.v1.DNSConfig\022R\n\033service_external_ip" + + "s_config\030\017 \001(\0132-.google.container.v1.Ser" + + "viceExternalIPsConfig\022A\n\022gateway_api_con" + + "fig\030\020 \001(\0132%.google.container.v1.GatewayA" + + "PIConfig\022\037\n\027enable_multi_networking\030\021 \001(" + + "\010\022f\n\032network_performance_config\030\022 \001(\0132B." + + "google.container.v1.NetworkConfig.Cluste" + + "rNetworkPerformanceConfig\022\'\n\032enable_fqdn" + + "_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_transit" + + "_encryption_config\030\024 \001(\0162..google.contai" + + "ner.v1.InTransitEncryptionConfigH\001\210\001\001\0225\n" + + "(enable_cilium_clusterwide_network_polic" + + "y\030\025 \001(\010H\002\210\001\001\022)\n\034default_enable_private_n" + + "odes\030\026 \001(\010H\003\210\001\001\032\336\001\n\037ClusterNetworkPerfor" + + "manceConfig\022q\n\033total_egress_bandwidth_ti" + + "er\030\001 \001(\0162G.google.container.v1.NetworkCo" + + "nfig.ClusterNetworkPerformanceConfig.Tie" + + "rH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006" + + "TIER_1\020\001B\036\n\034_total_egress_bandwidth_tier" + + "B\035\n\033_enable_fqdn_network_policyB\037\n\035_in_t" + + "ransit_encryption_configB+\n)_enable_cili" + + "um_clusterwide_network_policyB\037\n\035_defaul" + + "t_enable_private_nodes\"\300\001\n\020GatewayAPICon" + + "fig\022>\n\007channel\030\001 \001(\0162-.google.container." + + "v1.GatewayAPIConfig.Channel\"l\n\007Channel\022\027" + + "\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHANNEL_DISAB" + + "LED\020\001\022\034\n\024CHANNEL_EXPERIMENTAL\020\003\032\002\010\001\022\024\n\020C" + + "HANNEL_STANDARD\020\004\"+\n\030ServiceExternalIPsC" + + "onfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenIDConfi" + + "gRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenIDCo" + + "nfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_uri" + + "\030\002 \001(\t\022 \n\030response_types_supported\030\003 \003(\t" + + "\022\037\n\027subject_types_supported\030\004 \003(\t\022-\n%id_" + + "token_signing_alg_values_supported\030\005 \003(\t" + + "\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant_type" + + "s\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(" + + "\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t" + + "\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t" + + " \001(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004keys\030\001" + + " \003(\0132\030.google.container.v1.Jwk\"2\n\"CheckA" + + "utopilotCompatibilityRequest\022\014\n\004name\030\001 \001" + + "(\t\"\374\002\n\033AutopilotCompatibilityIssue\0224\n\020la" + + "st_observation\030\001 \001(\0132\032.google.protobuf.T" + + "imestamp\022\027\n\017constraint_type\030\002 \001(\t\022X\n\024inc" + + "ompatibility_type\030\003 \001(\0162:.google.contain" + + "er.v1.AutopilotCompatibilityIssue.IssueT" + + "ype\022\020\n\010subjects\030\004 \003(\t\022\031\n\021documentation_u" + + "rl\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIssueTy" + + "pe\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPATIBILITY\020\001" + + "\022\036\n\032ADDITIONAL_CONFIG_REQUIRED\020\002\022\037\n\033PASS" + + "ED_WITH_OPTIONAL_CONFIG\020\003\"x\n#CheckAutopi" + + "lotCompatibilityResponse\022@\n\006issues\030\001 \003(\013" + + "20.google.container.v1.AutopilotCompatib" + + "ilityIssue\022\017\n\007summary\030\002 \001(\t\"\234\001\n\016ReleaseC" + + "hannel\022<\n\007channel\030\001 \001(\0162+.google.contain" + + "er.v1.ReleaseChannel.Channel\"L\n\007Channel\022" + + "\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002" + + "\022\n\n\006STABLE\020\003\022\014\n\010EXTENDED\020\004\"\'\n\024CostManage" + + "mentConfig\022\017\n\007enabled\030\001 \001(\010\",\n\031IntraNode" + + "VisibilityConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILB" + + "SubsettingConfig\022\017\n\007enabled\030\001 \001(\010\"\367\002\n\tDN" + + "SConfig\022<\n\013cluster_dns\030\001 \001(\0162\'.google.co" + + "ntainer.v1.DNSConfig.Provider\022B\n\021cluster" + + "_dns_scope\030\002 \001(\0162\'.google.container.v1.D" + + "NSConfig.DNSScope\022\032\n\022cluster_dns_domain\030" + + "\003 \001(\t\022*\n\035additive_vpc_scope_dns_domain\030\005" + + " \001(\tB\003\340A\001\"W\n\010Provider\022\030\n\024PROVIDER_UNSPEC" + + "IFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_D" + + "NS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SC" + + "OPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\t" + + "VPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_" + + "pods_per_node\030\001 \001(\003\"/\n\026WorkloadIdentityC" + + "onfig\022\025\n\rworkload_pool\030\002 \001(\t\"(\n\025Identity" + + "ServiceConfig\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCe" + + "rtificates\0227\n\023enable_certificates\030\001 \001(\0132" + + "\032.google.protobuf.BoolValue\"\343\005\n\022Database" + + "Encryption\022\020\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 " + + "\001(\0162-.google.container.v1.DatabaseEncryp" + + "tion.State\022U\n\rcurrent_state\030\003 \001(\01624.goog" + + "le.container.v1.DatabaseEncryption.Curre" + + "ntStateB\003\340A\003H\000\210\001\001\022\034\n\017decryption_keys\030\004 \003" + + "(\tB\003\340A\003\022Z\n\025last_operation_errors\030\005 \003(\01326" + + ".google.container.v1.DatabaseEncryption." + + "OperationErrorB\003\340A\003\032h\n\016OperationError\022\020\n" + + "\010key_name\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022-" + + "\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED" + + "\020\001\022\r\n\tDECRYPTED\020\002\"\373\001\n\014CurrentState\022\035\n\031CU" + + "RRENT_STATE_UNSPECIFIED\020\000\022\033\n\027CURRENT_STA" + + "TE_ENCRYPTED\020\007\022\033\n\027CURRENT_STATE_DECRYPTE" + + "D\020\002\022$\n CURRENT_STATE_ENCRYPTION_PENDING\020" + + "\003\022\"\n\036CURRENT_STATE_ENCRYPTION_ERROR\020\004\022$\n" + + " CURRENT_STATE_DECRYPTION_PENDING\020\005\022\"\n\036C" + + "URRENT_STATE_DECRYPTION_ERROR\020\006B\020\n\016_curr" + + "ent_state\"e\n\034ListUsableSubnetworksReques" + + "t\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpag" + + "e_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"t\n\035List" + + "UsableSubnetworksResponse\022:\n\013subnetworks" + + "\030\001 \003(\0132%.google.container.v1.UsableSubne" + + "twork\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\036Usabl" + + "eSubnetworkSecondaryRange\022\022\n\nrange_name\030" + + "\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J\n\006status\030\003" + + " \001(\0162:.google.container.v1.UsableSubnetw" + + "orkSecondaryRange.Status\"g\n\006Status\022\013\n\007UN" + + "KNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022" + + "\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANA" + + "GED_POD\020\004\"\270\001\n\020UsableSubnetwork\022\022\n\nsubnet" + + "work\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_r" + + "ange\030\003 \001(\t\022P\n\023secondary_ip_ranges\030\004 \003(\0132" + + "3.google.container.v1.UsableSubnetworkSe" + + "condaryRange\022\026\n\016status_message\030\005 \001(\t\"\355\002\n" + + "\031ResourceUsageExportConfig\022`\n\024bigquery_d" + + "estination\030\001 \001(\0132B.google.container.v1.R" + + "esourceUsageExportConfig.BigQueryDestina" + + "tion\022&\n\036enable_network_egress_metering\030\002" + + " \001(\010\022m\n\033consumption_metering_config\030\003 \001(" + + "\0132H.google.container.v1.ResourceUsageExp" + + "ortConfig.ConsumptionMeteringConfig\032)\n\023B" + + "igQueryDestination\022\022\n\ndataset_id\030\001 \001(\t\032," + + "\n\031ConsumptionMeteringConfig\022\017\n\007enabled\030\001" + + " \001(\010\")\n\026VerticalPodAutoscaling\022\017\n\007enable" + + "d\030\001 \001(\010\"%\n\021DefaultSnatStatus\022\020\n\010disabled" + + "\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled\030\001 \001(\010" + + "\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastS" + + "ocket\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022NotificationC" + + "onfig\022>\n\006pubsub\030\001 \001(\0132..google.container" + + ".v1.NotificationConfig.PubSub\032\212\001\n\006PubSub" + + "\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033p" + + "ubsub.googleapis.com/Topic\022>\n\006filter\030\003 \001" + + "(\0132..google.container.v1.NotificationCon" + + "fig.Filter\032O\n\006Filter\022E\n\nevent_type\030\001 \003(\016" + + "21.google.container.v1.NotificationConfi" + + "g.EventType\"t\n\tEventType\022\032\n\026EVENT_TYPE_U" + + "NSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020" + + "\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY_BULLETI" + + "N_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007enable" + + "d\030\001 \001(\010\"\337\001\n\014UpgradeEvent\022?\n\rresource_typ" + + "e\030\001 \001(\0162(.google.container.v1.UpgradeRes" + + "ourceType\022\021\n\toperation\030\002 \001(\t\0228\n\024operatio" + + "n_start_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\027\n\017current_version\030\004 \001(\t\022\026\n\016targe" + + "t_version\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025Up" + + "gradeAvailableEvent\022\017\n\007version\030\001 \001(\t\022?\n\r" + + "resource_type\030\002 \001(\0162(.google.container.v" + + "1.UpgradeResourceType\022<\n\017release_channel" + + "\030\003 \001(\0132#.google.container.v1.ReleaseChan" + + "nel\022\020\n\010resource\030\004 \001(\t\"\236\002\n\025SecurityBullet" + + "inEvent\022\036\n\026resource_type_affected\030\001 \001(\t\022" + + "\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n" + + "\010severity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n" + + "\021brief_description\030\006 \001(\t\022!\n\031affected_sup" + + "ported_minors\030\007 \003(\t\022\030\n\020patched_versions\030" + + "\010 \003(\t\022 \n\030suggested_upgrade_target\030\t \001(\t\022" + + "\035\n\025manual_steps_required\030\n \001(\010\"g\n\tAutopi" + + "lot\022\017\n\007enabled\030\001 \001(\010\022I\n\026workload_policy_" + + "config\030\002 \001(\0132).google.container.v1.Workl" + + "oadPolicyConfig\"H\n\024WorkloadPolicyConfig\022" + + "\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_" + + "net_admin\"V\n\rLoggingConfig\022E\n\020component_" + + "config\030\001 \001(\0132+.google.container.v1.Loggi" + + "ngComponentConfig\"\221\002\n\026LoggingComponentCo" + + "nfig\022P\n\021enable_components\030\001 \003(\01625.google" + + ".container.v1.LoggingComponentConfig.Com" + + "ponent\"\244\001\n\tComponent\022\031\n\025COMPONENT_UNSPEC" + + "IFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWORKLO" + + "ADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022C" + + "ONTROLLER_MANAGER\020\005\022\014\n\010KCP_SSHD\020\007\022\022\n\016KCP" + + "_CONNECTION\020\010\"*\n\027RayClusterLoggingConfig" + + "\022\017\n\007enabled\030\001 \001(\010\"\227\002\n\020MonitoringConfig\022H" + + "\n\020component_config\030\001 \001(\0132..google.contai" + + "ner.v1.MonitoringComponentConfig\022O\n\031mana" + + "ged_prometheus_config\030\002 \001(\0132,.google.con" + + "tainer.v1.ManagedPrometheusConfig\022h\n&adv" + + "anced_datapath_observability_config\030\003 \001(" + + "\01328.google.container.v1.AdvancedDatapath" + + "ObservabilityConfig\"\236\002\n#AdvancedDatapath" + + "ObservabilityConfig\022\026\n\016enable_metrics\030\001 " + + "\001(\010\022V\n\nrelay_mode\030\002 \001(\0162B.google.contain" + + "er.v1.AdvancedDatapathObservabilityConfi" + + "g.RelayMode\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[" + + "\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPECIFIED\020\000\022" + + "\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EX" + + "TERNAL_LB\020\004B\017\n\r_enable_relay\"-\n\032RayClust" + + "erMonitoringConfig\022\017\n\007enabled\030\001 \001(\010\"Z\n\025N" + + "odePoolLoggingConfig\022A\n\016variant_config\030\001" + + " \001(\0132).google.container.v1.LoggingVarian" + + "tConfig\"\237\001\n\024LoggingVariantConfig\022B\n\007vari" + + "ant\030\001 \001(\01621.google.container.v1.LoggingV" + + "ariantConfig.Variant\"C\n\007Variant\022\027\n\023VARIA" + + "NT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_THR" + + "OUGHPUT\020\002\"\332\002\n\031MonitoringComponentConfig\022" + + "S\n\021enable_components\030\001 \003(\01628.google.cont" + + "ainer.v1.MonitoringComponentConfig.Compo" + + "nent\"\347\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIF" + + "IED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPISERVE" + + "R\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGER" + + "\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAE" + + "MONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSET\020" + + "\014\022\014\n\010CADVISOR\020\r\022\013\n\007KUBELET\020\016\022\010\n\004DCGM\020\017\"*" + + "\n\027ManagedPrometheusConfig\022\017\n\007enabled\030\001 \001" + + "(\010\"N\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\027\n\nmembersh" + + "ip\030\002 \001(\tB\003\340A\003\022\033\n\016pre_registered\030\003 \001(\010B\003\340" + + "A\003\"\254\005\n\033ControlPlaneEndpointsConfig\022_\n\023dn" + + "s_endpoint_config\030\001 \001(\0132B.google.contain" + + "er.v1.ControlPlaneEndpointsConfig.DNSEnd" + + "pointConfig\022_\n\023ip_endpoints_config\030\003 \001(\013" + + "2B.google.container.v1.ControlPlaneEndpo" + + "intsConfig.IPEndpointsConfig\032j\n\021DNSEndpo" + + "intConfig\022\025\n\010endpoint\030\002 \001(\tB\003\340A\003\022#\n\026allo" + + "w_external_traffic\030\003 \001(\010H\000\210\001\001B\031\n\027_allow_" + + "external_traffic\032\336\002\n\021IPEndpointsConfig\022\024" + + "\n\007enabled\030\001 \001(\010H\000\210\001\001\022#\n\026enable_public_en" + + "dpoint\030\002 \001(\010H\001\210\001\001\022\032\n\rglobal_access\030\003 \001(\010" + + "H\002\210\001\001\022W\n\032authorized_networks_config\030\004 \001(" + + "\01323.google.container.v1.MasterAuthorized" + + "NetworksConfig\022\034\n\017public_endpoint\030\005 \001(\tB" + + "\003\340A\003\022\035\n\020private_endpoint\030\006 \001(\tB\003\340A\003\022#\n\033p" + + "rivate_endpoint_subnetwork\030\007 \001(\tB\n\n\010_ena" + + "bledB\031\n\027_enable_public_endpointB\020\n\016_glob" + + "al_access\"2\n\027LocalNvmeSsdBlockConfig\022\027\n\017" + + "local_ssd_count\030\001 \001(\005\"9\n\036EphemeralStorag" + + "eLocalSsdConfig\022\027\n\017local_ssd_count\030\001 \001(\005" + + "\"\204\001\n\023ResourceManagerTags\022@\n\004tags\030\001 \003(\01322" + + ".google.container.v1.ResourceManagerTags" + + ".TagsEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseConfig\022L\n\014" + + "cluster_tier\030\001 \001(\01621.google.container.v1" + + ".EnterpriseConfig.ClusterTierB\003\340A\003\"I\n\013Cl" + + "usterTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022" + + "\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\"7\n\023SecretM" + + "anagerConfig\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001B\n\n\010_e" + + "nabled\"\233\001\n\021SecondaryBootDisk\0229\n\004mode\030\001 \001" + + "(\0162+.google.container.v1.SecondaryBootDi" + + "sk.Mode\022\022\n\ndisk_image\030\002 \001(\t\"7\n\004Mode\022\024\n\020M" + + "ODE_UNSPECIFIED\020\000\022\031\n\025CONTAINER_IMAGE_CAC" + + "HE\020\001\"!\n\037SecondaryBootDiskUpdateStrategy*" + + "\306\001\n\027PrivateIPv6GoogleAccess\022*\n&PRIVATE_I" + + "PV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVA" + + "TE_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n$PRIV" + + "ATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PR" + + "IVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003" + + "*W\n\023UpgradeResourceType\022%\n!UPGRADE_RESOU" + + "RCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNO" + + "DE_POOL\020\002*a\n\020DatapathProvider\022!\n\035DATAPAT" + + "H_PROVIDER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAP" + + "ATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002*^\n\026NodePool" + + "UpdateStrategy\022)\n%NODE_POOL_UPDATE_STRAT" + + "EGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SUR" + + "GE\020\003*@\n\tStackType\022\032\n\026STACK_TYPE_UNSPECIF" + + "IED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002*N\n\016IPv6Ac" + + "cessType\022 \n\034IPV6_ACCESS_TYPE_UNSPECIFIED" + + "\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXTERNAL\020\002*\237\001\n\031InTra" + + "nsitEncryptionConfig\022,\n(IN_TRANSIT_ENCRY" + + "PTION_CONFIG_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT" + + "_ENCRYPTION_DISABLED\020\001\0220\n,IN_TRANSIT_ENC", + "RYPTION_INTER_NODE_TRANSPARENT\020\0022\262I\n\016Clu" + + "sterManager\022\350\001\n\014ListClusters\022(.google.co" + + "ntainer.v1.ListClustersRequest\032).google." + + "container.v1.ListClustersResponse\"\202\001\332A\017p" + + "roject_id,zone\332A\006parent\202\323\344\223\002a\022,/v1/{pare" + + "nt=projects/*/locations/*}/clustersZ1\022//" + "v1/projects/{project_id}/zones/{zone}/cl" - + "usters/{cluster_id}/nodePools/{node_pool" - + "_id}\022\252\002\n\016CreateNodePool\022*.google.contain" - + "er.v1.CreateNodePoolRequest\032\036.google.con" - + "tainer.v1.Operation\"\313\001\332A$project_id,zone" - + ",cluster_id,node_pool\332A\020parent,node_pool" - + "\202\323\344\223\002\212\001\"8/v1/{parent=projects/*/location" - + "s/*/clusters/*}/nodePools:\001*ZK\"F/v1/proj" - + "ects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/nodePools:\001*\022\252\002\n\016DeleteNode" - + "Pool\022*.google.container.v1.DeleteNodePoo" - + "lRequest\032\036.google.container.v1.Operation" - + "\"\313\001\332A\'project_id,zone,cluster_id,node_po" - + "ol_id\332A\004name\202\323\344\223\002\223\001*8/v1/{name=projects/" - + "*/locations/*/clusters/*/nodePools/*}ZW*" - + "U/v1/projects/{project_id}/zones/{zone}/" - + "clusters/{cluster_id}/nodePools/{node_po" - + "ol_id}\022\273\001\n\027CompleteNodePoolUpgrade\0223.goo" - + "gle.container.v1.CompleteNodePoolUpgrade" - + "Request\032\026.google.protobuf.Empty\"S\202\323\344\223\002M\"" - + "H/v1/{name=projects/*/locations/*/cluste" - + "rs/*/nodePools/*}:completeUpgrade:\001*\022\324\002\n" - + "\027RollbackNodePoolUpgrade\0223.google.contai" - + "ner.v1.RollbackNodePoolUpgradeRequest\032\036." - + "google.container.v1.Operation\"\343\001\332A\'proje" - + "ct_id,zone,cluster_id,node_pool_id\332A\004nam" - + "e\202\323\344\223\002\253\001\"A/v1/{name=projects/*/locations" - + "/*/clusters/*/nodePools/*}:rollback:\001*Zc" - + "\"^/v1/projects/{project_id}/zones/{zone}" - + "/clusters/{cluster_id}/nodePools/{node_p" - + "ool_id}:rollback:\001*\022\251\002\n\025SetNodePoolManag" - + "ement\0221.google.container.v1.SetNodePoolM" - + "anagementRequest\032\036.google.container.v1.O" - + "peration\"\274\001\202\323\344\223\002\265\001\"F/v1/{name=projects/*" - + "/locations/*/clusters/*/nodePools/*}:set" - + "Management:\001*Zh\"c/v1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/no" - + "dePools/{node_pool_id}/setManagement:\001*\022" - + "\361\001\n\tSetLabels\022%.google.container.v1.SetL" - + "abelsRequest\032\036.google.container.v1.Opera" - + "tion\"\234\001\202\323\344\223\002\225\001\">/v1/{name=projects/*/loc" - + "ations/*/clusters/*}:setResourceLabels:\001" - + "*ZP\"K/v1/projects/{project_id}/zones/{zo" - + "ne}/clusters/{cluster_id}/resourceLabels" - + ":\001*\022\245\002\n\rSetLegacyAbac\022).google.container" - + ".v1.SetLegacyAbacRequest\032\036.google.contai" - + "ner.v1.Operation\"\310\001\332A\"project_id,zone,cl" - + "uster_id,enabled\332A\014name,enabled\202\323\344\223\002\215\001\":" + + "usters\022\355\001\n\nGetCluster\022&.google.container" + + ".v1.GetClusterRequest\032\034.google.container" + + ".v1.Cluster\"\230\001\332A\032project_id,zone,cluster" + + "_id\332A\004name\202\323\344\223\002n\022,/v1/{name=projects/*/l" + + "ocations/*/clusters/*}Z>\022*/v1/{name=projec" + + "ts/*/locations/*/clusters/*}:setResource" + + "Labels:\001*ZP\"K/v1/projects/{project_id}/z" + + "ones/{zone}/clusters/{cluster_id}/resour" + + "ceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).google.c" + + "ontainer.v1.SetLegacyAbacRequest\032\036.googl" + + "e.container.v1.Operation\"\310\001\332A\"project_id" + + ",zone,cluster_id,enabled\332A\014name,enabled\202" + + "\323\344\223\002\215\001\":/v1/{name=projects/*/locations/*" + + "/clusters/*}:setLegacyAbac:\001*ZL\"G/v1/pro" + "jects/{project_id}/zones/{zone}/clusters" - + "/{cluster_id}/nodePools/{node_pool_id}/s" - + "etSize:\001*\022\302\002\n\020SetNetworkPolicy\022,.google." - + "container.v1.SetNetworkPolicyRequest\032\036.g" - + "oogle.container.v1.Operation\"\337\001\332A)projec" - + "t_id,zone,cluster_id,network_policy\332A\023na" - + "me,network_policy\202\323\344\223\002\226\001\"=/v1/{name=proj" - + "ects/*/locations/*/clusters/*}:setNetwor" - + "kPolicy:\001*ZR\"M/v1/projects/{project_id}/" - + "zones/{zone}/clusters/{cluster_id}:setNe" - + "tworkPolicy:\001*\022\332\002\n\024SetMaintenancePolicy\022" - + "0.google.container.v1.SetMaintenancePoli" - + "cyRequest\032\036.google.container.v1.Operatio" - + "n\"\357\001\332A-project_id,zone,cluster_id,mainte" - + "nance_policy\332A\027name,maintenance_policy\202\323" - + "\344\223\002\236\001\"A/v1/{name=projects/*/locations/*/" - + "clusters/*}:setMaintenancePolicy:\001*ZV\"Q/" + + "/{cluster_id}/legacyAbac:\001*\022\240\002\n\017StartIPR" + + "otation\022+.google.container.v1.StartIPRot" + + "ationRequest\032\036.google.container.v1.Opera" + + "tion\"\277\001\332A\032project_id,zone,cluster_id\332A\004n" + + "ame\202\323\344\223\002\224\001\" * The desired configuration options for master authorized networks feature. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config + * instead. *
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredMasterAuthorizedNetworksConfig() { return ((bitField0_ & 0x00000100) != 0); } @@ -863,15 +870,22 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * *
    * The desired configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { return desiredMasterAuthorizedNetworksConfig_ == null @@ -883,13 +897,18 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * *
    * The desired configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { return desiredMasterAuthorizedNetworksConfig_ == null @@ -1187,13 +1206,22 @@ public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutos * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2506 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredPrivateClusterConfig() { return ((bitField0_ & 0x00002000) != 0); } @@ -1207,13 +1235,22 @@ public boolean hasDesiredPrivateClusterConfig() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2506 * @return The desiredPrivateClusterConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() @@ -1229,11 +1266,18 @@ public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConf * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { return desiredPrivateClusterConfig_ == null @@ -1838,13 +1882,21 @@ public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExterna * *
    * Enable/Disable private endpoint for the cluster's master.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredEnablePrivateEndpoint() { return ((bitField0_ & 0x01000000) != 0); } @@ -1853,17 +1905,126 @@ public boolean hasDesiredEnablePrivateEndpoint() { * *
    * Enable/Disable private endpoint for the cluster's master.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public boolean getDesiredEnablePrivateEndpoint() { return desiredEnablePrivateEndpoint_; } + public static final int DESIRED_DEFAULT_ENABLE_PRIVATE_NODES_FIELD_NUMBER = 72; + private boolean desiredDefaultEnablePrivateNodes_ = false; + /** + * + * + *
+   * Override the default setting of whether future created
+   * nodes have private IP addresses only, namely
+   * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+   * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return Whether the desiredDefaultEnablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultEnablePrivateNodes() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * + * + *
+   * Override the default setting of whether future created
+   * nodes have private IP addresses only, namely
+   * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+   * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return The desiredDefaultEnablePrivateNodes. + */ + @java.lang.Override + public boolean getDesiredDefaultEnablePrivateNodes() { + return desiredDefaultEnablePrivateNodes_; + } + + public static final int DESIRED_CONTROL_PLANE_ENDPOINTS_CONFIG_FIELD_NUMBER = 73; + private com.google.container.v1.ControlPlaneEndpointsConfig desiredControlPlaneEndpointsConfig_; + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return Whether the desiredControlPlaneEndpointsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredControlPlaneEndpointsConfig() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return The desiredControlPlaneEndpointsConfig. + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig + getDesiredControlPlaneEndpointsConfig() { + return desiredControlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : desiredControlPlaneEndpointsConfig_; + } + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getDesiredControlPlaneEndpointsConfigOrBuilder() { + return desiredControlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : desiredControlPlaneEndpointsConfig_; + } + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; @SuppressWarnings("serial") @@ -1948,7 +2109,7 @@ public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { */ @java.lang.Override public boolean hasDesiredGcfsConfig() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** * @@ -1999,7 +2160,7 @@ public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder */ @java.lang.Override public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -2052,7 +2213,7 @@ public com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTa */ @java.lang.Override public boolean hasDesiredGatewayApiConfig() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** * @@ -2157,7 +2318,7 @@ public com.google.protobuf.ByteString getEtagBytes() { */ @java.lang.Override public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** * @@ -2208,7 +2369,7 @@ public com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingCo */ @java.lang.Override public boolean hasDesiredFleet() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** * @@ -2298,7 +2459,7 @@ public com.google.container.v1.StackType getDesiredStackType() { */ @java.lang.Override public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** * @@ -2355,7 +2516,7 @@ public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesC */ @java.lang.Override public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** * @@ -2414,7 +2575,7 @@ public com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPod */ @java.lang.Override public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** * @@ -2464,7 +2625,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB */ @java.lang.Override public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** * @@ -2518,7 +2679,7 @@ public com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureCo */ @java.lang.Override public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** * @@ -2574,7 +2735,7 @@ public boolean hasDesiredNetworkPerformanceConfig() { */ @java.lang.Override public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** * @@ -2608,7 +2769,7 @@ public boolean getDesiredEnableFqdnNetworkPolicy() { */ @java.lang.Override public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** * @@ -2661,7 +2822,7 @@ public com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadP */ @java.lang.Override public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** * @@ -2711,7 +2872,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOr */ @java.lang.Override public boolean hasDesiredContainerdConfig() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** * @@ -2761,7 +2922,7 @@ public com.google.container.v1.ContainerdConfigOrBuilder getDesiredContainerdCon */ @java.lang.Override public boolean hasDesiredEnableMultiNetworking() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** * @@ -2797,7 +2958,7 @@ public boolean getDesiredEnableMultiNetworking() { */ @java.lang.Override public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** * @@ -2857,7 +3018,7 @@ public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { */ @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** * @@ -2912,7 +3073,7 @@ public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncr */ @java.lang.Override public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** * @@ -2930,6 +3091,117 @@ public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { return desiredEnableCiliumClusterwideNetworkPolicy_; } + public static final int DESIRED_SECRET_MANAGER_CONFIG_FIELD_NUMBER = 139; + private com.google.container.v1.SecretManagerConfig desiredSecretManagerConfig_; + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return Whether the desiredSecretManagerConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredSecretManagerConfig() { + return ((bitField1_ & 0x00002000) != 0); + } + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return The desiredSecretManagerConfig. + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfig getDesiredSecretManagerConfig() { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfigOrBuilder + getDesiredSecretManagerConfigOrBuilder() { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + + public static final int DESIRED_COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER = 140; + private com.google.container.v1.CompliancePostureConfig desiredCompliancePostureConfig_; + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return Whether the desiredCompliancePostureConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredCompliancePostureConfig() { + return ((bitField1_ & 0x00004000) != 0); + } + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return The desiredCompliancePostureConfig. + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig getDesiredCompliancePostureConfig() { + return desiredCompliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : desiredCompliancePostureConfig_; + } + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfigOrBuilder + getDesiredCompliancePostureConfigOrBuilder() { + return desiredCompliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : desiredCompliancePostureConfig_; + } + public static final int DESIRED_NODE_KUBELET_CONFIG_FIELD_NUMBER = 141; private com.google.container.v1.NodeKubeletConfig desiredNodeKubeletConfig_; /** @@ -2945,7 +3217,7 @@ public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { */ @java.lang.Override public boolean hasDesiredNodeKubeletConfig() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** * @@ -2998,7 +3270,7 @@ public com.google.container.v1.NodeKubeletConfigOrBuilder getDesiredNodeKubeletC */ @java.lang.Override public boolean hasDesiredNodePoolAutoConfigKubeletConfig() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** * @@ -3040,6 +3312,110 @@ public com.google.container.v1.NodeKubeletConfig getDesiredNodePoolAutoConfigKub : desiredNodePoolAutoConfigKubeletConfig_; } + public static final int USER_MANAGED_KEYS_CONFIG_FIELD_NUMBER = 143; + private com.google.container.v1.UserManagedKeysConfig userManagedKeysConfig_; + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return Whether the userManagedKeysConfig field is set. + */ + @java.lang.Override + public boolean hasUserManagedKeysConfig() { + return ((bitField1_ & 0x00020000) != 0); + } + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return The userManagedKeysConfig. + */ + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig() { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfigOrBuilder + getUserManagedKeysConfigOrBuilder() { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + + public static final int DESIRED_RBAC_BINDING_CONFIG_FIELD_NUMBER = 144; + private com.google.container.v1.RBACBindingConfig desiredRbacBindingConfig_; + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * @return Whether the desiredRbacBindingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredRbacBindingConfig() { + return ((bitField1_ & 0x00040000) != 0); + } + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * @return The desiredRbacBindingConfig. + */ + @java.lang.Override + public com.google.container.v1.RBACBindingConfig getDesiredRbacBindingConfig() { + return desiredRbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : desiredRbacBindingConfig_; + } + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + */ + @java.lang.Override + public com.google.container.v1.RBACBindingConfigOrBuilder getDesiredRbacBindingConfigOrBuilder() { + return desiredRbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : desiredRbacBindingConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3156,75 +3532,93 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x01000000) != 0)) { output.writeBool(71, desiredEnablePrivateEndpoint_); } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeBool(72, desiredDefaultEnablePrivateNodes_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(73, getDesiredControlPlaneEndpointsConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(109, getDesiredGcfsConfig()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { output.writeMessage(114, getDesiredGatewayApiConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 115, etag_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { output.writeMessage(116, getDesiredNodePoolLoggingConfig()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { output.writeMessage(117, getDesiredFleet()); } if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(119, desiredStackType_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { output.writeMessage(120, getAdditionalPodRangesConfig()); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { output.writeMessage(121, getRemovedAdditionalPodRangesConfig()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { output.writeMessage(122, getEnableK8SBetaApis()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { output.writeMessage(124, getDesiredSecurityPostureConfig()); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { output.writeMessage(125, getDesiredNetworkPerformanceConfig()); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { output.writeBool(126, desiredEnableFqdnNetworkPolicy_); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { output.writeMessage(128, getDesiredAutopilotWorkloadPolicyConfig()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { output.writeMessage(131, getDesiredK8SBetaApis()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { output.writeMessage(134, getDesiredContainerdConfig()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { output.writeBool(135, desiredEnableMultiNetworking_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { output.writeEnum(137, desiredInTransitEncryptionConfig_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { output.writeBool(138, desiredEnableCiliumClusterwideNetworkPolicy_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { + output.writeMessage(139, getDesiredSecretManagerConfig()); + } + if (((bitField1_ & 0x00004000) != 0)) { + output.writeMessage(140, getDesiredCompliancePostureConfig()); + } + if (((bitField1_ & 0x00008000) != 0)) { output.writeMessage(141, getDesiredNodeKubeletConfig()); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { output.writeMessage(142, getDesiredNodePoolAutoConfigKubeletConfig()); } + if (((bitField1_ & 0x00020000) != 0)) { + output.writeMessage(143, getUserManagedKeysConfig()); + } + if (((bitField1_ & 0x00040000) != 0)) { + output.writeMessage(144, getDesiredRbacBindingConfig()); + } getUnknownFields().writeTo(output); } @@ -3386,18 +3780,28 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(71, desiredEnablePrivateEndpoint_); } + if (((bitField0_ & 0x02000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 72, desiredDefaultEnablePrivateNodes_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 73, getDesiredControlPlaneEndpointsConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 110, getDesiredNodePoolAutoConfigNetworkTags()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 114, getDesiredGatewayApiConfig()); @@ -3405,88 +3809,107 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115, etag_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 116, getDesiredNodePoolLoggingConfig()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(117, getDesiredFleet()); } if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(119, desiredStackType_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 120, getAdditionalPodRangesConfig()); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 121, getRemovedAdditionalPodRangesConfig()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getEnableK8SBetaApis()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 124, getDesiredSecurityPostureConfig()); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 125, getDesiredNetworkPerformanceConfig()); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 126, desiredEnableFqdnNetworkPolicy_); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 128, getDesiredAutopilotWorkloadPolicyConfig()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getDesiredK8SBetaApis()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 134, getDesiredContainerdConfig()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(135, desiredEnableMultiNetworking_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 136, getDesiredNodePoolAutoConfigResourceManagerTags()); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize( 137, desiredInTransitEncryptionConfig_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 138, desiredEnableCiliumClusterwideNetworkPolicy_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 139, getDesiredSecretManagerConfig()); + } + if (((bitField1_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 140, getDesiredCompliancePostureConfig()); + } + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 141, getDesiredNodeKubeletConfig()); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 142, getDesiredNodePoolAutoConfigKubeletConfig()); } + if (((bitField1_ & 0x00020000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(143, getUserManagedKeysConfig()); + } + if (((bitField1_ & 0x00040000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 144, getDesiredRbacBindingConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3634,6 +4057,18 @@ public boolean equals(final java.lang.Object obj) { if (getDesiredEnablePrivateEndpoint() != other.getDesiredEnablePrivateEndpoint()) return false; } + if (hasDesiredDefaultEnablePrivateNodes() != other.hasDesiredDefaultEnablePrivateNodes()) + return false; + if (hasDesiredDefaultEnablePrivateNodes()) { + if (getDesiredDefaultEnablePrivateNodes() != other.getDesiredDefaultEnablePrivateNodes()) + return false; + } + if (hasDesiredControlPlaneEndpointsConfig() != other.hasDesiredControlPlaneEndpointsConfig()) + return false; + if (hasDesiredControlPlaneEndpointsConfig()) { + if (!getDesiredControlPlaneEndpointsConfig() + .equals(other.getDesiredControlPlaneEndpointsConfig())) return false; + } if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; if (hasDesiredGcfsConfig()) { @@ -3729,6 +4164,17 @@ public boolean equals(final java.lang.Object obj) { if (getDesiredEnableCiliumClusterwideNetworkPolicy() != other.getDesiredEnableCiliumClusterwideNetworkPolicy()) return false; } + if (hasDesiredSecretManagerConfig() != other.hasDesiredSecretManagerConfig()) return false; + if (hasDesiredSecretManagerConfig()) { + if (!getDesiredSecretManagerConfig().equals(other.getDesiredSecretManagerConfig())) + return false; + } + if (hasDesiredCompliancePostureConfig() != other.hasDesiredCompliancePostureConfig()) + return false; + if (hasDesiredCompliancePostureConfig()) { + if (!getDesiredCompliancePostureConfig().equals(other.getDesiredCompliancePostureConfig())) + return false; + } if (hasDesiredNodeKubeletConfig() != other.hasDesiredNodeKubeletConfig()) return false; if (hasDesiredNodeKubeletConfig()) { if (!getDesiredNodeKubeletConfig().equals(other.getDesiredNodeKubeletConfig())) return false; @@ -3739,6 +4185,14 @@ public boolean equals(final java.lang.Object obj) { if (!getDesiredNodePoolAutoConfigKubeletConfig() .equals(other.getDesiredNodePoolAutoConfigKubeletConfig())) return false; } + if (hasUserManagedKeysConfig() != other.hasUserManagedKeysConfig()) return false; + if (hasUserManagedKeysConfig()) { + if (!getUserManagedKeysConfig().equals(other.getUserManagedKeysConfig())) return false; + } + if (hasDesiredRbacBindingConfig() != other.hasDesiredRbacBindingConfig()) return false; + if (hasDesiredRbacBindingConfig()) { + if (!getDesiredRbacBindingConfig().equals(other.getDesiredRbacBindingConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3869,6 +4323,16 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesiredEnablePrivateEndpoint()); } + if (hasDesiredDefaultEnablePrivateNodes()) { + hash = (37 * hash) + DESIRED_DEFAULT_ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDesiredDefaultEnablePrivateNodes()); + } + if (hasDesiredControlPlaneEndpointsConfig()) { + hash = (37 * hash) + DESIRED_CONTROL_PLANE_ENDPOINTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredControlPlaneEndpointsConfig().hashCode(); + } hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredMasterVersion().hashCode(); if (hasDesiredGcfsConfig()) { @@ -3953,6 +4417,14 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean( getDesiredEnableCiliumClusterwideNetworkPolicy()); } + if (hasDesiredSecretManagerConfig()) { + hash = (37 * hash) + DESIRED_SECRET_MANAGER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredSecretManagerConfig().hashCode(); + } + if (hasDesiredCompliancePostureConfig()) { + hash = (37 * hash) + DESIRED_COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredCompliancePostureConfig().hashCode(); + } if (hasDesiredNodeKubeletConfig()) { hash = (37 * hash) + DESIRED_NODE_KUBELET_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredNodeKubeletConfig().hashCode(); @@ -3961,6 +4433,14 @@ public int hashCode() { hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_KUBELET_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredNodePoolAutoConfigKubeletConfig().hashCode(); } + if (hasUserManagedKeysConfig()) { + hash = (37 * hash) + USER_MANAGED_KEYS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUserManagedKeysConfig().hashCode(); + } + if (hasDesiredRbacBindingConfig()) { + hash = (37 * hash) + DESIRED_RBAC_BINDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredRbacBindingConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4126,6 +4606,7 @@ private void maybeForceBuilderInitialization() { getDesiredMonitoringConfigFieldBuilder(); getDesiredIdentityServiceConfigFieldBuilder(); getDesiredServiceExternalIpsConfigFieldBuilder(); + getDesiredControlPlaneEndpointsConfigFieldBuilder(); getDesiredGcfsConfigFieldBuilder(); getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder(); getDesiredGatewayApiConfigFieldBuilder(); @@ -4140,8 +4621,12 @@ private void maybeForceBuilderInitialization() { getDesiredK8SBetaApisFieldBuilder(); getDesiredContainerdConfigFieldBuilder(); getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); + getDesiredSecretManagerConfigFieldBuilder(); + getDesiredCompliancePostureConfigFieldBuilder(); getDesiredNodeKubeletConfigFieldBuilder(); getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder(); + getUserManagedKeysConfigFieldBuilder(); + getDesiredRbacBindingConfigFieldBuilder(); } } @@ -4279,6 +4764,12 @@ public Builder clear() { desiredServiceExternalIpsConfigBuilder_ = null; } desiredEnablePrivateEndpoint_ = false; + desiredDefaultEnablePrivateNodes_ = false; + desiredControlPlaneEndpointsConfig_ = null; + if (desiredControlPlaneEndpointsConfigBuilder_ != null) { + desiredControlPlaneEndpointsConfigBuilder_.dispose(); + desiredControlPlaneEndpointsConfigBuilder_ = null; + } desiredMasterVersion_ = ""; desiredGcfsConfig_ = null; if (desiredGcfsConfigBuilder_ != null) { @@ -4356,6 +4847,16 @@ public Builder clear() { } desiredInTransitEncryptionConfig_ = 0; desiredEnableCiliumClusterwideNetworkPolicy_ = false; + desiredSecretManagerConfig_ = null; + if (desiredSecretManagerConfigBuilder_ != null) { + desiredSecretManagerConfigBuilder_.dispose(); + desiredSecretManagerConfigBuilder_ = null; + } + desiredCompliancePostureConfig_ = null; + if (desiredCompliancePostureConfigBuilder_ != null) { + desiredCompliancePostureConfigBuilder_.dispose(); + desiredCompliancePostureConfigBuilder_ = null; + } desiredNodeKubeletConfig_ = null; if (desiredNodeKubeletConfigBuilder_ != null) { desiredNodeKubeletConfigBuilder_.dispose(); @@ -4366,6 +4867,16 @@ public Builder clear() { desiredNodePoolAutoConfigKubeletConfigBuilder_.dispose(); desiredNodePoolAutoConfigKubeletConfigBuilder_ = null; } + userManagedKeysConfig_ = null; + if (userManagedKeysConfigBuilder_ != null) { + userManagedKeysConfigBuilder_.dispose(); + userManagedKeysConfigBuilder_ = null; + } + desiredRbacBindingConfig_ = null; + if (desiredRbacBindingConfigBuilder_ != null) { + desiredRbacBindingConfigBuilder_.dispose(); + desiredRbacBindingConfigBuilder_ = null; + } return this; } @@ -4608,141 +5119,180 @@ private void buildPartial1(com.google.container.v1.ClusterUpdate result) { to_bitField0_ |= 0x01000000; } if (((from_bitField1_ & 0x00000002) != 0)) { - result.desiredMasterVersion_ = desiredMasterVersion_; + result.desiredDefaultEnablePrivateNodes_ = desiredDefaultEnablePrivateNodes_; + to_bitField0_ |= 0x02000000; } if (((from_bitField1_ & 0x00000004) != 0)) { + result.desiredControlPlaneEndpointsConfig_ = + desiredControlPlaneEndpointsConfigBuilder_ == null + ? desiredControlPlaneEndpointsConfig_ + : desiredControlPlaneEndpointsConfigBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.desiredMasterVersion_ = desiredMasterVersion_; + } + if (((from_bitField1_ & 0x00000010) != 0)) { result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_ == null ? desiredGcfsConfig_ : desiredGcfsConfigBuilder_.build(); - to_bitField0_ |= 0x02000000; + to_bitField0_ |= 0x08000000; } - if (((from_bitField1_ & 0x00000008) != 0)) { + if (((from_bitField1_ & 0x00000020) != 0)) { result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTagsBuilder_ == null ? desiredNodePoolAutoConfigNetworkTags_ : desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); - to_bitField0_ |= 0x04000000; + to_bitField0_ |= 0x10000000; } - if (((from_bitField1_ & 0x00000010) != 0)) { + if (((from_bitField1_ & 0x00000040) != 0)) { result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_ == null ? desiredGatewayApiConfig_ : desiredGatewayApiConfigBuilder_.build(); - to_bitField0_ |= 0x08000000; + to_bitField0_ |= 0x20000000; } - if (((from_bitField1_ & 0x00000020) != 0)) { + if (((from_bitField1_ & 0x00000080) != 0)) { result.etag_ = etag_; } - if (((from_bitField1_ & 0x00000040) != 0)) { + if (((from_bitField1_ & 0x00000100) != 0)) { result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_ == null ? desiredNodePoolLoggingConfig_ : desiredNodePoolLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x10000000; + to_bitField0_ |= 0x40000000; } - if (((from_bitField1_ & 0x00000080) != 0)) { + if (((from_bitField1_ & 0x00000200) != 0)) { result.desiredFleet_ = desiredFleetBuilder_ == null ? desiredFleet_ : desiredFleetBuilder_.build(); - to_bitField0_ |= 0x20000000; + to_bitField0_ |= 0x80000000; } - if (((from_bitField1_ & 0x00000100) != 0)) { + if (((from_bitField1_ & 0x00000400) != 0)) { result.desiredStackType_ = desiredStackType_; } - if (((from_bitField1_ & 0x00000200) != 0)) { + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000800) != 0)) { result.additionalPodRangesConfig_ = additionalPodRangesConfigBuilder_ == null ? additionalPodRangesConfig_ : additionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x40000000; + to_bitField1_ |= 0x00000001; } - if (((from_bitField1_ & 0x00000400) != 0)) { + if (((from_bitField1_ & 0x00001000) != 0)) { result.removedAdditionalPodRangesConfig_ = removedAdditionalPodRangesConfigBuilder_ == null ? removedAdditionalPodRangesConfig_ : removedAdditionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x80000000; + to_bitField1_ |= 0x00000002; } - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00000800) != 0)) { + if (((from_bitField1_ & 0x00002000) != 0)) { result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null ? enableK8SBetaApis_ : enableK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000001; + to_bitField1_ |= 0x00000004; } - if (((from_bitField1_ & 0x00001000) != 0)) { + if (((from_bitField1_ & 0x00004000) != 0)) { result.desiredSecurityPostureConfig_ = desiredSecurityPostureConfigBuilder_ == null ? desiredSecurityPostureConfig_ : desiredSecurityPostureConfigBuilder_.build(); - to_bitField1_ |= 0x00000002; + to_bitField1_ |= 0x00000008; } - if (((from_bitField1_ & 0x00002000) != 0)) { + if (((from_bitField1_ & 0x00008000) != 0)) { result.desiredNetworkPerformanceConfig_ = desiredNetworkPerformanceConfigBuilder_ == null ? desiredNetworkPerformanceConfig_ : desiredNetworkPerformanceConfigBuilder_.build(); - to_bitField1_ |= 0x00000004; + to_bitField1_ |= 0x00000010; } - if (((from_bitField1_ & 0x00004000) != 0)) { + if (((from_bitField1_ & 0x00010000) != 0)) { result.desiredEnableFqdnNetworkPolicy_ = desiredEnableFqdnNetworkPolicy_; - to_bitField1_ |= 0x00000008; + to_bitField1_ |= 0x00000020; } - if (((from_bitField1_ & 0x00008000) != 0)) { + if (((from_bitField1_ & 0x00020000) != 0)) { result.desiredAutopilotWorkloadPolicyConfig_ = desiredAutopilotWorkloadPolicyConfigBuilder_ == null ? desiredAutopilotWorkloadPolicyConfig_ : desiredAutopilotWorkloadPolicyConfigBuilder_.build(); - to_bitField1_ |= 0x00000010; + to_bitField1_ |= 0x00000040; } - if (((from_bitField1_ & 0x00010000) != 0)) { + if (((from_bitField1_ & 0x00040000) != 0)) { result.desiredK8SBetaApis_ = desiredK8SBetaApisBuilder_ == null ? desiredK8SBetaApis_ : desiredK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000020; + to_bitField1_ |= 0x00000080; } - if (((from_bitField1_ & 0x00020000) != 0)) { + if (((from_bitField1_ & 0x00080000) != 0)) { result.desiredContainerdConfig_ = desiredContainerdConfigBuilder_ == null ? desiredContainerdConfig_ : desiredContainerdConfigBuilder_.build(); - to_bitField1_ |= 0x00000040; + to_bitField1_ |= 0x00000100; } - if (((from_bitField1_ & 0x00040000) != 0)) { + if (((from_bitField1_ & 0x00100000) != 0)) { result.desiredEnableMultiNetworking_ = desiredEnableMultiNetworking_; - to_bitField1_ |= 0x00000080; + to_bitField1_ |= 0x00000200; } - if (((from_bitField1_ & 0x00080000) != 0)) { + if (((from_bitField1_ & 0x00200000) != 0)) { result.desiredNodePoolAutoConfigResourceManagerTags_ = desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null ? desiredNodePoolAutoConfigResourceManagerTags_ : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); - to_bitField1_ |= 0x00000100; + to_bitField1_ |= 0x00000400; } - if (((from_bitField1_ & 0x00100000) != 0)) { + if (((from_bitField1_ & 0x00400000) != 0)) { result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; - to_bitField1_ |= 0x00000200; + to_bitField1_ |= 0x00000800; } - if (((from_bitField1_ & 0x00200000) != 0)) { + if (((from_bitField1_ & 0x00800000) != 0)) { result.desiredEnableCiliumClusterwideNetworkPolicy_ = desiredEnableCiliumClusterwideNetworkPolicy_; - to_bitField1_ |= 0x00000400; + to_bitField1_ |= 0x00001000; } - if (((from_bitField1_ & 0x00400000) != 0)) { + if (((from_bitField1_ & 0x01000000) != 0)) { + result.desiredSecretManagerConfig_ = + desiredSecretManagerConfigBuilder_ == null + ? desiredSecretManagerConfig_ + : desiredSecretManagerConfigBuilder_.build(); + to_bitField1_ |= 0x00002000; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.desiredCompliancePostureConfig_ = + desiredCompliancePostureConfigBuilder_ == null + ? desiredCompliancePostureConfig_ + : desiredCompliancePostureConfigBuilder_.build(); + to_bitField1_ |= 0x00004000; + } + if (((from_bitField1_ & 0x04000000) != 0)) { result.desiredNodeKubeletConfig_ = desiredNodeKubeletConfigBuilder_ == null ? desiredNodeKubeletConfig_ : desiredNodeKubeletConfigBuilder_.build(); - to_bitField1_ |= 0x00000800; + to_bitField1_ |= 0x00008000; } - if (((from_bitField1_ & 0x00800000) != 0)) { + if (((from_bitField1_ & 0x08000000) != 0)) { result.desiredNodePoolAutoConfigKubeletConfig_ = desiredNodePoolAutoConfigKubeletConfigBuilder_ == null ? desiredNodePoolAutoConfigKubeletConfig_ : desiredNodePoolAutoConfigKubeletConfigBuilder_.build(); - to_bitField1_ |= 0x00001000; + to_bitField1_ |= 0x00010000; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.userManagedKeysConfig_ = + userManagedKeysConfigBuilder_ == null + ? userManagedKeysConfig_ + : userManagedKeysConfigBuilder_.build(); + to_bitField1_ |= 0x00020000; + } + if (((from_bitField1_ & 0x20000000) != 0)) { + result.desiredRbacBindingConfig_ = + desiredRbacBindingConfigBuilder_ == null + ? desiredRbacBindingConfig_ + : desiredRbacBindingConfigBuilder_.build(); + to_bitField1_ |= 0x00040000; } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; @@ -4910,9 +5460,15 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredEnablePrivateEndpoint()) { setDesiredEnablePrivateEndpoint(other.getDesiredEnablePrivateEndpoint()); } + if (other.hasDesiredDefaultEnablePrivateNodes()) { + setDesiredDefaultEnablePrivateNodes(other.getDesiredDefaultEnablePrivateNodes()); + } + if (other.hasDesiredControlPlaneEndpointsConfig()) { + mergeDesiredControlPlaneEndpointsConfig(other.getDesiredControlPlaneEndpointsConfig()); + } if (!other.getDesiredMasterVersion().isEmpty()) { desiredMasterVersion_ = other.desiredMasterVersion_; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); } if (other.hasDesiredGcfsConfig()) { @@ -4926,7 +5482,7 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); } if (other.hasDesiredNodePoolLoggingConfig()) { @@ -4979,6 +5535,12 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { setDesiredEnableCiliumClusterwideNetworkPolicy( other.getDesiredEnableCiliumClusterwideNetworkPolicy()); } + if (other.hasDesiredSecretManagerConfig()) { + mergeDesiredSecretManagerConfig(other.getDesiredSecretManagerConfig()); + } + if (other.hasDesiredCompliancePostureConfig()) { + mergeDesiredCompliancePostureConfig(other.getDesiredCompliancePostureConfig()); + } if (other.hasDesiredNodeKubeletConfig()) { mergeDesiredNodeKubeletConfig(other.getDesiredNodeKubeletConfig()); } @@ -4986,6 +5548,12 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { mergeDesiredNodePoolAutoConfigKubeletConfig( other.getDesiredNodePoolAutoConfigKubeletConfig()); } + if (other.hasUserManagedKeysConfig()) { + mergeUserManagedKeysConfig(other.getUserManagedKeysConfig()); + } + if (other.hasDesiredRbacBindingConfig()) { + mergeDesiredRbacBindingConfig(other.getDesiredRbacBindingConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5240,17 +5808,31 @@ public Builder mergeFrom( bitField1_ |= 0x00000001; break; } // case 568 + case 576: + { + desiredDefaultEnablePrivateNodes_ = input.readBool(); + bitField1_ |= 0x00000002; + break; + } // case 576 + case 586: + { + input.readMessage( + getDesiredControlPlaneEndpointsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 586 case 802: { desiredMasterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; break; } // case 802 case 874: { input.readMessage( getDesiredGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; break; } // case 874 case 882: @@ -5258,46 +5840,46 @@ public Builder mergeFrom( input.readMessage( getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; break; } // case 882 case 914: { input.readMessage( getDesiredGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; break; } // case 914 case 922: { etag_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; break; } // case 922 case 930: { input.readMessage( getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; break; } // case 930 case 938: { input.readMessage(getDesiredFleetFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; break; } // case 938 case 952: { desiredStackType_ = input.readEnum(); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; break; } // case 952 case 962: { input.readMessage( getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; break; } // case 962 case 970: @@ -5305,21 +5887,21 @@ public Builder mergeFrom( input.readMessage( getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; break; } // case 970 case 978: { input.readMessage( getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; break; } // case 978 case 994: { input.readMessage( getDesiredSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; break; } // case 994 case 1002: @@ -5327,13 +5909,13 @@ public Builder mergeFrom( input.readMessage( getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; break; } // case 1002 case 1008: { desiredEnableFqdnNetworkPolicy_ = input.readBool(); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; break; } // case 1008 case 1026: @@ -5341,27 +5923,27 @@ public Builder mergeFrom( input.readMessage( getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; break; } // case 1026 case 1050: { input.readMessage( getDesiredK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; break; } // case 1050 case 1074: { input.readMessage( getDesiredContainerdConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; break; } // case 1074 case 1080: { desiredEnableMultiNetworking_ = input.readBool(); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; break; } // case 1080 case 1090: @@ -5369,26 +5951,41 @@ public Builder mergeFrom( input.readMessage( getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; break; } // case 1090 case 1096: { desiredInTransitEncryptionConfig_ = input.readEnum(); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; break; } // case 1096 case 1104: { desiredEnableCiliumClusterwideNetworkPolicy_ = input.readBool(); - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; break; } // case 1104 + case 1114: + { + input.readMessage( + getDesiredSecretManagerConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 1114 + case 1122: + { + input.readMessage( + getDesiredCompliancePostureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x02000000; + break; + } // case 1122 case 1130: { input.readMessage( getDesiredNodeKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00400000; + bitField1_ |= 0x04000000; break; } // case 1130 case 1138: @@ -5396,9 +5993,23 @@ public Builder mergeFrom( input.readMessage( getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00800000; + bitField1_ |= 0x08000000; break; } // case 1138 + case 1146: + { + input.readMessage( + getUserManagedKeysConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x10000000; + break; + } // case 1146 + case 1154: + { + input.readMessage( + getDesiredRbacBindingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x20000000; + break; + } // case 1154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7765,14 +8376,21 @@ public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ + @java.lang.Deprecated public boolean hasDesiredMasterAuthorizedNetworksConfig() { return ((bitField0_ & 0x00002000) != 0); } @@ -7781,14 +8399,21 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return The desiredMasterAuthorizedNetworksConfig. */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { @@ -7804,12 +8429,17 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setDesiredMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig value) { if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { @@ -7829,12 +8459,17 @@ public Builder setDesiredMasterAuthorizedNetworksConfig( * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setDesiredMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { @@ -7851,12 +8486,17 @@ public Builder setDesiredMasterAuthorizedNetworksConfig( * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeDesiredMasterAuthorizedNetworksConfig( com.google.container.v1.MasterAuthorizedNetworksConfig value) { if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { @@ -7882,12 +8522,17 @@ public Builder mergeDesiredMasterAuthorizedNetworksConfig( * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearDesiredMasterAuthorizedNetworksConfig() { bitField0_ = (bitField0_ & ~0x00002000); desiredMasterAuthorizedNetworksConfig_ = null; @@ -7903,12 +8548,17 @@ public Builder clearDesiredMasterAuthorizedNetworksConfig() { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { bitField0_ |= 0x00002000; @@ -7920,12 +8570,17 @@ public Builder clearDesiredMasterAuthorizedNetworksConfig() { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { @@ -7941,10 +8596,14 @@ public Builder clearDesiredMasterAuthorizedNetworksConfig() { * *
      * The desired configuration options for master authorized networks feature.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+     * instead.
      * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -8926,12 +9585,21 @@ public Builder clearDesiredVerticalPodAutoscaling() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. + * See google/container/v1/cluster_service.proto;l=2506 * @return Whether the desiredPrivateClusterConfig field is set. */ + @java.lang.Deprecated public boolean hasDesiredPrivateClusterConfig() { return ((bitField0_ & 0x00080000) != 0); } @@ -8945,12 +9613,21 @@ public boolean hasDesiredPrivateClusterConfig() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. + * See google/container/v1/cluster_service.proto;l=2506 * @return The desiredPrivateClusterConfig. */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { if (desiredPrivateClusterConfigBuilder_ == null) { return desiredPrivateClusterConfig_ == null @@ -8970,10 +9647,17 @@ public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConf * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDesiredPrivateClusterConfig( com.google.container.v1.PrivateClusterConfig value) { if (desiredPrivateClusterConfigBuilder_ == null) { @@ -8998,10 +9682,17 @@ public Builder setDesiredPrivateClusterConfig( * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDesiredPrivateClusterConfig( com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { if (desiredPrivateClusterConfigBuilder_ == null) { @@ -9023,10 +9714,17 @@ public Builder setDesiredPrivateClusterConfig( * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeDesiredPrivateClusterConfig( com.google.container.v1.PrivateClusterConfig value) { if (desiredPrivateClusterConfigBuilder_ == null) { @@ -9057,10 +9755,17 @@ public Builder mergeDesiredPrivateClusterConfig( * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearDesiredPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00080000); desiredPrivateClusterConfig_ = null; @@ -9081,10 +9786,17 @@ public Builder clearDesiredPrivateClusterConfig() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder() { bitField0_ |= 0x00080000; @@ -9101,10 +9813,17 @@ public Builder clearDesiredPrivateClusterConfig() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { if (desiredPrivateClusterConfigBuilder_ != null) { @@ -9125,9 +9844,15 @@ public Builder clearDesiredPrivateClusterConfig() { * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.PrivateClusterConfig, @@ -11287,13 +12012,21 @@ public Builder clearDesiredServiceExternalIpsConfig() { * *
      * Enable/Disable private endpoint for the cluster's master.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredEnablePrivateEndpoint() { return ((bitField1_ & 0x00000001) != 0); } @@ -11302,13 +12035,21 @@ public boolean hasDesiredEnablePrivateEndpoint() { * *
      * Enable/Disable private endpoint for the cluster's master.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public boolean getDesiredEnablePrivateEndpoint() { return desiredEnablePrivateEndpoint_; } @@ -11317,13 +12058,21 @@ public boolean getDesiredEnablePrivateEndpoint() { * *
      * Enable/Disable private endpoint for the cluster's master.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @param value The desiredEnablePrivateEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDesiredEnablePrivateEndpoint(boolean value) { desiredEnablePrivateEndpoint_ = value; @@ -11336,12 +12085,20 @@ public Builder setDesiredEnablePrivateEndpoint(boolean value) { * *
      * Enable/Disable private endpoint for the cluster's master.
+     *
+     * Deprecated: Use
+     * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDesiredEnablePrivateEndpoint() { bitField1_ = (bitField1_ & ~0x00000001); desiredEnablePrivateEndpoint_ = false; @@ -11349,6 +12106,310 @@ public Builder clearDesiredEnablePrivateEndpoint() { return this; } + private boolean desiredDefaultEnablePrivateNodes_; + /** + * + * + *
+     * Override the default setting of whether future created
+     * nodes have private IP addresses only, namely
+     * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+     * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return Whether the desiredDefaultEnablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultEnablePrivateNodes() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Override the default setting of whether future created
+     * nodes have private IP addresses only, namely
+     * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+     * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return The desiredDefaultEnablePrivateNodes. + */ + @java.lang.Override + public boolean getDesiredDefaultEnablePrivateNodes() { + return desiredDefaultEnablePrivateNodes_; + } + /** + * + * + *
+     * Override the default setting of whether future created
+     * nodes have private IP addresses only, namely
+     * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+     * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @param value The desiredDefaultEnablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setDesiredDefaultEnablePrivateNodes(boolean value) { + + desiredDefaultEnablePrivateNodes_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Override the default setting of whether future created
+     * nodes have private IP addresses only, namely
+     * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+     * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return This builder for chaining. + */ + public Builder clearDesiredDefaultEnablePrivateNodes() { + bitField1_ = (bitField1_ & ~0x00000002); + desiredDefaultEnablePrivateNodes_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.ControlPlaneEndpointsConfig desiredControlPlaneEndpointsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder> + desiredControlPlaneEndpointsConfigBuilder_; + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return Whether the desiredControlPlaneEndpointsConfig field is set. + */ + public boolean hasDesiredControlPlaneEndpointsConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return The desiredControlPlaneEndpointsConfig. + */ + public com.google.container.v1.ControlPlaneEndpointsConfig + getDesiredControlPlaneEndpointsConfig() { + if (desiredControlPlaneEndpointsConfigBuilder_ == null) { + return desiredControlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : desiredControlPlaneEndpointsConfig_; + } else { + return desiredControlPlaneEndpointsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public Builder setDesiredControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig value) { + if (desiredControlPlaneEndpointsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredControlPlaneEndpointsConfig_ = value; + } else { + desiredControlPlaneEndpointsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public Builder setDesiredControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.Builder builderForValue) { + if (desiredControlPlaneEndpointsConfigBuilder_ == null) { + desiredControlPlaneEndpointsConfig_ = builderForValue.build(); + } else { + desiredControlPlaneEndpointsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public Builder mergeDesiredControlPlaneEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig value) { + if (desiredControlPlaneEndpointsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) + && desiredControlPlaneEndpointsConfig_ != null + && desiredControlPlaneEndpointsConfig_ + != com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance()) { + getDesiredControlPlaneEndpointsConfigBuilder().mergeFrom(value); + } else { + desiredControlPlaneEndpointsConfig_ = value; + } + } else { + desiredControlPlaneEndpointsConfigBuilder_.mergeFrom(value); + } + if (desiredControlPlaneEndpointsConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public Builder clearDesiredControlPlaneEndpointsConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + desiredControlPlaneEndpointsConfig_ = null; + if (desiredControlPlaneEndpointsConfigBuilder_ != null) { + desiredControlPlaneEndpointsConfigBuilder_.dispose(); + desiredControlPlaneEndpointsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.Builder + getDesiredControlPlaneEndpointsConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getDesiredControlPlaneEndpointsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getDesiredControlPlaneEndpointsConfigOrBuilder() { + if (desiredControlPlaneEndpointsConfigBuilder_ != null) { + return desiredControlPlaneEndpointsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredControlPlaneEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance() + : desiredControlPlaneEndpointsConfig_; + } + } + /** + * + * + *
+     * [Control plane
+     * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+     * configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder> + getDesiredControlPlaneEndpointsConfigFieldBuilder() { + if (desiredControlPlaneEndpointsConfigBuilder_ == null) { + desiredControlPlaneEndpointsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder>( + getDesiredControlPlaneEndpointsConfig(), getParentForChildren(), isClean()); + desiredControlPlaneEndpointsConfig_ = null; + } + return desiredControlPlaneEndpointsConfigBuilder_; + } + private java.lang.Object desiredMasterVersion_ = ""; /** * @@ -11438,7 +12499,7 @@ public Builder setDesiredMasterVersion(java.lang.String value) { throw new NullPointerException(); } desiredMasterVersion_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -11464,7 +12525,7 @@ public Builder setDesiredMasterVersion(java.lang.String value) { */ public Builder clearDesiredMasterVersion() { desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } @@ -11495,7 +12556,7 @@ public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); desiredMasterVersion_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -11518,7 +12579,7 @@ public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value * @return Whether the desiredGcfsConfig field is set. */ public boolean hasDesiredGcfsConfig() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** * @@ -11558,7 +12619,7 @@ public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { } else { desiredGcfsConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -11578,7 +12639,7 @@ public Builder setDesiredGcfsConfig( } else { desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -11593,7 +12654,7 @@ public Builder setDesiredGcfsConfig( */ public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { if (desiredGcfsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) + if (((bitField1_ & 0x00000010) != 0) && desiredGcfsConfig_ != null && desiredGcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { getDesiredGcfsConfigBuilder().mergeFrom(value); @@ -11604,7 +12665,7 @@ public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) desiredGcfsConfigBuilder_.mergeFrom(value); } if (desiredGcfsConfig_ != null) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -11619,7 +12680,7 @@ public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) * .google.container.v1.GcfsConfig desired_gcfs_config = 109; */ public Builder clearDesiredGcfsConfig() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000010); desiredGcfsConfig_ = null; if (desiredGcfsConfigBuilder_ != null) { desiredGcfsConfigBuilder_.dispose(); @@ -11638,7 +12699,7 @@ public Builder clearDesiredGcfsConfig() { * .google.container.v1.GcfsConfig desired_gcfs_config = 109; */ public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return getDesiredGcfsConfigFieldBuilder().getBuilder(); } @@ -11706,7 +12767,7 @@ public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. */ public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** * @@ -11751,7 +12812,7 @@ public Builder setDesiredNodePoolAutoConfigNetworkTags( } else { desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); } - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -11773,7 +12834,7 @@ public Builder setDesiredNodePoolAutoConfigNetworkTags( } else { desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -11791,7 +12852,7 @@ public Builder setDesiredNodePoolAutoConfigNetworkTags( public Builder mergeDesiredNodePoolAutoConfigNetworkTags( com.google.container.v1.NetworkTags value) { if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) + if (((bitField1_ & 0x00000020) != 0) && desiredNodePoolAutoConfigNetworkTags_ != null && desiredNodePoolAutoConfigNetworkTags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { @@ -11803,7 +12864,7 @@ public Builder mergeDesiredNodePoolAutoConfigNetworkTags( desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); } if (desiredNodePoolAutoConfigNetworkTags_ != null) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); } return this; @@ -11820,7 +12881,7 @@ public Builder mergeDesiredNodePoolAutoConfigNetworkTags( * */ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { - bitField1_ = (bitField1_ & ~0x00000008); + bitField1_ = (bitField1_ & ~0x00000020); desiredNodePoolAutoConfigNetworkTags_ = null; if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); @@ -11842,7 +12903,7 @@ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { */ public com.google.container.v1.NetworkTags.Builder getDesiredNodePoolAutoConfigNetworkTagsBuilder() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(); } @@ -11913,7 +12974,7 @@ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { * @return Whether the desiredGatewayApiConfig field is set. */ public boolean hasDesiredGatewayApiConfig() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** * @@ -11953,7 +13014,7 @@ public Builder setDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConf } else { desiredGatewayApiConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -11973,7 +13034,7 @@ public Builder setDesiredGatewayApiConfig( } else { desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -11988,7 +13049,7 @@ public Builder setDesiredGatewayApiConfig( */ public Builder mergeDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { if (desiredGatewayApiConfigBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) + if (((bitField1_ & 0x00000040) != 0) && desiredGatewayApiConfig_ != null && desiredGatewayApiConfig_ != com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) { @@ -12000,7 +13061,7 @@ public Builder mergeDesiredGatewayApiConfig(com.google.container.v1.GatewayAPICo desiredGatewayApiConfigBuilder_.mergeFrom(value); } if (desiredGatewayApiConfig_ != null) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); } return this; @@ -12015,7 +13076,7 @@ public Builder mergeDesiredGatewayApiConfig(com.google.container.v1.GatewayAPICo * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; */ public Builder clearDesiredGatewayApiConfig() { - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000040); desiredGatewayApiConfig_ = null; if (desiredGatewayApiConfigBuilder_ != null) { desiredGatewayApiConfigBuilder_.dispose(); @@ -12034,7 +13095,7 @@ public Builder clearDesiredGatewayApiConfig() { * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; */ public com.google.container.v1.GatewayAPIConfig.Builder getDesiredGatewayApiConfigBuilder() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return getDesiredGatewayApiConfigFieldBuilder().getBuilder(); } @@ -12150,7 +13211,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -12169,7 +13230,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField1_ = (bitField1_ & ~0x00000020); + bitField1_ = (bitField1_ & ~0x00000080); onChanged(); return this; } @@ -12193,7 +13254,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -12217,7 +13278,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the desiredNodePoolLoggingConfig field is set. */ public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** * @@ -12260,7 +13321,7 @@ public Builder setDesiredNodePoolLoggingConfig( } else { desiredNodePoolLoggingConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -12281,7 +13342,7 @@ public Builder setDesiredNodePoolLoggingConfig( } else { desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -12298,7 +13359,7 @@ public Builder setDesiredNodePoolLoggingConfig( public Builder mergeDesiredNodePoolLoggingConfig( com.google.container.v1.NodePoolLoggingConfig value) { if (desiredNodePoolLoggingConfigBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0) + if (((bitField1_ & 0x00000100) != 0) && desiredNodePoolLoggingConfig_ != null && desiredNodePoolLoggingConfig_ != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { @@ -12310,7 +13371,7 @@ public Builder mergeDesiredNodePoolLoggingConfig( desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); } if (desiredNodePoolLoggingConfig_ != null) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; onChanged(); } return this; @@ -12326,7 +13387,7 @@ public Builder mergeDesiredNodePoolLoggingConfig( * */ public Builder clearDesiredNodePoolLoggingConfig() { - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); desiredNodePoolLoggingConfig_ = null; if (desiredNodePoolLoggingConfigBuilder_ != null) { desiredNodePoolLoggingConfigBuilder_.dispose(); @@ -12347,7 +13408,7 @@ public Builder clearDesiredNodePoolLoggingConfig() { */ public com.google.container.v1.NodePoolLoggingConfig.Builder getDesiredNodePoolLoggingConfigBuilder() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; onChanged(); return getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(); } @@ -12416,7 +13477,7 @@ public Builder clearDesiredNodePoolLoggingConfig() { * @return Whether the desiredFleet field is set. */ public boolean hasDesiredFleet() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** * @@ -12456,7 +13517,7 @@ public Builder setDesiredFleet(com.google.container.v1.Fleet value) { } else { desiredFleetBuilder_.setMessage(value); } - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; onChanged(); return this; } @@ -12475,7 +13536,7 @@ public Builder setDesiredFleet(com.google.container.v1.Fleet.Builder builderForV } else { desiredFleetBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; onChanged(); return this; } @@ -12490,7 +13551,7 @@ public Builder setDesiredFleet(com.google.container.v1.Fleet.Builder builderForV */ public Builder mergeDesiredFleet(com.google.container.v1.Fleet value) { if (desiredFleetBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0) + if (((bitField1_ & 0x00000200) != 0) && desiredFleet_ != null && desiredFleet_ != com.google.container.v1.Fleet.getDefaultInstance()) { getDesiredFleetBuilder().mergeFrom(value); @@ -12501,7 +13562,7 @@ public Builder mergeDesiredFleet(com.google.container.v1.Fleet value) { desiredFleetBuilder_.mergeFrom(value); } if (desiredFleet_ != null) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; onChanged(); } return this; @@ -12516,7 +13577,7 @@ public Builder mergeDesiredFleet(com.google.container.v1.Fleet value) { * .google.container.v1.Fleet desired_fleet = 117; */ public Builder clearDesiredFleet() { - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); desiredFleet_ = null; if (desiredFleetBuilder_ != null) { desiredFleetBuilder_.dispose(); @@ -12535,7 +13596,7 @@ public Builder clearDesiredFleet() { * .google.container.v1.Fleet desired_fleet = 117; */ public com.google.container.v1.Fleet.Builder getDesiredFleetBuilder() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; onChanged(); return getDesiredFleetFieldBuilder().getBuilder(); } @@ -12617,7 +13678,7 @@ public int getDesiredStackTypeValue() { */ public Builder setDesiredStackTypeValue(int value) { desiredStackType_ = value; - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -12658,7 +13719,7 @@ public Builder setDesiredStackType(com.google.container.v1.StackType value) { if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; desiredStackType_ = value.getNumber(); onChanged(); return this; @@ -12677,7 +13738,7 @@ public Builder setDesiredStackType(com.google.container.v1.StackType value) { * @return This builder for chaining. */ public Builder clearDesiredStackType() { - bitField1_ = (bitField1_ & ~0x00000100); + bitField1_ = (bitField1_ & ~0x00000400); desiredStackType_ = 0; onChanged(); return this; @@ -12703,7 +13764,7 @@ public Builder clearDesiredStackType() { * @return Whether the additionalPodRangesConfig field is set. */ public boolean hasAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** * @@ -12748,7 +13809,7 @@ public Builder setAdditionalPodRangesConfig( } else { additionalPodRangesConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -12770,7 +13831,7 @@ public Builder setAdditionalPodRangesConfig( } else { additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -12788,7 +13849,7 @@ public Builder setAdditionalPodRangesConfig( public Builder mergeAdditionalPodRangesConfig( com.google.container.v1.AdditionalPodRangesConfig value) { if (additionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) + if (((bitField1_ & 0x00000800) != 0) && additionalPodRangesConfig_ != null && additionalPodRangesConfig_ != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { @@ -12800,7 +13861,7 @@ public Builder mergeAdditionalPodRangesConfig( additionalPodRangesConfigBuilder_.mergeFrom(value); } if (additionalPodRangesConfig_ != null) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); } return this; @@ -12817,7 +13878,7 @@ public Builder mergeAdditionalPodRangesConfig( * */ public Builder clearAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000800); additionalPodRangesConfig_ = null; if (additionalPodRangesConfigBuilder_ != null) { additionalPodRangesConfigBuilder_.dispose(); @@ -12839,7 +13900,7 @@ public Builder clearAdditionalPodRangesConfig() { */ public com.google.container.v1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); } @@ -12914,7 +13975,7 @@ public Builder clearAdditionalPodRangesConfig() { * @return Whether the removedAdditionalPodRangesConfig field is set. */ public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** * @@ -12963,7 +14024,7 @@ public Builder setRemovedAdditionalPodRangesConfig( } else { removedAdditionalPodRangesConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -12987,7 +14048,7 @@ public Builder setRemovedAdditionalPodRangesConfig( } else { removedAdditionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -13007,7 +14068,7 @@ public Builder setRemovedAdditionalPodRangesConfig( public Builder mergeRemovedAdditionalPodRangesConfig( com.google.container.v1.AdditionalPodRangesConfig value) { if (removedAdditionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) + if (((bitField1_ & 0x00001000) != 0) && removedAdditionalPodRangesConfig_ != null && removedAdditionalPodRangesConfig_ != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { @@ -13019,7 +14080,7 @@ public Builder mergeRemovedAdditionalPodRangesConfig( removedAdditionalPodRangesConfigBuilder_.mergeFrom(value); } if (removedAdditionalPodRangesConfig_ != null) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); } return this; @@ -13038,7 +14099,7 @@ public Builder mergeRemovedAdditionalPodRangesConfig( * */ public Builder clearRemovedAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00001000); removedAdditionalPodRangesConfig_ = null; if (removedAdditionalPodRangesConfigBuilder_ != null) { removedAdditionalPodRangesConfigBuilder_.dispose(); @@ -13062,7 +14123,7 @@ public Builder clearRemovedAdditionalPodRangesConfig() { */ public com.google.container.v1.AdditionalPodRangesConfig.Builder getRemovedAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(); } @@ -13137,7 +14198,7 @@ public Builder clearRemovedAdditionalPodRangesConfig() { * @return Whether the enableK8sBetaApis field is set. */ public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** * @@ -13177,7 +14238,7 @@ public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig val } else { enableK8SBetaApisBuilder_.setMessage(value); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -13197,7 +14258,7 @@ public Builder setEnableK8SBetaApis( } else { enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -13212,7 +14273,7 @@ public Builder setEnableK8SBetaApis( */ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { if (enableK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) + if (((bitField1_ & 0x00002000) != 0) && enableK8SBetaApis_ != null && enableK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { @@ -13224,7 +14285,7 @@ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig v enableK8SBetaApisBuilder_.mergeFrom(value); } if (enableK8SBetaApis_ != null) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); } return this; @@ -13239,7 +14300,7 @@ public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig v * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; */ public Builder clearEnableK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00002000); enableK8SBetaApis_ = null; if (enableK8SBetaApisBuilder_ != null) { enableK8SBetaApisBuilder_.dispose(); @@ -13258,7 +14319,7 @@ public Builder clearEnableK8SBetaApis() { * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; */ public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return getEnableK8SBetaApisFieldBuilder().getBuilder(); } @@ -13325,7 +14386,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB * @return Whether the desiredSecurityPostureConfig field is set. */ public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** * @@ -13368,7 +14429,7 @@ public Builder setDesiredSecurityPostureConfig( } else { desiredSecurityPostureConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; onChanged(); return this; } @@ -13389,7 +14450,7 @@ public Builder setDesiredSecurityPostureConfig( } else { desiredSecurityPostureConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; onChanged(); return this; } @@ -13406,7 +14467,7 @@ public Builder setDesiredSecurityPostureConfig( public Builder mergeDesiredSecurityPostureConfig( com.google.container.v1.SecurityPostureConfig value) { if (desiredSecurityPostureConfigBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0) + if (((bitField1_ & 0x00004000) != 0) && desiredSecurityPostureConfig_ != null && desiredSecurityPostureConfig_ != com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) { @@ -13418,7 +14479,7 @@ public Builder mergeDesiredSecurityPostureConfig( desiredSecurityPostureConfigBuilder_.mergeFrom(value); } if (desiredSecurityPostureConfig_ != null) { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; onChanged(); } return this; @@ -13434,7 +14495,7 @@ public Builder mergeDesiredSecurityPostureConfig( * */ public Builder clearDesiredSecurityPostureConfig() { - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); desiredSecurityPostureConfig_ = null; if (desiredSecurityPostureConfigBuilder_ != null) { desiredSecurityPostureConfigBuilder_.dispose(); @@ -13455,7 +14516,7 @@ public Builder clearDesiredSecurityPostureConfig() { */ public com.google.container.v1.SecurityPostureConfig.Builder getDesiredSecurityPostureConfigBuilder() { - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; onChanged(); return getDesiredSecurityPostureConfigFieldBuilder().getBuilder(); } @@ -13527,7 +14588,7 @@ public Builder clearDesiredSecurityPostureConfig() { * @return Whether the desiredNetworkPerformanceConfig field is set. */ public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** * @@ -13574,7 +14635,7 @@ public Builder setDesiredNetworkPerformanceConfig( } else { desiredNetworkPerformanceConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; onChanged(); return this; } @@ -13597,7 +14658,7 @@ public Builder setDesiredNetworkPerformanceConfig( } else { desiredNetworkPerformanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; onChanged(); return this; } @@ -13615,7 +14676,7 @@ public Builder setDesiredNetworkPerformanceConfig( public Builder mergeDesiredNetworkPerformanceConfig( com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { if (desiredNetworkPerformanceConfigBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) + if (((bitField1_ & 0x00008000) != 0) && desiredNetworkPerformanceConfig_ != null && desiredNetworkPerformanceConfig_ != com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig @@ -13628,7 +14689,7 @@ public Builder mergeDesiredNetworkPerformanceConfig( desiredNetworkPerformanceConfigBuilder_.mergeFrom(value); } if (desiredNetworkPerformanceConfig_ != null) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; onChanged(); } return this; @@ -13645,7 +14706,7 @@ public Builder mergeDesiredNetworkPerformanceConfig( * */ public Builder clearDesiredNetworkPerformanceConfig() { - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); desiredNetworkPerformanceConfig_ = null; if (desiredNetworkPerformanceConfigBuilder_ != null) { desiredNetworkPerformanceConfigBuilder_.dispose(); @@ -13667,7 +14728,7 @@ public Builder clearDesiredNetworkPerformanceConfig() { */ public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder getDesiredNetworkPerformanceConfigBuilder() { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; onChanged(); return getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(); } @@ -13735,7 +14796,7 @@ public Builder clearDesiredNetworkPerformanceConfig() { */ @java.lang.Override public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** * @@ -13767,7 +14828,7 @@ public boolean getDesiredEnableFqdnNetworkPolicy() { public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { desiredEnableFqdnNetworkPolicy_ = value; - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -13783,7 +14844,7 @@ public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { * @return This builder for chaining. */ public Builder clearDesiredEnableFqdnNetworkPolicy() { - bitField1_ = (bitField1_ & ~0x00004000); + bitField1_ = (bitField1_ & ~0x00010000); desiredEnableFqdnNetworkPolicy_ = false; onChanged(); return this; @@ -13809,7 +14870,7 @@ public Builder clearDesiredEnableFqdnNetworkPolicy() { * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. */ public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** * @@ -13854,7 +14915,7 @@ public Builder setDesiredAutopilotWorkloadPolicyConfig( } else { desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -13876,7 +14937,7 @@ public Builder setDesiredAutopilotWorkloadPolicyConfig( } else { desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -13894,7 +14955,7 @@ public Builder setDesiredAutopilotWorkloadPolicyConfig( public Builder mergeDesiredAutopilotWorkloadPolicyConfig( com.google.container.v1.WorkloadPolicyConfig value) { if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - if (((bitField1_ & 0x00008000) != 0) + if (((bitField1_ & 0x00020000) != 0) && desiredAutopilotWorkloadPolicyConfig_ != null && desiredAutopilotWorkloadPolicyConfig_ != com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) { @@ -13906,7 +14967,7 @@ public Builder mergeDesiredAutopilotWorkloadPolicyConfig( desiredAutopilotWorkloadPolicyConfigBuilder_.mergeFrom(value); } if (desiredAutopilotWorkloadPolicyConfig_ != null) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); } return this; @@ -13923,7 +14984,7 @@ public Builder mergeDesiredAutopilotWorkloadPolicyConfig( * */ public Builder clearDesiredAutopilotWorkloadPolicyConfig() { - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00020000); desiredAutopilotWorkloadPolicyConfig_ = null; if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); @@ -13945,7 +15006,7 @@ public Builder clearDesiredAutopilotWorkloadPolicyConfig() { */ public com.google.container.v1.WorkloadPolicyConfig.Builder getDesiredAutopilotWorkloadPolicyConfigBuilder() { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(); } @@ -14016,7 +15077,7 @@ public Builder clearDesiredAutopilotWorkloadPolicyConfig() { * @return Whether the desiredK8sBetaApis field is set. */ public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** * @@ -14056,7 +15117,7 @@ public Builder setDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig va } else { desiredK8SBetaApisBuilder_.setMessage(value); } - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -14076,7 +15137,7 @@ public Builder setDesiredK8SBetaApis( } else { desiredK8SBetaApisBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -14091,7 +15152,7 @@ public Builder setDesiredK8SBetaApis( */ public Builder mergeDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { if (desiredK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00010000) != 0) + if (((bitField1_ & 0x00040000) != 0) && desiredK8SBetaApis_ != null && desiredK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { @@ -14103,7 +15164,7 @@ public Builder mergeDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig desiredK8SBetaApisBuilder_.mergeFrom(value); } if (desiredK8SBetaApis_ != null) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); } return this; @@ -14118,7 +15179,7 @@ public Builder mergeDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; */ public Builder clearDesiredK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00010000); + bitField1_ = (bitField1_ & ~0x00040000); desiredK8SBetaApis_ = null; if (desiredK8SBetaApisBuilder_ != null) { desiredK8SBetaApisBuilder_.dispose(); @@ -14137,7 +15198,7 @@ public Builder clearDesiredK8SBetaApis() { * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; */ public com.google.container.v1.K8sBetaAPIConfig.Builder getDesiredK8SBetaApisBuilder() { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return getDesiredK8SBetaApisFieldBuilder().getBuilder(); } @@ -14203,7 +15264,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOr * @return Whether the desiredContainerdConfig field is set. */ public boolean hasDesiredContainerdConfig() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** * @@ -14243,7 +15304,7 @@ public Builder setDesiredContainerdConfig(com.google.container.v1.ContainerdConf } else { desiredContainerdConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -14263,7 +15324,7 @@ public Builder setDesiredContainerdConfig( } else { desiredContainerdConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -14278,7 +15339,7 @@ public Builder setDesiredContainerdConfig( */ public Builder mergeDesiredContainerdConfig(com.google.container.v1.ContainerdConfig value) { if (desiredContainerdConfigBuilder_ == null) { - if (((bitField1_ & 0x00020000) != 0) + if (((bitField1_ & 0x00080000) != 0) && desiredContainerdConfig_ != null && desiredContainerdConfig_ != com.google.container.v1.ContainerdConfig.getDefaultInstance()) { @@ -14290,7 +15351,7 @@ public Builder mergeDesiredContainerdConfig(com.google.container.v1.ContainerdCo desiredContainerdConfigBuilder_.mergeFrom(value); } if (desiredContainerdConfig_ != null) { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); } return this; @@ -14305,7 +15366,7 @@ public Builder mergeDesiredContainerdConfig(com.google.container.v1.ContainerdCo * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ public Builder clearDesiredContainerdConfig() { - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); desiredContainerdConfig_ = null; if (desiredContainerdConfigBuilder_ != null) { desiredContainerdConfigBuilder_.dispose(); @@ -14324,7 +15385,7 @@ public Builder clearDesiredContainerdConfig() { * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ public com.google.container.v1.ContainerdConfig.Builder getDesiredContainerdConfigBuilder() { - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); return getDesiredContainerdConfigFieldBuilder().getBuilder(); } @@ -14386,7 +15447,7 @@ public com.google.container.v1.ContainerdConfigOrBuilder getDesiredContainerdCon */ @java.lang.Override public boolean hasDesiredEnableMultiNetworking() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** * @@ -14418,7 +15479,7 @@ public boolean getDesiredEnableMultiNetworking() { public Builder setDesiredEnableMultiNetworking(boolean value) { desiredEnableMultiNetworking_ = value; - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -14434,7 +15495,7 @@ public Builder setDesiredEnableMultiNetworking(boolean value) { * @return This builder for chaining. */ public Builder clearDesiredEnableMultiNetworking() { - bitField1_ = (bitField1_ & ~0x00040000); + bitField1_ = (bitField1_ & ~0x00100000); desiredEnableMultiNetworking_ = false; onChanged(); return this; @@ -14462,7 +15523,7 @@ public Builder clearDesiredEnableMultiNetworking() { * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. */ public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** * @@ -14510,7 +15571,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( } else { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); } - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -14533,7 +15594,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( } else { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -14552,7 +15613,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( com.google.container.v1.ResourceManagerTags value) { if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00080000) != 0) + if (((bitField1_ & 0x00200000) != 0) && desiredNodePoolAutoConfigResourceManagerTags_ != null && desiredNodePoolAutoConfigResourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { @@ -14564,7 +15625,7 @@ public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); } if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; onChanged(); } return this; @@ -14582,7 +15643,7 @@ public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( * */ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); desiredNodePoolAutoConfigResourceManagerTags_ = null; if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); @@ -14605,7 +15666,7 @@ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { */ public com.google.container.v1.ResourceManagerTags.Builder getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; onChanged(); return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); } @@ -14678,7 +15739,7 @@ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { */ @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** * @@ -14713,7 +15774,7 @@ public int getDesiredInTransitEncryptionConfigValue() { */ public Builder setDesiredInTransitEncryptionConfigValue(int value) { desiredInTransitEncryptionConfig_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -14758,7 +15819,7 @@ public Builder setDesiredInTransitEncryptionConfig( if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; desiredInTransitEncryptionConfig_ = value.getNumber(); onChanged(); return this; @@ -14777,7 +15838,7 @@ public Builder setDesiredInTransitEncryptionConfig( * @return This builder for chaining. */ public Builder clearDesiredInTransitEncryptionConfig() { - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); desiredInTransitEncryptionConfig_ = 0; onChanged(); return this; @@ -14797,7 +15858,7 @@ public Builder clearDesiredInTransitEncryptionConfig() { */ @java.lang.Override public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** * @@ -14829,7 +15890,7 @@ public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { desiredEnableCiliumClusterwideNetworkPolicy_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -14845,71 +15906,75 @@ public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { * @return This builder for chaining. */ public Builder clearDesiredEnableCiliumClusterwideNetworkPolicy() { - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x00800000); desiredEnableCiliumClusterwideNetworkPolicy_ = false; onChanged(); return this; } - private com.google.container.v1.NodeKubeletConfig desiredNodeKubeletConfig_; + private com.google.container.v1.SecretManagerConfig desiredSecretManagerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder> - desiredNodeKubeletConfigBuilder_; + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder> + desiredSecretManagerConfigBuilder_; /** * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * * - * @return Whether the desiredNodeKubeletConfig field is set. + * @return Whether the desiredSecretManagerConfig field is set. */ - public boolean hasDesiredNodeKubeletConfig() { - return ((bitField1_ & 0x00400000) != 0); + public boolean hasDesiredSecretManagerConfig() { + return ((bitField1_ & 0x01000000) != 0); } /** * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * * - * @return The desiredNodeKubeletConfig. + * @return The desiredSecretManagerConfig. */ - public com.google.container.v1.NodeKubeletConfig getDesiredNodeKubeletConfig() { - if (desiredNodeKubeletConfigBuilder_ == null) { - return desiredNodeKubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : desiredNodeKubeletConfig_; + public com.google.container.v1.SecretManagerConfig getDesiredSecretManagerConfig() { + if (desiredSecretManagerConfigBuilder_ == null) { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; } else { - return desiredNodeKubeletConfigBuilder_.getMessage(); + return desiredSecretManagerConfigBuilder_.getMessage(); } } /** * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * */ - public Builder setDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (desiredNodeKubeletConfigBuilder_ == null) { + public Builder setDesiredSecretManagerConfig( + com.google.container.v1.SecretManagerConfig value) { + if (desiredSecretManagerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - desiredNodeKubeletConfig_ = value; + desiredSecretManagerConfig_ = value; } else { - desiredNodeKubeletConfigBuilder_.setMessage(value); + desiredSecretManagerConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -14917,19 +15982,20 @@ public Builder setDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletCo * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * */ - public Builder setDesiredNodeKubeletConfig( - com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { - if (desiredNodeKubeletConfigBuilder_ == null) { - desiredNodeKubeletConfig_ = builderForValue.build(); + public Builder setDesiredSecretManagerConfig( + com.google.container.v1.SecretManagerConfig.Builder builderForValue) { + if (desiredSecretManagerConfigBuilder_ == null) { + desiredSecretManagerConfig_ = builderForValue.build(); } else { - desiredNodeKubeletConfigBuilder_.setMessage(builderForValue.build()); + desiredSecretManagerConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -14937,26 +16003,28 @@ public Builder setDesiredNodeKubeletConfig( * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * */ - public Builder mergeDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (desiredNodeKubeletConfigBuilder_ == null) { - if (((bitField1_ & 0x00400000) != 0) - && desiredNodeKubeletConfig_ != null - && desiredNodeKubeletConfig_ - != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { - getDesiredNodeKubeletConfigBuilder().mergeFrom(value); + public Builder mergeDesiredSecretManagerConfig( + com.google.container.v1.SecretManagerConfig value) { + if (desiredSecretManagerConfigBuilder_ == null) { + if (((bitField1_ & 0x01000000) != 0) + && desiredSecretManagerConfig_ != null + && desiredSecretManagerConfig_ + != com.google.container.v1.SecretManagerConfig.getDefaultInstance()) { + getDesiredSecretManagerConfigBuilder().mergeFrom(value); } else { - desiredNodeKubeletConfig_ = value; + desiredSecretManagerConfig_ = value; } } else { - desiredNodeKubeletConfigBuilder_.mergeFrom(value); + desiredSecretManagerConfigBuilder_.mergeFrom(value); } - if (desiredNodeKubeletConfig_ != null) { - bitField1_ |= 0x00400000; + if (desiredSecretManagerConfig_ != null) { + bitField1_ |= 0x01000000; onChanged(); } return this; @@ -14965,14 +16033,416 @@ public Builder mergeDesiredNodeKubeletConfig(com.google.container.v1.NodeKubelet * * *
-     * The desired node kubelet config for the cluster.
+     * Enable/Disable Secret Manager Config.
      * 
* - * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * */ - public Builder clearDesiredNodeKubeletConfig() { - bitField1_ = (bitField1_ & ~0x00400000); - desiredNodeKubeletConfig_ = null; + public Builder clearDesiredSecretManagerConfig() { + bitField1_ = (bitField1_ & ~0x01000000); + desiredSecretManagerConfig_ = null; + if (desiredSecretManagerConfigBuilder_ != null) { + desiredSecretManagerConfigBuilder_.dispose(); + desiredSecretManagerConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public com.google.container.v1.SecretManagerConfig.Builder + getDesiredSecretManagerConfigBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getDesiredSecretManagerConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public com.google.container.v1.SecretManagerConfigOrBuilder + getDesiredSecretManagerConfigOrBuilder() { + if (desiredSecretManagerConfigBuilder_ != null) { + return desiredSecretManagerConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder> + getDesiredSecretManagerConfigFieldBuilder() { + if (desiredSecretManagerConfigBuilder_ == null) { + desiredSecretManagerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig, + com.google.container.v1.SecretManagerConfig.Builder, + com.google.container.v1.SecretManagerConfigOrBuilder>( + getDesiredSecretManagerConfig(), getParentForChildren(), isClean()); + desiredSecretManagerConfig_ = null; + } + return desiredSecretManagerConfigBuilder_; + } + + private com.google.container.v1.CompliancePostureConfig desiredCompliancePostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder> + desiredCompliancePostureConfigBuilder_; + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return Whether the desiredCompliancePostureConfig field is set. + */ + public boolean hasDesiredCompliancePostureConfig() { + return ((bitField1_ & 0x02000000) != 0); + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return The desiredCompliancePostureConfig. + */ + public com.google.container.v1.CompliancePostureConfig getDesiredCompliancePostureConfig() { + if (desiredCompliancePostureConfigBuilder_ == null) { + return desiredCompliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : desiredCompliancePostureConfig_; + } else { + return desiredCompliancePostureConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public Builder setDesiredCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig value) { + if (desiredCompliancePostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredCompliancePostureConfig_ = value; + } else { + desiredCompliancePostureConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public Builder setDesiredCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig.Builder builderForValue) { + if (desiredCompliancePostureConfigBuilder_ == null) { + desiredCompliancePostureConfig_ = builderForValue.build(); + } else { + desiredCompliancePostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public Builder mergeDesiredCompliancePostureConfig( + com.google.container.v1.CompliancePostureConfig value) { + if (desiredCompliancePostureConfigBuilder_ == null) { + if (((bitField1_ & 0x02000000) != 0) + && desiredCompliancePostureConfig_ != null + && desiredCompliancePostureConfig_ + != com.google.container.v1.CompliancePostureConfig.getDefaultInstance()) { + getDesiredCompliancePostureConfigBuilder().mergeFrom(value); + } else { + desiredCompliancePostureConfig_ = value; + } + } else { + desiredCompliancePostureConfigBuilder_.mergeFrom(value); + } + if (desiredCompliancePostureConfig_ != null) { + bitField1_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public Builder clearDesiredCompliancePostureConfig() { + bitField1_ = (bitField1_ & ~0x02000000); + desiredCompliancePostureConfig_ = null; + if (desiredCompliancePostureConfigBuilder_ != null) { + desiredCompliancePostureConfigBuilder_.dispose(); + desiredCompliancePostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public com.google.container.v1.CompliancePostureConfig.Builder + getDesiredCompliancePostureConfigBuilder() { + bitField1_ |= 0x02000000; + onChanged(); + return getDesiredCompliancePostureConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + public com.google.container.v1.CompliancePostureConfigOrBuilder + getDesiredCompliancePostureConfigOrBuilder() { + if (desiredCompliancePostureConfigBuilder_ != null) { + return desiredCompliancePostureConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredCompliancePostureConfig_ == null + ? com.google.container.v1.CompliancePostureConfig.getDefaultInstance() + : desiredCompliancePostureConfig_; + } + } + /** + * + * + *
+     * Enable/Disable Compliance Posture features for the cluster.
+     * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder> + getDesiredCompliancePostureConfigFieldBuilder() { + if (desiredCompliancePostureConfigBuilder_ == null) { + desiredCompliancePostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig, + com.google.container.v1.CompliancePostureConfig.Builder, + com.google.container.v1.CompliancePostureConfigOrBuilder>( + getDesiredCompliancePostureConfig(), getParentForChildren(), isClean()); + desiredCompliancePostureConfig_ = null; + } + return desiredCompliancePostureConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig desiredNodeKubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + desiredNodeKubeletConfigBuilder_; + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return Whether the desiredNodeKubeletConfig field is set. + */ + public boolean hasDesiredNodeKubeletConfig() { + return ((bitField1_ & 0x04000000) != 0); + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return The desiredNodeKubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getDesiredNodeKubeletConfig() { + if (desiredNodeKubeletConfigBuilder_ == null) { + return desiredNodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodeKubeletConfig_; + } else { + return desiredNodeKubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder setDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodeKubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodeKubeletConfig_ = value; + } else { + desiredNodeKubeletConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder setDesiredNodeKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (desiredNodeKubeletConfigBuilder_ == null) { + desiredNodeKubeletConfig_ = builderForValue.build(); + } else { + desiredNodeKubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder mergeDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodeKubeletConfigBuilder_ == null) { + if (((bitField1_ & 0x04000000) != 0) + && desiredNodeKubeletConfig_ != null + && desiredNodeKubeletConfig_ + != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getDesiredNodeKubeletConfigBuilder().mergeFrom(value); + } else { + desiredNodeKubeletConfig_ = value; + } + } else { + desiredNodeKubeletConfigBuilder_.mergeFrom(value); + } + if (desiredNodeKubeletConfig_ != null) { + bitField1_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder clearDesiredNodeKubeletConfig() { + bitField1_ = (bitField1_ & ~0x04000000); + desiredNodeKubeletConfig_ = null; if (desiredNodeKubeletConfigBuilder_ != null) { desiredNodeKubeletConfigBuilder_.dispose(); desiredNodeKubeletConfigBuilder_ = null; @@ -14990,7 +16460,7 @@ public Builder clearDesiredNodeKubeletConfig() { * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; */ public com.google.container.v1.NodeKubeletConfig.Builder getDesiredNodeKubeletConfigBuilder() { - bitField1_ |= 0x00400000; + bitField1_ |= 0x04000000; onChanged(); return getDesiredNodeKubeletConfigFieldBuilder().getBuilder(); } @@ -15060,7 +16530,7 @@ public com.google.container.v1.NodeKubeletConfig.Builder getDesiredNodeKubeletCo * @return Whether the desiredNodePoolAutoConfigKubeletConfig field is set. */ public boolean hasDesiredNodePoolAutoConfigKubeletConfig() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** * @@ -15107,7 +16577,7 @@ public Builder setDesiredNodePoolAutoConfigKubeletConfig( } else { desiredNodePoolAutoConfigKubeletConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00800000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -15130,7 +16600,7 @@ public Builder setDesiredNodePoolAutoConfigKubeletConfig( } else { desiredNodePoolAutoConfigKubeletConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00800000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -15149,7 +16619,7 @@ public Builder setDesiredNodePoolAutoConfigKubeletConfig( public Builder mergeDesiredNodePoolAutoConfigKubeletConfig( com.google.container.v1.NodeKubeletConfig value) { if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { - if (((bitField1_ & 0x00800000) != 0) + if (((bitField1_ & 0x08000000) != 0) && desiredNodePoolAutoConfigKubeletConfig_ != null && desiredNodePoolAutoConfigKubeletConfig_ != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { @@ -15161,7 +16631,7 @@ public Builder mergeDesiredNodePoolAutoConfigKubeletConfig( desiredNodePoolAutoConfigKubeletConfigBuilder_.mergeFrom(value); } if (desiredNodePoolAutoConfigKubeletConfig_ != null) { - bitField1_ |= 0x00800000; + bitField1_ |= 0x08000000; onChanged(); } return this; @@ -15179,7 +16649,7 @@ public Builder mergeDesiredNodePoolAutoConfigKubeletConfig( * */ public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { - bitField1_ = (bitField1_ & ~0x00800000); + bitField1_ = (bitField1_ & ~0x08000000); desiredNodePoolAutoConfigKubeletConfig_ = null; if (desiredNodePoolAutoConfigKubeletConfigBuilder_ != null) { desiredNodePoolAutoConfigKubeletConfigBuilder_.dispose(); @@ -15202,7 +16672,7 @@ public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { */ public com.google.container.v1.NodeKubeletConfig.Builder getDesiredNodePoolAutoConfigKubeletConfigBuilder() { - bitField1_ |= 0x00800000; + bitField1_ |= 0x08000000; onChanged(); return getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder().getBuilder(); } @@ -15257,6 +16727,400 @@ public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { return desiredNodePoolAutoConfigKubeletConfigBuilder_; } + private com.google.container.v1.UserManagedKeysConfig userManagedKeysConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder> + userManagedKeysConfigBuilder_; + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return Whether the userManagedKeysConfig field is set. + */ + public boolean hasUserManagedKeysConfig() { + return ((bitField1_ & 0x10000000) != 0); + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return The userManagedKeysConfig. + */ + public com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig() { + if (userManagedKeysConfigBuilder_ == null) { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } else { + return userManagedKeysConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public Builder setUserManagedKeysConfig(com.google.container.v1.UserManagedKeysConfig value) { + if (userManagedKeysConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userManagedKeysConfig_ = value; + } else { + userManagedKeysConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public Builder setUserManagedKeysConfig( + com.google.container.v1.UserManagedKeysConfig.Builder builderForValue) { + if (userManagedKeysConfigBuilder_ == null) { + userManagedKeysConfig_ = builderForValue.build(); + } else { + userManagedKeysConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public Builder mergeUserManagedKeysConfig(com.google.container.v1.UserManagedKeysConfig value) { + if (userManagedKeysConfigBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) + && userManagedKeysConfig_ != null + && userManagedKeysConfig_ + != com.google.container.v1.UserManagedKeysConfig.getDefaultInstance()) { + getUserManagedKeysConfigBuilder().mergeFrom(value); + } else { + userManagedKeysConfig_ = value; + } + } else { + userManagedKeysConfigBuilder_.mergeFrom(value); + } + if (userManagedKeysConfig_ != null) { + bitField1_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public Builder clearUserManagedKeysConfig() { + bitField1_ = (bitField1_ & ~0x10000000); + userManagedKeysConfig_ = null; + if (userManagedKeysConfigBuilder_ != null) { + userManagedKeysConfigBuilder_.dispose(); + userManagedKeysConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public com.google.container.v1.UserManagedKeysConfig.Builder getUserManagedKeysConfigBuilder() { + bitField1_ |= 0x10000000; + onChanged(); + return getUserManagedKeysConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + public com.google.container.v1.UserManagedKeysConfigOrBuilder + getUserManagedKeysConfigOrBuilder() { + if (userManagedKeysConfigBuilder_ != null) { + return userManagedKeysConfigBuilder_.getMessageOrBuilder(); + } else { + return userManagedKeysConfig_ == null + ? com.google.container.v1.UserManagedKeysConfig.getDefaultInstance() + : userManagedKeysConfig_; + } + } + /** + * + * + *
+     * The Custom keys configuration for the cluster.
+     * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder> + getUserManagedKeysConfigFieldBuilder() { + if (userManagedKeysConfigBuilder_ == null) { + userManagedKeysConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.UserManagedKeysConfig, + com.google.container.v1.UserManagedKeysConfig.Builder, + com.google.container.v1.UserManagedKeysConfigOrBuilder>( + getUserManagedKeysConfig(), getParentForChildren(), isClean()); + userManagedKeysConfig_ = null; + } + return userManagedKeysConfigBuilder_; + } + + private com.google.container.v1.RBACBindingConfig desiredRbacBindingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder> + desiredRbacBindingConfigBuilder_; + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * + * @return Whether the desiredRbacBindingConfig field is set. + */ + public boolean hasDesiredRbacBindingConfig() { + return ((bitField1_ & 0x20000000) != 0); + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * + * @return The desiredRbacBindingConfig. + */ + public com.google.container.v1.RBACBindingConfig getDesiredRbacBindingConfig() { + if (desiredRbacBindingConfigBuilder_ == null) { + return desiredRbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : desiredRbacBindingConfig_; + } else { + return desiredRbacBindingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public Builder setDesiredRbacBindingConfig(com.google.container.v1.RBACBindingConfig value) { + if (desiredRbacBindingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredRbacBindingConfig_ = value; + } else { + desiredRbacBindingConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public Builder setDesiredRbacBindingConfig( + com.google.container.v1.RBACBindingConfig.Builder builderForValue) { + if (desiredRbacBindingConfigBuilder_ == null) { + desiredRbacBindingConfig_ = builderForValue.build(); + } else { + desiredRbacBindingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public Builder mergeDesiredRbacBindingConfig(com.google.container.v1.RBACBindingConfig value) { + if (desiredRbacBindingConfigBuilder_ == null) { + if (((bitField1_ & 0x20000000) != 0) + && desiredRbacBindingConfig_ != null + && desiredRbacBindingConfig_ + != com.google.container.v1.RBACBindingConfig.getDefaultInstance()) { + getDesiredRbacBindingConfigBuilder().mergeFrom(value); + } else { + desiredRbacBindingConfig_ = value; + } + } else { + desiredRbacBindingConfigBuilder_.mergeFrom(value); + } + if (desiredRbacBindingConfig_ != null) { + bitField1_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public Builder clearDesiredRbacBindingConfig() { + bitField1_ = (bitField1_ & ~0x20000000); + desiredRbacBindingConfig_ = null; + if (desiredRbacBindingConfigBuilder_ != null) { + desiredRbacBindingConfigBuilder_.dispose(); + desiredRbacBindingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public com.google.container.v1.RBACBindingConfig.Builder getDesiredRbacBindingConfigBuilder() { + bitField1_ |= 0x20000000; + onChanged(); + return getDesiredRbacBindingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + public com.google.container.v1.RBACBindingConfigOrBuilder + getDesiredRbacBindingConfigOrBuilder() { + if (desiredRbacBindingConfigBuilder_ != null) { + return desiredRbacBindingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredRbacBindingConfig_ == null + ? com.google.container.v1.RBACBindingConfig.getDefaultInstance() + : desiredRbacBindingConfig_; + } + } + /** + * + * + *
+     * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+     * RoleBindings that can be created.
+     * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder> + getDesiredRbacBindingConfigFieldBuilder() { + if (desiredRbacBindingConfigBuilder_ == null) { + desiredRbacBindingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RBACBindingConfig, + com.google.container.v1.RBACBindingConfig.Builder, + com.google.container.v1.RBACBindingConfigOrBuilder>( + getDesiredRbacBindingConfig(), getParentForChildren(), isClean()); + desiredRbacBindingConfig_ = null; + } + return desiredRbacBindingConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index ef476357ed1c..c106fcde78e8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -549,40 +549,59 @@ public interface ClusterUpdateOrBuilder * *
    * The desired configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ + @java.lang.Deprecated boolean hasDesiredMasterAuthorizedNetworksConfig(); /** * * *
    * The desired configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * * + * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is + * deprecated. See google/container/v1/cluster_service.proto;l=2468 * @return The desiredMasterAuthorizedNetworksConfig. */ + @java.lang.Deprecated com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); /** * * *
    * The desired configuration options for master authorized networks feature.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config
+   * instead.
    * 
* * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; * */ + @java.lang.Deprecated com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder(); @@ -786,12 +805,21 @@ public interface ClusterUpdateOrBuilder * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2506 * @return Whether the desiredPrivateClusterConfig field is set. */ + @java.lang.Deprecated boolean hasDesiredPrivateClusterConfig(); /** * @@ -803,12 +831,21 @@ public interface ClusterUpdateOrBuilder * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2506 * @return The desiredPrivateClusterConfig. */ + @java.lang.Deprecated com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig(); /** * @@ -820,10 +857,17 @@ public interface ClusterUpdateOrBuilder * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] * for modifying other fields within * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. + * + * Deprecated: Use + * desired_control_plane_endpoints_config.ip_endpoints_config.global_access + * instead. *
* - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); /** @@ -1248,26 +1292,119 @@ public interface ClusterUpdateOrBuilder * *
    * Enable/Disable private endpoint for the cluster's master.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return Whether the desiredEnablePrivateEndpoint field is set. */ + @java.lang.Deprecated boolean hasDesiredEnablePrivateEndpoint(); /** * * *
    * Enable/Disable private endpoint for the cluster's master.
+   *
+   * Deprecated: Use
+   * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * optional bool desired_enable_private_endpoint = 71; + * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * + * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=2551 * @return The desiredEnablePrivateEndpoint. */ + @java.lang.Deprecated boolean getDesiredEnablePrivateEndpoint(); + /** + * + * + *
+   * Override the default setting of whether future created
+   * nodes have private IP addresses only, namely
+   * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+   * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return Whether the desiredDefaultEnablePrivateNodes field is set. + */ + boolean hasDesiredDefaultEnablePrivateNodes(); + /** + * + * + *
+   * Override the default setting of whether future created
+   * nodes have private IP addresses only, namely
+   * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes]
+   * 
+ * + * optional bool desired_default_enable_private_nodes = 72; + * + * @return The desiredDefaultEnablePrivateNodes. + */ + boolean getDesiredDefaultEnablePrivateNodes(); + + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return Whether the desiredControlPlaneEndpointsConfig field is set. + */ + boolean hasDesiredControlPlaneEndpointsConfig(); + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + * + * @return The desiredControlPlaneEndpointsConfig. + */ + com.google.container.v1.ControlPlaneEndpointsConfig getDesiredControlPlaneEndpointsConfig(); + /** + * + * + *
+   * [Control plane
+   * endpoints][google.container.v1.Cluster.control_plane_endpoints_config]
+   * configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; + * + */ + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder + getDesiredControlPlaneEndpointsConfigOrBuilder(); + /** * * @@ -2019,6 +2156,86 @@ public interface ClusterUpdateOrBuilder */ boolean getDesiredEnableCiliumClusterwideNetworkPolicy(); + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return Whether the desiredSecretManagerConfig field is set. + */ + boolean hasDesiredSecretManagerConfig(); + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return The desiredSecretManagerConfig. + */ + com.google.container.v1.SecretManagerConfig getDesiredSecretManagerConfig(); + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + com.google.container.v1.SecretManagerConfigOrBuilder getDesiredSecretManagerConfigOrBuilder(); + + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return Whether the desiredCompliancePostureConfig field is set. + */ + boolean hasDesiredCompliancePostureConfig(); + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + * + * @return The desiredCompliancePostureConfig. + */ + com.google.container.v1.CompliancePostureConfig getDesiredCompliancePostureConfig(); + /** + * + * + *
+   * Enable/Disable Compliance Posture features for the cluster.
+   * 
+ * + * + * optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; + * + */ + com.google.container.v1.CompliancePostureConfigOrBuilder + getDesiredCompliancePostureConfigOrBuilder(); + /** * * @@ -2098,4 +2315,77 @@ public interface ClusterUpdateOrBuilder */ com.google.container.v1.NodeKubeletConfigOrBuilder getDesiredNodePoolAutoConfigKubeletConfigOrBuilder(); + + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return Whether the userManagedKeysConfig field is set. + */ + boolean hasUserManagedKeysConfig(); + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + * + * @return The userManagedKeysConfig. + */ + com.google.container.v1.UserManagedKeysConfig getUserManagedKeysConfig(); + /** + * + * + *
+   * The Custom keys configuration for the cluster.
+   * 
+ * + * .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; + */ + com.google.container.v1.UserManagedKeysConfigOrBuilder getUserManagedKeysConfigOrBuilder(); + + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * @return Whether the desiredRbacBindingConfig field is set. + */ + boolean hasDesiredRbacBindingConfig(); + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + * + * @return The desiredRbacBindingConfig. + */ + com.google.container.v1.RBACBindingConfig getDesiredRbacBindingConfig(); + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an
+   * RoleBindings that can be created.
+   * 
+ * + * optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; + */ + com.google.container.v1.RBACBindingConfigOrBuilder getDesiredRbacBindingConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 5979e7910af9..eb35aa440ad7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The bytes for clusterId. */ @java.lang.Override @@ -729,7 +729,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The projectId. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @param value The projectId to set. * @return This builder for chaining. */ @@ -809,7 +809,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return This builder for chaining. */ @java.lang.Deprecated @@ -831,7 +831,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The zone. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The bytes for zone. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @param value The zone to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The clusterId. */ @java.lang.Deprecated @@ -1021,7 +1021,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1047,7 +1047,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index b5dc6053986f..a7d1d17a230d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4524 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4530 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4534 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfig.java new file mode 100644 index 000000000000..159d86bd60b2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfig.java @@ -0,0 +1,2072 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * CompliancePostureConfig defines the settings needed to enable/disable
+ * features for the Compliance Posture.
+ * 
+ * + * Protobuf type {@code google.container.v1.CompliancePostureConfig} + */ +public final class CompliancePostureConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.CompliancePostureConfig) + CompliancePostureConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompliancePostureConfig.newBuilder() to construct. + private CompliancePostureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompliancePostureConfig() { + mode_ = 0; + complianceStandards_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompliancePostureConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompliancePostureConfig.class, + com.google.container.v1.CompliancePostureConfig.Builder.class); + } + + /** + * + * + *
+   * Mode defines enablement mode for Compliance Posture.
+   * 
+ * + * Protobuf enum {@code google.container.v1.CompliancePostureConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Disables Compliance Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Enables Compliance Posture features on the cluster.
+     * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Disables Compliance Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Enables Compliance Posture features on the cluster.
+     * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_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 Mode 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 Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + 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 Mode findValueByNumber(int number) { + return Mode.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.CompliancePostureConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode 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 Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.CompliancePostureConfig.Mode) + } + + public interface ComplianceStandardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CompliancePostureConfig.ComplianceStandard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return Whether the standard field is set. + */ + boolean hasStandard(); + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return The standard. + */ + java.lang.String getStandard(); + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return The bytes for standard. + */ + com.google.protobuf.ByteString getStandardBytes(); + } + /** + * + * + *
+   * Defines the details of a compliance standard.
+   * 
+ * + * Protobuf type {@code google.container.v1.CompliancePostureConfig.ComplianceStandard} + */ + public static final class ComplianceStandard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.CompliancePostureConfig.ComplianceStandard) + ComplianceStandardOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComplianceStandard.newBuilder() to construct. + private ComplianceStandard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComplianceStandard() { + standard_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComplianceStandard(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder.class); + } + + private int bitField0_; + public static final int STANDARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object standard_ = ""; + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return Whether the standard field is set. + */ + @java.lang.Override + public boolean hasStandard() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return The standard. + */ + @java.lang.Override + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + 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(); + standard_ = s; + return s; + } + } + /** + * + * + *
+     * Name of the compliance standard.
+     * 
+ * + * optional string standard = 1; + * + * @return The bytes for standard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, standard_); + } + 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.GeneratedMessageV3.computeStringSize(1, standard_); + } + 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.container.v1.CompliancePostureConfig.ComplianceStandard)) { + return super.equals(obj); + } + com.google.container.v1.CompliancePostureConfig.ComplianceStandard other = + (com.google.container.v1.CompliancePostureConfig.ComplianceStandard) obj; + + if (hasStandard() != other.hasStandard()) return false; + if (hasStandard()) { + if (!getStandard().equals(other.getStandard())) 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 (hasStandard()) { + hash = (37 * hash) + STANDARD_FIELD_NUMBER; + hash = (53 * hash) + getStandard().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard 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.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.CompliancePostureConfig.ComplianceStandard 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines the details of a compliance standard.
+     * 
+ * + * Protobuf type {@code google.container.v1.CompliancePostureConfig.ComplianceStandard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CompliancePostureConfig.ComplianceStandard) + com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder.class); + } + + // Construct using + // com.google.container.v1.CompliancePostureConfig.ComplianceStandard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + standard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return com.google.container.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard build() { + com.google.container.v1.CompliancePostureConfig.ComplianceStandard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard buildPartial() { + com.google.container.v1.CompliancePostureConfig.ComplianceStandard result = + new com.google.container.v1.CompliancePostureConfig.ComplianceStandard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.standard_ = standard_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CompliancePostureConfig.ComplianceStandard) { + return mergeFrom( + (com.google.container.v1.CompliancePostureConfig.ComplianceStandard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard other) { + if (other + == com.google.container.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()) return this; + if (other.hasStandard()) { + standard_ = other.standard_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + standard_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object standard_ = ""; + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @return Whether the standard field is set. + */ + public boolean hasStandard() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @return The standard. + */ + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + standard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @return The bytes for standard. + */ + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @param value The standard to set. + * @return This builder for chaining. + */ + public Builder setStandard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @return This builder for chaining. + */ + public Builder clearStandard() { + standard_ = getDefaultInstance().getStandard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Name of the compliance standard.
+       * 
+ * + * optional string standard = 1; + * + * @param value The bytes for standard to set. + * @return This builder for chaining. + */ + public Builder setStandardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.CompliancePostureConfig.ComplianceStandard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CompliancePostureConfig.ComplianceStandard) + private static final com.google.container.v1.CompliancePostureConfig.ComplianceStandard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.CompliancePostureConfig.ComplianceStandard(); + } + + public static com.google.container.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceStandard 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.container.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return Whether the mode field is set. + */ + @java.lang.Override + public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.Mode getMode() { + com.google.container.v1.CompliancePostureConfig.Mode result = + com.google.container.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.container.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int COMPLIANCE_STANDARDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + complianceStandards_; + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List + getComplianceStandardsList() { + return complianceStandards_; + } + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + return complianceStandards_; + } + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public int getComplianceStandardsCount() { + return complianceStandards_.size(); + } + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard getComplianceStandards( + int index) { + return complianceStandards_.get(index); + } + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + return complianceStandards_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + output.writeMessage(2, complianceStandards_.get(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.computeEnumSize(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, complianceStandards_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CompliancePostureConfig)) { + return super.equals(obj); + } + com.google.container.v1.CompliancePostureConfig other = + (com.google.container.v1.CompliancePostureConfig) obj; + + if (hasMode() != other.hasMode()) return false; + if (hasMode()) { + if (mode_ != other.mode_) return false; + } + if (!getComplianceStandardsList().equals(other.getComplianceStandardsList())) 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 (hasMode()) { + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + } + if (getComplianceStandardsCount() > 0) { + hash = (37 * hash) + COMPLIANCE_STANDARDS_FIELD_NUMBER; + hash = (53 * hash) + getComplianceStandardsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig 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.container.v1.CompliancePostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.CompliancePostureConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CompliancePostureConfig defines the settings needed to enable/disable
+   * features for the Compliance Posture.
+   * 
+ * + * Protobuf type {@code google.container.v1.CompliancePostureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CompliancePostureConfig) + com.google.container.v1.CompliancePostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompliancePostureConfig.class, + com.google.container.v1.CompliancePostureConfig.Builder.class); + } + + // Construct using com.google.container.v1.CompliancePostureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + } else { + complianceStandards_ = null; + complianceStandardsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig getDefaultInstanceForType() { + return com.google.container.v1.CompliancePostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig build() { + com.google.container.v1.CompliancePostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig buildPartial() { + com.google.container.v1.CompliancePostureConfig result = + new com.google.container.v1.CompliancePostureConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.container.v1.CompliancePostureConfig result) { + if (complianceStandardsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = java.util.Collections.unmodifiableList(complianceStandards_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.complianceStandards_ = complianceStandards_; + } else { + result.complianceStandards_ = complianceStandardsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.CompliancePostureConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CompliancePostureConfig) { + return mergeFrom((com.google.container.v1.CompliancePostureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CompliancePostureConfig other) { + if (other == com.google.container.v1.CompliancePostureConfig.getDefaultInstance()) + return this; + if (other.hasMode()) { + setMode(other.getMode()); + } + if (complianceStandardsBuilder_ == null) { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandards_.isEmpty()) { + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureComplianceStandardsIsMutable(); + complianceStandards_.addAll(other.complianceStandards_); + } + onChanged(); + } + } else { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandardsBuilder_.isEmpty()) { + complianceStandardsBuilder_.dispose(); + complianceStandardsBuilder_ = null; + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + complianceStandardsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getComplianceStandardsFieldBuilder() + : null; + } else { + complianceStandardsBuilder_.addAllMessages(other.complianceStandards_); + } + } + } + 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: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.container.v1.CompliancePostureConfig.ComplianceStandard m = + input.readMessage( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.parser(), + extensionRegistry); + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(m); + } else { + complianceStandardsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return Whether the mode field is set. + */ + @java.lang.Override + public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.CompliancePostureConfig.Mode getMode() { + com.google.container.v1.CompliancePostureConfig.Mode result = + com.google.container.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.container.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.CompliancePostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the enablement mode for Compliance Posture.
+     * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.util.List + complianceStandards_ = java.util.Collections.emptyList(); + + private void ensureComplianceStandardsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = + new java.util.ArrayList< + com.google.container.v1.CompliancePostureConfig.ComplianceStandard>( + complianceStandards_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig.ComplianceStandard, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + complianceStandardsBuilder_; + + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List + getComplianceStandardsList() { + if (complianceStandardsBuilder_ == null) { + return java.util.Collections.unmodifiableList(complianceStandards_); + } else { + return complianceStandardsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public int getComplianceStandardsCount() { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.size(); + } else { + return complianceStandardsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard + getComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, com.google.container.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, com.google.container.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addAllComplianceStandards( + java.lang.Iterable< + ? extends com.google.container.v1.CompliancePostureConfig.ComplianceStandard> + values) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, complianceStandards_); + onChanged(); + } else { + complianceStandardsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder clearComplianceStandards() { + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + complianceStandardsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder removeComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.remove(index); + onChanged(); + } else { + complianceStandardsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + getComplianceStandardsBuilder(int index) { + return getComplianceStandardsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + ? extends com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + if (complianceStandardsBuilder_ != null) { + return complianceStandardsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(complianceStandards_); + } + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder() { + return getComplianceStandardsFieldBuilder() + .addBuilder( + com.google.container.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder(int index) { + return getComplianceStandardsFieldBuilder() + .addBuilder( + index, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + /** + * + * + *
+     * List of enabled compliance standards.
+     * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder> + getComplianceStandardsBuilderList() { + return getComplianceStandardsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig.ComplianceStandard, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsFieldBuilder() { + if (complianceStandardsBuilder_ == null) { + complianceStandardsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.CompliancePostureConfig.ComplianceStandard, + com.google.container.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder>( + complianceStandards_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + complianceStandards_ = null; + } + return complianceStandardsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.CompliancePostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CompliancePostureConfig) + private static final com.google.container.v1.CompliancePostureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.CompliancePostureConfig(); + } + + public static com.google.container.v1.CompliancePostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompliancePostureConfig 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.container.v1.CompliancePostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfigOrBuilder.java new file mode 100644 index 000000000000..3ba78e82755d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompliancePostureConfigOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface CompliancePostureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CompliancePostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return Whether the mode field is set. + */ + boolean hasMode(); + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Defines the enablement mode for Compliance Posture.
+   * 
+ * + * optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + com.google.container.v1.CompliancePostureConfig.Mode getMode(); + + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List + getComplianceStandardsList(); + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.container.v1.CompliancePostureConfig.ComplianceStandard getComplianceStandards( + int index); + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + int getComplianceStandardsCount(); + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List< + ? extends com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList(); + /** + * + * + *
+   * List of enabled compliance standards.
+   * 
+ * + * + * repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.container.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java new file mode 100644 index 000000000000..4f46f5d7e143 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java @@ -0,0 +1,3980 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for all of the cluster's control plane endpoints.
+ * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig} + */ +public final class ControlPlaneEndpointsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ControlPlaneEndpointsConfig) + ControlPlaneEndpointsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ControlPlaneEndpointsConfig.newBuilder() to construct. + private ControlPlaneEndpointsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlPlaneEndpointsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlPlaneEndpointsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder.class); + } + + public interface DNSEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The cluster's DNS endpoint configuration.
+     * A DNS format address. This is accessible from the public internet.
+     * Ex: uid.us-central1.gke.goog.
+     * Always present, but the behavior may change according to the value of
+     * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+     * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+     * Output only. The cluster's DNS endpoint configuration.
+     * A DNS format address. This is accessible from the public internet.
+     * Ex: uid.us-central1.gke.goog.
+     * Always present, but the behavior may change according to the value of
+     * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+     * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+     * Controls whether user traffic is allowed over this endpoint. Note that
+     * GCP-managed services may still use the endpoint even if this is false.
+     * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return Whether the allowExternalTraffic field is set. + */ + boolean hasAllowExternalTraffic(); + /** + * + * + *
+     * Controls whether user traffic is allowed over this endpoint. Note that
+     * GCP-managed services may still use the endpoint even if this is false.
+     * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return The allowExternalTraffic. + */ + boolean getAllowExternalTraffic(); + } + /** + * + * + *
+   * Describes the configuration of a DNS endpoint.
+   * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} + */ + public static final class DNSEndpointConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + DNSEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSEndpointConfig.newBuilder() to construct. + private DNSEndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DNSEndpointConfig() { + endpoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DNSEndpointConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder.class); + } + + private int bitField0_; + public static final int ENDPOINT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * Output only. The cluster's DNS endpoint configuration.
+     * A DNS format address. This is accessible from the public internet.
+     * Ex: uid.us-central1.gke.goog.
+     * Always present, but the behavior may change according to the value of
+     * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+     * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The cluster's DNS endpoint configuration.
+     * A DNS format address. This is accessible from the public internet.
+     * Ex: uid.us-central1.gke.goog.
+     * Always present, but the behavior may change according to the value of
+     * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+     * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_EXTERNAL_TRAFFIC_FIELD_NUMBER = 3; + private boolean allowExternalTraffic_ = false; + /** + * + * + *
+     * Controls whether user traffic is allowed over this endpoint. Note that
+     * GCP-managed services may still use the endpoint even if this is false.
+     * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return Whether the allowExternalTraffic field is set. + */ + @java.lang.Override + public boolean hasAllowExternalTraffic() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Controls whether user traffic is allowed over this endpoint. Note that
+     * GCP-managed services may still use the endpoint even if this is false.
+     * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return The allowExternalTraffic. + */ + @java.lang.Override + public boolean getAllowExternalTraffic() { + return allowExternalTraffic_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, allowExternalTraffic_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowExternalTraffic_); + } + 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.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig)) { + return super.equals(obj); + } + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig other = + (com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) obj; + + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (hasAllowExternalTraffic() != other.hasAllowExternalTraffic()) return false; + if (hasAllowExternalTraffic()) { + if (getAllowExternalTraffic() != other.getAllowExternalTraffic()) 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) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + if (hasAllowExternalTraffic()) { + hash = (37 * hash) + ALLOW_EXTERNAL_TRAFFIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowExternalTraffic()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig 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.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Describes the configuration of a DNS endpoint.
+     * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder + .class); + } + + // Construct using + // com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = ""; + allowExternalTraffic_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_DNSEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + getDefaultInstanceForType() { + return com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig build() { + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig buildPartial() { + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig result = + new com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowExternalTraffic_ = allowExternalTraffic_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) { + return mergeFrom( + (com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig other) { + if (other + == com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + .getDefaultInstance()) return this; + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAllowExternalTraffic()) { + setAllowExternalTraffic(other.getAllowExternalTraffic()); + } + 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: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + allowExternalTraffic_ = input.readBool(); + 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 java.lang.Object endpoint_ = ""; + /** + * + * + *
+       * Output only. The cluster's DNS endpoint configuration.
+       * A DNS format address. This is accessible from the public internet.
+       * Ex: uid.us-central1.gke.goog.
+       * Always present, but the behavior may change according to the value of
+       * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+       * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The cluster's DNS endpoint configuration.
+       * A DNS format address. This is accessible from the public internet.
+       * Ex: uid.us-central1.gke.goog.
+       * Always present, but the behavior may change according to the value of
+       * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+       * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The cluster's DNS endpoint configuration.
+       * A DNS format address. This is accessible from the public internet.
+       * Ex: uid.us-central1.gke.goog.
+       * Always present, but the behavior may change according to the value of
+       * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+       * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The cluster's DNS endpoint configuration.
+       * A DNS format address. This is accessible from the public internet.
+       * Ex: uid.us-central1.gke.goog.
+       * Always present, but the behavior may change according to the value of
+       * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+       * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The cluster's DNS endpoint configuration.
+       * A DNS format address. This is accessible from the public internet.
+       * Ex: uid.us-central1.gke.goog.
+       * Always present, but the behavior may change according to the value of
+       * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
+       * 
+ * + * string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean allowExternalTraffic_; + /** + * + * + *
+       * Controls whether user traffic is allowed over this endpoint. Note that
+       * GCP-managed services may still use the endpoint even if this is false.
+       * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return Whether the allowExternalTraffic field is set. + */ + @java.lang.Override + public boolean hasAllowExternalTraffic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Controls whether user traffic is allowed over this endpoint. Note that
+       * GCP-managed services may still use the endpoint even if this is false.
+       * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return The allowExternalTraffic. + */ + @java.lang.Override + public boolean getAllowExternalTraffic() { + return allowExternalTraffic_; + } + /** + * + * + *
+       * Controls whether user traffic is allowed over this endpoint. Note that
+       * GCP-managed services may still use the endpoint even if this is false.
+       * 
+ * + * optional bool allow_external_traffic = 3; + * + * @param value The allowExternalTraffic to set. + * @return This builder for chaining. + */ + public Builder setAllowExternalTraffic(boolean value) { + + allowExternalTraffic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls whether user traffic is allowed over this endpoint. Note that
+       * GCP-managed services may still use the endpoint even if this is false.
+       * 
+ * + * optional bool allow_external_traffic = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowExternalTraffic() { + bitField0_ = (bitField0_ & ~0x00000002); + allowExternalTraffic_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + private static final com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig(); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSEndpointConfig 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.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IPEndpointsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Controls whether to allow direct IP access.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * + * + *
+     * Controls whether to allow direct IP access.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Controls whether the control plane allows access through a public IP.
+     * It is invalid to specify both
+     * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+     * time.
+     * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return Whether the enablePublicEndpoint field is set. + */ + boolean hasEnablePublicEndpoint(); + /** + * + * + *
+     * Controls whether the control plane allows access through a public IP.
+     * It is invalid to specify both
+     * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+     * time.
+     * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return The enablePublicEndpoint. + */ + boolean getEnablePublicEndpoint(); + + /** + * + * + *
+     * Controls whether the control plane's private endpoint is accessible from
+     * sources in other regions.
+     * It is invalid to specify both
+     * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+     * and this field at the same time.
+     * 
+ * + * optional bool global_access = 3; + * + * @return Whether the globalAccess field is set. + */ + boolean hasGlobalAccess(); + /** + * + * + *
+     * Controls whether the control plane's private endpoint is accessible from
+     * sources in other regions.
+     * It is invalid to specify both
+     * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+     * and this field at the same time.
+     * 
+ * + * optional bool global_access = 3; + * + * @return The globalAccess. + */ + boolean getGlobalAccess(); + + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return Whether the authorizedNetworksConfig field is set. + */ + boolean hasAuthorizedNetworksConfig(); + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return The authorizedNetworksConfig. + */ + com.google.container.v1.MasterAuthorizedNetworksConfig getAuthorizedNetworksConfig(); + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder + getAuthorizedNetworksConfigOrBuilder(); + + /** + * + * + *
+     * Output only. The external IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The publicEndpoint. + */ + java.lang.String getPublicEndpoint(); + /** + * + * + *
+     * Output only. The external IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for publicEndpoint. + */ + com.google.protobuf.ByteString getPublicEndpointBytes(); + + /** + * + * + *
+     * Output only. The internal IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + java.lang.String getPrivateEndpoint(); + /** + * + * + *
+     * Output only. The internal IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + com.google.protobuf.ByteString getPrivateEndpointBytes(); + + /** + * + * + *
+     * Subnet to provision the master's private endpoint during cluster
+     * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+     * invalid to specify both
+     * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+     * same time.
+     * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The privateEndpointSubnetwork. + */ + java.lang.String getPrivateEndpointSubnetwork(); + /** + * + * + *
+     * Subnet to provision the master's private endpoint during cluster
+     * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+     * invalid to specify both
+     * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+     * same time.
+     * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The bytes for privateEndpointSubnetwork. + */ + com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes(); + } + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} + */ + public static final class IPEndpointsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + IPEndpointsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IPEndpointsConfig.newBuilder() to construct. + private IPEndpointsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IPEndpointsConfig() { + publicEndpoint_ = ""; + privateEndpoint_ = ""; + privateEndpointSubnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IPEndpointsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+     * Controls whether to allow direct IP access.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Controls whether to allow direct IP access.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int ENABLE_PUBLIC_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePublicEndpoint_ = false; + /** + * + * + *
+     * Controls whether the control plane allows access through a public IP.
+     * It is invalid to specify both
+     * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+     * time.
+     * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return Whether the enablePublicEndpoint field is set. + */ + @java.lang.Override + public boolean hasEnablePublicEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Controls whether the control plane allows access through a public IP.
+     * It is invalid to specify both
+     * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+     * time.
+     * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return The enablePublicEndpoint. + */ + @java.lang.Override + public boolean getEnablePublicEndpoint() { + return enablePublicEndpoint_; + } + + public static final int GLOBAL_ACCESS_FIELD_NUMBER = 3; + private boolean globalAccess_ = false; + /** + * + * + *
+     * Controls whether the control plane's private endpoint is accessible from
+     * sources in other regions.
+     * It is invalid to specify both
+     * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+     * and this field at the same time.
+     * 
+ * + * optional bool global_access = 3; + * + * @return Whether the globalAccess field is set. + */ + @java.lang.Override + public boolean hasGlobalAccess() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Controls whether the control plane's private endpoint is accessible from
+     * sources in other regions.
+     * It is invalid to specify both
+     * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+     * and this field at the same time.
+     * 
+ * + * optional bool global_access = 3; + * + * @return The globalAccess. + */ + @java.lang.Override + public boolean getGlobalAccess() { + return globalAccess_; + } + + public static final int AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1.MasterAuthorizedNetworksConfig authorizedNetworksConfig_; + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return Whether the authorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return The authorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig getAuthorizedNetworksConfig() { + return authorizedNetworksConfig_ == null + ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : authorizedNetworksConfig_; + } + /** + * + * + *
+     * Configuration of authorized networks. If enabled, restricts access to the
+     * control plane based on source IP.
+     * It is invalid to specify both
+     * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+     * time.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder + getAuthorizedNetworksConfigOrBuilder() { + return authorizedNetworksConfig_ == null + ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : authorizedNetworksConfig_; + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object publicEndpoint_ = ""; + /** + * + * + *
+     * Output only. The external IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The publicEndpoint. + */ + @java.lang.Override + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + 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(); + publicEndpoint_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for publicEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+     * Output only. The internal IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + @java.lang.Override + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + 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(); + privateEndpoint_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's control plane.
+     * Only populated if enabled.
+     * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpointSubnetwork_ = ""; + /** + * + * + *
+     * Subnet to provision the master's private endpoint during cluster
+     * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+     * invalid to specify both
+     * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+     * same time.
+     * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The privateEndpointSubnetwork. + */ + @java.lang.Override + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + 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(); + privateEndpointSubnetwork_ = s; + return s; + } + } + /** + * + * + *
+     * Subnet to provision the master's private endpoint during cluster
+     * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+     * invalid to specify both
+     * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+     * same time.
+     * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The bytes for privateEndpointSubnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointSubnetwork_ = 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.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, enablePublicEndpoint_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, globalAccess_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getAuthorizedNetworksConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, privateEndpointSubnetwork_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePublicEndpoint_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, globalAccess_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAuthorizedNetworksConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, privateEndpointSubnetwork_); + } + 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.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig)) { + return super.equals(obj); + } + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig other = + (com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasEnablePublicEndpoint() != other.hasEnablePublicEndpoint()) return false; + if (hasEnablePublicEndpoint()) { + if (getEnablePublicEndpoint() != other.getEnablePublicEndpoint()) return false; + } + if (hasGlobalAccess() != other.hasGlobalAccess()) return false; + if (hasGlobalAccess()) { + if (getGlobalAccess() != other.getGlobalAccess()) return false; + } + if (hasAuthorizedNetworksConfig() != other.hasAuthorizedNetworksConfig()) return false; + if (hasAuthorizedNetworksConfig()) { + if (!getAuthorizedNetworksConfig().equals(other.getAuthorizedNetworksConfig())) + return false; + } + if (!getPublicEndpoint().equals(other.getPublicEndpoint())) return false; + if (!getPrivateEndpoint().equals(other.getPrivateEndpoint())) return false; + if (!getPrivateEndpointSubnetwork().equals(other.getPrivateEndpointSubnetwork())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasEnablePublicEndpoint()) { + hash = (37 * hash) + ENABLE_PUBLIC_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePublicEndpoint()); + } + if (hasGlobalAccess()) { + hash = (37 * hash) + GLOBAL_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGlobalAccess()); + } + if (hasAuthorizedNetworksConfig()) { + hash = (37 * hash) + AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizedNetworksConfig().hashCode(); + } + hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPublicEndpoint().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoint().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpointSubnetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig 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.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder + .class); + } + + // Construct using + // com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAuthorizedNetworksConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + enablePublicEndpoint_ = false; + globalAccess_ = false; + authorizedNetworksConfig_ = null; + if (authorizedNetworksConfigBuilder_ != null) { + authorizedNetworksConfigBuilder_.dispose(); + authorizedNetworksConfigBuilder_ = null; + } + publicEndpoint_ = ""; + privateEndpoint_ = ""; + privateEndpointSubnetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_IPEndpointsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + getDefaultInstanceForType() { + return com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig build() { + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig buildPartial() { + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig result = + new com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enablePublicEndpoint_ = enablePublicEndpoint_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.globalAccess_ = globalAccess_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorizedNetworksConfig_ = + authorizedNetworksConfigBuilder_ == null + ? authorizedNetworksConfig_ + : authorizedNetworksConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.publicEndpoint_ = publicEndpoint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateEndpoint_ = privateEndpoint_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) { + return mergeFrom( + (com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig other) { + if (other + == com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + .getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasEnablePublicEndpoint()) { + setEnablePublicEndpoint(other.getEnablePublicEndpoint()); + } + if (other.hasGlobalAccess()) { + setGlobalAccess(other.getGlobalAccess()); + } + if (other.hasAuthorizedNetworksConfig()) { + mergeAuthorizedNetworksConfig(other.getAuthorizedNetworksConfig()); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getPrivateEndpointSubnetwork().isEmpty()) { + privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; + bitField0_ |= 0x00000040; + 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: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enablePublicEndpoint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + globalAccess_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getAuthorizedNetworksConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + publicEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + privateEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + privateEndpointSubnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
+       * Controls whether to allow direct IP access.
+       * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Controls whether to allow direct IP access.
+       * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Controls whether to allow direct IP access.
+       * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls whether to allow direct IP access.
+       * 
+ * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private boolean enablePublicEndpoint_; + /** + * + * + *
+       * Controls whether the control plane allows access through a public IP.
+       * It is invalid to specify both
+       * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+       * time.
+       * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return Whether the enablePublicEndpoint field is set. + */ + @java.lang.Override + public boolean hasEnablePublicEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Controls whether the control plane allows access through a public IP.
+       * It is invalid to specify both
+       * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+       * time.
+       * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return The enablePublicEndpoint. + */ + @java.lang.Override + public boolean getEnablePublicEndpoint() { + return enablePublicEndpoint_; + } + /** + * + * + *
+       * Controls whether the control plane allows access through a public IP.
+       * It is invalid to specify both
+       * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+       * time.
+       * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @param value The enablePublicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setEnablePublicEndpoint(boolean value) { + + enablePublicEndpoint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls whether the control plane allows access through a public IP.
+       * It is invalid to specify both
+       * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same
+       * time.
+       * 
+ * + * optional bool enable_public_endpoint = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnablePublicEndpoint() { + bitField0_ = (bitField0_ & ~0x00000002); + enablePublicEndpoint_ = false; + onChanged(); + return this; + } + + private boolean globalAccess_; + /** + * + * + *
+       * Controls whether the control plane's private endpoint is accessible from
+       * sources in other regions.
+       * It is invalid to specify both
+       * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+       * and this field at the same time.
+       * 
+ * + * optional bool global_access = 3; + * + * @return Whether the globalAccess field is set. + */ + @java.lang.Override + public boolean hasGlobalAccess() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Controls whether the control plane's private endpoint is accessible from
+       * sources in other regions.
+       * It is invalid to specify both
+       * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+       * and this field at the same time.
+       * 
+ * + * optional bool global_access = 3; + * + * @return The globalAccess. + */ + @java.lang.Override + public boolean getGlobalAccess() { + return globalAccess_; + } + /** + * + * + *
+       * Controls whether the control plane's private endpoint is accessible from
+       * sources in other regions.
+       * It is invalid to specify both
+       * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+       * and this field at the same time.
+       * 
+ * + * optional bool global_access = 3; + * + * @param value The globalAccess to set. + * @return This builder for chaining. + */ + public Builder setGlobalAccess(boolean value) { + + globalAccess_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls whether the control plane's private endpoint is accessible from
+       * sources in other regions.
+       * It is invalid to specify both
+       * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled]
+       * and this field at the same time.
+       * 
+ * + * optional bool global_access = 3; + * + * @return This builder for chaining. + */ + public Builder clearGlobalAccess() { + bitField0_ = (bitField0_ & ~0x00000004); + globalAccess_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.MasterAuthorizedNetworksConfig authorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> + authorizedNetworksConfigBuilder_; + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return Whether the authorizedNetworksConfig field is set. + */ + public boolean hasAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + * + * @return The authorizedNetworksConfig. + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig getAuthorizedNetworksConfig() { + if (authorizedNetworksConfigBuilder_ == null) { + return authorizedNetworksConfig_ == null + ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : authorizedNetworksConfig_; + } else { + return authorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public Builder setAuthorizedNetworksConfig( + com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (authorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorizedNetworksConfig_ = value; + } else { + authorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public Builder setAuthorizedNetworksConfig( + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (authorizedNetworksConfigBuilder_ == null) { + authorizedNetworksConfig_ = builderForValue.build(); + } else { + authorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public Builder mergeAuthorizedNetworksConfig( + com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (authorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && authorizedNetworksConfig_ != null + && authorizedNetworksConfig_ + != com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { + getAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + authorizedNetworksConfig_ = value; + } + } else { + authorizedNetworksConfigBuilder_.mergeFrom(value); + } + if (authorizedNetworksConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public Builder clearAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + authorizedNetworksConfig_ = null; + if (authorizedNetworksConfigBuilder_ != null) { + authorizedNetworksConfigBuilder_.dispose(); + authorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder + getAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder + getAuthorizedNetworksConfigOrBuilder() { + if (authorizedNetworksConfigBuilder_ != null) { + return authorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return authorizedNetworksConfig_ == null + ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : authorizedNetworksConfig_; + } + } + /** + * + * + *
+       * Configuration of authorized networks. If enabled, restricts access to the
+       * control plane based on source IP.
+       * It is invalid to specify both
+       * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same
+       * time.
+       * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> + getAuthorizedNetworksConfigFieldBuilder() { + if (authorizedNetworksConfigBuilder_ == null) { + authorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( + getAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + authorizedNetworksConfig_ = null; + } + return authorizedNetworksConfigBuilder_; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + * + * + *
+       * Output only. The external IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The publicEndpoint. + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The external IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for publicEndpoint. + */ + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The external IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publicEndpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The external IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPublicEndpoint() { + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The external IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicEndpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+       * Output only. The internal IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateEndpoint. + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The internal IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateEndpoint. + */ + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The internal IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpoint_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The internal IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpoint() { + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The internal IP address of this cluster's control plane.
+       * Only populated if enabled.
+       * 
+ * + * string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateEndpoint_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object privateEndpointSubnetwork_ = ""; + /** + * + * + *
+       * Subnet to provision the master's private endpoint during cluster
+       * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+       * invalid to specify both
+       * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+       * same time.
+       * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The privateEndpointSubnetwork. + */ + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointSubnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Subnet to provision the master's private endpoint during cluster
+       * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+       * invalid to specify both
+       * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+       * same time.
+       * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return The bytes for privateEndpointSubnetwork. + */ + public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpointSubnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Subnet to provision the master's private endpoint during cluster
+       * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+       * invalid to specify both
+       * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+       * same time.
+       * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @param value The privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * Subnet to provision the master's private endpoint during cluster
+       * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+       * invalid to specify both
+       * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+       * same time.
+       * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointSubnetwork() { + privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+       * Subnet to provision the master's private endpoint during cluster
+       * creation. Specified in projects/*/regions/*/subnetworks/* format. It is
+       * invalid to specify both
+       * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the
+       * same time.
+       * 
+ * + * string private_endpoint_subnetwork = 7; + * + * @param value The bytes for privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + private static final com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig(); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IPEndpointsConfig 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.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DNS_ENDPOINT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dnsEndpointConfig_; + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return Whether the dnsEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasDnsEndpointConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return The dnsEndpointConfig. + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + getDnsEndpointConfig() { + return dnsEndpointConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.getDefaultInstance() + : dnsEndpointConfig_; + } + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder + getDnsEndpointConfigOrBuilder() { + return dnsEndpointConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.getDefaultInstance() + : dnsEndpointConfig_; + } + + public static final int IP_ENDPOINTS_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ipEndpointsConfig_; + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return Whether the ipEndpointsConfig field is set. + */ + @java.lang.Override + public boolean hasIpEndpointsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return The ipEndpointsConfig. + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + getIpEndpointsConfig() { + return ipEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.getDefaultInstance() + : ipEndpointsConfig_; + } + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder + getIpEndpointsConfigOrBuilder() { + return ipEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.getDefaultInstance() + : ipEndpointsConfig_; + } + + 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, getDnsEndpointConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getIpEndpointsConfig()); + } + 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, getDnsEndpointConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIpEndpointsConfig()); + } + 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.container.v1.ControlPlaneEndpointsConfig)) { + return super.equals(obj); + } + com.google.container.v1.ControlPlaneEndpointsConfig other = + (com.google.container.v1.ControlPlaneEndpointsConfig) obj; + + if (hasDnsEndpointConfig() != other.hasDnsEndpointConfig()) return false; + if (hasDnsEndpointConfig()) { + if (!getDnsEndpointConfig().equals(other.getDnsEndpointConfig())) return false; + } + if (hasIpEndpointsConfig() != other.hasIpEndpointsConfig()) return false; + if (hasIpEndpointsConfig()) { + if (!getIpEndpointsConfig().equals(other.getIpEndpointsConfig())) 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 (hasDnsEndpointConfig()) { + hash = (37 * hash) + DNS_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsEndpointConfig().hashCode(); + } + if (hasIpEndpointsConfig()) { + hash = (37 * hash) + IP_ENDPOINTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIpEndpointsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig 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.container.v1.ControlPlaneEndpointsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.ControlPlaneEndpointsConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for all of the cluster's control plane endpoints.
+   * 
+ * + * Protobuf type {@code google.container.v1.ControlPlaneEndpointsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ControlPlaneEndpointsConfig) + com.google.container.v1.ControlPlaneEndpointsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ControlPlaneEndpointsConfig.class, + com.google.container.v1.ControlPlaneEndpointsConfig.Builder.class); + } + + // Construct using com.google.container.v1.ControlPlaneEndpointsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDnsEndpointConfigFieldBuilder(); + getIpEndpointsConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dnsEndpointConfig_ = null; + if (dnsEndpointConfigBuilder_ != null) { + dnsEndpointConfigBuilder_.dispose(); + dnsEndpointConfigBuilder_ = null; + } + ipEndpointsConfig_ = null; + if (ipEndpointsConfigBuilder_ != null) { + ipEndpointsConfigBuilder_.dispose(); + ipEndpointsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ControlPlaneEndpointsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig getDefaultInstanceForType() { + return com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig build() { + com.google.container.v1.ControlPlaneEndpointsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ControlPlaneEndpointsConfig buildPartial() { + com.google.container.v1.ControlPlaneEndpointsConfig result = + new com.google.container.v1.ControlPlaneEndpointsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ControlPlaneEndpointsConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dnsEndpointConfig_ = + dnsEndpointConfigBuilder_ == null + ? dnsEndpointConfig_ + : dnsEndpointConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipEndpointsConfig_ = + ipEndpointsConfigBuilder_ == null + ? ipEndpointsConfig_ + : ipEndpointsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ControlPlaneEndpointsConfig) { + return mergeFrom((com.google.container.v1.ControlPlaneEndpointsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ControlPlaneEndpointsConfig other) { + if (other == com.google.container.v1.ControlPlaneEndpointsConfig.getDefaultInstance()) + return this; + if (other.hasDnsEndpointConfig()) { + mergeDnsEndpointConfig(other.getDnsEndpointConfig()); + } + if (other.hasIpEndpointsConfig()) { + mergeIpEndpointsConfig(other.getIpEndpointsConfig()); + } + 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( + getDnsEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + getIpEndpointsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + dnsEndpointConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder> + dnsEndpointConfigBuilder_; + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return Whether the dnsEndpointConfig field is set. + */ + public boolean hasDnsEndpointConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return The dnsEndpointConfig. + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + getDnsEndpointConfig() { + if (dnsEndpointConfigBuilder_ == null) { + return dnsEndpointConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + .getDefaultInstance() + : dnsEndpointConfig_; + } else { + return dnsEndpointConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public Builder setDnsEndpointConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig value) { + if (dnsEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsEndpointConfig_ = value; + } else { + dnsEndpointConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public Builder setDnsEndpointConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder + builderForValue) { + if (dnsEndpointConfigBuilder_ == null) { + dnsEndpointConfig_ = builderForValue.build(); + } else { + dnsEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public Builder mergeDnsEndpointConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig value) { + if (dnsEndpointConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dnsEndpointConfig_ != null + && dnsEndpointConfig_ + != com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + .getDefaultInstance()) { + getDnsEndpointConfigBuilder().mergeFrom(value); + } else { + dnsEndpointConfig_ = value; + } + } else { + dnsEndpointConfigBuilder_.mergeFrom(value); + } + if (dnsEndpointConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public Builder clearDnsEndpointConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + dnsEndpointConfig_ = null; + if (dnsEndpointConfigBuilder_ != null) { + dnsEndpointConfigBuilder_.dispose(); + dnsEndpointConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder + getDnsEndpointConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDnsEndpointConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder + getDnsEndpointConfigOrBuilder() { + if (dnsEndpointConfigBuilder_ != null) { + return dnsEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsEndpointConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + .getDefaultInstance() + : dnsEndpointConfig_; + } + } + /** + * + * + *
+     * DNS endpoint configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder> + getDnsEndpointConfigFieldBuilder() { + if (dnsEndpointConfigBuilder_ == null) { + dnsEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder>( + getDnsEndpointConfig(), getParentForChildren(), isClean()); + dnsEndpointConfig_ = null; + } + return dnsEndpointConfigBuilder_; + } + + private com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + ipEndpointsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder> + ipEndpointsConfigBuilder_; + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return Whether the ipEndpointsConfig field is set. + */ + public boolean hasIpEndpointsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return The ipEndpointsConfig. + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + getIpEndpointsConfig() { + if (ipEndpointsConfigBuilder_ == null) { + return ipEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + .getDefaultInstance() + : ipEndpointsConfig_; + } else { + return ipEndpointsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public Builder setIpEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig value) { + if (ipEndpointsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipEndpointsConfig_ = value; + } else { + ipEndpointsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public Builder setIpEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder + builderForValue) { + if (ipEndpointsConfigBuilder_ == null) { + ipEndpointsConfig_ = builderForValue.build(); + } else { + ipEndpointsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public Builder mergeIpEndpointsConfig( + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig value) { + if (ipEndpointsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ipEndpointsConfig_ != null + && ipEndpointsConfig_ + != com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + .getDefaultInstance()) { + getIpEndpointsConfigBuilder().mergeFrom(value); + } else { + ipEndpointsConfig_ = value; + } + } else { + ipEndpointsConfigBuilder_.mergeFrom(value); + } + if (ipEndpointsConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public Builder clearIpEndpointsConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + ipEndpointsConfig_ = null; + if (ipEndpointsConfigBuilder_ != null) { + ipEndpointsConfigBuilder_.dispose(); + ipEndpointsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder + getIpEndpointsConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIpEndpointsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + public com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder + getIpEndpointsConfigOrBuilder() { + if (ipEndpointsConfigBuilder_ != null) { + return ipEndpointsConfigBuilder_.getMessageOrBuilder(); + } else { + return ipEndpointsConfig_ == null + ? com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + .getDefaultInstance() + : ipEndpointsConfig_; + } + } + /** + * + * + *
+     * IP endpoints configuration.
+     * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder> + getIpEndpointsConfigFieldBuilder() { + if (ipEndpointsConfigBuilder_ == null) { + ipEndpointsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder, + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder>( + getIpEndpointsConfig(), getParentForChildren(), isClean()); + ipEndpointsConfig_ = null; + } + return ipEndpointsConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ControlPlaneEndpointsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ControlPlaneEndpointsConfig) + private static final com.google.container.v1.ControlPlaneEndpointsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ControlPlaneEndpointsConfig(); + } + + public static com.google.container.v1.ControlPlaneEndpointsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlPlaneEndpointsConfig 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.container.v1.ControlPlaneEndpointsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfigOrBuilder.java new file mode 100644 index 000000000000..cf80bd500245 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfigOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface ControlPlaneEndpointsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ControlPlaneEndpointsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return Whether the dnsEndpointConfig field is set. + */ + boolean hasDnsEndpointConfig(); + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + * + * @return The dnsEndpointConfig. + */ + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig getDnsEndpointConfig(); + /** + * + * + *
+   * DNS endpoint configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; + * + */ + com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder + getDnsEndpointConfigOrBuilder(); + + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return Whether the ipEndpointsConfig field is set. + */ + boolean hasIpEndpointsConfig(); + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + * + * @return The ipEndpointsConfig. + */ + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig getIpEndpointsConfig(); + /** + * + * + *
+   * IP endpoints configuration.
+   * 
+ * + * + * .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; + * + */ + com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder + getIpEndpointsConfigOrBuilder(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index b4fd92985c61..a271ae465488 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The bytes for zone. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -794,7 +794,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @param value The projectId to set. * @return This builder for chaining. */ @@ -820,7 +820,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return This builder for chaining. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -872,7 +872,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The zone. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The bytes for zone. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @param value The zone to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return This builder for chaining. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index de34cbfe696b..68bc5f39b86c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2716 + * google/container/v1/cluster_service.proto;l=2951 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2722 + * google/container/v1/cluster_service.proto;l=2957 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index 3b1065566979..6842b2e171f3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The bytes for clusterId. */ @java.lang.Override @@ -823,7 +823,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -877,7 +877,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @param value The projectId to set. * @return This builder for chaining. */ @@ -903,7 +903,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return This builder for chaining. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The zone. */ @java.lang.Deprecated @@ -983,7 +983,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1011,7 +1011,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @param value The zone to set. * @return This builder for chaining. */ @@ -1038,7 +1038,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The clusterId. */ @java.lang.Deprecated @@ -1115,7 +1115,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1166,7 +1166,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 8d2cfa3e6e9f..2296fd8f9611 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3344 + * google/container/v1/cluster_service.proto;l=3586 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3350 + * google/container/v1/cluster_service.proto;l=3592 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3354 + * google/container/v1/cluster_service.proto;l=3596 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index 0af2145f7d1c..255af15c55eb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 2006912e0108..ddfd39ecf4c6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3168 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3174 + * google/container/v1/cluster_service.proto;l=3413 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3178 + * google/container/v1/cluster_service.proto;l=3417 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 8893496651fd..18061c6abbf6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 2d467bc834e7..73c5ff350b94 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3370 + * google/container/v1/cluster_service.proto;l=3612 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3376 + * google/container/v1/cluster_service.proto;l=3618 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3380 + * google/container/v1/cluster_service.proto;l=3622 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3384 + * google/container/v1/cluster_service.proto;l=3626 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java index 8f235d768162..f05d69ba6d19 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java @@ -226,7 +226,7 @@ private ClusterTier(int value) { * * *
-   * Output only. cluster_tier specifies the premium tier of the cluster.
+   * Output only. cluster_tier indicates the effective tier of the cluster.
    * 
* * @@ -243,7 +243,7 @@ public int getClusterTierValue() { * * *
-   * Output only. cluster_tier specifies the premium tier of the cluster.
+   * Output only. cluster_tier indicates the effective tier of the cluster.
    * 
* * @@ -608,7 +608,7 @@ public Builder mergeFrom( * * *
-     * Output only. cluster_tier specifies the premium tier of the cluster.
+     * Output only. cluster_tier indicates the effective tier of the cluster.
      * 
* * @@ -625,7 +625,7 @@ public int getClusterTierValue() { * * *
-     * Output only. cluster_tier specifies the premium tier of the cluster.
+     * Output only. cluster_tier indicates the effective tier of the cluster.
      * 
* * @@ -645,7 +645,7 @@ public Builder setClusterTierValue(int value) { * * *
-     * Output only. cluster_tier specifies the premium tier of the cluster.
+     * Output only. cluster_tier indicates the effective tier of the cluster.
      * 
* * @@ -666,7 +666,7 @@ public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { * * *
-     * Output only. cluster_tier specifies the premium tier of the cluster.
+     * Output only. cluster_tier indicates the effective tier of the cluster.
      * 
* * @@ -689,7 +689,7 @@ public Builder setClusterTier(com.google.container.v1.EnterpriseConfig.ClusterTi * * *
-     * Output only. cluster_tier specifies the premium tier of the cluster.
+     * Output only. cluster_tier indicates the effective tier of the cluster.
      * 
* * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java index 2727e70fb115..2d104c351907 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface EnterpriseConfigOrBuilder * * *
-   * Output only. cluster_tier specifies the premium tier of the cluster.
+   * Output only. cluster_tier indicates the effective tier of the cluster.
    * 
* * @@ -42,7 +42,7 @@ public interface EnterpriseConfigOrBuilder * * *
-   * Output only. cluster_tier specifies the premium tier of the cluster.
+   * Output only. cluster_tier indicates the effective tier of the cluster.
    * 
* * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index 02baf3779fb9..493f11c458a4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index 6ff507f44ad1..55176ae8d1b3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2738 + * google/container/v1/cluster_service.proto;l=2973 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2744 + * google/container/v1/cluster_service.proto;l=2979 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2748 + * google/container/v1/cluster_service.proto;l=2983 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index d2a5931d6767..1153d2f73dc0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index 14f1b81843c2..bc0d51d9d434 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3419 + * google/container/v1/cluster_service.proto;l=3661 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3425 + * google/container/v1/cluster_service.proto;l=3667 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3429 + * google/container/v1/cluster_service.proto;l=3671 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3433 + * google/container/v1/cluster_service.proto;l=3675 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index afa76c5ff07c..db77fea6a8c9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index 9f56b74991b0..7c4d2ddd1e51 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3220 + * google/container/v1/cluster_service.proto;l=3459 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3226 + * google/container/v1/cluster_service.proto;l=3465 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3230 + * google/container/v1/cluster_service.proto;l=3469 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 975e8c486fbd..37372dd341f9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The bytes for zone. */ @java.lang.Override @@ -644,7 +644,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The projectId. */ @java.lang.Deprecated @@ -671,7 +671,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -698,7 +698,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @param value The projectId to set. * @return This builder for chaining. */ @@ -724,7 +724,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return This builder for chaining. */ @java.lang.Deprecated @@ -746,7 +746,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -776,7 +776,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The zone. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The bytes for zone. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @param value The zone to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index 5418a06c2b65..c7e0898009e0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3293 + * google/container/v1/cluster_service.proto;l=3532 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3299 + * google/container/v1/cluster_service.proto;l=3538 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 339f0e2ef317..79697de124b7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -187,7 +187,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -213,7 +213,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -244,7 +244,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -270,7 +270,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -327,7 +327,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -2239,7 +2239,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2264,7 +2264,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2289,7 +2289,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2313,7 +2313,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2333,7 +2333,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2360,7 +2360,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2385,7 +2385,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2410,7 +2410,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2434,7 +2434,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2454,7 +2454,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2481,7 +2481,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2506,7 +2506,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2531,7 +2531,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2555,7 +2555,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2575,7 +2575,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 03a5c6f106ba..1a2964b1a8d0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -94,7 +94,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1581 + * google/container/v1/cluster_service.proto;l=1656 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1584 + * google/container/v1/cluster_service.proto;l=1659 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1587 + * google/container/v1/cluster_service.proto;l=1662 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index c073dffdb305..c322cc4a1195 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index b81b9df75aaa..3c54f7f0505e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3190 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3196 + * google/container/v1/cluster_service.proto;l=3435 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index 2a0eb0d85d14..5c4d785848d5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 369d2bdca4de..13a86b187cc3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3397 + * google/container/v1/cluster_service.proto;l=3639 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3403 + * google/container/v1/cluster_service.proto;l=3645 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3407 + * google/container/v1/cluster_service.proto;l=3649 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index 66fa40689141..e382427d3997 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index 9fc862ae77bd..f24fa20a77c4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3481 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3248 + * google/container/v1/cluster_service.proto;l=3487 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java index 59e14335cc46..58da19605f0e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java @@ -133,6 +133,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * CONTROLLER_MANAGER = 5; */ CONTROLLER_MANAGER(5), + /** + * + * + *
+     * kcp-sshd
+     * 
+ * + * KCP_SSHD = 7; + */ + KCP_SSHD(7), + /** + * + * + *
+     * kcp connection logs
+     * 
+ * + * KCP_CONNECTION = 8; + */ + KCP_CONNECTION(8), UNRECOGNIZED(-1), ; @@ -196,6 +216,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * CONTROLLER_MANAGER = 5; */ public static final int CONTROLLER_MANAGER_VALUE = 5; + /** + * + * + *
+     * kcp-sshd
+     * 
+ * + * KCP_SSHD = 7; + */ + public static final int KCP_SSHD_VALUE = 7; + /** + * + * + *
+     * kcp connection logs
+     * 
+ * + * KCP_CONNECTION = 8; + */ + public static final int KCP_CONNECTION_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -233,6 +273,10 @@ public static Component forNumber(int value) { return SCHEDULER; case 5: return CONTROLLER_MANAGER; + case 7: + return KCP_SSHD; + case 8: + return KCP_CONNECTION; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index 6f00720d7182..66b6fc4acee7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -91,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The username. */ @java.lang.Override @@ -124,7 +124,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The bytes for username. */ @java.lang.Override @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The password. */ @java.lang.Override @@ -197,7 +197,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The bytes for password. */ @java.lang.Override @@ -333,7 +333,8 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * *
    * Output only. Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
+   * authenticate to the cluster endpoint. Issued only if
+   * client_certificate_config is set.
    * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -357,7 +358,8 @@ public java.lang.String getClientCertificate() { * *
    * Output only. Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
+   * authenticate to the cluster endpoint. Issued only if
+   * client_certificate_config is set.
    * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -932,7 +934,7 @@ public Builder mergeFrom( * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The username. */ @java.lang.Deprecated @@ -964,7 +966,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The bytes for username. */ @java.lang.Deprecated @@ -996,7 +998,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @param value The username to set. * @return This builder for chaining. */ @@ -1027,7 +1029,7 @@ public Builder setUsername(java.lang.String value) { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1054,7 +1056,7 @@ public Builder clearUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1089,7 +1091,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The password. */ @java.lang.Deprecated @@ -1122,7 +1124,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The bytes for password. */ @java.lang.Deprecated @@ -1155,7 +1157,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @param value The password to set. * @return This builder for chaining. */ @@ -1187,7 +1189,7 @@ public Builder setPassword(java.lang.String value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1215,7 +1217,7 @@ public Builder clearPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -1562,7 +1564,8 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value * *
      * Output only. Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
+     * authenticate to the cluster endpoint. Issued only if
+     * client_certificate_config is set.
      * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1585,7 +1588,8 @@ public java.lang.String getClientCertificate() { * *
      * Output only. Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
+     * authenticate to the cluster endpoint. Issued only if
+     * client_certificate_config is set.
      * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1608,7 +1612,8 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * *
      * Output only. Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
+     * authenticate to the cluster endpoint. Issued only if
+     * client_certificate_config is set.
      * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1630,7 +1635,8 @@ public Builder setClientCertificate(java.lang.String value) { * *
      * Output only. Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
+     * authenticate to the cluster endpoint. Issued only if
+     * client_certificate_config is set.
      * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1648,7 +1654,8 @@ public Builder clearClientCertificate() { * *
      * Output only. Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
+     * authenticate to the cluster endpoint. Issued only if
+     * client_certificate_config is set.
      * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 88b2b410dd32..c9d4a51b4ffa 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -41,7 +41,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The username. */ @java.lang.Deprecated @@ -63,7 +63,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1220 + * google/container/v1/cluster_service.proto;l=1253 * @return The bytes for username. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The password. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1231 + * google/container/v1/cluster_service.proto;l=1264 * @return The bytes for password. */ @java.lang.Deprecated @@ -189,7 +189,8 @@ public interface MasterAuthOrBuilder * *
    * Output only. Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
+   * authenticate to the cluster endpoint. Issued only if
+   * client_certificate_config is set.
    * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -202,7 +203,8 @@ public interface MasterAuthOrBuilder * *
    * Output only. Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
+   * authenticate to the cluster endpoint. Issued only if
+   * client_certificate_config is set.
    * 
* * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java index e367cdc65166..e224fab881b4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java @@ -1064,6 +1064,39 @@ public boolean getGcpPublicCidrsAccessEnabled() { return gcpPublicCidrsAccessEnabled_; } + public static final int PRIVATE_ENDPOINT_ENFORCEMENT_ENABLED_FIELD_NUMBER = 5; + private boolean privateEndpointEnforcementEnabled_ = false; + /** + * + * + *
+   * Whether master authorized networks is enforced on private endpoint or not.
+   * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return Whether the privateEndpointEnforcementEnabled field is set. + */ + @java.lang.Override + public boolean hasPrivateEndpointEnforcementEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Whether master authorized networks is enforced on private endpoint or not.
+   * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return The privateEndpointEnforcementEnabled. + */ + @java.lang.Override + public boolean getPrivateEndpointEnforcementEnabled() { + return privateEndpointEnforcementEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1087,6 +1120,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(3, gcpPublicCidrsAccessEnabled_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(5, privateEndpointEnforcementEnabled_); + } getUnknownFields().writeTo(output); } @@ -1106,6 +1142,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, gcpPublicCidrsAccessEnabled_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, privateEndpointEnforcementEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1128,6 +1169,12 @@ public boolean equals(final java.lang.Object obj) { if (hasGcpPublicCidrsAccessEnabled()) { if (getGcpPublicCidrsAccessEnabled() != other.getGcpPublicCidrsAccessEnabled()) return false; } + if (hasPrivateEndpointEnforcementEnabled() != other.hasPrivateEndpointEnforcementEnabled()) + return false; + if (hasPrivateEndpointEnforcementEnabled()) { + if (getPrivateEndpointEnforcementEnabled() != other.getPrivateEndpointEnforcementEnabled()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1150,6 +1197,12 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGcpPublicCidrsAccessEnabled()); } + if (hasPrivateEndpointEnforcementEnabled()) { + hash = (37 * hash) + PRIVATE_ENDPOINT_ENFORCEMENT_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPrivateEndpointEnforcementEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1302,6 +1355,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000002); gcpPublicCidrsAccessEnabled_ = false; + privateEndpointEnforcementEnabled_ = false; return this; } @@ -1360,6 +1414,10 @@ private void buildPartial0(com.google.container.v1.MasterAuthorizedNetworksConfi result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateEndpointEnforcementEnabled_ = privateEndpointEnforcementEnabled_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -1442,6 +1500,9 @@ public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig if (other.hasGcpPublicCidrsAccessEnabled()) { setGcpPublicCidrsAccessEnabled(other.getGcpPublicCidrsAccessEnabled()); } + if (other.hasPrivateEndpointEnforcementEnabled()) { + setPrivateEndpointEnforcementEnabled(other.getPrivateEndpointEnforcementEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1494,6 +1555,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 40: + { + privateEndpointEnforcementEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2041,6 +2108,74 @@ public Builder clearGcpPublicCidrsAccessEnabled() { return this; } + private boolean privateEndpointEnforcementEnabled_; + /** + * + * + *
+     * Whether master authorized networks is enforced on private endpoint or not.
+     * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return Whether the privateEndpointEnforcementEnabled field is set. + */ + @java.lang.Override + public boolean hasPrivateEndpointEnforcementEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Whether master authorized networks is enforced on private endpoint or not.
+     * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return The privateEndpointEnforcementEnabled. + */ + @java.lang.Override + public boolean getPrivateEndpointEnforcementEnabled() { + return privateEndpointEnforcementEnabled_; + } + /** + * + * + *
+     * Whether master authorized networks is enforced on private endpoint or not.
+     * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @param value The privateEndpointEnforcementEnabled to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointEnforcementEnabled(boolean value) { + + privateEndpointEnforcementEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether master authorized networks is enforced on private endpoint or not.
+     * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointEnforcementEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + privateEndpointEnforcementEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java index 1353a08a1d8a..e02977ba9262 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -126,4 +126,29 @@ com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCid * @return The gcpPublicCidrsAccessEnabled. */ boolean getGcpPublicCidrsAccessEnabled(); + + /** + * + * + *
+   * Whether master authorized networks is enforced on private endpoint or not.
+   * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return Whether the privateEndpointEnforcementEnabled field is set. + */ + boolean hasPrivateEndpointEnforcementEnabled(); + /** + * + * + *
+   * Whether master authorized networks is enforced on private endpoint or not.
+   * 
+ * + * optional bool private_endpoint_enforcement_enabled = 5; + * + * @return The privateEndpointEnforcementEnabled. + */ + boolean getPrivateEndpointEnforcementEnabled(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index b97396a117fd..cab373675402 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -1557,6 +1557,47 @@ public boolean getEnableCiliumClusterwideNetworkPolicy() { return enableCiliumClusterwideNetworkPolicy_; } + public static final int DEFAULT_ENABLE_PRIVATE_NODES_FIELD_NUMBER = 22; + private boolean defaultEnablePrivateNodes_ = false; + /** + * + * + *
+   * Controls whether by default nodes have private IP addresses only.
+   * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+   * and this field at the same time.
+   * To update the default setting, use
+   * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+   * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return Whether the defaultEnablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasDefaultEnablePrivateNodes() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Controls whether by default nodes have private IP addresses only.
+   * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+   * and this field at the same time.
+   * To update the default setting, use
+   * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+   * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return The defaultEnablePrivateNodes. + */ + @java.lang.Override + public boolean getDefaultEnablePrivateNodes() { + return defaultEnablePrivateNodes_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1619,6 +1660,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(21, enableCiliumClusterwideNetworkPolicy_); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(22, defaultEnablePrivateNodes_); + } getUnknownFields().writeTo(output); } @@ -1682,6 +1726,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBoolSize( 21, enableCiliumClusterwideNetworkPolicy_); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, defaultEnablePrivateNodes_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1738,6 +1785,10 @@ public boolean equals(final java.lang.Object obj) { if (getEnableCiliumClusterwideNetworkPolicy() != other.getEnableCiliumClusterwideNetworkPolicy()) return false; } + if (hasDefaultEnablePrivateNodes() != other.hasDefaultEnablePrivateNodes()) return false; + if (hasDefaultEnablePrivateNodes()) { + if (getDefaultEnablePrivateNodes() != other.getDefaultEnablePrivateNodes()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1797,6 +1848,10 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCiliumClusterwideNetworkPolicy()); } + if (hasDefaultEnablePrivateNodes()) { + hash = (37 * hash) + DEFAULT_ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultEnablePrivateNodes()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1983,6 +2038,7 @@ public Builder clear() { enableFqdnNetworkPolicy_ = false; inTransitEncryptionConfig_ = 0; enableCiliumClusterwideNetworkPolicy_ = false; + defaultEnablePrivateNodes_ = false; return this; } @@ -2083,6 +2139,10 @@ private void buildPartial0(com.google.container.v1.NetworkConfig result) { result.enableCiliumClusterwideNetworkPolicy_ = enableCiliumClusterwideNetworkPolicy_; to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.defaultEnablePrivateNodes_ = defaultEnablePrivateNodes_; + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -2180,6 +2240,9 @@ public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { if (other.hasEnableCiliumClusterwideNetworkPolicy()) { setEnableCiliumClusterwideNetworkPolicy(other.getEnableCiliumClusterwideNetworkPolicy()); } + if (other.hasDefaultEnablePrivateNodes()) { + setDefaultEnablePrivateNodes(other.getDefaultEnablePrivateNodes()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2300,6 +2363,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 168 + case 176: + { + defaultEnablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4190,6 +4259,90 @@ public Builder clearEnableCiliumClusterwideNetworkPolicy() { return this; } + private boolean defaultEnablePrivateNodes_; + /** + * + * + *
+     * Controls whether by default nodes have private IP addresses only.
+     * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+     * and this field at the same time.
+     * To update the default setting, use
+     * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+     * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return Whether the defaultEnablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasDefaultEnablePrivateNodes() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Controls whether by default nodes have private IP addresses only.
+     * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+     * and this field at the same time.
+     * To update the default setting, use
+     * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+     * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return The defaultEnablePrivateNodes. + */ + @java.lang.Override + public boolean getDefaultEnablePrivateNodes() { + return defaultEnablePrivateNodes_; + } + /** + * + * + *
+     * Controls whether by default nodes have private IP addresses only.
+     * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+     * and this field at the same time.
+     * To update the default setting, use
+     * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+     * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @param value The defaultEnablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setDefaultEnablePrivateNodes(boolean value) { + + defaultEnablePrivateNodes_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Controls whether by default nodes have private IP addresses only.
+     * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+     * and this field at the same time.
+     * To update the default setting, use
+     * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+     * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return This builder for chaining. + */ + public Builder clearDefaultEnablePrivateNodes() { + bitField0_ = (bitField0_ & ~0x00008000); + defaultEnablePrivateNodes_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index daf838748175..4345dc4b0148 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -475,4 +475,37 @@ public interface NetworkConfigOrBuilder * @return The enableCiliumClusterwideNetworkPolicy. */ boolean getEnableCiliumClusterwideNetworkPolicy(); + + /** + * + * + *
+   * Controls whether by default nodes have private IP addresses only.
+   * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+   * and this field at the same time.
+   * To update the default setting, use
+   * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+   * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return Whether the defaultEnablePrivateNodes field is set. + */ + boolean hasDefaultEnablePrivateNodes(); + /** + * + * + *
+   * Controls whether by default nodes have private IP addresses only.
+   * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][]
+   * and this field at the same time.
+   * To update the default setting, use
+   * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes]
+   * 
+ * + * optional bool default_enable_private_nodes = 22; + * + * @return The defaultEnablePrivateNodes. + */ + boolean getDefaultEnablePrivateNodes(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index 4f7a44a3e4ba..7590bc56e052 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -56,6 +56,8 @@ private NodeConfig() { nodeGroup_ = ""; bootDiskKmsKey_ = ""; secondaryBootDisks_ = java.util.Collections.emptyList(); + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + effectiveCgroupMode_ = 0; } @java.lang.Override @@ -95,6 +97,172 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.container.v1.NodeConfig.Builder.class); } + /** + * + * + *
+   * Possible effective cgroup modes for the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1.NodeConfig.EffectiveCgroupMode} + */ + public enum EffectiveCgroupMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the
+     * node pool is unspecified, i.e. the node pool is a Windows node pool.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; + */ + EFFECTIVE_CGROUP_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the
+     * cgroup configuration.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_V1 = 1; + */ + EFFECTIVE_CGROUP_MODE_V1(1), + /** + * + * + *
+     * CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the
+     * cgroup configuration.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_V2 = 2; + */ + EFFECTIVE_CGROUP_MODE_V2(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the
+     * node pool is unspecified, i.e. the node pool is a Windows node pool.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; + */ + public static final int EFFECTIVE_CGROUP_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the
+     * cgroup configuration.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_V1 = 1; + */ + public static final int EFFECTIVE_CGROUP_MODE_V1_VALUE = 1; + /** + * + * + *
+     * CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the
+     * cgroup configuration.
+     * 
+ * + * EFFECTIVE_CGROUP_MODE_V2 = 2; + */ + public static final int EFFECTIVE_CGROUP_MODE_V2_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 EffectiveCgroupMode 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 EffectiveCgroupMode forNumber(int value) { + switch (value) { + case 0: + return EFFECTIVE_CGROUP_MODE_UNSPECIFIED; + case 1: + return EFFECTIVE_CGROUP_MODE_V1; + case 2: + return EFFECTIVE_CGROUP_MODE_V2; + 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 EffectiveCgroupMode findValueByNumber(int number) { + return EffectiveCgroupMode.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.NodeConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EffectiveCgroupMode[] VALUES = values(); + + public static EffectiveCgroupMode 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 EffectiveCgroupMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodeConfig.EffectiveCgroupMode) + } + private int bitField0_; public static final int MACHINE_TYPE_FIELD_NUMBER = 1; @@ -2428,6 +2596,70 @@ public com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksO return secondaryBootDisks_.get(index); } + public static final int STORAGE_POOLS_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList storagePools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @return A list containing the storagePools. + */ + public com.google.protobuf.ProtocolStringList getStoragePoolsList() { + return storagePools_; + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @return The count of storagePools. + */ + public int getStoragePoolsCount() { + return storagePools_.size(); + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + public java.lang.String getStoragePools(int index) { + return storagePools_.get(index); + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + public com.google.protobuf.ByteString getStoragePoolsBytes(int index) { + return storagePools_.getByteString(index); + } + public static final int SECONDARY_BOOT_DISK_UPDATE_STRATEGY_FIELD_NUMBER = 50; private com.google.container.v1.SecondaryBootDiskUpdateStrategy secondaryBootDiskUpdateStrategy_; /** @@ -2486,6 +2718,53 @@ public boolean hasSecondaryBootDiskUpdateStrategy() { : secondaryBootDiskUpdateStrategy_; } + public static final int EFFECTIVE_CGROUP_MODE_FIELD_NUMBER = 55; + private int effectiveCgroupMode_ = 0; + /** + * + * + *
+   * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+   * node pool. It is determined by the cgroup mode specified in the
+   * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+   * version.
+   * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveCgroupMode. + */ + @java.lang.Override + public int getEffectiveCgroupModeValue() { + return effectiveCgroupMode_; + } + /** + * + * + *
+   * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+   * node pool. It is determined by the cgroup mode specified in the
+   * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+   * version.
+   * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveCgroupMode. + */ + @java.lang.Override + public com.google.container.v1.NodeConfig.EffectiveCgroupMode getEffectiveCgroupMode() { + com.google.container.v1.NodeConfig.EffectiveCgroupMode result = + com.google.container.v1.NodeConfig.EffectiveCgroupMode.forNumber(effectiveCgroupMode_); + return result == null + ? com.google.container.v1.NodeConfig.EffectiveCgroupMode.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2611,9 +2890,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < secondaryBootDisks_.size(); i++) { output.writeMessage(48, secondaryBootDisks_.get(i)); } + for (int i = 0; i < storagePools_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 49, storagePools_.getRaw(i)); + } if (((bitField0_ & 0x00040000) != 0)) { output.writeMessage(50, getSecondaryBootDiskUpdateStrategy()); } + if (effectiveCgroupMode_ + != com.google.container.v1.NodeConfig.EffectiveCgroupMode.EFFECTIVE_CGROUP_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(55, effectiveCgroupMode_); + } getUnknownFields().writeTo(output); } @@ -2779,11 +3066,24 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(48, secondaryBootDisks_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < storagePools_.size(); i++) { + dataSize += computeStringSizeNoTag(storagePools_.getRaw(i)); + } + size += dataSize; + size += 2 * getStoragePoolsList().size(); + } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 50, getSecondaryBootDiskUpdateStrategy()); } + if (effectiveCgroupMode_ + != com.google.container.v1.NodeConfig.EffectiveCgroupMode.EFFECTIVE_CGROUP_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(55, effectiveCgroupMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2893,12 +3193,14 @@ public boolean equals(final java.lang.Object obj) { } if (getEnableConfidentialStorage() != other.getEnableConfidentialStorage()) return false; if (!getSecondaryBootDisksList().equals(other.getSecondaryBootDisksList())) return false; + if (!getStoragePoolsList().equals(other.getStoragePoolsList())) return false; if (hasSecondaryBootDiskUpdateStrategy() != other.hasSecondaryBootDiskUpdateStrategy()) return false; if (hasSecondaryBootDiskUpdateStrategy()) { if (!getSecondaryBootDiskUpdateStrategy().equals(other.getSecondaryBootDiskUpdateStrategy())) return false; } + if (effectiveCgroupMode_ != other.effectiveCgroupMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3038,10 +3340,16 @@ public int hashCode() { hash = (37 * hash) + SECONDARY_BOOT_DISKS_FIELD_NUMBER; hash = (53 * hash) + getSecondaryBootDisksList().hashCode(); } + if (getStoragePoolsCount() > 0) { + hash = (37 * hash) + STORAGE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getStoragePoolsList().hashCode(); + } if (hasSecondaryBootDiskUpdateStrategy()) { hash = (37 * hash) + SECONDARY_BOOT_DISK_UPDATE_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getSecondaryBootDiskUpdateStrategy().hashCode(); } + hash = (37 * hash) + EFFECTIVE_CGROUP_MODE_FIELD_NUMBER; + hash = (53 * hash) + effectiveCgroupMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3374,11 +3682,13 @@ public Builder clear() { secondaryBootDisksBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000020); + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); secondaryBootDiskUpdateStrategy_ = null; if (secondaryBootDiskUpdateStrategyBuilder_ != null) { secondaryBootDiskUpdateStrategyBuilder_.dispose(); secondaryBootDiskUpdateStrategyBuilder_ = null; } + effectiveCgroupMode_ = 0; return this; } @@ -3617,12 +3927,19 @@ private void buildPartial1(com.google.container.v1.NodeConfig result) { result.enableConfidentialStorage_ = enableConfidentialStorage_; } if (((from_bitField1_ & 0x00000040) != 0)) { + storagePools_.makeImmutable(); + result.storagePools_ = storagePools_; + } + if (((from_bitField1_ & 0x00000080) != 0)) { result.secondaryBootDiskUpdateStrategy_ = secondaryBootDiskUpdateStrategyBuilder_ == null ? secondaryBootDiskUpdateStrategy_ : secondaryBootDiskUpdateStrategyBuilder_.build(); to_bitField0_ |= 0x00040000; } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.effectiveCgroupMode_ = effectiveCgroupMode_; + } result.bitField0_ |= to_bitField0_; } @@ -3882,9 +4199,22 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { } } } + if (!other.storagePools_.isEmpty()) { + if (storagePools_.isEmpty()) { + storagePools_ = other.storagePools_; + bitField1_ |= 0x00000040; + } else { + ensureStoragePoolsIsMutable(); + storagePools_.addAll(other.storagePools_); + } + onChanged(); + } if (other.hasSecondaryBootDiskUpdateStrategy()) { mergeSecondaryBootDiskUpdateStrategy(other.getSecondaryBootDiskUpdateStrategy()); } + if (other.effectiveCgroupMode_ != 0) { + setEffectiveCgroupModeValue(other.getEffectiveCgroupModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4192,14 +4522,27 @@ public Builder mergeFrom( } break; } // case 386 + case 394: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStoragePoolsIsMutable(); + storagePools_.add(s); + break; + } // case 394 case 402: { input.readMessage( getSecondaryBootDiskUpdateStrategyFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; break; } // case 402 + case 440: + { + effectiveCgroupMode_ = input.readEnum(); + bitField1_ |= 0x00000100; + break; + } // case 440 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11235,6 +11578,180 @@ public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBu return secondaryBootDisksBuilder_; } + private com.google.protobuf.LazyStringArrayList storagePools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureStoragePoolsIsMutable() { + if (!storagePools_.isModifiable()) { + storagePools_ = new com.google.protobuf.LazyStringArrayList(storagePools_); + } + bitField1_ |= 0x00000040; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @return A list containing the storagePools. + */ + public com.google.protobuf.ProtocolStringList getStoragePoolsList() { + storagePools_.makeImmutable(); + return storagePools_; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @return The count of storagePools. + */ + public int getStoragePoolsCount() { + return storagePools_.size(); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + public java.lang.String getStoragePools(int index) { + return storagePools_.get(index); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + public com.google.protobuf.ByteString getStoragePoolsBytes(int index) { + return storagePools_.getByteString(index); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index to set the value at. + * @param value The storagePools to set. + * @return This builder for chaining. + */ + public Builder setStoragePools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragePoolsIsMutable(); + storagePools_.set(index, value); + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param value The storagePools to add. + * @return This builder for chaining. + */ + public Builder addStoragePools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragePoolsIsMutable(); + storagePools_.add(value); + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param values The storagePools to add. + * @return This builder for chaining. + */ + public Builder addAllStoragePools(java.lang.Iterable values) { + ensureStoragePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storagePools_); + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @return This builder for chaining. + */ + public Builder clearStoragePools() { + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00000040); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * 
+ * + * repeated string storage_pools = 49; + * + * @param value The bytes of the storagePools to add. + * @return This builder for chaining. + */ + public Builder addStoragePoolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStoragePoolsIsMutable(); + storagePools_.add(value); + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + private com.google.container.v1.SecondaryBootDiskUpdateStrategy secondaryBootDiskUpdateStrategy_; private com.google.protobuf.SingleFieldBuilderV3< @@ -11256,7 +11773,7 @@ public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBu * @return Whether the secondaryBootDiskUpdateStrategy field is set. */ public boolean hasSecondaryBootDiskUpdateStrategy() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** * @@ -11302,7 +11819,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( } else { secondaryBootDiskUpdateStrategyBuilder_.setMessage(value); } - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -11324,7 +11841,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( } else { secondaryBootDiskUpdateStrategyBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -11342,7 +11859,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( public Builder mergeSecondaryBootDiskUpdateStrategy( com.google.container.v1.SecondaryBootDiskUpdateStrategy value) { if (secondaryBootDiskUpdateStrategyBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0) + if (((bitField1_ & 0x00000080) != 0) && secondaryBootDiskUpdateStrategy_ != null && secondaryBootDiskUpdateStrategy_ != com.google.container.v1.SecondaryBootDiskUpdateStrategy.getDefaultInstance()) { @@ -11354,7 +11871,7 @@ public Builder mergeSecondaryBootDiskUpdateStrategy( secondaryBootDiskUpdateStrategyBuilder_.mergeFrom(value); } if (secondaryBootDiskUpdateStrategy_ != null) { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; onChanged(); } return this; @@ -11371,7 +11888,7 @@ public Builder mergeSecondaryBootDiskUpdateStrategy( *
*/ public Builder clearSecondaryBootDiskUpdateStrategy() { - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000080); secondaryBootDiskUpdateStrategy_ = null; if (secondaryBootDiskUpdateStrategyBuilder_ != null) { secondaryBootDiskUpdateStrategyBuilder_.dispose(); @@ -11393,7 +11910,7 @@ public Builder clearSecondaryBootDiskUpdateStrategy() { */ public com.google.container.v1.SecondaryBootDiskUpdateStrategy.Builder getSecondaryBootDiskUpdateStrategyBuilder() { - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; onChanged(); return getSecondaryBootDiskUpdateStrategyFieldBuilder().getBuilder(); } @@ -11446,6 +11963,124 @@ public Builder clearSecondaryBootDiskUpdateStrategy() { return secondaryBootDiskUpdateStrategyBuilder_; } + private int effectiveCgroupMode_ = 0; + /** + * + * + *
+     * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+     * node pool. It is determined by the cgroup mode specified in the
+     * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+     * version.
+     * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveCgroupMode. + */ + @java.lang.Override + public int getEffectiveCgroupModeValue() { + return effectiveCgroupMode_; + } + /** + * + * + *
+     * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+     * node pool. It is determined by the cgroup mode specified in the
+     * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+     * version.
+     * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for effectiveCgroupMode to set. + * @return This builder for chaining. + */ + public Builder setEffectiveCgroupModeValue(int value) { + effectiveCgroupMode_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+     * node pool. It is determined by the cgroup mode specified in the
+     * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+     * version.
+     * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveCgroupMode. + */ + @java.lang.Override + public com.google.container.v1.NodeConfig.EffectiveCgroupMode getEffectiveCgroupMode() { + com.google.container.v1.NodeConfig.EffectiveCgroupMode result = + com.google.container.v1.NodeConfig.EffectiveCgroupMode.forNumber(effectiveCgroupMode_); + return result == null + ? com.google.container.v1.NodeConfig.EffectiveCgroupMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+     * node pool. It is determined by the cgroup mode specified in the
+     * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+     * version.
+     * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveCgroupMode to set. + * @return This builder for chaining. + */ + public Builder setEffectiveCgroupMode( + com.google.container.v1.NodeConfig.EffectiveCgroupMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000100; + effectiveCgroupMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+     * node pool. It is determined by the cgroup mode specified in the
+     * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+     * version.
+     * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveCgroupMode() { + bitField1_ = (bitField1_ & ~0x00000100); + effectiveCgroupMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 438ab08f3e51..ed03a5745bfe 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -1698,6 +1698,57 @@ java.lang.String getResourceLabelsOrDefault( */ com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksOrBuilder(int index); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @return A list containing the storagePools. + */ + java.util.List getStoragePoolsList(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @return The count of storagePools. + */ + int getStoragePoolsCount(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + java.lang.String getStoragePools(int index); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * 
+ * + * repeated string storage_pools = 49; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + com.google.protobuf.ByteString getStoragePoolsBytes(int index); + /** * * @@ -1739,4 +1790,39 @@ java.lang.String getResourceLabelsOrDefault( */ com.google.container.v1.SecondaryBootDiskUpdateStrategyOrBuilder getSecondaryBootDiskUpdateStrategyOrBuilder(); + + /** + * + * + *
+   * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+   * node pool. It is determined by the cgroup mode specified in the
+   * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+   * version.
+   * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveCgroupMode. + */ + int getEffectiveCgroupModeValue(); + /** + * + * + *
+   * Output only. effective_cgroup_mode is the cgroup mode actually used by the
+   * node pool. It is determined by the cgroup mode specified in the
+   * LinuxNodeConfig or the default cgroup mode based on the cluster creation
+   * version.
+   * 
+ * + * + * .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveCgroupMode. + */ + com.google.container.v1.NodeConfig.EffectiveCgroupMode getEffectiveCgroupMode(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java index c172b1c63654..95d0877ccc62 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -1090,7 +1090,7 @@ public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { *
    * Whether nodes have internal IP addresses only.
    * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * [Cluster.NetworkConfig.default_enable_private_nodes][]
    * 
* * optional bool enable_private_nodes = 9; @@ -1107,7 +1107,7 @@ public boolean hasEnablePrivateNodes() { *
    * Whether nodes have internal IP addresses only.
    * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * [Cluster.NetworkConfig.default_enable_private_nodes][]
    * 
* * optional bool enable_private_nodes = 9; @@ -2559,7 +2559,7 @@ public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { *
      * Whether nodes have internal IP addresses only.
      * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * [Cluster.NetworkConfig.default_enable_private_nodes][]
      * 
* * optional bool enable_private_nodes = 9; @@ -2576,7 +2576,7 @@ public boolean hasEnablePrivateNodes() { *
      * Whether nodes have internal IP addresses only.
      * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * [Cluster.NetworkConfig.default_enable_private_nodes][]
      * 
* * optional bool enable_private_nodes = 9; @@ -2593,7 +2593,7 @@ public boolean getEnablePrivateNodes() { *
      * Whether nodes have internal IP addresses only.
      * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * [Cluster.NetworkConfig.default_enable_private_nodes][]
      * 
* * optional bool enable_private_nodes = 9; @@ -2614,7 +2614,7 @@ public Builder setEnablePrivateNodes(boolean value) { *
      * Whether nodes have internal IP addresses only.
      * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * [Cluster.NetworkConfig.default_enable_private_nodes][]
      * 
* * optional bool enable_private_nodes = 9; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java index 24113c1120ad..35e1da78cfde 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -147,7 +147,7 @@ public interface NodeNetworkConfigOrBuilder *
    * Whether nodes have internal IP addresses only.
    * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * [Cluster.NetworkConfig.default_enable_private_nodes][]
    * 
* * optional bool enable_private_nodes = 9; @@ -161,7 +161,7 @@ public interface NodeNetworkConfigOrBuilder *
    * Whether nodes have internal IP addresses only.
    * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * [Cluster.NetworkConfig.default_enable_private_nodes][]
    * 
* * optional bool enable_private_nodes = 9; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 1507f440b852..a6be3fc0fd5b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -6696,7 +6696,7 @@ public com.google.container.v1.NodePool.Status getStatus() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The statusMessage. */ @java.lang.Override @@ -6726,7 +6726,7 @@ public java.lang.String getStatusMessage() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The bytes for statusMessage. */ @java.lang.Override @@ -9671,7 +9671,7 @@ public Builder clearStatus() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The statusMessage. */ @java.lang.Deprecated @@ -9700,7 +9700,7 @@ public java.lang.String getStatusMessage() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9729,7 +9729,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9757,7 +9757,7 @@ public Builder setStatusMessage(java.lang.String value) { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9781,7 +9781,7 @@ public Builder clearStatusMessage() { *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index 2d401ea69e23..367aa07bf91f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -393,7 +393,7 @@ public interface NodePoolOrBuilder *
* * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The statusMessage. */ @java.lang.Deprecated @@ -412,7 +412,7 @@ public interface NodePoolOrBuilder * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3712 + * google/container/v1/cluster_service.proto;l=3954 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index bc4425b5c7ca..d26f01f70a4f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The zone. */ @java.lang.Override @@ -1017,7 +1017,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The bytes for zone. */ @java.lang.Override @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The statusMessage. */ @java.lang.Override @@ -1209,7 +1209,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2720,7 +2720,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The zone. */ @java.lang.Deprecated @@ -2747,7 +2747,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2774,7 +2774,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @param value The zone to set. * @return This builder for chaining. */ @@ -2800,7 +2800,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2822,7 +2822,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3158,7 +3158,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The statusMessage. */ @java.lang.Deprecated @@ -3186,7 +3186,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3214,7 +3214,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3241,7 +3241,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3264,7 +3264,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index f84239db60e0..c7b6825f6006 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -61,7 +61,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The zone. */ @java.lang.Deprecated @@ -78,7 +78,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2603 + * google/container/v1/cluster_service.proto;l=2838 * @return The bytes for zone. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The statusMessage. */ @java.lang.Deprecated @@ -198,7 +198,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2617 + * google/container/v1/cluster_service.proto;l=2852 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfig.java new file mode 100644 index 000000000000..65a6334fbf33 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfig.java @@ -0,0 +1,539 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the Cloud Storage Parallelstore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.ParallelstoreCsiDriverConfig} + */ +public final class ParallelstoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ParallelstoreCsiDriverConfig) + ParallelstoreCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParallelstoreCsiDriverConfig.newBuilder() to construct. + private ParallelstoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParallelstoreCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParallelstoreCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ParallelstoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ParallelstoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ParallelstoreCsiDriverConfig.class, + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+   * Whether the Cloud Storage Parallelstore CSI driver is enabled for this
+   * cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + 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.container.v1.ParallelstoreCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.ParallelstoreCsiDriverConfig other = + (com.google.container.v1.ParallelstoreCsiDriverConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig 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.container.v1.ParallelstoreCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.ParallelstoreCsiDriverConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the Cloud Storage Parallelstore CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.ParallelstoreCsiDriverConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ParallelstoreCsiDriverConfig) + com.google.container.v1.ParallelstoreCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ParallelstoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ParallelstoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ParallelstoreCsiDriverConfig.class, + com.google.container.v1.ParallelstoreCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.ParallelstoreCsiDriverConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ParallelstoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ParallelstoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ParallelstoreCsiDriverConfig build() { + com.google.container.v1.ParallelstoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ParallelstoreCsiDriverConfig buildPartial() { + com.google.container.v1.ParallelstoreCsiDriverConfig result = + new com.google.container.v1.ParallelstoreCsiDriverConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ParallelstoreCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ParallelstoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1.ParallelstoreCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ParallelstoreCsiDriverConfig other) { + if (other == com.google.container.v1.ParallelstoreCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
+     * Whether the Cloud Storage Parallelstore CSI driver is enabled for this
+     * cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Cloud Storage Parallelstore CSI driver is enabled for this
+     * cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Cloud Storage Parallelstore CSI driver is enabled for this
+     * cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ParallelstoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ParallelstoreCsiDriverConfig) + private static final com.google.container.v1.ParallelstoreCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ParallelstoreCsiDriverConfig(); + } + + public static com.google.container.v1.ParallelstoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParallelstoreCsiDriverConfig 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.container.v1.ParallelstoreCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..6d4fe742a280 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ParallelstoreCsiDriverConfigOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface ParallelstoreCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ParallelstoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Cloud Storage Parallelstore CSI driver is enabled for this
+   * cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java index 528e7cf09380..b2b5fc409e52 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -77,13 +77,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Whether nodes have internal IP addresses only. If enabled, all nodes are * given only RFC 1918 private addresses and communicate with the master via * private networking. + * + * Deprecated: Use + * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + * instead. *
* - * bool enable_private_nodes = 1; + * bool enable_private_nodes = 1 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See + * google/container/v1/cluster_service.proto;l=1405 * @return The enablePrivateNodes. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateNodes() { return enablePrivateNodes_; } @@ -95,13 +102,21 @@ public boolean getEnablePrivateNodes() { * *
    * Whether the master's internal IP address is used as the cluster endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint]
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * bool enable_private_endpoint = 2; + * bool enable_private_endpoint = 2 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1413 * @return The enablePrivateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } @@ -172,13 +187,22 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * *
    * Output only. The internal IP address of this cluster's master endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+   * instead.
    * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The privateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getPrivateEndpoint() { java.lang.Object ref = privateEndpoint_; if (ref instanceof java.lang.String) { @@ -195,13 +219,22 @@ public java.lang.String getPrivateEndpoint() { * *
    * Output only. The internal IP address of this cluster's master endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+   * instead.
    * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The bytes for privateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getPrivateEndpointBytes() { java.lang.Object ref = privateEndpoint_; if (ref instanceof java.lang.String) { @@ -223,13 +256,22 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * *
    * Output only. The external IP address of this cluster's master endpoint.
+   *
+   * Deprecated:Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+   * instead.
    * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The publicEndpoint. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getPublicEndpoint() { java.lang.Object ref = publicEndpoint_; if (ref instanceof java.lang.String) { @@ -246,13 +288,22 @@ public java.lang.String getPublicEndpoint() { * *
    * Output only. The external IP address of this cluster's master endpoint.
+   *
+   * Deprecated:Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+   * instead.
    * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The bytes for publicEndpoint. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getPublicEndpointBytes() { java.lang.Object ref = publicEndpoint_; if (ref instanceof java.lang.String) { @@ -323,15 +374,22 @@ public com.google.protobuf.ByteString getPeeringNameBytes() { * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1445 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasMasterGlobalAccessConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -340,15 +398,22 @@ public boolean hasMasterGlobalAccessConfig() { * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1445 * @return The masterGlobalAccessConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { return masterGlobalAccessConfig_ == null @@ -360,13 +425,18 @@ public boolean hasMasterGlobalAccessConfig() { * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { return masterGlobalAccessConfig_ == null @@ -384,13 +454,20 @@ public boolean hasMasterGlobalAccessConfig() { *
    * Subnet to provision the master's private endpoint during cluster creation.
    * Specified in projects/*/regions/*/subnetworks/* format.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+   * instead.
    * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. + * See google/container/v1/cluster_service.proto;l=1454 * @return The privateEndpointSubnetwork. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getPrivateEndpointSubnetwork() { java.lang.Object ref = privateEndpointSubnetwork_; if (ref instanceof java.lang.String) { @@ -408,13 +485,20 @@ public java.lang.String getPrivateEndpointSubnetwork() { *
    * Subnet to provision the master's private endpoint during cluster creation.
    * Specified in projects/*/regions/*/subnetworks/* format.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+   * instead.
    * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. + * See google/container/v1/cluster_service.proto;l=1454 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { java.lang.Object ref = privateEndpointSubnetwork_; if (ref instanceof java.lang.String) { @@ -966,13 +1050,20 @@ public Builder mergeFrom( * Whether nodes have internal IP addresses only. If enabled, all nodes are * given only RFC 1918 private addresses and communicate with the master via * private networking. + * + * Deprecated: Use + * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + * instead. *
* - * bool enable_private_nodes = 1; + * bool enable_private_nodes = 1 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See + * google/container/v1/cluster_service.proto;l=1405 * @return The enablePrivateNodes. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateNodes() { return enablePrivateNodes_; } @@ -983,13 +1074,20 @@ public boolean getEnablePrivateNodes() { * Whether nodes have internal IP addresses only. If enabled, all nodes are * given only RFC 1918 private addresses and communicate with the master via * private networking. + * + * Deprecated: Use + * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + * instead. *
* - * bool enable_private_nodes = 1; + * bool enable_private_nodes = 1 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See + * google/container/v1/cluster_service.proto;l=1405 * @param value The enablePrivateNodes to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnablePrivateNodes(boolean value) { enablePrivateNodes_ = value; @@ -1004,12 +1102,19 @@ public Builder setEnablePrivateNodes(boolean value) { * Whether nodes have internal IP addresses only. If enabled, all nodes are * given only RFC 1918 private addresses and communicate with the master via * private networking. + * + * Deprecated: Use + * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + * instead. *
* - * bool enable_private_nodes = 1; + * bool enable_private_nodes = 1 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See + * google/container/v1/cluster_service.proto;l=1405 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnablePrivateNodes() { bitField0_ = (bitField0_ & ~0x00000001); enablePrivateNodes_ = false; @@ -1023,13 +1128,21 @@ public Builder clearEnablePrivateNodes() { * *
      * Whether the master's internal IP address is used as the cluster endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint]
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * bool enable_private_endpoint = 2; + * bool enable_private_endpoint = 2 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=1413 * @return The enablePrivateEndpoint. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } @@ -1038,13 +1151,21 @@ public boolean getEnablePrivateEndpoint() { * *
      * Whether the master's internal IP address is used as the cluster endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint]
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * bool enable_private_endpoint = 2; + * bool enable_private_endpoint = 2 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=1413 * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnablePrivateEndpoint(boolean value) { enablePrivateEndpoint_ = value; @@ -1057,12 +1178,20 @@ public Builder setEnablePrivateEndpoint(boolean value) { * *
      * Whether the master's internal IP address is used as the cluster endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint]
+     * instead. Note that the value of enable_public_endpoint is reversed: if
+     * enable_private_endpoint is false, then enable_public_endpoint will be true.
      * 
* - * bool enable_private_endpoint = 2; + * bool enable_private_endpoint = 2 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. + * See google/container/v1/cluster_service.proto;l=1413 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnablePrivateEndpoint() { bitField0_ = (bitField0_ & ~0x00000002); enablePrivateEndpoint_ = false; @@ -1197,12 +1326,21 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * *
      * Output only. The internal IP address of this cluster's master endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+     * instead.
      * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The privateEndpoint. */ + @java.lang.Deprecated public java.lang.String getPrivateEndpoint() { java.lang.Object ref = privateEndpoint_; if (!(ref instanceof java.lang.String)) { @@ -1219,12 +1357,21 @@ public java.lang.String getPrivateEndpoint() { * *
      * Output only. The internal IP address of this cluster's master endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+     * instead.
      * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The bytes for privateEndpoint. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getPrivateEndpointBytes() { java.lang.Object ref = privateEndpoint_; if (ref instanceof String) { @@ -1241,13 +1388,22 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * *
      * Output only. The internal IP address of this cluster's master endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+     * instead.
      * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @param value The privateEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPrivateEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1262,12 +1418,21 @@ public Builder setPrivateEndpoint(java.lang.String value) { * *
      * Output only. The internal IP address of this cluster's master endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+     * instead.
      * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearPrivateEndpoint() { privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1279,13 +1444,22 @@ public Builder clearPrivateEndpoint() { * *
      * Output only. The internal IP address of this cluster's master endpoint.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+     * instead.
      * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @param value The bytes for privateEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1303,12 +1477,21 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * *
      * Output only. The external IP address of this cluster's master endpoint.
+     *
+     * Deprecated:Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+     * instead.
      * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The publicEndpoint. */ + @java.lang.Deprecated public java.lang.String getPublicEndpoint() { java.lang.Object ref = publicEndpoint_; if (!(ref instanceof java.lang.String)) { @@ -1325,12 +1508,21 @@ public java.lang.String getPublicEndpoint() { * *
      * Output only. The external IP address of this cluster's master endpoint.
+     *
+     * Deprecated:Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+     * instead.
      * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The bytes for publicEndpoint. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getPublicEndpointBytes() { java.lang.Object ref = publicEndpoint_; if (ref instanceof String) { @@ -1347,13 +1539,22 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * *
      * Output only. The external IP address of this cluster's master endpoint.
+     *
+     * Deprecated:Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+     * instead.
      * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @param value The publicEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPublicEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1368,12 +1569,21 @@ public Builder setPublicEndpoint(java.lang.String value) { * *
      * Output only. The external IP address of this cluster's master endpoint.
+     *
+     * Deprecated:Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+     * instead.
      * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearPublicEndpoint() { publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); bitField0_ = (bitField0_ & ~0x00000010); @@ -1385,13 +1595,22 @@ public Builder clearPublicEndpoint() { * *
      * Output only. The external IP address of this cluster's master endpoint.
+     *
+     * Deprecated:Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+     * instead.
      * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @param value The bytes for publicEndpoint to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1521,14 +1740,21 @@ public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is + * deprecated. See google/container/v1/cluster_service.proto;l=1445 * @return Whether the masterGlobalAccessConfig field is set. */ + @java.lang.Deprecated public boolean hasMasterGlobalAccessConfig() { return ((bitField0_ & 0x00000040) != 0); } @@ -1537,14 +1763,21 @@ public boolean hasMasterGlobalAccessConfig() { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is + * deprecated. See google/container/v1/cluster_service.proto;l=1445 * @return The masterGlobalAccessConfig. */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { if (masterGlobalAccessConfigBuilder_ == null) { @@ -1560,12 +1793,17 @@ public boolean hasMasterGlobalAccessConfig() { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setMasterGlobalAccessConfig( com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { if (masterGlobalAccessConfigBuilder_ == null) { @@ -1585,12 +1823,17 @@ public Builder setMasterGlobalAccessConfig( * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setMasterGlobalAccessConfig( com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { if (masterGlobalAccessConfigBuilder_ == null) { @@ -1607,12 +1850,17 @@ public Builder setMasterGlobalAccessConfig( * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeMasterGlobalAccessConfig( com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { if (masterGlobalAccessConfigBuilder_ == null) { @@ -1639,12 +1887,17 @@ public Builder mergeMasterGlobalAccessConfig( * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearMasterGlobalAccessConfig() { bitField0_ = (bitField0_ & ~0x00000040); masterGlobalAccessConfig_ = null; @@ -1660,12 +1913,17 @@ public Builder clearMasterGlobalAccessConfig() { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder() { bitField0_ |= 0x00000040; @@ -1677,12 +1935,17 @@ public Builder clearMasterGlobalAccessConfig() { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { if (masterGlobalAccessConfigBuilder_ != null) { @@ -1698,10 +1961,14 @@ public Builder clearMasterGlobalAccessConfig() { * *
      * Controls master global access settings.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+     * instead.
      * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -1728,12 +1995,19 @@ public Builder clearMasterGlobalAccessConfig() { *
      * Subnet to provision the master's private endpoint during cluster creation.
      * Specified in projects/*/regions/*/subnetworks/* format.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+     * instead.
      * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is + * deprecated. See google/container/v1/cluster_service.proto;l=1454 * @return The privateEndpointSubnetwork. */ + @java.lang.Deprecated public java.lang.String getPrivateEndpointSubnetwork() { java.lang.Object ref = privateEndpointSubnetwork_; if (!(ref instanceof java.lang.String)) { @@ -1751,12 +2025,19 @@ public java.lang.String getPrivateEndpointSubnetwork() { *
      * Subnet to provision the master's private endpoint during cluster creation.
      * Specified in projects/*/regions/*/subnetworks/* format.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+     * instead.
      * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is + * deprecated. See google/container/v1/cluster_service.proto;l=1454 * @return The bytes for privateEndpointSubnetwork. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { java.lang.Object ref = privateEndpointSubnetwork_; if (ref instanceof String) { @@ -1774,13 +2055,20 @@ public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { *
      * Subnet to provision the master's private endpoint during cluster creation.
      * Specified in projects/*/regions/*/subnetworks/* format.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+     * instead.
      * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is + * deprecated. See google/container/v1/cluster_service.proto;l=1454 * @param value The privateEndpointSubnetwork to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPrivateEndpointSubnetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1796,12 +2084,19 @@ public Builder setPrivateEndpointSubnetwork(java.lang.String value) { *
      * Subnet to provision the master's private endpoint during cluster creation.
      * Specified in projects/*/regions/*/subnetworks/* format.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+     * instead.
      * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is + * deprecated. See google/container/v1/cluster_service.proto;l=1454 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearPrivateEndpointSubnetwork() { privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); bitField0_ = (bitField0_ & ~0x00000080); @@ -1814,13 +2109,20 @@ public Builder clearPrivateEndpointSubnetwork() { *
      * Subnet to provision the master's private endpoint during cluster creation.
      * Specified in projects/*/regions/*/subnetworks/* format.
+     *
+     * Deprecated: Use
+     * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+     * instead.
      * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is + * deprecated. See google/container/v1/cluster_service.proto;l=1454 * @param value The bytes for privateEndpointSubnetwork to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPrivateEndpointSubnetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java index 30cfa0bd444a..275879e97e90 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -31,12 +31,19 @@ public interface PrivateClusterConfigOrBuilder * Whether nodes have internal IP addresses only. If enabled, all nodes are * given only RFC 1918 private addresses and communicate with the master via * private networking. + * + * Deprecated: Use + * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + * instead. *
* - * bool enable_private_nodes = 1; + * bool enable_private_nodes = 1 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See + * google/container/v1/cluster_service.proto;l=1405 * @return The enablePrivateNodes. */ + @java.lang.Deprecated boolean getEnablePrivateNodes(); /** @@ -44,12 +51,20 @@ public interface PrivateClusterConfigOrBuilder * *
    * Whether the master's internal IP address is used as the cluster endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint]
+   * instead. Note that the value of enable_public_endpoint is reversed: if
+   * enable_private_endpoint is false, then enable_public_endpoint will be true.
    * 
* - * bool enable_private_endpoint = 2; + * bool enable_private_endpoint = 2 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1413 * @return The enablePrivateEndpoint. */ + @java.lang.Deprecated boolean getEnablePrivateEndpoint(); /** @@ -88,24 +103,42 @@ public interface PrivateClusterConfigOrBuilder * *
    * Output only. The internal IP address of this cluster's master endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+   * instead.
    * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The privateEndpoint. */ + @java.lang.Deprecated java.lang.String getPrivateEndpoint(); /** * * *
    * Output only. The internal IP address of this cluster's master endpoint.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint]
+   * instead.
    * 
* - * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1426 * @return The bytes for privateEndpoint. */ + @java.lang.Deprecated com.google.protobuf.ByteString getPrivateEndpointBytes(); /** @@ -113,24 +146,42 @@ public interface PrivateClusterConfigOrBuilder * *
    * Output only. The external IP address of this cluster's master endpoint.
+   *
+   * Deprecated:Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+   * instead.
    * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The publicEndpoint. */ + @java.lang.Deprecated java.lang.String getPublicEndpoint(); /** * * *
    * Output only. The external IP address of this cluster's master endpoint.
+   *
+   * Deprecated:Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint]
+   * instead.
    * 
* - * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See + * google/container/v1/cluster_service.proto;l=1434 * @return The bytes for publicEndpoint. */ + @java.lang.Deprecated com.google.protobuf.ByteString getPublicEndpointBytes(); /** @@ -163,40 +214,59 @@ public interface PrivateClusterConfigOrBuilder * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1445 * @return Whether the masterGlobalAccessConfig field is set. */ + @java.lang.Deprecated boolean hasMasterGlobalAccessConfig(); /** * * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * * + * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1445 * @return The masterGlobalAccessConfig. */ + @java.lang.Deprecated com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); /** * * *
    * Controls master global access settings.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][]
+   * instead.
    * 
* * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; * */ + @java.lang.Deprecated com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder(); @@ -206,12 +276,19 @@ public interface PrivateClusterConfigOrBuilder *
    * Subnet to provision the master's private endpoint during cluster creation.
    * Specified in projects/*/regions/*/subnetworks/* format.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+   * instead.
    * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. + * See google/container/v1/cluster_service.proto;l=1454 * @return The privateEndpointSubnetwork. */ + @java.lang.Deprecated java.lang.String getPrivateEndpointSubnetwork(); /** * @@ -219,11 +296,18 @@ public interface PrivateClusterConfigOrBuilder *
    * Subnet to provision the master's private endpoint during cluster creation.
    * Specified in projects/*/regions/*/subnetworks/* format.
+   *
+   * Deprecated: Use
+   * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork]
+   * instead.
    * 
* - * string private_endpoint_subnetwork = 10; + * string private_endpoint_subnetwork = 10 [deprecated = true]; * + * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. + * See google/container/v1/cluster_service.proto;l=1454 * @return The bytes for privateEndpointSubnetwork. */ + @java.lang.Deprecated com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfig.java new file mode 100644 index 000000000000..361505b6bec1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfig.java @@ -0,0 +1,734 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings
+ * that can be created.
+ * 
+ * + * Protobuf type {@code google.container.v1.RBACBindingConfig} + */ +public final class RBACBindingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.RBACBindingConfig) + RBACBindingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RBACBindingConfig.newBuilder() to construct. + private RBACBindingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RBACBindingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RBACBindingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RBACBindingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RBACBindingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RBACBindingConfig.class, + com.google.container.v1.RBACBindingConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_INSECURE_BINDING_SYSTEM_UNAUTHENTICATED_FIELD_NUMBER = 1; + private boolean enableInsecureBindingSystemUnauthenticated_ = false; + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjets system:anonymous or system:unauthenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return Whether the enableInsecureBindingSystemUnauthenticated field is set. + */ + @java.lang.Override + public boolean hasEnableInsecureBindingSystemUnauthenticated() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjets system:anonymous or system:unauthenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return The enableInsecureBindingSystemUnauthenticated. + */ + @java.lang.Override + public boolean getEnableInsecureBindingSystemUnauthenticated() { + return enableInsecureBindingSystemUnauthenticated_; + } + + public static final int ENABLE_INSECURE_BINDING_SYSTEM_AUTHENTICATED_FIELD_NUMBER = 2; + private boolean enableInsecureBindingSystemAuthenticated_ = false; + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjects system:authenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return Whether the enableInsecureBindingSystemAuthenticated field is set. + */ + @java.lang.Override + public boolean hasEnableInsecureBindingSystemAuthenticated() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjects system:authenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return The enableInsecureBindingSystemAuthenticated. + */ + @java.lang.Override + public boolean getEnableInsecureBindingSystemAuthenticated() { + return enableInsecureBindingSystemAuthenticated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enableInsecureBindingSystemUnauthenticated_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, enableInsecureBindingSystemAuthenticated_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableInsecureBindingSystemUnauthenticated_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, enableInsecureBindingSystemAuthenticated_); + } + 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.container.v1.RBACBindingConfig)) { + return super.equals(obj); + } + com.google.container.v1.RBACBindingConfig other = + (com.google.container.v1.RBACBindingConfig) obj; + + if (hasEnableInsecureBindingSystemUnauthenticated() + != other.hasEnableInsecureBindingSystemUnauthenticated()) return false; + if (hasEnableInsecureBindingSystemUnauthenticated()) { + if (getEnableInsecureBindingSystemUnauthenticated() + != other.getEnableInsecureBindingSystemUnauthenticated()) return false; + } + if (hasEnableInsecureBindingSystemAuthenticated() + != other.hasEnableInsecureBindingSystemAuthenticated()) return false; + if (hasEnableInsecureBindingSystemAuthenticated()) { + if (getEnableInsecureBindingSystemAuthenticated() + != other.getEnableInsecureBindingSystemAuthenticated()) 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 (hasEnableInsecureBindingSystemUnauthenticated()) { + hash = (37 * hash) + ENABLE_INSECURE_BINDING_SYSTEM_UNAUTHENTICATED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getEnableInsecureBindingSystemUnauthenticated()); + } + if (hasEnableInsecureBindingSystemAuthenticated()) { + hash = (37 * hash) + ENABLE_INSECURE_BINDING_SYSTEM_AUTHENTICATED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getEnableInsecureBindingSystemAuthenticated()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RBACBindingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RBACBindingConfig 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.container.v1.RBACBindingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RBACBindingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RBACBindingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RBACBindingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.RBACBindingConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings
+   * that can be created.
+   * 
+ * + * Protobuf type {@code google.container.v1.RBACBindingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RBACBindingConfig) + com.google.container.v1.RBACBindingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RBACBindingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RBACBindingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RBACBindingConfig.class, + com.google.container.v1.RBACBindingConfig.Builder.class); + } + + // Construct using com.google.container.v1.RBACBindingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableInsecureBindingSystemUnauthenticated_ = false; + enableInsecureBindingSystemAuthenticated_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RBACBindingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RBACBindingConfig getDefaultInstanceForType() { + return com.google.container.v1.RBACBindingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RBACBindingConfig build() { + com.google.container.v1.RBACBindingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RBACBindingConfig buildPartial() { + com.google.container.v1.RBACBindingConfig result = + new com.google.container.v1.RBACBindingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RBACBindingConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableInsecureBindingSystemUnauthenticated_ = + enableInsecureBindingSystemUnauthenticated_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableInsecureBindingSystemAuthenticated_ = + enableInsecureBindingSystemAuthenticated_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RBACBindingConfig) { + return mergeFrom((com.google.container.v1.RBACBindingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RBACBindingConfig other) { + if (other == com.google.container.v1.RBACBindingConfig.getDefaultInstance()) return this; + if (other.hasEnableInsecureBindingSystemUnauthenticated()) { + setEnableInsecureBindingSystemUnauthenticated( + other.getEnableInsecureBindingSystemUnauthenticated()); + } + if (other.hasEnableInsecureBindingSystemAuthenticated()) { + setEnableInsecureBindingSystemAuthenticated( + other.getEnableInsecureBindingSystemAuthenticated()); + } + 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: + { + enableInsecureBindingSystemUnauthenticated_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableInsecureBindingSystemAuthenticated_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableInsecureBindingSystemUnauthenticated_; + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjets system:anonymous or system:unauthenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return Whether the enableInsecureBindingSystemUnauthenticated field is set. + */ + @java.lang.Override + public boolean hasEnableInsecureBindingSystemUnauthenticated() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjets system:anonymous or system:unauthenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return The enableInsecureBindingSystemUnauthenticated. + */ + @java.lang.Override + public boolean getEnableInsecureBindingSystemUnauthenticated() { + return enableInsecureBindingSystemUnauthenticated_; + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjets system:anonymous or system:unauthenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @param value The enableInsecureBindingSystemUnauthenticated to set. + * @return This builder for chaining. + */ + public Builder setEnableInsecureBindingSystemUnauthenticated(boolean value) { + + enableInsecureBindingSystemUnauthenticated_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjets system:anonymous or system:unauthenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableInsecureBindingSystemUnauthenticated() { + bitField0_ = (bitField0_ & ~0x00000001); + enableInsecureBindingSystemUnauthenticated_ = false; + onChanged(); + return this; + } + + private boolean enableInsecureBindingSystemAuthenticated_; + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjects system:authenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return Whether the enableInsecureBindingSystemAuthenticated field is set. + */ + @java.lang.Override + public boolean hasEnableInsecureBindingSystemAuthenticated() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjects system:authenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return The enableInsecureBindingSystemAuthenticated. + */ + @java.lang.Override + public boolean getEnableInsecureBindingSystemAuthenticated() { + return enableInsecureBindingSystemAuthenticated_; + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjects system:authenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @param value The enableInsecureBindingSystemAuthenticated to set. + * @return This builder for chaining. + */ + public Builder setEnableInsecureBindingSystemAuthenticated(boolean value) { + + enableInsecureBindingSystemAuthenticated_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+     * with subjects system:authenticated.
+     * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableInsecureBindingSystemAuthenticated() { + bitField0_ = (bitField0_ & ~0x00000002); + enableInsecureBindingSystemAuthenticated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.RBACBindingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RBACBindingConfig) + private static final com.google.container.v1.RBACBindingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.RBACBindingConfig(); + } + + public static com.google.container.v1.RBACBindingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RBACBindingConfig 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.container.v1.RBACBindingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfigOrBuilder.java new file mode 100644 index 000000000000..37431b20aaf6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RBACBindingConfigOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface RBACBindingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RBACBindingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjets system:anonymous or system:unauthenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return Whether the enableInsecureBindingSystemUnauthenticated field is set. + */ + boolean hasEnableInsecureBindingSystemUnauthenticated(); + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjets system:anonymous or system:unauthenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_unauthenticated = 1; + * + * @return The enableInsecureBindingSystemUnauthenticated. + */ + boolean getEnableInsecureBindingSystemUnauthenticated(); + + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjects system:authenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return Whether the enableInsecureBindingSystemAuthenticated field is set. + */ + boolean hasEnableInsecureBindingSystemAuthenticated(); + /** + * + * + *
+   * Setting this to true will allow any ClusterRoleBinding and RoleBinding
+   * with subjects system:authenticated.
+   * 
+ * + * optional bool enable_insecure_binding_system_authenticated = 2; + * + * @return The enableInsecureBindingSystemAuthenticated. + */ + boolean getEnableInsecureBindingSystemAuthenticated(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 2488b257060b..b4b657664fff 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Override @@ -268,7 +268,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4014 + * google/container/v1/cluster_service.proto;l=4256 * @return The nodePoolId. */ @java.lang.Override @@ -295,7 +295,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4014 + * google/container/v1/cluster_service.proto;l=4256 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @param value The projectId to set. * @return This builder for chaining. */ @@ -942,7 +942,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1050,7 +1050,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @param value The zone to set. * @return This builder for chaining. */ @@ -1077,7 +1077,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1100,7 +1100,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1128,7 +1128,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Deprecated @@ -1154,7 +1154,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1205,7 +1205,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1226,7 +1226,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1254,7 +1254,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4014 + * See google/container/v1/cluster_service.proto;l=4256 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1280,7 +1280,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4014 + * See google/container/v1/cluster_service.proto;l=4256 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1306,7 +1306,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4014 + * See google/container/v1/cluster_service.proto;l=4256 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1331,7 +1331,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4014 + * See google/container/v1/cluster_service.proto;l=4256 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1352,7 +1352,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4014 + * See google/container/v1/cluster_service.proto;l=4256 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 30bb06051140..dc4bde6af7ce 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4000 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4006 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4010 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4014 + * google/container/v1/cluster_service.proto;l=4256 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4014 + * google/container/v1/cluster_service.proto;l=4256 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java new file mode 100644 index 000000000000..795f246f1135 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java @@ -0,0 +1,573 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * SecretManagerConfig is config for secret manager enablement.
+ * 
+ * + * Protobuf type {@code google.container.v1.SecretManagerConfig} + */ +public final class SecretManagerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecretManagerConfig) + SecretManagerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretManagerConfig.newBuilder() to construct. + private SecretManagerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecretManagerConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecretManagerConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecretManagerConfig.class, + com.google.container.v1.SecretManagerConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + 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.container.v1.SecretManagerConfig)) { + return super.equals(obj); + } + com.google.container.v1.SecretManagerConfig other = + (com.google.container.v1.SecretManagerConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecretManagerConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig 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.container.v1.SecretManagerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.SecretManagerConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SecretManagerConfig is config for secret manager enablement.
+   * 
+ * + * Protobuf type {@code google.container.v1.SecretManagerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecretManagerConfig) + com.google.container.v1.SecretManagerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecretManagerConfig.class, + com.google.container.v1.SecretManagerConfig.Builder.class); + } + + // Construct using com.google.container.v1.SecretManagerConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig getDefaultInstanceForType() { + return com.google.container.v1.SecretManagerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig build() { + com.google.container.v1.SecretManagerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig buildPartial() { + com.google.container.v1.SecretManagerConfig result = + new com.google.container.v1.SecretManagerConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SecretManagerConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SecretManagerConfig) { + return mergeFrom((com.google.container.v1.SecretManagerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecretManagerConfig other) { + if (other == com.google.container.v1.SecretManagerConfig.getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Secret Manager Config.
+     * 
+ * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.SecretManagerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecretManagerConfig) + private static final com.google.container.v1.SecretManagerConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecretManagerConfig(); + } + + public static com.google.container.v1.SecretManagerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretManagerConfig 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.container.v1.SecretManagerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java new file mode 100644 index 000000000000..e8838c544b44 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface SecretManagerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecretManagerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * + * + *
+   * Enable/Disable Secret Manager Config.
+   * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java index f3638b5fe41d..7f1005bfdc7f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -173,6 +173,31 @@ public interface ReleaseChannelConfigOrBuilder * @return The bytes of the validVersions at the given index. */ com.google.protobuf.ByteString getValidVersionsBytes(int index); + + /** + * + * + *
+     * The auto upgrade target version for clusters on the channel.
+     * 
+ * + * string upgrade_target_version = 5; + * + * @return The upgradeTargetVersion. + */ + java.lang.String getUpgradeTargetVersion(); + /** + * + * + *
+     * The auto upgrade target version for clusters on the channel.
+     * 
+ * + * string upgrade_target_version = 5; + * + * @return The bytes for upgradeTargetVersion. + */ + com.google.protobuf.ByteString getUpgradeTargetVersionBytes(); } /** * @@ -197,6 +222,7 @@ private ReleaseChannelConfig() { channel_ = 0; defaultVersion_ = ""; validVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + upgradeTargetVersion_ = ""; } @java.lang.Override @@ -370,6 +396,57 @@ public com.google.protobuf.ByteString getValidVersionsBytes(int index) { return validVersions_.getByteString(index); } + public static final int UPGRADE_TARGET_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object upgradeTargetVersion_ = ""; + /** + * + * + *
+     * The auto upgrade target version for clusters on the channel.
+     * 
+ * + * string upgrade_target_version = 5; + * + * @return The upgradeTargetVersion. + */ + @java.lang.Override + public java.lang.String getUpgradeTargetVersion() { + java.lang.Object ref = upgradeTargetVersion_; + 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(); + upgradeTargetVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The auto upgrade target version for clusters on the channel.
+     * 
+ * + * string upgrade_target_version = 5; + * + * @return The bytes for upgradeTargetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUpgradeTargetVersionBytes() { + java.lang.Object ref = upgradeTargetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upgradeTargetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -393,6 +470,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeTargetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, upgradeTargetVersion_); + } getUnknownFields().writeTo(output); } @@ -416,6 +496,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValidVersionsList().size(); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeTargetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, upgradeTargetVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -435,6 +518,7 @@ public boolean equals(final java.lang.Object obj) { if (channel_ != other.channel_) return false; if (!getDefaultVersion().equals(other.getDefaultVersion())) return false; if (!getValidVersionsList().equals(other.getValidVersionsList())) return false; + if (!getUpgradeTargetVersion().equals(other.getUpgradeTargetVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -454,6 +538,8 @@ public int hashCode() { hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getValidVersionsList().hashCode(); } + hash = (37 * hash) + UPGRADE_TARGET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeTargetVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -599,6 +685,7 @@ public Builder clear() { channel_ = 0; defaultVersion_ = ""; validVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + upgradeTargetVersion_ = ""; return this; } @@ -645,6 +732,9 @@ private void buildPartial0(com.google.container.v1.ServerConfig.ReleaseChannelCo validVersions_.makeImmutable(); result.validVersions_ = validVersions_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.upgradeTargetVersion_ = upgradeTargetVersion_; + } } @java.lang.Override @@ -713,6 +803,11 @@ public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConf } onChanged(); } + if (!other.getUpgradeTargetVersion().isEmpty()) { + upgradeTargetVersion_ = other.upgradeTargetVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -758,6 +853,12 @@ public Builder mergeFrom( validVersions_.add(s); break; } // case 34 + case 42: + { + upgradeTargetVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1149,6 +1250,112 @@ public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object upgradeTargetVersion_ = ""; + /** + * + * + *
+       * The auto upgrade target version for clusters on the channel.
+       * 
+ * + * string upgrade_target_version = 5; + * + * @return The upgradeTargetVersion. + */ + public java.lang.String getUpgradeTargetVersion() { + java.lang.Object ref = upgradeTargetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + upgradeTargetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The auto upgrade target version for clusters on the channel.
+       * 
+ * + * string upgrade_target_version = 5; + * + * @return The bytes for upgradeTargetVersion. + */ + public com.google.protobuf.ByteString getUpgradeTargetVersionBytes() { + java.lang.Object ref = upgradeTargetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upgradeTargetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The auto upgrade target version for clusters on the channel.
+       * 
+ * + * string upgrade_target_version = 5; + * + * @param value The upgradeTargetVersion to set. + * @return This builder for chaining. + */ + public Builder setUpgradeTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + upgradeTargetVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * The auto upgrade target version for clusters on the channel.
+       * 
+ * + * string upgrade_target_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearUpgradeTargetVersion() { + upgradeTargetVersion_ = getDefaultInstance().getUpgradeTargetVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * The auto upgrade target version for clusters on the channel.
+       * 
+ * + * string upgrade_target_version = 5; + * + * @param value The bytes for upgradeTargetVersion to set. + * @return This builder for chaining. + */ + public Builder setUpgradeTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeTargetVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 736981d43441..5769407fb12b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The bytes for clusterId. */ @java.lang.Override @@ -832,7 +832,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -886,7 +886,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @param value The projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1098,7 +1098,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The clusterId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1175,7 +1175,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1196,7 +1196,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index c87bc2eaf541..271aee069168 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3031 + * google/container/v1/cluster_service.proto;l=3270 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3037 + * google/container/v1/cluster_service.proto;l=3276 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3041 + * google/container/v1/cluster_service.proto;l=3280 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index bd99ce3931c4..80f71d3a97e7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -97,7 +97,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The projectId. */ @java.lang.Override @@ -125,7 +125,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The bytes for projectId. */ @java.lang.Override @@ -159,7 +159,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The bytes for zone. */ @java.lang.Override @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The clusterId. */ @java.lang.Override @@ -247,7 +247,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The bytes for clusterId. */ @java.lang.Override @@ -995,7 +995,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The projectId. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1049,7 +1049,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1075,7 +1075,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The zone. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @param value The zone to set. * @return This builder for chaining. */ @@ -1210,7 +1210,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1233,7 +1233,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1261,7 +1261,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The clusterId. */ @java.lang.Deprecated @@ -1287,7 +1287,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1313,7 +1313,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1338,7 +1338,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1359,7 +1359,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index b064b6f61d46..395e7d441088 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4196 + * google/container/v1/cluster_service.proto;l=4438 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4444 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4206 + * google/container/v1/cluster_service.proto;l=4448 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index a4e4626de2bd..89db60e42816 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index 9de048d61347..2cf5b91ac8ee 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4231 + * google/container/v1/cluster_service.proto;l=4473 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4237 + * google/container/v1/cluster_service.proto;l=4479 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4241 + * google/container/v1/cluster_service.proto;l=4483 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index 4eb35e5a9deb..08d6d0873d88 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The bytes for clusterId. */ @java.lang.Override @@ -855,7 +855,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The projectId. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -909,7 +909,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @param value The projectId to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return This builder for chaining. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -987,7 +987,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The zone. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @param value The zone to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1121,7 +1121,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1198,7 +1198,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1219,7 +1219,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index e0b02be3722e..88b03f9a11d1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3296 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3302 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3067 + * google/container/v1/cluster_service.proto;l=3306 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index c942eb9fa282..37d7e8741ac6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 437189aebd99..ba2bc17e7f30 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2961 + * google/container/v1/cluster_service.proto;l=3200 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2967 + * google/container/v1/cluster_service.proto;l=3206 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=3210 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index aed801a901a5..c38b815a98bf 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -269,7 +269,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The projectId. */ @java.lang.Override @@ -297,7 +297,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The bytes for projectId. */ @java.lang.Override @@ -331,7 +331,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The zone. */ @java.lang.Override @@ -360,7 +360,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The bytes for zone. */ @java.lang.Override @@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The clusterId. */ @java.lang.Override @@ -419,7 +419,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The bytes for clusterId. */ @java.lang.Override @@ -1070,7 +1070,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The projectId. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1150,7 +1150,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1202,7 +1202,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The zone. */ @java.lang.Deprecated @@ -1230,7 +1230,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @param value The zone to set. * @return This builder for chaining. */ @@ -1285,7 +1285,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1308,7 +1308,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1336,7 +1336,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The clusterId. */ @java.lang.Deprecated @@ -1362,7 +1362,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1388,7 +1388,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1413,7 +1413,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1434,7 +1434,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index 740904cfb13a..aa511be28be7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3140 + * google/container/v1/cluster_service.proto;l=3379 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3146 + * google/container/v1/cluster_service.proto;l=3385 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3150 + * google/container/v1/cluster_service.proto;l=3389 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index 6341a34f8439..0e2861fd561a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index cf4a17db47be..a7b61a83c901 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2996 + * google/container/v1/cluster_service.proto;l=3235 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3002 + * google/container/v1/cluster_service.proto;l=3241 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3245 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 225420a4a5d2..ec893fd0e9f1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The bytes for clusterId. */ @java.lang.Override @@ -830,7 +830,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The projectId. */ @java.lang.Deprecated @@ -857,7 +857,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return This builder for chaining. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The zone. */ @java.lang.Deprecated @@ -990,7 +990,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @param value The zone to set. * @return This builder for chaining. */ @@ -1045,7 +1045,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1068,7 +1068,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The clusterId. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index d1872281a0d8..8c18ea8c2898 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4394 + * google/container/v1/cluster_service.proto;l=4636 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4400 + * google/container/v1/cluster_service.proto;l=4642 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4404 + * google/container/v1/cluster_service.proto;l=4646 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index 5de4b73d3415..57cde4f51eb0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The bytes for zone. */ @java.lang.Override @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The clusterId. */ @java.lang.Override @@ -234,7 +234,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The bytes for clusterId. */ @java.lang.Override @@ -266,7 +266,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The nodePoolId. */ @java.lang.Override @@ -293,7 +293,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 6abea821ba36..f7725a678407 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2931 + * google/container/v1/cluster_service.proto;l=3170 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2937 + * google/container/v1/cluster_service.proto;l=3176 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2941 + * google/container/v1/cluster_service.proto;l=3180 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2945 + * google/container/v1/cluster_service.proto;l=3184 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index 84ea8ff46e28..ea384865988b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The clusterId. */ @java.lang.Override @@ -235,7 +235,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The bytes for clusterId. */ @java.lang.Override @@ -267,7 +267,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The nodePoolId. */ @java.lang.Override @@ -294,7 +294,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index 94604e29de96..fd1ea8545a95 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3929 + * google/container/v1/cluster_service.proto;l=4171 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3935 + * google/container/v1/cluster_service.proto;l=4177 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3939 + * google/container/v1/cluster_service.proto;l=4181 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3943 + * google/container/v1/cluster_service.proto;l=4185 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index bad50ffc10a6..49ef1ff1349d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -854,7 +854,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The projectId. */ @java.lang.Deprecated @@ -881,7 +881,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @param value The projectId to set. * @return This builder for chaining. */ @@ -934,7 +934,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return This builder for chaining. */ @java.lang.Deprecated @@ -956,7 +956,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -986,7 +986,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @param value The zone to set. * @return This builder for chaining. */ @@ -1069,7 +1069,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The clusterId. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1197,7 +1197,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1218,7 +1218,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1246,7 +1246,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1272,7 +1272,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1323,7 +1323,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1344,7 +1344,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index b3eb5d6f6b46..3c18fac5a9bf 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3959 + * google/container/v1/cluster_service.proto;l=4201 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3965 + * google/container/v1/cluster_service.proto;l=4207 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3969 + * google/container/v1/cluster_service.proto;l=4211 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3973 + * google/container/v1/cluster_service.proto;l=4215 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 36412075e35d..9528950c96fe 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index cc127fbe745c..da7185593a91 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4257 + * google/container/v1/cluster_service.proto;l=4499 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4263 + * google/container/v1/cluster_service.proto;l=4505 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4267 + * google/container/v1/cluster_service.proto;l=4509 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index 8086b189b4cc..f3c30fdfb827 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -330,7 +330,7 @@ private Code(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -349,7 +349,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The code. */ @java.lang.Override @@ -842,7 +842,7 @@ public Builder mergeFrom( * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -861,7 +861,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -883,7 +883,7 @@ public Builder setCodeValue(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The code. */ @java.lang.Override @@ -904,7 +904,7 @@ public com.google.container.v1.StatusCondition.Code getCode() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @param value The code to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index 5c45706d3a09..4fc964760907 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4471 + * google/container/v1/cluster_service.proto;l=4713 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 11656b0aa555..739859c60fff 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The bytes for clusterId. */ @java.lang.Override @@ -821,7 +821,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The projectId. */ @java.lang.Deprecated @@ -848,7 +848,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -875,7 +875,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @param value The projectId to set. * @return This builder for chaining. */ @@ -901,7 +901,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return This builder for chaining. */ @java.lang.Deprecated @@ -923,7 +923,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The zone. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1009,7 +1009,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @param value The zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1087,7 +1087,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1185,7 +1185,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index 1daf09161e48..5e2bb19aac48 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2995 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=3001 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=3005 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index db2834187bd8..3eb64f8e89e7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The bytes for clusterId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The projectId. */ @java.lang.Deprecated @@ -849,7 +849,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @param value The projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return This builder for chaining. */ @java.lang.Deprecated @@ -924,7 +924,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The zone. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @param value The zone to set. * @return This builder for chaining. */ @@ -1037,7 +1037,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The clusterId. */ @java.lang.Deprecated @@ -1114,7 +1114,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1140,7 +1140,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1165,7 +1165,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index c996e3f25eeb..a0d5d9060f3d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3088 + * google/container/v1/cluster_service.proto;l=3327 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3094 + * google/container/v1/cluster_service.proto;l=3333 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 + * google/container/v1/cluster_service.proto;l=3337 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index 3135d82989da..7cc5004d458d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -51,6 +51,7 @@ private UpdateNodePoolRequest() { accelerators_ = java.util.Collections.emptyList(); machineType_ = ""; diskType_ = ""; + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -91,7 +92,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The projectId. */ @java.lang.Override @@ -119,7 +120,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The bytes for projectId. */ @java.lang.Override @@ -153,7 +154,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The zone. */ @java.lang.Override @@ -182,7 +183,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The bytes for zone. */ @java.lang.Override @@ -214,7 +215,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The clusterId. */ @java.lang.Override @@ -241,7 +242,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +274,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The nodePoolId. */ @java.lang.Override @@ -300,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -1771,6 +1772,74 @@ public com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning : queuedProvisioning_; } + public static final int STORAGE_POOLS_FIELD_NUMBER = 43; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList storagePools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @return A list containing the storagePools. + */ + public com.google.protobuf.ProtocolStringList getStoragePoolsList() { + return storagePools_; + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @return The count of storagePools. + */ + public int getStoragePoolsCount() { + return storagePools_.size(); + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + public java.lang.String getStoragePools(int index) { + return storagePools_.get(index); + } + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + public com.google.protobuf.ByteString getStoragePoolsBytes(int index) { + return storagePools_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1878,6 +1947,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(42, getQueuedProvisioning()); } + for (int i = 0; i < storagePools_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 43, storagePools_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1987,6 +2059,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getQueuedProvisioning()); } + { + int dataSize = 0; + for (int i = 0; i < storagePools_.size(); i++) { + dataSize += computeStringSizeNoTag(storagePools_.getRaw(i)); + } + size += dataSize; + size += 2 * getStoragePoolsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2088,6 +2168,7 @@ public boolean equals(final java.lang.Object obj) { if (hasQueuedProvisioning()) { if (!getQueuedProvisioning().equals(other.getQueuedProvisioning())) return false; } + if (!getStoragePoolsList().equals(other.getStoragePoolsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2201,6 +2282,10 @@ public int hashCode() { hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; hash = (53 * hash) + getQueuedProvisioning().hashCode(); } + if (getStoragePoolsCount() > 0) { + hash = (37 * hash) + STORAGE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getStoragePoolsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2476,6 +2561,7 @@ public Builder clear() { queuedProvisioningBuilder_.dispose(); queuedProvisioningBuilder_ = null; } + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2659,6 +2745,10 @@ private void buildPartial0(com.google.container.v1.UpdateNodePoolRequest result) : queuedProvisioningBuilder_.build(); to_bitField0_ |= 0x00020000; } + if (((from_bitField0_ & 0x80000000) != 0)) { + storagePools_.makeImmutable(); + result.storagePools_ = storagePools_; + } result.bitField0_ |= to_bitField0_; } @@ -2851,6 +2941,16 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { if (other.hasQueuedProvisioning()) { mergeQueuedProvisioning(other.getQueuedProvisioning()); } + if (!other.storagePools_.isEmpty()) { + if (storagePools_.isEmpty()) { + storagePools_ = other.storagePools_; + bitField0_ |= 0x80000000; + } else { + ensureStoragePoolsIsMutable(); + storagePools_.addAll(other.storagePools_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3078,6 +3178,13 @@ public Builder mergeFrom( bitField0_ |= 0x40000000; break; } // case 338 + case 346: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStoragePoolsIsMutable(); + storagePools_.add(s); + break; + } // case 346 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3110,7 +3217,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The projectId. */ @java.lang.Deprecated @@ -3137,7 +3244,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -3164,7 +3271,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @param value The projectId to set. * @return This builder for chaining. */ @@ -3190,7 +3297,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3212,7 +3319,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3242,7 +3349,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The zone. */ @java.lang.Deprecated @@ -3270,7 +3377,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3298,7 +3405,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @param value The zone to set. * @return This builder for chaining. */ @@ -3325,7 +3432,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3348,7 +3455,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3376,7 +3483,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The clusterId. */ @java.lang.Deprecated @@ -3402,7 +3509,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3428,7 +3535,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3453,7 +3560,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3474,7 +3581,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3502,7 +3609,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3528,7 +3635,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3554,7 +3661,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3579,7 +3686,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3600,7 +3707,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ @@ -8470,6 +8577,189 @@ public Builder clearQueuedProvisioning() { return queuedProvisioningBuilder_; } + private com.google.protobuf.LazyStringArrayList storagePools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureStoragePoolsIsMutable() { + if (!storagePools_.isModifiable()) { + storagePools_ = new com.google.protobuf.LazyStringArrayList(storagePools_); + } + bitField0_ |= 0x80000000; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @return A list containing the storagePools. + */ + public com.google.protobuf.ProtocolStringList getStoragePoolsList() { + storagePools_.makeImmutable(); + return storagePools_; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @return The count of storagePools. + */ + public int getStoragePoolsCount() { + return storagePools_.size(); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + public java.lang.String getStoragePools(int index) { + return storagePools_.get(index); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + public com.google.protobuf.ByteString getStoragePoolsBytes(int index) { + return storagePools_.getByteString(index); + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index to set the value at. + * @param value The storagePools to set. + * @return This builder for chaining. + */ + public Builder setStoragePools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragePoolsIsMutable(); + storagePools_.set(index, value); + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param value The storagePools to add. + * @return This builder for chaining. + */ + public Builder addStoragePools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStoragePoolsIsMutable(); + storagePools_.add(value); + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param values The storagePools to add. + * @return This builder for chaining. + */ + public Builder addAllStoragePools(java.lang.Iterable values) { + ensureStoragePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storagePools_); + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @return This builder for chaining. + */ + public Builder clearStoragePools() { + storagePools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * List of Storage Pools where boot disks are provisioned.
+     * Existing Storage Pools will be replaced with storage-pools.
+     * 
+ * + * repeated string storage_pools = 43; + * + * @param value The bytes of the storagePools to add. + * @return This builder for chaining. + */ + public Builder addStoragePoolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStoragePoolsIsMutable(); + storagePools_.add(value); + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index 64f8ccf1b2bf..7b0f789ee3ca 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=3020 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2791 + * google/container/v1/cluster_service.proto;l=3026 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2795 + * google/container/v1/cluster_service.proto;l=3030 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2799 + * google/container/v1/cluster_service.proto;l=3034 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1166,4 +1166,59 @@ public interface UpdateNodePoolRequestOrBuilder * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; */ com.google.container.v1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder(); + + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @return A list containing the storagePools. + */ + java.util.List getStoragePoolsList(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @return The count of storagePools. + */ + int getStoragePoolsCount(); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the element to return. + * @return The storagePools at the given index. + */ + java.lang.String getStoragePools(int index); + /** + * + * + *
+   * List of Storage Pools where boot disks are provisioned.
+   * Existing Storage Pools will be replaced with storage-pools.
+   * 
+ * + * repeated string storage_pools = 43; + * + * @param index The index of the value to return. + * @return The bytes of the storagePools at the given index. + */ + com.google.protobuf.ByteString getStoragePoolsBytes(int index); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfig.java new file mode 100644 index 000000000000..dce3c3ec0868 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfig.java @@ -0,0 +1,2328 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +/** + * + * + *
+ * UserManagedKeysConfig holds the resource address to Keys which are used
+ * for signing certs and token that are used for communication within cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.UserManagedKeysConfig} + */ +public final class UserManagedKeysConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.UserManagedKeysConfig) + UserManagedKeysConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserManagedKeysConfig.newBuilder() to construct. + private UserManagedKeysConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserManagedKeysConfig() { + clusterCa_ = ""; + etcdApiCa_ = ""; + etcdPeerCa_ = ""; + serviceAccountSigningKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountVerificationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + aggregationCa_ = ""; + controlPlaneDiskEncryptionKey_ = ""; + gkeopsEtcdBackupEncryptionKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserManagedKeysConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UserManagedKeysConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UserManagedKeysConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UserManagedKeysConfig.class, + com.google.container.v1.UserManagedKeysConfig.Builder.class); + } + + public static final int CLUSTER_CA_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCa_ = ""; + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the cluster CA in this
+   * cluster.
+   * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The clusterCa. + */ + @java.lang.Override + public java.lang.String getClusterCa() { + java.lang.Object ref = clusterCa_; + 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(); + clusterCa_ = s; + return s; + } + } + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the cluster CA in this
+   * cluster.
+   * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for clusterCa. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCaBytes() { + java.lang.Object ref = clusterCa_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETCD_API_CA_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etcdApiCa_ = ""; + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd API CA in this cluster.
+   * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The etcdApiCa. + */ + @java.lang.Override + public java.lang.String getEtcdApiCa() { + java.lang.Object ref = etcdApiCa_; + 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(); + etcdApiCa_ = s; + return s; + } + } + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd API CA in this cluster.
+   * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdApiCa. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtcdApiCaBytes() { + java.lang.Object ref = etcdApiCa_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etcdApiCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETCD_PEER_CA_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object etcdPeerCa_ = ""; + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd peer CA in this cluster.
+   * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The etcdPeerCa. + */ + @java.lang.Override + public java.lang.String getEtcdPeerCa() { + java.lang.Object ref = etcdPeerCa_; + 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(); + etcdPeerCa_ = s; + return s; + } + } + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd peer CA in this cluster.
+   * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdPeerCa. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtcdPeerCaBytes() { + java.lang.Object ref = etcdPeerCa_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etcdPeerCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_SIGNING_KEYS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList serviceAccountSigningKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountSigningKeys. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountSigningKeysList() { + return serviceAccountSigningKeys_; + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountSigningKeys. + */ + public int getServiceAccountSigningKeysCount() { + return serviceAccountSigningKeys_.size(); + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountSigningKeys at the given index. + */ + public java.lang.String getServiceAccountSigningKeys(int index) { + return serviceAccountSigningKeys_.get(index); + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountSigningKeys at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountSigningKeysBytes(int index) { + return serviceAccountSigningKeys_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_VERIFICATION_KEYS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList serviceAccountVerificationKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountVerificationKeys. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountVerificationKeysList() { + return serviceAccountVerificationKeys_; + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountVerificationKeys. + */ + public int getServiceAccountVerificationKeysCount() { + return serviceAccountVerificationKeys_.size(); + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountVerificationKeys at the given index. + */ + public java.lang.String getServiceAccountVerificationKeys(int index) { + return serviceAccountVerificationKeys_.get(index); + } + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountVerificationKeys at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountVerificationKeysBytes(int index) { + return serviceAccountVerificationKeys_.getByteString(index); + } + + public static final int AGGREGATION_CA_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object aggregationCa_ = ""; + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the aggregation CA in
+   * this cluster.
+   * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The aggregationCa. + */ + @java.lang.Override + public java.lang.String getAggregationCa() { + java.lang.Object ref = aggregationCa_; + 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(); + aggregationCa_ = s; + return s; + } + } + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the aggregation CA in
+   * this cluster.
+   * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for aggregationCa. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAggregationCaBytes() { + java.lang.Object ref = aggregationCa_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aggregationCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTROL_PLANE_DISK_ENCRYPTION_KEY_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object controlPlaneDiskEncryptionKey_ = ""; + /** + * + * + *
+   * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+   * plane nodes.
+   * 
+ * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The controlPlaneDiskEncryptionKey. + */ + @java.lang.Override + public java.lang.String getControlPlaneDiskEncryptionKey() { + java.lang.Object ref = controlPlaneDiskEncryptionKey_; + 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(); + controlPlaneDiskEncryptionKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+   * plane nodes.
+   * 
+ * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for controlPlaneDiskEncryptionKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getControlPlaneDiskEncryptionKeyBytes() { + java.lang.Object ref = controlPlaneDiskEncryptionKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlPlaneDiskEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GKEOPS_ETCD_BACKUP_ENCRYPTION_KEY_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object gkeopsEtcdBackupEncryptionKey_ = ""; + /** + * + * + *
+   * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+   * etcd backups.
+   * 
+ * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The gkeopsEtcdBackupEncryptionKey. + */ + @java.lang.Override + public java.lang.String getGkeopsEtcdBackupEncryptionKey() { + java.lang.Object ref = gkeopsEtcdBackupEncryptionKey_; + 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(); + gkeopsEtcdBackupEncryptionKey_ = s; + return s; + } + } + /** + * + * + *
+   * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+   * etcd backups.
+   * 
+ * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gkeopsEtcdBackupEncryptionKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGkeopsEtcdBackupEncryptionKeyBytes() { + java.lang.Object ref = gkeopsEtcdBackupEncryptionKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gkeopsEtcdBackupEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCa_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, clusterCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etcdApiCa_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etcdApiCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etcdPeerCa_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, etcdPeerCa_); + } + for (int i = 0; i < serviceAccountSigningKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 13, serviceAccountSigningKeys_.getRaw(i)); + } + for (int i = 0; i < serviceAccountVerificationKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 14, serviceAccountVerificationKeys_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregationCa_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, aggregationCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneDiskEncryptionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 16, controlPlaneDiskEncryptionKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeopsEtcdBackupEncryptionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 17, gkeopsEtcdBackupEncryptionKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCa_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, clusterCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etcdApiCa_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etcdApiCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etcdPeerCa_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etcdPeerCa_); + } + { + int dataSize = 0; + for (int i = 0; i < serviceAccountSigningKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceAccountSigningKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceAccountSigningKeysList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < serviceAccountVerificationKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceAccountVerificationKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceAccountVerificationKeysList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregationCa_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, aggregationCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneDiskEncryptionKey_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 16, controlPlaneDiskEncryptionKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeopsEtcdBackupEncryptionKey_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 17, gkeopsEtcdBackupEncryptionKey_); + } + 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.container.v1.UserManagedKeysConfig)) { + return super.equals(obj); + } + com.google.container.v1.UserManagedKeysConfig other = + (com.google.container.v1.UserManagedKeysConfig) obj; + + if (!getClusterCa().equals(other.getClusterCa())) return false; + if (!getEtcdApiCa().equals(other.getEtcdApiCa())) return false; + if (!getEtcdPeerCa().equals(other.getEtcdPeerCa())) return false; + if (!getServiceAccountSigningKeysList().equals(other.getServiceAccountSigningKeysList())) + return false; + if (!getServiceAccountVerificationKeysList() + .equals(other.getServiceAccountVerificationKeysList())) return false; + if (!getAggregationCa().equals(other.getAggregationCa())) return false; + if (!getControlPlaneDiskEncryptionKey().equals(other.getControlPlaneDiskEncryptionKey())) + return false; + if (!getGkeopsEtcdBackupEncryptionKey().equals(other.getGkeopsEtcdBackupEncryptionKey())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_CA_FIELD_NUMBER; + hash = (53 * hash) + getClusterCa().hashCode(); + hash = (37 * hash) + ETCD_API_CA_FIELD_NUMBER; + hash = (53 * hash) + getEtcdApiCa().hashCode(); + hash = (37 * hash) + ETCD_PEER_CA_FIELD_NUMBER; + hash = (53 * hash) + getEtcdPeerCa().hashCode(); + if (getServiceAccountSigningKeysCount() > 0) { + hash = (37 * hash) + SERVICE_ACCOUNT_SIGNING_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountSigningKeysList().hashCode(); + } + if (getServiceAccountVerificationKeysCount() > 0) { + hash = (37 * hash) + SERVICE_ACCOUNT_VERIFICATION_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountVerificationKeysList().hashCode(); + } + hash = (37 * hash) + AGGREGATION_CA_FIELD_NUMBER; + hash = (53 * hash) + getAggregationCa().hashCode(); + hash = (37 * hash) + CONTROL_PLANE_DISK_ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getControlPlaneDiskEncryptionKey().hashCode(); + hash = (37 * hash) + GKEOPS_ETCD_BACKUP_ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getGkeopsEtcdBackupEncryptionKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UserManagedKeysConfig 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.container.v1.UserManagedKeysConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.UserManagedKeysConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.UserManagedKeysConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UserManagedKeysConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.container.v1.UserManagedKeysConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UserManagedKeysConfig holds the resource address to Keys which are used
+   * for signing certs and token that are used for communication within cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.UserManagedKeysConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UserManagedKeysConfig) + com.google.container.v1.UserManagedKeysConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UserManagedKeysConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UserManagedKeysConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UserManagedKeysConfig.class, + com.google.container.v1.UserManagedKeysConfig.Builder.class); + } + + // Construct using com.google.container.v1.UserManagedKeysConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterCa_ = ""; + etcdApiCa_ = ""; + etcdPeerCa_ = ""; + serviceAccountSigningKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountVerificationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + aggregationCa_ = ""; + controlPlaneDiskEncryptionKey_ = ""; + gkeopsEtcdBackupEncryptionKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UserManagedKeysConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfig getDefaultInstanceForType() { + return com.google.container.v1.UserManagedKeysConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfig build() { + com.google.container.v1.UserManagedKeysConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UserManagedKeysConfig buildPartial() { + com.google.container.v1.UserManagedKeysConfig result = + new com.google.container.v1.UserManagedKeysConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UserManagedKeysConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterCa_ = clusterCa_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etcdApiCa_ = etcdApiCa_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etcdPeerCa_ = etcdPeerCa_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + serviceAccountSigningKeys_.makeImmutable(); + result.serviceAccountSigningKeys_ = serviceAccountSigningKeys_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + serviceAccountVerificationKeys_.makeImmutable(); + result.serviceAccountVerificationKeys_ = serviceAccountVerificationKeys_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.aggregationCa_ = aggregationCa_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.controlPlaneDiskEncryptionKey_ = controlPlaneDiskEncryptionKey_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.gkeopsEtcdBackupEncryptionKey_ = gkeopsEtcdBackupEncryptionKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UserManagedKeysConfig) { + return mergeFrom((com.google.container.v1.UserManagedKeysConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UserManagedKeysConfig other) { + if (other == com.google.container.v1.UserManagedKeysConfig.getDefaultInstance()) return this; + if (!other.getClusterCa().isEmpty()) { + clusterCa_ = other.clusterCa_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtcdApiCa().isEmpty()) { + etcdApiCa_ = other.etcdApiCa_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtcdPeerCa().isEmpty()) { + etcdPeerCa_ = other.etcdPeerCa_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.serviceAccountSigningKeys_.isEmpty()) { + if (serviceAccountSigningKeys_.isEmpty()) { + serviceAccountSigningKeys_ = other.serviceAccountSigningKeys_; + bitField0_ |= 0x00000008; + } else { + ensureServiceAccountSigningKeysIsMutable(); + serviceAccountSigningKeys_.addAll(other.serviceAccountSigningKeys_); + } + onChanged(); + } + if (!other.serviceAccountVerificationKeys_.isEmpty()) { + if (serviceAccountVerificationKeys_.isEmpty()) { + serviceAccountVerificationKeys_ = other.serviceAccountVerificationKeys_; + bitField0_ |= 0x00000010; + } else { + ensureServiceAccountVerificationKeysIsMutable(); + serviceAccountVerificationKeys_.addAll(other.serviceAccountVerificationKeys_); + } + onChanged(); + } + if (!other.getAggregationCa().isEmpty()) { + aggregationCa_ = other.aggregationCa_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getControlPlaneDiskEncryptionKey().isEmpty()) { + controlPlaneDiskEncryptionKey_ = other.controlPlaneDiskEncryptionKey_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getGkeopsEtcdBackupEncryptionKey().isEmpty()) { + gkeopsEtcdBackupEncryptionKey_ = other.gkeopsEtcdBackupEncryptionKey_; + bitField0_ |= 0x00000080; + 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 82: + { + clusterCa_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 82 + case 90: + { + etcdApiCa_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 90 + case 98: + { + etcdPeerCa_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountSigningKeysIsMutable(); + serviceAccountSigningKeys_.add(s); + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountVerificationKeysIsMutable(); + serviceAccountVerificationKeys_.add(s); + break; + } // case 114 + case 122: + { + aggregationCa_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 122 + case 130: + { + controlPlaneDiskEncryptionKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 130 + case 138: + { + gkeopsEtcdBackupEncryptionKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clusterCa_ = ""; + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the cluster CA in this
+     * cluster.
+     * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The clusterCa. + */ + public java.lang.String getClusterCa() { + java.lang.Object ref = clusterCa_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCa_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the cluster CA in this
+     * cluster.
+     * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for clusterCa. + */ + public com.google.protobuf.ByteString getClusterCaBytes() { + java.lang.Object ref = clusterCa_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the cluster CA in this
+     * cluster.
+     * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @param value The clusterCa to set. + * @return This builder for chaining. + */ + public Builder setClusterCa(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterCa_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the cluster CA in this
+     * cluster.
+     * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearClusterCa() { + clusterCa_ = getDefaultInstance().getClusterCa(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the cluster CA in this
+     * cluster.
+     * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for clusterCa to set. + * @return This builder for chaining. + */ + public Builder setClusterCaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterCa_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etcdApiCa_ = ""; + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd API CA in this cluster.
+     * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The etcdApiCa. + */ + public java.lang.String getEtcdApiCa() { + java.lang.Object ref = etcdApiCa_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etcdApiCa_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd API CA in this cluster.
+     * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdApiCa. + */ + public com.google.protobuf.ByteString getEtcdApiCaBytes() { + java.lang.Object ref = etcdApiCa_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etcdApiCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd API CA in this cluster.
+     * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The etcdApiCa to set. + * @return This builder for chaining. + */ + public Builder setEtcdApiCa(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etcdApiCa_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd API CA in this cluster.
+     * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearEtcdApiCa() { + etcdApiCa_ = getDefaultInstance().getEtcdApiCa(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd API CA in this cluster.
+     * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for etcdApiCa to set. + * @return This builder for chaining. + */ + public Builder setEtcdApiCaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etcdApiCa_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etcdPeerCa_ = ""; + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd peer CA in this cluster.
+     * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The etcdPeerCa. + */ + public java.lang.String getEtcdPeerCa() { + java.lang.Object ref = etcdPeerCa_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etcdPeerCa_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd peer CA in this cluster.
+     * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdPeerCa. + */ + public com.google.protobuf.ByteString getEtcdPeerCaBytes() { + java.lang.Object ref = etcdPeerCa_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etcdPeerCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd peer CA in this cluster.
+     * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @param value The etcdPeerCa to set. + * @return This builder for chaining. + */ + public Builder setEtcdPeerCa(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etcdPeerCa_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd peer CA in this cluster.
+     * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearEtcdPeerCa() { + etcdPeerCa_ = getDefaultInstance().getEtcdPeerCa(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Certificate Authority Service caPool to use for the
+     * etcd peer CA in this cluster.
+     * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for etcdPeerCa to set. + * @return This builder for chaining. + */ + public Builder setEtcdPeerCaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etcdPeerCa_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList serviceAccountSigningKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureServiceAccountSigningKeysIsMutable() { + if (!serviceAccountSigningKeys_.isModifiable()) { + serviceAccountSigningKeys_ = + new com.google.protobuf.LazyStringArrayList(serviceAccountSigningKeys_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountSigningKeys. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountSigningKeysList() { + serviceAccountSigningKeys_.makeImmutable(); + return serviceAccountSigningKeys_; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountSigningKeys. + */ + public int getServiceAccountSigningKeysCount() { + return serviceAccountSigningKeys_.size(); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountSigningKeys at the given index. + */ + public java.lang.String getServiceAccountSigningKeys(int index) { + return serviceAccountSigningKeys_.get(index); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountSigningKeys at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountSigningKeysBytes(int index) { + return serviceAccountSigningKeys_.getByteString(index); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The serviceAccountSigningKeys to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountSigningKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountSigningKeysIsMutable(); + serviceAccountSigningKeys_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAccountSigningKeys to add. + * @return This builder for chaining. + */ + public Builder addServiceAccountSigningKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountSigningKeysIsMutable(); + serviceAccountSigningKeys_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param values The serviceAccountSigningKeys to add. + * @return This builder for chaining. + */ + public Builder addAllServiceAccountSigningKeys(java.lang.Iterable values) { + ensureServiceAccountSigningKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountSigningKeys_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountSigningKeys() { + serviceAccountSigningKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the serviceAccountSigningKeys to add. + * @return This builder for chaining. + */ + public Builder addServiceAccountSigningKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceAccountSigningKeysIsMutable(); + serviceAccountSigningKeys_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList serviceAccountVerificationKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureServiceAccountVerificationKeysIsMutable() { + if (!serviceAccountVerificationKeys_.isModifiable()) { + serviceAccountVerificationKeys_ = + new com.google.protobuf.LazyStringArrayList(serviceAccountVerificationKeys_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountVerificationKeys. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountVerificationKeysList() { + serviceAccountVerificationKeys_.makeImmutable(); + return serviceAccountVerificationKeys_; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountVerificationKeys. + */ + public int getServiceAccountVerificationKeysCount() { + return serviceAccountVerificationKeys_.size(); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountVerificationKeys at the given index. + */ + public java.lang.String getServiceAccountVerificationKeys(int index) { + return serviceAccountVerificationKeys_.get(index); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountVerificationKeys at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountVerificationKeysBytes(int index) { + return serviceAccountVerificationKeys_.getByteString(index); + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The serviceAccountVerificationKeys to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountVerificationKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountVerificationKeysIsMutable(); + serviceAccountVerificationKeys_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAccountVerificationKeys to add. + * @return This builder for chaining. + */ + public Builder addServiceAccountVerificationKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountVerificationKeysIsMutable(); + serviceAccountVerificationKeys_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param values The serviceAccountVerificationKeys to add. + * @return This builder for chaining. + */ + public Builder addAllServiceAccountVerificationKeys( + java.lang.Iterable values) { + ensureServiceAccountVerificationKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountVerificationKeys_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountVerificationKeys() { + serviceAccountVerificationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+     * issued by this cluster.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+     * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the serviceAccountVerificationKeys to add. + * @return This builder for chaining. + */ + public Builder addServiceAccountVerificationKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceAccountVerificationKeysIsMutable(); + serviceAccountVerificationKeys_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object aggregationCa_ = ""; + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the aggregation CA in
+     * this cluster.
+     * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The aggregationCa. + */ + public java.lang.String getAggregationCa() { + java.lang.Object ref = aggregationCa_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aggregationCa_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the aggregation CA in
+     * this cluster.
+     * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for aggregationCa. + */ + public com.google.protobuf.ByteString getAggregationCaBytes() { + java.lang.Object ref = aggregationCa_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aggregationCa_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the aggregation CA in
+     * this cluster.
+     * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @param value The aggregationCa to set. + * @return This builder for chaining. + */ + public Builder setAggregationCa(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aggregationCa_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the aggregation CA in
+     * this cluster.
+     * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearAggregationCa() { + aggregationCa_ = getDefaultInstance().getAggregationCa(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * The Certificate Authority Service caPool to use for the aggregation CA in
+     * this cluster.
+     * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for aggregationCa to set. + * @return This builder for chaining. + */ + public Builder setAggregationCaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aggregationCa_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object controlPlaneDiskEncryptionKey_ = ""; + /** + * + * + *
+     * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+     * plane nodes.
+     * 
+ * + * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The controlPlaneDiskEncryptionKey. + */ + public java.lang.String getControlPlaneDiskEncryptionKey() { + java.lang.Object ref = controlPlaneDiskEncryptionKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlPlaneDiskEncryptionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+     * plane nodes.
+     * 
+ * + * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for controlPlaneDiskEncryptionKey. + */ + public com.google.protobuf.ByteString getControlPlaneDiskEncryptionKeyBytes() { + java.lang.Object ref = controlPlaneDiskEncryptionKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlPlaneDiskEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+     * plane nodes.
+     * 
+ * + * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @param value The controlPlaneDiskEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setControlPlaneDiskEncryptionKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + controlPlaneDiskEncryptionKey_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+     * plane nodes.
+     * 
+ * + * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearControlPlaneDiskEncryptionKey() { + controlPlaneDiskEncryptionKey_ = getDefaultInstance().getControlPlaneDiskEncryptionKey(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+     * plane nodes.
+     * 
+ * + * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for controlPlaneDiskEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setControlPlaneDiskEncryptionKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + controlPlaneDiskEncryptionKey_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object gkeopsEtcdBackupEncryptionKey_ = ""; + /** + * + * + *
+     * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+     * etcd backups.
+     * 
+ * + * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The gkeopsEtcdBackupEncryptionKey. + */ + public java.lang.String getGkeopsEtcdBackupEncryptionKey() { + java.lang.Object ref = gkeopsEtcdBackupEncryptionKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gkeopsEtcdBackupEncryptionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+     * etcd backups.
+     * 
+ * + * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gkeopsEtcdBackupEncryptionKey. + */ + public com.google.protobuf.ByteString getGkeopsEtcdBackupEncryptionKeyBytes() { + java.lang.Object ref = gkeopsEtcdBackupEncryptionKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gkeopsEtcdBackupEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+     * etcd backups.
+     * 
+ * + * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @param value The gkeopsEtcdBackupEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setGkeopsEtcdBackupEncryptionKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gkeopsEtcdBackupEncryptionKey_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+     * etcd backups.
+     * 
+ * + * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGkeopsEtcdBackupEncryptionKey() { + gkeopsEtcdBackupEncryptionKey_ = getDefaultInstance().getGkeopsEtcdBackupEncryptionKey(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+     * etcd backups.
+     * 
+ * + * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for gkeopsEtcdBackupEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setGkeopsEtcdBackupEncryptionKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gkeopsEtcdBackupEncryptionKey_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.UserManagedKeysConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UserManagedKeysConfig) + private static final com.google.container.v1.UserManagedKeysConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.UserManagedKeysConfig(); + } + + public static com.google.container.v1.UserManagedKeysConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserManagedKeysConfig 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.container.v1.UserManagedKeysConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfigOrBuilder.java new file mode 100644 index 000000000000..d4a8f1855d73 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UserManagedKeysConfigOrBuilder.java @@ -0,0 +1,342 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.container.v1; + +public interface UserManagedKeysConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UserManagedKeysConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the cluster CA in this
+   * cluster.
+   * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The clusterCa. + */ + java.lang.String getClusterCa(); + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the cluster CA in this
+   * cluster.
+   * 
+ * + * string cluster_ca = 10 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for clusterCa. + */ + com.google.protobuf.ByteString getClusterCaBytes(); + + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd API CA in this cluster.
+   * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The etcdApiCa. + */ + java.lang.String getEtcdApiCa(); + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd API CA in this cluster.
+   * 
+ * + * string etcd_api_ca = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdApiCa. + */ + com.google.protobuf.ByteString getEtcdApiCaBytes(); + + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd peer CA in this cluster.
+   * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The etcdPeerCa. + */ + java.lang.String getEtcdPeerCa(); + /** + * + * + *
+   * Resource path of the Certificate Authority Service caPool to use for the
+   * etcd peer CA in this cluster.
+   * 
+ * + * string etcd_peer_ca = 12 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for etcdPeerCa. + */ + com.google.protobuf.ByteString getEtcdPeerCaBytes(); + + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountSigningKeys. + */ + java.util.List getServiceAccountSigningKeysList(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountSigningKeys. + */ + int getServiceAccountSigningKeysCount(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountSigningKeys at the given index. + */ + java.lang.String getServiceAccountSigningKeys(int index); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountSigningKeys at the given index. + */ + com.google.protobuf.ByteString getServiceAccountSigningKeysBytes(int index); + + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the serviceAccountVerificationKeys. + */ + java.util.List getServiceAccountVerificationKeysList(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of serviceAccountVerificationKeys. + */ + int getServiceAccountVerificationKeysCount(); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The serviceAccountVerificationKeys at the given index. + */ + java.lang.String getServiceAccountVerificationKeys(int index); + /** + * + * + *
+   * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs
+   * issued by this cluster.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
+   * 
+ * + * + * repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccountVerificationKeys at the given index. + */ + com.google.protobuf.ByteString getServiceAccountVerificationKeysBytes(int index); + + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the aggregation CA in
+   * this cluster.
+   * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The aggregationCa. + */ + java.lang.String getAggregationCa(); + /** + * + * + *
+   * The Certificate Authority Service caPool to use for the aggregation CA in
+   * this cluster.
+   * 
+ * + * string aggregation_ca = 15 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for aggregationCa. + */ + com.google.protobuf.ByteString getAggregationCaBytes(); + + /** + * + * + *
+   * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+   * plane nodes.
+   * 
+ * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The controlPlaneDiskEncryptionKey. + */ + java.lang.String getControlPlaneDiskEncryptionKey(); + /** + * + * + *
+   * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control
+   * plane nodes.
+   * 
+ * + * string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for controlPlaneDiskEncryptionKey. + */ + com.google.protobuf.ByteString getControlPlaneDiskEncryptionKeyBytes(); + + /** + * + * + *
+   * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+   * etcd backups.
+   * 
+ * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The gkeopsEtcdBackupEncryptionKey. + */ + java.lang.String getGkeopsEtcdBackupEncryptionKey(); + /** + * + * + *
+   * Resource path of the Cloud KMS cryptoKey to use for encryption of internal
+   * etcd backups.
+   * 
+ * + * string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gkeopsEtcdBackupEncryptionKey. + */ + com.google.protobuf.ByteString getGkeopsEtcdBackupEncryptionKeyBytes(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index ba8730d3d57f..f79bff88adfd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -38,6 +38,14 @@ option (google.api.resource_definition) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" }; +option (google.api.resource_definition) = { + type: "privateca.googleapis.com/CaPool" + pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { @@ -639,6 +647,21 @@ message NodeKubeletConfig { // [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults] // instead. message NodeConfig { + // Possible effective cgroup modes for the node. + enum EffectiveCgroupMode { + // EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the + // node pool is unspecified, i.e. the node pool is a Windows node pool. + EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; + + // CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the + // cgroup configuration. + EFFECTIVE_CGROUP_MODE_V1 = 1; + + // CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the + // cgroup configuration. + EFFECTIVE_CGROUP_MODE_V2 = 2; + } + // The name of a Google Compute Engine [machine // type](https://cloud.google.com/compute/docs/machine-types) // @@ -857,9 +880,19 @@ message NodeConfig { // List of secondary boot disks attached to the nodes. repeated SecondaryBootDisk secondary_boot_disks = 48; + // List of Storage Pools where boot disks are provisioned. + repeated string storage_pools = 49; + // Secondary boot disk update strategy. optional SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + + // Output only. effective_cgroup_mode is the cgroup mode actually used by the + // node pool. It is determined by the cgroup mode specified in the + // LinuxNodeConfig or the default cgroup mode based on the cluster creation + // version. + EffectiveCgroupMode effective_cgroup_mode = 55 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies options for controlling advanced machine features. @@ -933,7 +966,7 @@ message NodeNetworkConfig { // Whether nodes have internal IP addresses only. // If enable_private_nodes is not specified, then the value is derived from - // [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + // [Cluster.NetworkConfig.default_enable_private_nodes][] optional bool enable_private_nodes = 9; // Network bandwidth tier configuration. @@ -1242,7 +1275,8 @@ message MasterAuth { [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Base64-encoded public certificate used by clients to - // authenticate to the cluster endpoint. + // authenticate to the cluster endpoint. Issued only if + // client_certificate_config is set. string client_certificate = 101 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Base64-encoded private key used by clients to authenticate @@ -1307,6 +1341,9 @@ message AddonsConfig { StatefulHAConfig stateful_ha_config = 18 [(google.api.field_behavior) = OPTIONAL]; + // Configuration for the Cloud Storage Parallelstore CSI driver. + ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + // Optional. Configuration for Ray Operator addon. RayOperatorConfig ray_operator_config = 21 [(google.api.field_behavior) = OPTIONAL]; @@ -1362,10 +1399,19 @@ message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are // given only RFC 1918 private addresses and communicate with the master via // private networking. - bool enable_private_nodes = 1; + // + // Deprecated: Use + // [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + // instead. + bool enable_private_nodes = 1 [deprecated = true]; // Whether the master's internal IP address is used as the cluster endpoint. - bool enable_private_endpoint = 2; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] + // instead. Note that the value of enable_public_endpoint is reversed: if + // enable_private_endpoint is false, then enable_public_endpoint will be true. + bool enable_private_endpoint = 2 [deprecated = true]; // The IP range in CIDR notation to use for the hosted master network. This // range will be used for assigning internal IP addresses to the master or @@ -1374,20 +1420,39 @@ message PrivateClusterConfig { string master_ipv4_cidr_block = 3; // Output only. The internal IP address of this cluster's master endpoint. - string private_endpoint = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] + // instead. + string private_endpoint = 4 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The external IP address of this cluster's master endpoint. - string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // + // Deprecated:Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] + // instead. + string public_endpoint = 5 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The peering name in the customer VPC used by this cluster. string peering_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Controls master global access settings. - PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] + // instead. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 + [deprecated = true]; // Subnet to provision the master's private endpoint during cluster creation. // Specified in projects/*/regions/*/subnetworks/* format. - string private_endpoint_subnetwork = 10; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] + // instead. + string private_endpoint_subnetwork = 10 [deprecated = true]; } // Configuration for returning group information from authenticators. @@ -1446,6 +1511,13 @@ message GcsFuseCsiDriverConfig { bool enabled = 1; } +// Configuration for the Cloud Storage Parallelstore CSI driver. +message ParallelstoreCsiDriverConfig { + // Whether the Cloud Storage Parallelstore CSI driver is enabled for this + // cluster. + bool enabled = 1; +} + // Configuration options for the Ray Operator add-on. message RayOperatorConfig { // Whether the Ray Operator addon is enabled for this cluster. @@ -1495,6 +1567,9 @@ message MasterAuthorizedNetworksConfig { // Whether master is accessbile via Google Compute Engine Public IP addresses. optional bool gcp_public_cidrs_access_enabled = 3; + + // Whether master authorized networks is enforced on private endpoint or not. + optional bool private_endpoint_enforcement_enabled = 5; } // Configuration for the legacy Attribute Based Access Control authorization @@ -1884,7 +1959,12 @@ message Cluster { IPAllocationPolicy ip_allocation_policy = 20; // The configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] + // instead. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 + [deprecated = true]; // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; @@ -2083,17 +2163,135 @@ message Cluster { // Enable/Disable Security Posture API features for the cluster. SecurityPostureConfig security_posture_config = 145; + // Configuration for all cluster's control plane endpoints. + ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + // Beta APIs Config K8sBetaAPIConfig enable_k8s_beta_apis = 143; // GKE Enterprise Configuration. EnterpriseConfig enterprise_config = 149; + // Secret CSI driver configuration. + SecretManagerConfig secret_manager_config = 150; + + // Enable/Disable Compliance Posture features for the cluster. + CompliancePostureConfig compliance_posture_config = 151; + // Output only. Reserved for future use. optional bool satisfies_pzs = 152 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Reserved for future use. optional bool satisfies_pzi = 153 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The Custom keys configuration for the cluster. + optional UserManagedKeysConfig user_managed_keys_config = 154; + + // RBACBindingConfig allows user to restrict ClusterRoleBindings an + // RoleBindings that can be created. + optional RBACBindingConfig rbac_binding_config = 156; +} + +// RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings +// that can be created. +message RBACBindingConfig { + // Setting this to true will allow any ClusterRoleBinding and RoleBinding + // with subjets system:anonymous or system:unauthenticated. + optional bool enable_insecure_binding_system_unauthenticated = 1; + + // Setting this to true will allow any ClusterRoleBinding and RoleBinding + // with subjects system:authenticated. + optional bool enable_insecure_binding_system_authenticated = 2; +} + +// UserManagedKeysConfig holds the resource address to Keys which are used +// for signing certs and token that are used for communication within cluster. +message UserManagedKeysConfig { + // The Certificate Authority Service caPool to use for the cluster CA in this + // cluster. + string cluster_ca = 10 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // Resource path of the Certificate Authority Service caPool to use for the + // etcd API CA in this cluster. + string etcd_api_ca = 11 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // Resource path of the Certificate Authority Service caPool to use for the + // etcd peer CA in this cluster. + string etcd_peer_ca = 12 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // The Cloud KMS cryptoKeyVersions to use for signing service account JWTs + // issued by this cluster. + // + // Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` + repeated string service_account_signing_keys = 13 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs + // issued by this cluster. + // + // Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` + repeated string service_account_verification_keys = 14 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // The Certificate Authority Service caPool to use for the aggregation CA in + // this cluster. + string aggregation_ca = 15 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control + // plane nodes. + string control_plane_disk_encryption_key = 16 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // Resource path of the Cloud KMS cryptoKey to use for encryption of internal + // etcd backups. + string gkeops_etcd_backup_encryption_key = 17 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; +} + +// CompliancePostureConfig defines the settings needed to enable/disable +// features for the Compliance Posture. +message CompliancePostureConfig { + // Mode defines enablement mode for Compliance Posture. + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Compliance Posture features on the cluster. + DISABLED = 1; + + // Enables Compliance Posture features on the cluster. + ENABLED = 2; + } + + // Defines the details of a compliance standard. + message ComplianceStandard { + // Name of the compliance standard. + optional string standard = 1; + } + + // Defines the enablement mode for Compliance Posture. + optional Mode mode = 1; + + // List of enabled compliance standards. + repeated ComplianceStandard compliance_standards = 2; } // K8sBetaAPIConfig , configuration for beta APIs @@ -2264,7 +2462,12 @@ message ClusterUpdate { repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config + // instead. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 + [deprecated = true]; // Cluster-level autoscaling configuration. ClusterAutoscaling desired_cluster_autoscaling = 15; @@ -2297,7 +2500,11 @@ message ClusterUpdate { // [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] // for modifying other fields within // [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - PrivateClusterConfig desired_private_cluster_config = 25; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.global_access + // instead. + PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; @@ -2337,7 +2544,22 @@ message ClusterUpdate { ServiceExternalIPsConfig desired_service_external_ips_config = 60; // Enable/Disable private endpoint for the cluster's master. - optional bool desired_enable_private_endpoint = 71; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint + // instead. Note that the value of enable_public_endpoint is reversed: if + // enable_private_endpoint is false, then enable_public_endpoint will be true. + optional bool desired_enable_private_endpoint = 71 [deprecated = true]; + + // Override the default setting of whether future created + // nodes have private IP addresses only, namely + // [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + optional bool desired_default_enable_private_nodes = 72; + + // [Control plane + // endpoints][google.container.v1.Cluster.control_plane_endpoints_config] + // configuration. + ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; // The Kubernetes version to change the master to. // @@ -2421,12 +2643,25 @@ message ClusterUpdate { // Enable/Disable Cilium Clusterwide Network Policy for the cluster. optional bool desired_enable_cilium_clusterwide_network_policy = 138; + // Enable/Disable Secret Manager Config. + optional SecretManagerConfig desired_secret_manager_config = 139; + + // Enable/Disable Compliance Posture features for the cluster. + optional CompliancePostureConfig desired_compliance_posture_config = 140; + // The desired node kubelet config for the cluster. NodeKubeletConfig desired_node_kubelet_config = 141; // The desired node kubelet config for all auto-provisioned node pools // in autopilot clusters and node auto-provisioning enabled clusters. NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + + // The Custom keys configuration for the cluster. + UserManagedKeysConfig user_managed_keys_config = 143; + + // RBACBindingConfig allows user to restrict ClusterRoleBindings an + // RoleBindings that can be created. + optional RBACBindingConfig desired_rbac_binding_config = 144; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2922,6 +3157,10 @@ message UpdateNodePoolRequest { // Specifies the configuration of queued provisioning. NodePool.QueuedProvisioning queued_provisioning = 42; + + // List of Storage Pools where boot disks are provisioned. + // Existing Storage Pools will be replaced with storage-pools. + repeated string storage_pools = 43; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -3316,6 +3555,9 @@ message ServerConfig { // List of valid versions for the channel. repeated string valid_versions = 4; + + // The auto upgrade target version for clusters on the channel. + string upgrade_target_version = 5; } // Version of Kubernetes the service deploys by default. @@ -4555,6 +4797,13 @@ message NetworkConfig { // Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. optional bool enable_cilium_clusterwide_network_policy = 21; + + // Controls whether by default nodes have private IP addresses only. + // It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] + // and this field at the same time. + // To update the default setting, use + // [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] + optional bool default_enable_private_nodes = 22; } // GatewayAPIConfig contains the desired config of Gateway API on this cluster. @@ -5305,6 +5554,12 @@ message LoggingComponentConfig { // kube-controller-manager CONTROLLER_MANAGER = 5; + + // kcp-sshd + KCP_SSHD = 7; + + // kcp connection logs + KCP_CONNECTION = 8; } // Select components to collect logs. An empty set would disable all logging. @@ -5508,6 +5763,70 @@ enum StackType { IPV4_IPV6 = 2; } +// Configuration for all of the cluster's control plane endpoints. +message ControlPlaneEndpointsConfig { + // Describes the configuration of a DNS endpoint. + message DNSEndpointConfig { + // Output only. The cluster's DNS endpoint configuration. + // A DNS format address. This is accessible from the public internet. + // Ex: uid.us-central1.gke.goog. + // Always present, but the behavior may change according to the value of + // [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. + string endpoint = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Controls whether user traffic is allowed over this endpoint. Note that + // GCP-managed services may still use the endpoint even if this is false. + optional bool allow_external_traffic = 3; + } + + // IP endpoints configuration. + message IPEndpointsConfig { + // Controls whether to allow direct IP access. + optional bool enabled = 1; + + // Controls whether the control plane allows access through a public IP. + // It is invalid to specify both + // [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same + // time. + optional bool enable_public_endpoint = 2; + + // Controls whether the control plane's private endpoint is accessible from + // sources in other regions. + // It is invalid to specify both + // [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] + // and this field at the same time. + optional bool global_access = 3; + + // Configuration of authorized networks. If enabled, restricts access to the + // control plane based on source IP. + // It is invalid to specify both + // [Cluster.masterAuthorizedNetworksConfig][] and this field at the same + // time. + MasterAuthorizedNetworksConfig authorized_networks_config = 4; + + // Output only. The external IP address of this cluster's control plane. + // Only populated if enabled. + string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The internal IP address of this cluster's control plane. + // Only populated if enabled. + string private_endpoint = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Subnet to provision the master's private endpoint during cluster + // creation. Specified in projects/*/regions/*/subnetworks/* format. It is + // invalid to specify both + // [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the + // same time. + string private_endpoint_subnetwork = 7; + } + + // DNS endpoint configuration. + DNSEndpointConfig dns_endpoint_config = 1; + + // IP endpoints configuration. + IPEndpointsConfig ip_endpoints_config = 3; +} + // Possible values for IPv6 access type enum IPv6AccessType { // Default value, will be defaulted as type external. @@ -5594,10 +5913,16 @@ message EnterpriseConfig { ENTERPRISE = 2; } - // Output only. cluster_tier specifies the premium tier of the cluster. + // Output only. cluster_tier indicates the effective tier of the cluster. ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// SecretManagerConfig is config for secret manager enablement. +message SecretManagerConfig { + // Enable/Disable Secret Manager Config. + optional bool enabled = 1; +} + // SecondaryBootDisk represents a persistent disk attached to a node // with special configurations based on its mode. message SecondaryBootDisk { diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index efd40106b1a1..000000000000 --- a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1.samples; - -// [START container_v1_generated_ClusterManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.container.v1.ClusterManagerClient; -import com.google.cloud.container.v1.ClusterManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterManagerSettings clusterManagerSettings = - ClusterManagerSettings.newHttpJsonBuilder().build(); - ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); - } -} -// [END container_v1_generated_ClusterManager_Create_SetCredentialsProvider1_sync] diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateUseHttpJsonTransport.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..81d0b6819596 --- /dev/null +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1.samples; + +// [START container_v1_generated_ClusterManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.container.v1.ClusterManagerClient; +import com.google.cloud.container.v1.ClusterManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ClusterManagerSettings clusterManagerSettings = + ClusterManagerSettings.newHttpJsonBuilder().build(); + ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); + } +} +// [END container_v1_generated_ClusterManager_Create_UseHttpJsonTransport_sync] diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java index d8737a870d4e..4a1a877dd357 100644 --- a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java @@ -87,6 +87,7 @@ public static void asyncUpdateNodePool() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); ApiFuture future = clusterManagerClient.updateNodePoolCallable().futureCall(request); diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java index 73e21cc002b8..eb710d52cb57 100644 --- a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java @@ -86,6 +86,7 @@ public static void syncUpdateNodePool() throws Exception { .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .addAllStoragePools(new ArrayList()) .build(); Operation response = clusterManagerClient.updateNodePool(request); } diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 20a61967dc4d..a74664acfe8a 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1/reflect-config.json b/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1/reflect-config.json index 13d07e5d6869..ad2addc012fc 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1/reflect-config.json +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest", "queryAllDeclaredConstructors": true, diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1beta1/reflect-config.json b/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1beta1/reflect-config.json index 0ac00ad3558e..612122449dac 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1beta1/reflect-config.json +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/resources/META-INF/native-image/com.google.cloud.devtools.containeranalysis.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.containeranalysis.v1beta1.ExportSBOMRequest", "queryAllDeclaredConstructors": true, diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index f29e8a93a9b1..f381653883dc 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.48.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json index 73c3b91d8064..20e85991e38a 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/resources/META-INF/native-image/com.google.cloud.contentwarehouse.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.contentwarehouse.v1.AccessControlAction", "queryAllDeclaredConstructors": true, diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5ffeeaf57807..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_DocumentLinkService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClient; -import com.google.cloud.contentwarehouse.v1.DocumentLinkServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentLinkServiceSettings documentLinkServiceSettings = - DocumentLinkServiceSettings.newHttpJsonBuilder().build(); - DocumentLinkServiceClient documentLinkServiceClient = - DocumentLinkServiceClient.create(documentLinkServiceSettings); - } -} -// [END contentwarehouse_v1_generated_DocumentLinkService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..49b5086b5782 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentlinkservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_DocumentLinkService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClient; +import com.google.cloud.contentwarehouse.v1.DocumentLinkServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentLinkServiceSettings documentLinkServiceSettings = + DocumentLinkServiceSettings.newHttpJsonBuilder().build(); + DocumentLinkServiceClient documentLinkServiceClient = + DocumentLinkServiceClient.create(documentLinkServiceSettings); + } +} +// [END contentwarehouse_v1_generated_DocumentLinkService_Create_UseHttpJsonTransport_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d41017aaa5dd..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_DocumentSchemaService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient; -import com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentSchemaServiceSettings documentSchemaServiceSettings = - DocumentSchemaServiceSettings.newHttpJsonBuilder().build(); - DocumentSchemaServiceClient documentSchemaServiceClient = - DocumentSchemaServiceClient.create(documentSchemaServiceSettings); - } -} -// [END contentwarehouse_v1_generated_DocumentSchemaService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b551bacbf966 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentschemaservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_DocumentSchemaService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient; +import com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentSchemaServiceSettings documentSchemaServiceSettings = + DocumentSchemaServiceSettings.newHttpJsonBuilder().build(); + DocumentSchemaServiceClient documentSchemaServiceClient = + DocumentSchemaServiceClient.create(documentSchemaServiceSettings); + } +} +// [END contentwarehouse_v1_generated_DocumentSchemaService_Create_UseHttpJsonTransport_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6d25c4e7af1e..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_DocumentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.DocumentServiceClient; -import com.google.cloud.contentwarehouse.v1.DocumentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentServiceSettings documentServiceSettings = - DocumentServiceSettings.newHttpJsonBuilder().build(); - DocumentServiceClient documentServiceClient = - DocumentServiceClient.create(documentServiceSettings); - } -} -// [END contentwarehouse_v1_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0fd92a45a171 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_DocumentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.DocumentServiceClient; +import com.google.cloud.contentwarehouse.v1.DocumentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END contentwarehouse_v1_generated_DocumentService_Create_UseHttpJsonTransport_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 23e0ea08a318..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_PipelineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.PipelineServiceClient; -import com.google.cloud.contentwarehouse.v1.PipelineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PipelineServiceSettings pipelineServiceSettings = - PipelineServiceSettings.newHttpJsonBuilder().build(); - PipelineServiceClient pipelineServiceClient = - PipelineServiceClient.create(pipelineServiceSettings); - } -} -// [END contentwarehouse_v1_generated_PipelineService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..80a2ccdfb105 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/pipelineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_PipelineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.PipelineServiceClient; +import com.google.cloud.contentwarehouse.v1.PipelineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PipelineServiceSettings pipelineServiceSettings = + PipelineServiceSettings.newHttpJsonBuilder().build(); + PipelineServiceClient pipelineServiceClient = + PipelineServiceClient.create(pipelineServiceSettings); + } +} +// [END contentwarehouse_v1_generated_PipelineService_Create_UseHttpJsonTransport_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4cc184151bd9..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_RuleSetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.RuleSetServiceClient; -import com.google.cloud.contentwarehouse.v1.RuleSetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RuleSetServiceSettings ruleSetServiceSettings = - RuleSetServiceSettings.newHttpJsonBuilder().build(); - RuleSetServiceClient ruleSetServiceClient = RuleSetServiceClient.create(ruleSetServiceSettings); - } -} -// [END contentwarehouse_v1_generated_RuleSetService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..564929c871b0 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/rulesetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_RuleSetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.RuleSetServiceClient; +import com.google.cloud.contentwarehouse.v1.RuleSetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleSetServiceSettings ruleSetServiceSettings = + RuleSetServiceSettings.newHttpJsonBuilder().build(); + RuleSetServiceClient ruleSetServiceClient = RuleSetServiceClient.create(ruleSetServiceSettings); + } +} +// [END contentwarehouse_v1_generated_RuleSetService_Create_UseHttpJsonTransport_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5a1dd4e4cef2..000000000000 --- a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.contentwarehouse.v1.samples; - -// [START contentwarehouse_v1_generated_SynonymSetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.contentwarehouse.v1.SynonymSetServiceClient; -import com.google.cloud.contentwarehouse.v1.SynonymSetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SynonymSetServiceSettings synonymSetServiceSettings = - SynonymSetServiceSettings.newHttpJsonBuilder().build(); - SynonymSetServiceClient synonymSetServiceClient = - SynonymSetServiceClient.create(synonymSetServiceSettings); - } -} -// [END contentwarehouse_v1_generated_SynonymSetService_Create_SetCredentialsProvider1_sync] diff --git a/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateUseHttpJsonTransport.java b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..699e77993e67 --- /dev/null +++ b/java-contentwarehouse/samples/snippets/generated/com/google/cloud/contentwarehouse/v1/synonymsetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contentwarehouse.v1.samples; + +// [START contentwarehouse_v1_generated_SynonymSetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.contentwarehouse.v1.SynonymSetServiceClient; +import com.google.cloud.contentwarehouse.v1.SynonymSetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SynonymSetServiceSettings synonymSetServiceSettings = + SynonymSetServiceSettings.newHttpJsonBuilder().build(); + SynonymSetServiceClient synonymSetServiceClient = + SynonymSetServiceClient.create(synonymSetServiceSettings); + } +} +// [END contentwarehouse_v1_generated_SynonymSetService_Create_UseHttpJsonTransport_sync] diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 789f2dfac345..8d856b19fb61 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1/reflect-config.json b/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1/reflect-config.json index 359e42ae457e..52d251afe5f1 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1/reflect-config.json +++ b/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datafusion.v1.Accelerator", "queryAllDeclaredConstructors": true, diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1beta1/reflect-config.json b/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1beta1/reflect-config.json index 849273e7e981..559577fb5873 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1beta1/reflect-config.json +++ b/java-data-fusion/google-cloud-data-fusion/src/main/resources/META-INF/native-image/com.google.cloud.datafusion.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datafusion.v1beta1.Accelerator", "queryAllDeclaredConstructors": true, diff --git a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateSetCredentialsProvider1.java b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 329ad509f373..000000000000 --- a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datafusion.v1.samples; - -// [START datafusion_v1_generated_DataFusion_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datafusion.v1.DataFusionClient; -import com.google.cloud.datafusion.v1.DataFusionSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataFusionSettings dataFusionSettings = DataFusionSettings.newHttpJsonBuilder().build(); - DataFusionClient dataFusionClient = DataFusionClient.create(dataFusionSettings); - } -} -// [END datafusion_v1_generated_DataFusion_Create_SetCredentialsProvider1_sync] diff --git a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateUseHttpJsonTransport.java b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..947ddc601a8e --- /dev/null +++ b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1/datafusion/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datafusion.v1.samples; + +// [START datafusion_v1_generated_DataFusion_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datafusion.v1.DataFusionClient; +import com.google.cloud.datafusion.v1.DataFusionSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataFusionSettings dataFusionSettings = DataFusionSettings.newHttpJsonBuilder().build(); + DataFusionClient dataFusionClient = DataFusionClient.create(dataFusionSettings); + } +} +// [END datafusion_v1_generated_DataFusion_Create_UseHttpJsonTransport_sync] diff --git a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateSetCredentialsProvider1.java b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d2e30310bb30..000000000000 --- a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datafusion.v1beta1.samples; - -// [START datafusion_v1beta1_generated_DataFusion_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datafusion.v1beta1.DataFusionClient; -import com.google.cloud.datafusion.v1beta1.DataFusionSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataFusionSettings dataFusionSettings = DataFusionSettings.newHttpJsonBuilder().build(); - DataFusionClient dataFusionClient = DataFusionClient.create(dataFusionSettings); - } -} -// [END datafusion_v1beta1_generated_DataFusion_Create_SetCredentialsProvider1_sync] diff --git a/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateUseHttpJsonTransport.java b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dd66a997f50a --- /dev/null +++ b/java-data-fusion/samples/snippets/generated/com/google/cloud/datafusion/v1beta1/datafusion/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datafusion.v1beta1.samples; + +// [START datafusion_v1beta1_generated_DataFusion_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datafusion.v1beta1.DataFusionClient; +import com.google.cloud.datafusion.v1beta1.DataFusionSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataFusionSettings dataFusionSettings = DataFusionSettings.newHttpJsonBuilder().build(); + DataFusionClient dataFusionClient = DataFusionClient.create(dataFusionSettings); + } +} +// [END datafusion_v1beta1_generated_DataFusion_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 932bda059baa..c3068dbeb39f 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.58.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json index fcc35c259084..fb83433101dc 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json +++ b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.BigQueryConnectionSpec", "queryAllDeclaredConstructors": true, diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json index b28c19b4ca39..6e58f405ee4a 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json +++ b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec", "queryAllDeclaredConstructors": true, diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b44f0e091713..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DataCatalogSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1_generated_DataCatalog_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..76a8a311e781 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DataCatalogSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); + DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); + } +} +// [END datacatalog_v1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a59f380ac0f4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newHttpJsonBuilder().build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManager_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8b2a81221c2b --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; +import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyTagManagerSettings policyTagManagerSettings = + PolicyTagManagerSettings.newHttpJsonBuilder().build(); + PolicyTagManagerClient policyTagManagerClient = + PolicyTagManagerClient.create(policyTagManagerSettings); + } +} +// [END datacatalog_v1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 54e654c66d90..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e2389514c50e --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; +import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = + PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); + PolicyTagManagerSerializationClient policyTagManagerSerializationClient = + PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); + } +} +// [END datacatalog_v1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b3ad9f63f70e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d105d08de0f3 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1beta1.samples; + +// [START datacatalog_v1beta1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); + DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); + } +} +// [END datacatalog_v1beta1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 89b909887f62..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newHttpJsonBuilder().build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..196465e9df67 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1beta1.samples; + +// [START datacatalog_v1beta1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; +import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyTagManagerSettings policyTagManagerSettings = + PolicyTagManagerSettings.newHttpJsonBuilder().build(); + PolicyTagManagerClient policyTagManagerClient = + PolicyTagManagerClient.create(policyTagManagerSettings); + } +} +// [END datacatalog_v1beta1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 879635ec73cd..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider1_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..385da36bf6ab --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.v1beta1.samples; + +// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; +import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = + PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); + PolicyTagManagerSerializationClient policyTagManagerSerializationClient = + PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); + } +} +// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 51665c6369a4..7b4ba34dd33b 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.56.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/google-cloud-dataflow/src/main/resources/META-INF/native-image/com.google.dataflow.v1beta3/reflect-config.json b/java-dataflow/google-cloud-dataflow/src/main/resources/META-INF/native-image/com.google.dataflow.v1beta3/reflect-config.json index bef5a4339801..817e7ea00ee6 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/resources/META-INF/native-image/com.google.dataflow.v1beta3/reflect-config.json +++ b/java-dataflow/google-cloud-dataflow/src/main/resources/META-INF/native-image/com.google.dataflow.v1beta3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.dataflow.v1beta3.AutoscalingAlgorithm", "queryAllDeclaredConstructors": true, diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ba1736cad199..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_FlexTemplatesService_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.FlexTemplatesServiceClient; -import com.google.dataflow.v1beta3.FlexTemplatesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FlexTemplatesServiceSettings flexTemplatesServiceSettings = - FlexTemplatesServiceSettings.newHttpJsonBuilder().build(); - FlexTemplatesServiceClient flexTemplatesServiceClient = - FlexTemplatesServiceClient.create(flexTemplatesServiceSettings); - } -} -// [END dataflow_v1beta3_generated_FlexTemplatesService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4120877d7543 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/flextemplatesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_FlexTemplatesService_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.FlexTemplatesServiceClient; +import com.google.dataflow.v1beta3.FlexTemplatesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FlexTemplatesServiceSettings flexTemplatesServiceSettings = + FlexTemplatesServiceSettings.newHttpJsonBuilder().build(); + FlexTemplatesServiceClient flexTemplatesServiceClient = + FlexTemplatesServiceClient.create(flexTemplatesServiceSettings); + } +} +// [END dataflow_v1beta3_generated_FlexTemplatesService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ef57f1ba18d9..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_JobsV1Beta3_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.JobsV1Beta3Client; -import com.google.dataflow.v1beta3.JobsV1Beta3Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobsV1Beta3Settings jobsV1Beta3Settings = JobsV1Beta3Settings.newHttpJsonBuilder().build(); - JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create(jobsV1Beta3Settings); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b9b5ef6b8132 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/jobsv1beta3/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_JobsV1Beta3_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.JobsV1Beta3Client; +import com.google.dataflow.v1beta3.JobsV1Beta3Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsV1Beta3Settings jobsV1Beta3Settings = JobsV1Beta3Settings.newHttpJsonBuilder().build(); + JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create(jobsV1Beta3Settings); + } +} +// [END dataflow_v1beta3_generated_JobsV1Beta3_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a63ab3735967..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_MessagesV1Beta3_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.MessagesV1Beta3Client; -import com.google.dataflow.v1beta3.MessagesV1Beta3Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MessagesV1Beta3Settings messagesV1Beta3Settings = - MessagesV1Beta3Settings.newHttpJsonBuilder().build(); - MessagesV1Beta3Client messagesV1Beta3Client = - MessagesV1Beta3Client.create(messagesV1Beta3Settings); - } -} -// [END dataflow_v1beta3_generated_MessagesV1Beta3_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..09e5eb4a8295 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/messagesv1beta3/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_MessagesV1Beta3_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.MessagesV1Beta3Client; +import com.google.dataflow.v1beta3.MessagesV1Beta3Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagesV1Beta3Settings messagesV1Beta3Settings = + MessagesV1Beta3Settings.newHttpJsonBuilder().build(); + MessagesV1Beta3Client messagesV1Beta3Client = + MessagesV1Beta3Client.create(messagesV1Beta3Settings); + } +} +// [END dataflow_v1beta3_generated_MessagesV1Beta3_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index deb1a91ebc94..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_MetricsV1Beta3_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.MetricsV1Beta3Client; -import com.google.dataflow.v1beta3.MetricsV1Beta3Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MetricsV1Beta3Settings metricsV1Beta3Settings = - MetricsV1Beta3Settings.newHttpJsonBuilder().build(); - MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create(metricsV1Beta3Settings); - } -} -// [END dataflow_v1beta3_generated_MetricsV1Beta3_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a1a0ecfc8644 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/metricsv1beta3/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_MetricsV1Beta3_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.MetricsV1Beta3Client; +import com.google.dataflow.v1beta3.MetricsV1Beta3Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MetricsV1Beta3Settings metricsV1Beta3Settings = + MetricsV1Beta3Settings.newHttpJsonBuilder().build(); + MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create(metricsV1Beta3Settings); + } +} +// [END dataflow_v1beta3_generated_MetricsV1Beta3_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0b9ec6acf0bd..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_SnapshotsV1Beta3_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.SnapshotsV1Beta3Client; -import com.google.dataflow.v1beta3.SnapshotsV1Beta3Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = - SnapshotsV1Beta3Settings.newHttpJsonBuilder().build(); - SnapshotsV1Beta3Client snapshotsV1Beta3Client = - SnapshotsV1Beta3Client.create(snapshotsV1Beta3Settings); - } -} -// [END dataflow_v1beta3_generated_SnapshotsV1Beta3_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e3147cf56285 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/snapshotsv1beta3/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_SnapshotsV1Beta3_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.SnapshotsV1Beta3Client; +import com.google.dataflow.v1beta3.SnapshotsV1Beta3Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = + SnapshotsV1Beta3Settings.newHttpJsonBuilder().build(); + SnapshotsV1Beta3Client snapshotsV1Beta3Client = + SnapshotsV1Beta3Client.create(snapshotsV1Beta3Settings); + } +} +// [END dataflow_v1beta3_generated_SnapshotsV1Beta3_Create_UseHttpJsonTransport_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a4eede3e8fbe..000000000000 --- a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.dataflow.v1beta3.samples; - -// [START dataflow_v1beta3_generated_TemplatesService_Create_SetCredentialsProvider1_sync] -import com.google.dataflow.v1beta3.TemplatesServiceClient; -import com.google.dataflow.v1beta3.TemplatesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TemplatesServiceSettings templatesServiceSettings = - TemplatesServiceSettings.newHttpJsonBuilder().build(); - TemplatesServiceClient templatesServiceClient = - TemplatesServiceClient.create(templatesServiceSettings); - } -} -// [END dataflow_v1beta3_generated_TemplatesService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a0e37e5f8744 --- /dev/null +++ b/java-dataflow/samples/snippets/generated/com/google/dataflow/v1beta3/templatesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.dataflow.v1beta3.samples; + +// [START dataflow_v1beta3_generated_TemplatesService_Create_UseHttpJsonTransport_sync] +import com.google.dataflow.v1beta3.TemplatesServiceClient; +import com.google.dataflow.v1beta3.TemplatesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TemplatesServiceSettings templatesServiceSettings = + TemplatesServiceSettings.newHttpJsonBuilder().build(); + TemplatesServiceClient templatesServiceClient = + TemplatesServiceClient.create(templatesServiceSettings); + } +} +// [END dataflow_v1beta3_generated_TemplatesService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataform/README.md b/java-dataform/README.md index c1d62909680d..0d12a35e0739 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.51.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1alpha2/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1alpha2/reflect-config.json index f2bde0e73a28..4344be0854f0 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1alpha2/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1alpha2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 6d7edf933cab..87fa263d9d1c 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateSetCredentialsProvider1.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 47313de8cf13..000000000000 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataform.v1alpha2.samples; - -// [START dataform_v1alpha2_generated_Dataform_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataform.v1alpha2.DataformClient; -import com.google.cloud.dataform.v1alpha2.DataformSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataformSettings dataformSettings = DataformSettings.newHttpJsonBuilder().build(); - DataformClient dataformClient = DataformClient.create(dataformSettings); - } -} -// [END dataform_v1alpha2_generated_Dataform_Create_SetCredentialsProvider1_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateUseHttpJsonTransport.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..757f19f60d39 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1alpha2/dataform/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1alpha2.samples; + +// [START dataform_v1alpha2_generated_Dataform_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataform.v1alpha2.DataformClient; +import com.google.cloud.dataform.v1alpha2.DataformSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformSettings dataformSettings = DataformSettings.newHttpJsonBuilder().build(); + DataformClient dataformClient = DataformClient.create(dataformSettings); + } +} +// [END dataform_v1alpha2_generated_Dataform_Create_UseHttpJsonTransport_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateSetCredentialsProvider1.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d29abb41c6f9..000000000000 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataform.v1beta1.samples; - -// [START dataform_v1beta1_generated_Dataform_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.DataformSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataformSettings dataformSettings = DataformSettings.newHttpJsonBuilder().build(); - DataformClient dataformClient = DataformClient.create(dataformSettings); - } -} -// [END dataform_v1beta1_generated_Dataform_Create_SetCredentialsProvider1_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateUseHttpJsonTransport.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ad05e5ff8df1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DataformSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformSettings dataformSettings = DataformSettings.newHttpJsonBuilder().build(); + DataformClient dataformClient = DataformClient.create(dataformSettings); + } +} +// [END dataform_v1beta1_generated_Dataform_Create_UseHttpJsonTransport_sync] diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index e2d099f2a045..fdeae586c88c 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.172.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.171.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.172.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/resources/META-INF/native-image/com.google.cloud.datalabeling.v1beta1/reflect-config.json b/java-datalabeling/google-cloud-datalabeling/src/main/resources/META-INF/native-image/com.google.cloud.datalabeling.v1beta1/reflect-config.json index 0888f015d14c..5152f7be8cc7 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/resources/META-INF/native-image/com.google.cloud.datalabeling.v1beta1/reflect-config.json +++ b/java-datalabeling/google-cloud-datalabeling/src/main/resources/META-INF/native-image/com.google.cloud.datalabeling.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datalabeling.v1beta1.AnnotatedDataset", "queryAllDeclaredConstructors": true, diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 7ff870938aba..fe695d27bf1e 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.44.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json b/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json index dddb94ce60f3..1e6ccd179c0a 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json +++ b/java-datalineage/google-cloud-datalineage/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.lineage.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateSetCredentialsProvider1.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index faaca74bbb9d..000000000000 --- a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.lineage.v1.samples; - -// [START datalineage_v1_generated_Lineage_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datacatalog.lineage.v1.LineageClient; -import com.google.cloud.datacatalog.lineage.v1.LineageSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LineageSettings lineageSettings = LineageSettings.newHttpJsonBuilder().build(); - LineageClient lineageClient = LineageClient.create(lineageSettings); - } -} -// [END datalineage_v1_generated_Lineage_Create_SetCredentialsProvider1_sync] diff --git a/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateUseHttpJsonTransport.java b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ae8c2c20b215 --- /dev/null +++ b/java-datalineage/samples/snippets/generated/com/google/cloud/datacatalog/lineage/v1/lineage/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datacatalog.lineage.v1.samples; + +// [START datalineage_v1_generated_Lineage_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datacatalog.lineage.v1.LineageClient; +import com.google.cloud.datacatalog.lineage.v1.LineageSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LineageSettings lineageSettings = LineageSettings.newHttpJsonBuilder().build(); + LineageClient lineageClient = LineageClient.create(lineageSettings); + } +} +// [END datalineage_v1_generated_Lineage_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 4cdf7656a802..62686980c1d2 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json index 4832cd15be22..c6b6971abda8 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json +++ b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.Action", "queryAllDeclaredConstructors": true, diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e1c4f813aed6..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_CatalogService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.CatalogServiceClient; -import com.google.cloud.dataplex.v1.CatalogServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CatalogServiceSettings catalogServiceSettings = - CatalogServiceSettings.newHttpJsonBuilder().build(); - CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); - } -} -// [END dataplex_v1_generated_CatalogService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d24eb280ec3e --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_CatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.CatalogServiceClient; +import com.google.cloud.dataplex.v1.CatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newHttpJsonBuilder().build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END dataplex_v1_generated_CatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 93f9cc0d7397..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_ContentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.ContentServiceClient; -import com.google.cloud.dataplex.v1.ContentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ContentServiceSettings contentServiceSettings = - ContentServiceSettings.newHttpJsonBuilder().build(); - ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings); - } -} -// [END dataplex_v1_generated_ContentService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..963f17bff0a0 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/contentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_ContentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.ContentServiceClient; +import com.google.cloud.dataplex.v1.ContentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ContentServiceSettings contentServiceSettings = + ContentServiceSettings.newHttpJsonBuilder().build(); + ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings); + } +} +// [END dataplex_v1_generated_ContentService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5993fa2270ca..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_DataplexService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.DataplexServiceClient; -import com.google.cloud.dataplex.v1.DataplexServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataplexServiceSettings dataplexServiceSettings = - DataplexServiceSettings.newHttpJsonBuilder().build(); - DataplexServiceClient dataplexServiceClient = - DataplexServiceClient.create(dataplexServiceSettings); - } -} -// [END dataplex_v1_generated_DataplexService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f8292726d700 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/dataplexservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataplexService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.DataplexServiceClient; +import com.google.cloud.dataplex.v1.DataplexServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataplexServiceSettings dataplexServiceSettings = + DataplexServiceSettings.newHttpJsonBuilder().build(); + DataplexServiceClient dataplexServiceClient = + DataplexServiceClient.create(dataplexServiceSettings); + } +} +// [END dataplex_v1_generated_DataplexService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 593f2e908a96..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.DataScanServiceClient; -import com.google.cloud.dataplex.v1.DataScanServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataScanServiceSettings dataScanServiceSettings = - DataScanServiceSettings.newHttpJsonBuilder().build(); - DataScanServiceClient dataScanServiceClient = - DataScanServiceClient.create(dataScanServiceSettings); - } -} -// [END dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3fa8d67467ab --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DataScanServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceSettings dataScanServiceSettings = + DataScanServiceSettings.newHttpJsonBuilder().build(); + DataScanServiceClient dataScanServiceClient = + DataScanServiceClient.create(dataScanServiceSettings); + } +} +// [END dataplex_v1_generated_DataScanService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f366ea9eecb0..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_DataTaxonomyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.DataTaxonomyServiceClient; -import com.google.cloud.dataplex.v1.DataTaxonomyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataTaxonomyServiceSettings dataTaxonomyServiceSettings = - DataTaxonomyServiceSettings.newHttpJsonBuilder().build(); - DataTaxonomyServiceClient dataTaxonomyServiceClient = - DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings); - } -} -// [END dataplex_v1_generated_DataTaxonomyService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ff2454b1a10c --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datataxonomyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataTaxonomyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.DataTaxonomyServiceClient; +import com.google.cloud.dataplex.v1.DataTaxonomyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTaxonomyServiceSettings dataTaxonomyServiceSettings = + DataTaxonomyServiceSettings.newHttpJsonBuilder().build(); + DataTaxonomyServiceClient dataTaxonomyServiceClient = + DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings); + } +} +// [END dataplex_v1_generated_DataTaxonomyService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5915eaa6eec6..000000000000 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataplex.v1.samples; - -// [START dataplex_v1_generated_MetadataService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataplex.v1.MetadataServiceClient; -import com.google.cloud.dataplex.v1.MetadataServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MetadataServiceSettings metadataServiceSettings = - MetadataServiceSettings.newHttpJsonBuilder().build(); - MetadataServiceClient metadataServiceClient = - MetadataServiceClient.create(metadataServiceSettings); - } -} -// [END dataplex_v1_generated_MetadataService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b0ee33de595a --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/metadataservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_MetadataService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataplex.v1.MetadataServiceClient; +import com.google.cloud.dataplex.v1.MetadataServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MetadataServiceSettings metadataServiceSettings = + MetadataServiceSettings.newHttpJsonBuilder().build(); + MetadataServiceClient metadataServiceClient = + MetadataServiceClient.create(metadataServiceSettings); + } +} +// [END dataplex_v1_generated_MetadataService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 363d83ec1016..632bf586bba9 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1/reflect-config.json b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1/reflect-config.json index a56ead4bc6b1..6e68fc1e17a8 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1/reflect-config.json +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1alpha/reflect-config.json b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1alpha/reflect-config.json index 674d3dec8eb3..6a17fcf3a927 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1alpha/reflect-config.json +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1beta/reflect-config.json b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1beta/reflect-config.json index fd52d7bedcf0..ed21050c0963 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1beta/reflect-config.json +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/resources/META-INF/native-image/com.google.cloud.metastore.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 14d34bfcba54..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1.samples; - -// [START metastore_v1_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1.DataprocMetastoreClient; -import com.google.cloud.metastore.v1.DataprocMetastoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreSettings dataprocMetastoreSettings = - DataprocMetastoreSettings.newHttpJsonBuilder().build(); - DataprocMetastoreClient dataprocMetastoreClient = - DataprocMetastoreClient.create(dataprocMetastoreSettings); - } -} -// [END metastore_v1_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3641553da1b3 --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1.samples; + +// [START metastore_v1_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1.DataprocMetastoreClient; +import com.google.cloud.metastore.v1.DataprocMetastoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreSettings dataprocMetastoreSettings = + DataprocMetastoreSettings.newHttpJsonBuilder().build(); + DataprocMetastoreClient dataprocMetastoreClient = + DataprocMetastoreClient.create(dataprocMetastoreSettings); + } +} +// [END metastore_v1_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 58803b151fa4..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1.samples; - -// [START metastore_v1_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1.DataprocMetastoreFederationClient; -import com.google.cloud.metastore.v1.DataprocMetastoreFederationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = - DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); - DataprocMetastoreFederationClient dataprocMetastoreFederationClient = - DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); - } -} -// [END metastore_v1_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1f6a5faccc79 --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1.samples; + +// [START metastore_v1_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1.DataprocMetastoreFederationClient; +import com.google.cloud.metastore.v1.DataprocMetastoreFederationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = + DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = + DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); + } +} +// [END metastore_v1_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3dbf73e4729d..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1alpha.samples; - -// [START metastore_v1alpha_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1alpha.DataprocMetastoreClient; -import com.google.cloud.metastore.v1alpha.DataprocMetastoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreSettings dataprocMetastoreSettings = - DataprocMetastoreSettings.newHttpJsonBuilder().build(); - DataprocMetastoreClient dataprocMetastoreClient = - DataprocMetastoreClient.create(dataprocMetastoreSettings); - } -} -// [END metastore_v1alpha_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3a19b75ade2f --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1alpha.samples; + +// [START metastore_v1alpha_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1alpha.DataprocMetastoreClient; +import com.google.cloud.metastore.v1alpha.DataprocMetastoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreSettings dataprocMetastoreSettings = + DataprocMetastoreSettings.newHttpJsonBuilder().build(); + DataprocMetastoreClient dataprocMetastoreClient = + DataprocMetastoreClient.create(dataprocMetastoreSettings); + } +} +// [END metastore_v1alpha_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 47a0dcecf766..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1alpha.samples; - -// [START metastore_v1alpha_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient; -import com.google.cloud.metastore.v1alpha.DataprocMetastoreFederationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = - DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); - DataprocMetastoreFederationClient dataprocMetastoreFederationClient = - DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); - } -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..128e84b1d752 --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1alpha/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1alpha.samples; + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient; +import com.google.cloud.metastore.v1alpha.DataprocMetastoreFederationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = + DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = + DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); + } +} +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4408eaaaff2d..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1beta.samples; - -// [START metastore_v1beta_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1beta.DataprocMetastoreClient; -import com.google.cloud.metastore.v1beta.DataprocMetastoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreSettings dataprocMetastoreSettings = - DataprocMetastoreSettings.newHttpJsonBuilder().build(); - DataprocMetastoreClient dataprocMetastoreClient = - DataprocMetastoreClient.create(dataprocMetastoreSettings); - } -} -// [END metastore_v1beta_generated_DataprocMetastore_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4c1306bacff6 --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1beta.samples; + +// [START metastore_v1beta_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1beta.DataprocMetastoreClient; +import com.google.cloud.metastore.v1beta.DataprocMetastoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreSettings dataprocMetastoreSettings = + DataprocMetastoreSettings.newHttpJsonBuilder().build(); + DataprocMetastoreClient dataprocMetastoreClient = + DataprocMetastoreClient.create(dataprocMetastoreSettings); + } +} +// [END metastore_v1beta_generated_DataprocMetastore_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e169307f2788..000000000000 --- a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.metastore.v1beta.samples; - -// [START metastore_v1beta_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.metastore.v1beta.DataprocMetastoreFederationClient; -import com.google.cloud.metastore.v1beta.DataprocMetastoreFederationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = - DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); - DataprocMetastoreFederationClient dataprocMetastoreFederationClient = - DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); - } -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c7c6a448e67e --- /dev/null +++ b/java-dataproc-metastore/samples/snippets/generated/com/google/cloud/metastore/v1beta/dataprocmetastorefederation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.metastore.v1beta.samples; + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.metastore.v1beta.DataprocMetastoreFederationClient; +import com.google.cloud.metastore.v1beta.DataprocMetastoreFederationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataprocMetastoreFederationSettings dataprocMetastoreFederationSettings = + DataprocMetastoreFederationSettings.newHttpJsonBuilder().build(); + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = + DataprocMetastoreFederationClient.create(dataprocMetastoreFederationSettings); + } +} +// [END metastore_v1beta_generated_DataprocMetastoreFederation_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 4e20fde2d13f..e65e957656fe 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 87f78d4f9586..51399acbf78f 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.AcceleratorConfig", "queryAllDeclaredConstructors": true, @@ -1709,6 +1727,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy$ProvisioningModelMix", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy$ProvisioningModelMix$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index ba5ca3e06c0f..553b502ea0b5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -104,6 +104,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -383,216 +387,228 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GroupConfig\022#\n\026instance_template_name\030\001 " + "\001(\tB\003\340A\003\022(\n\033instance_group_manager_name\030" + "\002 \001(\tB\003\340A\003\022\'\n\032instance_group_manager_uri" - + "\030\003 \001(\tB\003\340A\003\"\267\003\n\031InstanceFlexibilityPolic" - + "y\022k\n\027instance_selection_list\030\002 \003(\0132E.goo" - + "gle.cloud.dataproc.v1.InstanceFlexibilit" - + "yPolicy.InstanceSelectionB\003\340A\001\022t\n\032instan" - + "ce_selection_results\030\003 \003(\0132K.google.clou" - + "d.dataproc.v1.InstanceFlexibilityPolicy." - + "InstanceSelectionResultB\003\340A\003\032B\n\021Instance" - + "Selection\022\032\n\rmachine_types\030\001 \003(\tB\003\340A\001\022\021\n" - + "\004rank\030\002 \001(\005B\003\340A\001\032s\n\027InstanceSelectionRes" - + "ult\022\036\n\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n\010v" - + "m_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r_machine_type" - + "B\013\n\t_vm_count\"L\n\021AcceleratorConfig\022\034\n\024ac" - + "celerator_type_uri\030\001 \001(\t\022\031\n\021accelerator_" - + "count\030\002 \001(\005\"\210\001\n\nDiskConfig\022\033\n\016boot_disk_" - + "type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_disk_size_gb\030\001 \001" - + "(\005B\003\340A\001\022\033\n\016num_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023" - + "local_ssd_interface\030\004 \001(\tB\003\340A\001\"n\n\022Auxili" - + "aryNodeGroup\022<\n\nnode_group\030\001 \001(\0132#.googl" - + "e.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\rno" - + "de_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n\tNodeGroup\022\014\n\004" - + "name\030\001 \001(\t\022<\n\005roles\030\002 \003(\0162(.google.cloud" - + ".dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n\021node" - + "_group_config\030\003 \001(\0132-.google.cloud.datap" - + "roc.v1.InstanceGroupConfigB\003\340A\001\022D\n\006label" - + "s\030\004 \003(\0132/.google.cloud.dataproc.v1.NodeG" - + "roup.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"(\n\004Role\022\024\n\020" - + "ROLE_UNSPECIFIED\020\000\022\n\n\006DRIVER\020\001:v\352As\n!dat" - + "aproc.googleapis.com/NodeGroup\022Nprojects" - + "/{project}/regions/{region}/clusters/{cl" - + "uster}/nodeGroups/{node_group}\"s\n\030NodeIn" - + "itializationAction\022\034\n\017executable_file\030\001 " - + "\001(\tB\003\340A\002\0229\n\021execution_timeout\030\002 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\001\"\326\003\n\rClusterS" - + "tatus\022A\n\005state\030\001 \001(\0162-.google.cloud.data" - + "proc.v1.ClusterStatus.StateB\003\340A\003\022\026\n\006deta" - + "il\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n\010s" - + "ubstate\030\004 \001(\01620.google.cloud.dataproc.v1" - + ".ClusterStatus.SubstateB\003\340A\003\"\247\001\n\005State\022\013" - + "\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t" - + "\n\005ERROR\020\003\022\027\n\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DE" - + "LETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007" - + "STOPPED\020\007\022\014\n\010STARTING\020\010\022\r\n\tREPAIRING\020\n\"<" - + "\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHEALTHY" - + "\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016SecurityConfig\022" - + "F\n\017kerberos_config\030\001 \001(\0132(.google.cloud." - + "dataproc.v1.KerberosConfigB\003\340A\001\022F\n\017ident" - + "ity_config\030\002 \001(\0132(.google.cloud.dataproc" - + ".v1.IdentityConfigB\003\340A\001\"\220\004\n\016KerberosConf" - + "ig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n\033root" - + "_principal_password_uri\030\002 \001(\tB\003\340A\001\022\030\n\013km" - + "s_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001" - + "(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025" - + "keystore_password_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_" - + "password_uri\030\007 \001(\tB\003\340A\001\022$\n\027truststore_pa" - + "ssword_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross_realm_tru" - + "st_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_realm_trust" - + "_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm_trust_adm" - + "in_server\030\013 \001(\tB\003\340A\001\0222\n%cross_realm_trus" - + "t_shared_password_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_" - + "db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifetime_ho" - + "urs\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016I" - + "dentityConfig\022r\n\034user_service_account_ma" - + "pping\030\001 \003(\0132G.google.cloud.dataproc.v1.I" - + "dentityConfig.UserServiceAccountMappingE" - + "ntryB\003\340A\002\032@\n\036UserServiceAccountMappingEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016" - + "SoftwareConfig\022\032\n\rimage_version\030\001 \001(\tB\003\340" - + "A\001\022Q\n\nproperties\030\002 \003(\01328.google.cloud.da" - + "taproc.v1.SoftwareConfig.PropertiesEntry" - + "B\003\340A\001\022E\n\023optional_components\030\003 \003(\0162#.goo" - + "gle.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n\017" - + "PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n\017idle_dele" - + "te_ttl\030\001 \001(\0132\031.google.protobuf.DurationB" - + "\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\001H\000\0229\n\017auto_delete" - + "_ttl\030\003 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003B\005\n\003ttl\"_\n\017Metasto" - + "reConfig\022L\n\032dataproc_metastore_service\030\001" - + " \001(\tB(\340A\002\372A\"\n metastore.googleapis.com/S" - + "ervice\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metric" - + "s\030\001 \003(\01329.google.cloud.dataproc.v1.Clust" - + "erMetrics.HdfsMetricsEntry\022O\n\014yarn_metri" - + "cs\030\002 \003(\01329.google.cloud.dataproc.v1.Clus" - + "terMetrics.YarnMetricsEntry\0322\n\020HdfsMetri" - + "csEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032" - + "2\n\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\003:\0028\001\"\235\003\n\024DataprocMetricConfig\022K\n\007" - + "metrics\030\001 \003(\01325.google.cloud.dataproc.v1" - + ".DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n\006Me" - + "tric\022W\n\rmetric_source\030\001 \001(\0162;.google.clo" - + "ud.dataproc.v1.DataprocMetricConfig.Metr" - + "icSourceB\003\340A\002\022\035\n\020metric_overrides\030\002 \003(\tB" - + "\003\340A\001\"\264\001\n\014MetricSource\022\035\n\031METRIC_SOURCE_U" - + "NSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_DEFAULT" - + "S\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020\004\022\030\n\024SP" - + "ARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVER2\020\006\022\021\n" - + "\rHIVEMETASTORE\020\007\022\t\n\005FLINK\020\010\"\356\001\n\024CreateCl" - + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.go" - + "ogle.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\nr" - + "equest_id\030\004 \001(\tB\003\340A\001\022V\n action_on_failed" - + "_primary_workers\030\005 \001(\0162\'.google.cloud.da" - + "taproc.v1.FailureActionB\003\340A\001\"\256\002\n\024UpdateC" + + "\030\003 \001(\tB\003\340A\003\"\345\005\n\031InstanceFlexibilityPolic" + + "y\022m\n\026provisioning_model_mix\030\001 \001(\0132H.goog" + + "le.cloud.dataproc.v1.InstanceFlexibility" + + "Policy.ProvisioningModelMixB\003\340A\001\022k\n\027inst" + + "ance_selection_list\030\002 \003(\0132E.google.cloud" + + ".dataproc.v1.InstanceFlexibilityPolicy.I" + + "nstanceSelectionB\003\340A\001\022t\n\032instance_select" + + "ion_results\030\003 \003(\0132K.google.cloud.datapro" + + "c.v1.InstanceFlexibilityPolicy.InstanceS" + + "electionResultB\003\340A\003\032\274\001\n\024ProvisioningMode" + + "lMix\022(\n\026standard_capacity_base\030\001 \001(\005B\003\340A" + + "\001H\000\210\001\001\0226\n$standard_capacity_percent_abov" + + "e_base\030\002 \001(\005B\003\340A\001H\001\210\001\001B\031\n\027_standard_capa" + + "city_baseB\'\n%_standard_capacity_percent_" + + "above_base\032B\n\021InstanceSelection\022\032\n\rmachi" + + "ne_types\030\001 \003(\tB\003\340A\001\022\021\n\004rank\030\002 \001(\005B\003\340A\001\032s" + + "\n\027InstanceSelectionResult\022\036\n\014machine_typ" + + "e\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n\010vm_count\030\002 \001(\005B\003\340A\003" + + "H\001\210\001\001B\017\n\r_machine_typeB\013\n\t_vm_count\"L\n\021A" + + "cceleratorConfig\022\034\n\024accelerator_type_uri" + + "\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\256\002\n\nDi" + + "skConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n" + + "\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_loc" + + "al_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_interfac" + + "e\030\004 \001(\tB\003\340A\001\022,\n\032boot_disk_provisioned_io" + + "ps\030\005 \001(\003B\003\340A\001H\000\210\001\001\0222\n boot_disk_provisio" + + "ned_throughput\030\006 \001(\003B\003\340A\001H\001\210\001\001B\035\n\033_boot_" + + "disk_provisioned_iopsB#\n!_boot_disk_prov" + + "isioned_throughput\"n\n\022AuxiliaryNodeGroup" + + "\022<\n\nnode_group\030\001 \001(\0132#.google.cloud.data" + + "proc.v1.NodeGroupB\003\340A\002\022\032\n\rnode_group_id\030" + + "\002 \001(\tB\003\340A\001\"\275\003\n\tNodeGroup\022\014\n\004name\030\001 \001(\t\022<" + + "\n\005roles\030\002 \003(\0162(.google.cloud.dataproc.v1" + + ".NodeGroup.RoleB\003\340A\002\022M\n\021node_group_confi" + + "g\030\003 \001(\0132-.google.cloud.dataproc.v1.Insta" + + "nceGroupConfigB\003\340A\001\022D\n\006labels\030\004 \003(\0132/.go" + + "ogle.cloud.dataproc.v1.NodeGroup.LabelsE" + + "ntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"(\n\004Role\022\024\n\020ROLE_UNSPECI" + + "FIED\020\000\022\n\n\006DRIVER\020\001:v\352As\n!dataproc.google" + + "apis.com/NodeGroup\022Nprojects/{project}/r" + + "egions/{region}/clusters/{cluster}/nodeG" + + "roups/{node_group}\"s\n\030NodeInitialization" + + "Action\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021" + + "execution_timeout\030\002 \001(\0132\031.google.protobu" + + "f.DurationB\003\340A\001\"\326\003\n\rClusterStatus\022A\n\005sta" + + "te\030\001 \001(\0162-.google.cloud.dataproc.v1.Clus" + + "terStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A" + + "\003\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(" + + "\01620.google.cloud.dataproc.v1.ClusterStat" + + "us.SubstateB\003\340A\003\"\247\001\n\005State\022\013\n\007UNKNOWN\020\000\022" + + "\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n" + + "\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010" + + "UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n" + + "\010STARTING\020\010\022\r\n\tREPAIRING\020\n\"<\n\010Substate\022\017" + + "\n\013UNSPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_" + + "STATUS\020\002\"\240\001\n\016SecurityConfig\022F\n\017kerberos_" + + "config\030\001 \001(\0132(.google.cloud.dataproc.v1." + + "KerberosConfigB\003\340A\001\022F\n\017identity_config\030\002" + + " \001(\0132(.google.cloud.dataproc.v1.Identity" + + "ConfigB\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017enable" + + "_kerberos\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_p" + + "assword_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 " + + "\001(\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016t" + + "ruststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_pas" + + "sword_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri" + + "\030\007 \001(\tB\003\340A\001\022$\n\027truststore_password_uri\030\010" + + " \001(\tB\003\340A\001\022$\n\027cross_realm_trust_realm\030\t \001" + + "(\tB\003\340A\001\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003" + + "\340A\001\022+\n\036cross_realm_trust_admin_server\030\013 " + + "\001(\tB\003\340A\001\0222\n%cross_realm_trust_shared_pas" + + "sword_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r" + + " \001(\tB\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340" + + "A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfi" + + "g\022r\n\034user_service_account_mapping\030\001 \003(\0132" + + "G.google.cloud.dataproc.v1.IdentityConfi" + + "g.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\036UserServiceAccountMappingEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConf" + + "ig\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022Q\n\nproper" + + "ties\030\002 \003(\01328.google.cloud.dataproc.v1.So" + + "ftwareConfig.PropertiesEntryB\003\340A\001\022E\n\023opt" + + "ional_components\030\003 \003(\0162#.google.cloud.da" + + "taproc.v1.ComponentB\003\340A\001\0321\n\017PropertiesEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017" + + "LifecycleConfig\0227\n\017idle_delete_ttl\030\001 \001(\013" + + "2\031.google.protobuf.DurationB\003\340A\001\022;\n\020auto" + + "_delete_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031" + + ".google.protobuf.DurationB\003\340A\001H\000\0228\n\017idle" + + "_start_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022L\n\032" + + "dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"" + + "\n metastore.googleapis.com/Service\"\232\002\n\016C" + + "lusterMetrics\022O\n\014hdfs_metrics\030\001 \003(\01329.go" + + "ogle.cloud.dataproc.v1.ClusterMetrics.Hd" + + "fsMetricsEntry\022O\n\014yarn_metrics\030\002 \003(\01329.g" + + "oogle.cloud.dataproc.v1.ClusterMetrics.Y" + + "arnMetricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetri" + + "csEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"" + + "\235\003\n\024DataprocMetricConfig\022K\n\007metrics\030\001 \003(" + + "\01325.google.cloud.dataproc.v1.DataprocMet" + + "ricConfig.MetricB\003\340A\002\032\200\001\n\006Metric\022W\n\rmetr" + + "ic_source\030\001 \001(\0162;.google.cloud.dataproc." + + "v1.DataprocMetricConfig.MetricSourceB\003\340A" + + "\002\022\035\n\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n\014Met" + + "ricSource\022\035\n\031METRIC_SOURCE_UNSPECIFIED\020\000" + + "\022\035\n\031MONITORING_AGENT_DEFAULTS\020\001\022\010\n\004HDFS\020" + + "\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020\004\022\030\n\024SPARK_HISTORY_" + + "SERVER\020\005\022\017\n\013HIVESERVER2\020\006\022\021\n\rHIVEMETASTO" + + "RE\020\007\022\t\n\005FLINK\020\010\"\356\001\n\024CreateClusterRequest" + + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(" + + "\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.google.cloud.d" + + "ataproc.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\022V\n action_on_failed_primary_wor" + + "kers\030\005 \001(\0162\'.google.cloud.dataproc.v1.Fa" + + "ilureActionB\003\340A\001\"\256\002\n\024UpdateClusterReques" + + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001" + + "(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cl" + + "uster\030\003 \001(\0132!.google.cloud.dataproc.v1.C" + + "lusterB\003\340A\002\022E\n\035graceful_decommission_tim" + + "eout\030\006 \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\0224\n\013update_mask\030\004 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A" + + "\001\"\221\001\n\022StopClusterRequest\022\027\n\nproject_id\030\001" + + " \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluste" + + "r_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB" + + "\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartC" + "lusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023" - + "\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(" - + "\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cloud.d" - + "ataproc.v1.ClusterB\003\340A\002\022E\n\035graceful_deco" - + "mmission_timeout\030\006 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_" - + "id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterRequest\022\027\n\n" - + "project_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340" - + "A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" - + "_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A" - + "\001\"\222\001\n\023StartClusterRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clust" - + "er_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\t" - + "B\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024Delet" - + "eClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" - + "\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 " - + "\001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nr" - + "equest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" - + "(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023L" - + "istClustersRequest\022\027\n\nproject_id\030\001 \001(\tB\003" - + "\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\t" - + "B\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersResponse\0228" - + "\n\010clusters\030\001 \003(\0132!.google.cloud.dataproc" - + ".v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 \001(" - + "\tB\003\340A\003\"\263\003\n\026DiagnoseClusterRequest\022\027\n\npro" - + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022" - + "\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n\017tarball_gc" - + "s_dir\030\004 \001(\tB\003\340A\001\022[\n\016tarball_access\030\005 \001(\016" - + "2>.google.cloud.dataproc.v1.DiagnoseClus" - + "terRequest.TarballAccessB\003\340A\001\0226\n\022diagnos" - + "is_interval\030\006 \001(\0132\025.google.type.Interval" - + "B\003\340A\001\022\021\n\004jobs\030\n \003(\tB\003\340A\001\022!\n\024yarn_applica" - + "tion_ids\030\013 \003(\tB\003\340A\001\"g\n\rTarballAccess\022\036\n\032" - + "TARBALL_ACCESS_UNSPECIFIED\020\000\022\030\n\024GOOGLE_C" - + "LOUD_SUPPORT\020\001\022\034\n\030GOOGLE_DATAPROC_DIAGNO" - + "SE\020\002\"1\n\026DiagnoseClusterResults\022\027\n\noutput" - + "_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity\022" - + "Y\n\030consume_reservation_type\030\001 \001(\01622.goog" - + "le.cloud.dataproc.v1.ReservationAffinity" - + ".TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003" - + " \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" - + "\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002" - + "\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterCo" - + "ntroller\022\200\002\n\rCreateCluster\022..google.clou" - + "d.dataproc.v1.CreateClusterRequest\032\035.goo" - + "gle.longrunning.Operation\"\237\001\312A<\n\007Cluster" - + "\0221google.cloud.dataproc.v1.ClusterOperat" - + "ionMetadata\332A\031project_id,region,cluster\202" - + "\323\344\223\002>\"3/v1/projects/{project_id}/regions" - + "/{region}/clusters:\007cluster\022\250\002\n\rUpdateCl" - + "uster\022..google.cloud.dataproc.v1.UpdateC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"\307\001\312A<\n\007Cluster\0221google.cloud.datapr" - + "oc.v1.ClusterOperationMetadata\332A2project" - + "_id,region,cluster_name,cluster,update_m" - + "ask\202\323\344\223\002M2B/v1/projects/{project_id}/reg" - + "ions/{region}/clusters/{cluster_name}:\007c" - + "luster\022\356\001\n\013StopCluster\022,.google.cloud.da" - + "taproc.v1.StopClusterRequest\032\035.google.lo" - + "ngrunning.Operation\"\221\001\312A<\n\007Cluster\0221goog" - + "le.cloud.dataproc.v1.ClusterOperationMet" - + "adata\202\323\344\223\002L\"G/v1/projects/{project_id}/r" - + "egions/{region}/clusters/{cluster_name}:" - + "stop:\001*\022\361\001\n\014StartCluster\022-.google.cloud." - + "dataproc.v1.StartClusterRequest\032\035.google" - + ".longrunning.Operation\"\222\001\312A<\n\007Cluster\0221g" - + "oogle.cloud.dataproc.v1.ClusterOperation" - + "Metadata\202\323\344\223\002M\"H/v1/projects/{project_id" - + "}/regions/{region}/clusters/{cluster_nam" - + "e}:start:\001*\022\231\002\n\rDeleteCluster\022..google.c" - + "loud.dataproc.v1.DeleteClusterRequest\032\035." - + "google.longrunning.Operation\"\270\001\312AJ\n\025goog" - + "le.protobuf.Empty\0221google.cloud.dataproc" - + ".v1.ClusterOperationMetadata\332A\036project_i" - + "d,region,cluster_name\202\323\344\223\002D*B/v1/project" - + "s/{project_id}/regions/{region}/clusters" - + "/{cluster_name}\022\311\001\n\nGetCluster\022+.google." - + "cloud.dataproc.v1.GetClusterRequest\032!.go" - + "ogle.cloud.dataproc.v1.Cluster\"k\332A\036proje" - + "ct_id,region,cluster_name\202\323\344\223\002D\022B/v1/pro" - + "jects/{project_id}/regions/{region}/clus" - + "ters/{cluster_name}\022\331\001\n\014ListClusters\022-.g" - + "oogle.cloud.dataproc.v1.ListClustersRequ" - + "est\032..google.cloud.dataproc.v1.ListClust" - + "ersResponse\"j\332A\021project_id,region\332A\030proj" - + "ect_id,region,filter\202\323\344\223\0025\0223/v1/projects" - + "/{project_id}/regions/{region}/clusters\022" - + "\252\002\n\017DiagnoseCluster\0220.google.cloud.datap" - + "roc.v1.DiagnoseClusterRequest\032\035.google.l" - + "ongrunning.Operation\"\305\001\312AK\n\026DiagnoseClus" - + "terResults\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\332A\036project_id,regio" - + "n,cluster_name\202\323\344\223\002P\"K/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters/{clust" - + "er_name}:diagnose:\001*\032K\312A\027dataproc.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformBl\n\034com.google.cloud.da" - + "taproc.v1B\rClustersProtoP\001Z;cloud.google" - + ".com/go/dataproc/v2/apiv1/dataprocpb;dat" - + "aprocpbb\006proto3" + + "\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(" + + "\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nreq" + + "uest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequ" + + "est\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003" + + " \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014" + + "cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 " + + "\001(\tB\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\nproject" + + "_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014c" + + "luster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersR" + + "equest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regio" + + "n\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\"n\n\024ListClustersResponse\0228\n\010clusters\030\001" + + " \003(\0132!.google.cloud.dataproc.v1.ClusterB" + + "\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"\263\003\n\026D" + + "iagnoseClusterRequest\022\027\n\nproject_id\030\001 \001(" + + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n" + + "ame\030\002 \001(\tB\003\340A\002\022\034\n\017tarball_gcs_dir\030\004 \001(\tB" + + "\003\340A\001\022[\n\016tarball_access\030\005 \001(\0162>.google.cl" + + "oud.dataproc.v1.DiagnoseClusterRequest.T" + + "arballAccessB\003\340A\001\0226\n\022diagnosis_interval\030" + + "\006 \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n\004job" + + "s\030\n \003(\tB\003\340A\001\022!\n\024yarn_application_ids\030\013 \003" + + "(\tB\003\340A\001\"g\n\rTarballAccess\022\036\n\032TARBALL_ACCE" + + "SS_UNSPECIFIED\020\000\022\030\n\024GOOGLE_CLOUD_SUPPORT" + + "\020\001\022\034\n\030GOOGLE_DATAPROC_DIAGNOSE\020\002\"1\n\026Diag" + + "noseClusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003" + + "\340A\003\"\370\001\n\023ReservationAffinity\022Y\n\030consume_r" + + "eservation_type\030\001 \001(\01622.google.cloud.dat" + + "aproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020" + + "\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n" + + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERV" + + "ATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC" + + "_RESERVATION\020\0032\344\020\n\021ClusterController\022\200\002\n" + + "\rCreateCluster\022..google.cloud.dataproc.v" + + "1.CreateClusterRequest\032\035.google.longrunn" + + "ing.Operation\"\237\001\312A<\n\007Cluster\0221google.clo" + + "ud.dataproc.v1.ClusterOperationMetadata\332" + + "A\031project_id,region,cluster\202\323\344\223\002>\"3/v1/p" + + "rojects/{project_id}/regions/{region}/cl" + + "usters:\007cluster\022\250\002\n\rUpdateCluster\022..goog" + + "le.cloud.dataproc.v1.UpdateClusterReques" + + "t\032\035.google.longrunning.Operation\"\307\001\312A<\n\007" + + "Cluster\0221google.cloud.dataproc.v1.Cluste" + + "rOperationMetadata\332A2project_id,region,c" + + "luster_name,cluster,update_mask\202\323\344\223\002M2B/" + + "v1/projects/{project_id}/regions/{region" + + "}/clusters/{cluster_name}:\007cluster\022\356\001\n\013S" + + "topCluster\022,.google.cloud.dataproc.v1.St" + + "opClusterRequest\032\035.google.longrunning.Op" + + "eration\"\221\001\312A<\n\007Cluster\0221google.cloud.dat" + + "aproc.v1.ClusterOperationMetadata\202\323\344\223\002L\"" + + "G/v1/projects/{project_id}/regions/{regi" + + "on}/clusters/{cluster_name}:stop:\001*\022\361\001\n\014" + + "StartCluster\022-.google.cloud.dataproc.v1." + + "StartClusterRequest\032\035.google.longrunning" + + ".Operation\"\222\001\312A<\n\007Cluster\0221google.cloud." + + "dataproc.v1.ClusterOperationMetadata\202\323\344\223" + + "\002M\"H/v1/projects/{project_id}/regions/{r" + + "egion}/clusters/{cluster_name}:start:\001*\022" + + "\231\002\n\rDeleteCluster\022..google.cloud.datapro" + + "c.v1.DeleteClusterRequest\032\035.google.longr" + + "unning.Operation\"\270\001\312AJ\n\025google.protobuf." + + "Empty\0221google.cloud.dataproc.v1.ClusterO" + + "perationMetadata\332A\036project_id,region,clu" + + "ster_name\202\323\344\223\002D*B/v1/projects/{project_i" + + "d}/regions/{region}/clusters/{cluster_na" + + "me}\022\311\001\n\nGetCluster\022+.google.cloud.datapr" + + "oc.v1.GetClusterRequest\032!.google.cloud.d" + + "ataproc.v1.Cluster\"k\332A\036project_id,region" + + ",cluster_name\202\323\344\223\002D\022B/v1/projects/{proje" + + "ct_id}/regions/{region}/clusters/{cluste" + + "r_name}\022\331\001\n\014ListClusters\022-.google.cloud." + + "dataproc.v1.ListClustersRequest\032..google" + + ".cloud.dataproc.v1.ListClustersResponse\"" + + "j\332A\021project_id,region\332A\030project_id,regio" + + "n,filter\202\323\344\223\0025\0223/v1/projects/{project_id" + + "}/regions/{region}/clusters\022\252\002\n\017Diagnose" + + "Cluster\0220.google.cloud.dataproc.v1.Diagn" + + "oseClusterRequest\032\035.google.longrunning.O" + + "peration\"\305\001\312AK\n\026DiagnoseClusterResults\0221" + + "google.cloud.dataproc.v1.ClusterOperatio" + + "nMetadata\332A\036project_id,region,cluster_na" + + "me\202\323\344\223\002P\"K/v1/projects/{project_id}/regi" + + "ons/{region}/clusters/{cluster_name}:dia" + + "gnose:\001*\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBl\n\034com.google.cloud.dataproc.v1B\rC" + + "lustersProtoP\001Z;cloud.google.com/go/data" + + "proc/v2/apiv1/dataprocpb;dataprocpbb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -815,12 +831,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor, new java.lang.String[] { - "InstanceSelectionList", "InstanceSelectionResults", + "ProvisioningModelMix", "InstanceSelectionList", "InstanceSelectionResults", }); - internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_descriptor = + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor = internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor, + new java.lang.String[] { + "StandardCapacityBase", "StandardCapacityPercentAboveBase", + }); + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_descriptor = + internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelection_descriptor, @@ -830,7 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_descriptor = internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor .getNestedTypes() - .get(1); + .get(2); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_descriptor, @@ -851,7 +877,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, new java.lang.String[] { - "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", + "BootDiskType", + "BootDiskSizeGb", + "NumLocalSsds", + "LocalSsdInterface", + "BootDiskProvisionedIops", + "BootDiskProvisionedThroughput", }); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = getDescriptor().getMessageTypes().get(18); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index 3a278f63a986..0b8974e75ca8 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -64,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.DiskConfig.Builder.class); } + private int bitField0_; public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -226,6 +227,88 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { } } + public static final int BOOT_DISK_PROVISIONED_IOPS_FIELD_NUMBER = 5; + private long bootDiskProvisionedIops_ = 0L; + /** + * + * + *
+   * Optional. Indicates how many IOPS to provision for the disk. This sets the
+   * number of I/O operations per second that the disk can handle. Note: This
+   * field is only supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedIops field is set. + */ + @java.lang.Override + public boolean hasBootDiskProvisionedIops() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Indicates how many IOPS to provision for the disk. This sets the
+   * number of I/O operations per second that the disk can handle. Note: This
+   * field is only supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedIops. + */ + @java.lang.Override + public long getBootDiskProvisionedIops() { + return bootDiskProvisionedIops_; + } + + public static final int BOOT_DISK_PROVISIONED_THROUGHPUT_FIELD_NUMBER = 6; + private long bootDiskProvisionedThroughput_ = 0L; + /** + * + * + *
+   * Optional. Indicates how much throughput to provision for the disk. This
+   * sets the number of throughput mb per second that the disk can handle.
+   * Values must be greater than or equal to 1. Note: This field is only
+   * supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedThroughput field is set. + */ + @java.lang.Override + public boolean hasBootDiskProvisionedThroughput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Indicates how much throughput to provision for the disk. This
+   * sets the number of throughput mb per second that the disk can handle.
+   * Values must be greater than or equal to 1. Note: This field is only
+   * supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedThroughput. + */ + @java.lang.Override + public long getBootDiskProvisionedThroughput() { + return bootDiskProvisionedThroughput_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -252,6 +335,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localSsdInterface_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(5, bootDiskProvisionedIops_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(6, bootDiskProvisionedThroughput_); + } getUnknownFields().writeTo(output); } @@ -273,6 +362,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localSsdInterface_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, bootDiskProvisionedIops_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(6, bootDiskProvisionedThroughput_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -292,6 +388,16 @@ public boolean equals(final java.lang.Object obj) { if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (getNumLocalSsds() != other.getNumLocalSsds()) return false; if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; + if (hasBootDiskProvisionedIops() != other.hasBootDiskProvisionedIops()) return false; + if (hasBootDiskProvisionedIops()) { + if (getBootDiskProvisionedIops() != other.getBootDiskProvisionedIops()) return false; + } + if (hasBootDiskProvisionedThroughput() != other.hasBootDiskProvisionedThroughput()) + return false; + if (hasBootDiskProvisionedThroughput()) { + if (getBootDiskProvisionedThroughput() != other.getBootDiskProvisionedThroughput()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,6 +417,15 @@ public int hashCode() { hash = (53 * hash) + getNumLocalSsds(); hash = (37 * hash) + LOCAL_SSD_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getLocalSsdInterface().hashCode(); + if (hasBootDiskProvisionedIops()) { + hash = (37 * hash) + BOOT_DISK_PROVISIONED_IOPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskProvisionedIops()); + } + if (hasBootDiskProvisionedThroughput()) { + hash = (37 * hash) + BOOT_DISK_PROVISIONED_THROUGHPUT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskProvisionedThroughput()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +569,8 @@ public Builder clear() { bootDiskSizeGb_ = 0; numLocalSsds_ = 0; localSsdInterface_ = ""; + bootDiskProvisionedIops_ = 0L; + bootDiskProvisionedThroughput_ = 0L; return this; } @@ -502,6 +619,16 @@ private void buildPartial0(com.google.cloud.dataproc.v1.DiskConfig result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.localSsdInterface_ = localSsdInterface_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bootDiskProvisionedIops_ = bootDiskProvisionedIops_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.bootDiskProvisionedThroughput_ = bootDiskProvisionedThroughput_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -565,6 +692,12 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiskConfig other) { bitField0_ |= 0x00000008; onChanged(); } + if (other.hasBootDiskProvisionedIops()) { + setBootDiskProvisionedIops(other.getBootDiskProvisionedIops()); + } + if (other.hasBootDiskProvisionedThroughput()) { + setBootDiskProvisionedThroughput(other.getBootDiskProvisionedThroughput()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -615,6 +748,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + bootDiskProvisionedIops_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + bootDiskProvisionedThroughput_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1016,6 +1161,178 @@ public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { return this; } + private long bootDiskProvisionedIops_; + /** + * + * + *
+     * Optional. Indicates how many IOPS to provision for the disk. This sets the
+     * number of I/O operations per second that the disk can handle. Note: This
+     * field is only supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedIops field is set. + */ + @java.lang.Override + public boolean hasBootDiskProvisionedIops() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Indicates how many IOPS to provision for the disk. This sets the
+     * number of I/O operations per second that the disk can handle. Note: This
+     * field is only supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedIops. + */ + @java.lang.Override + public long getBootDiskProvisionedIops() { + return bootDiskProvisionedIops_; + } + /** + * + * + *
+     * Optional. Indicates how many IOPS to provision for the disk. This sets the
+     * number of I/O operations per second that the disk can handle. Note: This
+     * field is only supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bootDiskProvisionedIops to set. + * @return This builder for chaining. + */ + public Builder setBootDiskProvisionedIops(long value) { + + bootDiskProvisionedIops_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates how many IOPS to provision for the disk. This sets the
+     * number of I/O operations per second that the disk can handle. Note: This
+     * field is only supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootDiskProvisionedIops() { + bitField0_ = (bitField0_ & ~0x00000010); + bootDiskProvisionedIops_ = 0L; + onChanged(); + return this; + } + + private long bootDiskProvisionedThroughput_; + /** + * + * + *
+     * Optional. Indicates how much throughput to provision for the disk. This
+     * sets the number of throughput mb per second that the disk can handle.
+     * Values must be greater than or equal to 1. Note: This field is only
+     * supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedThroughput field is set. + */ + @java.lang.Override + public boolean hasBootDiskProvisionedThroughput() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Indicates how much throughput to provision for the disk. This
+     * sets the number of throughput mb per second that the disk can handle.
+     * Values must be greater than or equal to 1. Note: This field is only
+     * supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedThroughput. + */ + @java.lang.Override + public long getBootDiskProvisionedThroughput() { + return bootDiskProvisionedThroughput_; + } + /** + * + * + *
+     * Optional. Indicates how much throughput to provision for the disk. This
+     * sets the number of throughput mb per second that the disk can handle.
+     * Values must be greater than or equal to 1. Note: This field is only
+     * supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bootDiskProvisionedThroughput to set. + * @return This builder for chaining. + */ + public Builder setBootDiskProvisionedThroughput(long value) { + + bootDiskProvisionedThroughput_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates how much throughput to provision for the disk. This
+     * sets the number of throughput mb per second that the disk can handle.
+     * Values must be greater than or equal to 1. Note: This field is only
+     * supported if boot_disk_type is hyperdisk-balanced.
+     * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootDiskProvisionedThroughput() { + bitField0_ = (bitField0_ & ~0x00000020); + bootDiskProvisionedThroughput_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index 7ec946885941..a6bd32eb3c11 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -123,4 +123,70 @@ public interface DiskConfigOrBuilder * @return The bytes for localSsdInterface. */ com.google.protobuf.ByteString getLocalSsdInterfaceBytes(); + + /** + * + * + *
+   * Optional. Indicates how many IOPS to provision for the disk. This sets the
+   * number of I/O operations per second that the disk can handle. Note: This
+   * field is only supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedIops field is set. + */ + boolean hasBootDiskProvisionedIops(); + /** + * + * + *
+   * Optional. Indicates how many IOPS to provision for the disk. This sets the
+   * number of I/O operations per second that the disk can handle. Note: This
+   * field is only supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * optional int64 boot_disk_provisioned_iops = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedIops. + */ + long getBootDiskProvisionedIops(); + + /** + * + * + *
+   * Optional. Indicates how much throughput to provision for the disk. This
+   * sets the number of throughput mb per second that the disk can handle.
+   * Values must be greater than or equal to 1. Note: This field is only
+   * supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskProvisionedThroughput field is set. + */ + boolean hasBootDiskProvisionedThroughput(); + /** + * + * + *
+   * Optional. Indicates how much throughput to provision for the disk. This
+   * sets the number of throughput mb per second that the disk can handle.
+   * Values must be greater than or equal to 1. Note: This field is only
+   * supported if boot_disk_type is hyperdisk-balanced.
+   * 
+ * + * + * optional int64 boot_disk_provisioned_throughput = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskProvisionedThroughput. + */ + long getBootDiskProvisionedThroughput(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java index 3b4298c3c0c1..9971a07f3d8d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicy.java @@ -65,6 +65,901 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.Builder.class); } + public interface ProvisioningModelMixOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The base capacity that will always use Standard VMs to avoid
+     * risk of more preemption than the minimum capacity you need. Dataproc will
+     * create only standard VMs until it reaches standard_capacity_base, then it
+     * will start using standard_capacity_percent_above_base to mix Spot with
+     * Standard VMs. eg. If 15 instances are requested and
+     * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+     * start mixing spot and standard VMs for remaining 10 instances.
+     * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityBase field is set. + */ + boolean hasStandardCapacityBase(); + /** + * + * + *
+     * Optional. The base capacity that will always use Standard VMs to avoid
+     * risk of more preemption than the minimum capacity you need. Dataproc will
+     * create only standard VMs until it reaches standard_capacity_base, then it
+     * will start using standard_capacity_percent_above_base to mix Spot with
+     * Standard VMs. eg. If 15 instances are requested and
+     * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+     * start mixing spot and standard VMs for remaining 10 instances.
+     * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityBase. + */ + int getStandardCapacityBase(); + + /** + * + * + *
+     * Optional. The percentage of target capacity that should use Standard VM.
+     * The remaining percentage will use Spot VMs. The percentage applies only
+     * to the capacity above standard_capacity_base. eg. If 15 instances are
+     * requested and standard_capacity_base is 5 and
+     * standard_capacity_percent_above_base is 30, Dataproc will create 5
+     * standard VMs and then start mixing spot and standard VMs for remaining 10
+     * instances. The mix will be 30% standard and 70% spot.
+     * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityPercentAboveBase field is set. + */ + boolean hasStandardCapacityPercentAboveBase(); + /** + * + * + *
+     * Optional. The percentage of target capacity that should use Standard VM.
+     * The remaining percentage will use Spot VMs. The percentage applies only
+     * to the capacity above standard_capacity_base. eg. If 15 instances are
+     * requested and standard_capacity_base is 5 and
+     * standard_capacity_percent_above_base is 30, Dataproc will create 5
+     * standard VMs and then start mixing spot and standard VMs for remaining 10
+     * instances. The mix will be 30% standard and 70% spot.
+     * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityPercentAboveBase. + */ + int getStandardCapacityPercentAboveBase(); + } + /** + * + * + *
+   * Defines how Dataproc should create VMs with a mixture of provisioning
+   * models.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix} + */ + public static final class ProvisioningModelMix extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) + ProvisioningModelMixOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisioningModelMix.newBuilder() to construct. + private ProvisioningModelMix(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisioningModelMix() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisioningModelMix(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.class, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder + .class); + } + + private int bitField0_; + public static final int STANDARD_CAPACITY_BASE_FIELD_NUMBER = 1; + private int standardCapacityBase_ = 0; + /** + * + * + *
+     * Optional. The base capacity that will always use Standard VMs to avoid
+     * risk of more preemption than the minimum capacity you need. Dataproc will
+     * create only standard VMs until it reaches standard_capacity_base, then it
+     * will start using standard_capacity_percent_above_base to mix Spot with
+     * Standard VMs. eg. If 15 instances are requested and
+     * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+     * start mixing spot and standard VMs for remaining 10 instances.
+     * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityBase field is set. + */ + @java.lang.Override + public boolean hasStandardCapacityBase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. The base capacity that will always use Standard VMs to avoid
+     * risk of more preemption than the minimum capacity you need. Dataproc will
+     * create only standard VMs until it reaches standard_capacity_base, then it
+     * will start using standard_capacity_percent_above_base to mix Spot with
+     * Standard VMs. eg. If 15 instances are requested and
+     * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+     * start mixing spot and standard VMs for remaining 10 instances.
+     * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityBase. + */ + @java.lang.Override + public int getStandardCapacityBase() { + return standardCapacityBase_; + } + + public static final int STANDARD_CAPACITY_PERCENT_ABOVE_BASE_FIELD_NUMBER = 2; + private int standardCapacityPercentAboveBase_ = 0; + /** + * + * + *
+     * Optional. The percentage of target capacity that should use Standard VM.
+     * The remaining percentage will use Spot VMs. The percentage applies only
+     * to the capacity above standard_capacity_base. eg. If 15 instances are
+     * requested and standard_capacity_base is 5 and
+     * standard_capacity_percent_above_base is 30, Dataproc will create 5
+     * standard VMs and then start mixing spot and standard VMs for remaining 10
+     * instances. The mix will be 30% standard and 70% spot.
+     * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityPercentAboveBase field is set. + */ + @java.lang.Override + public boolean hasStandardCapacityPercentAboveBase() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The percentage of target capacity that should use Standard VM.
+     * The remaining percentage will use Spot VMs. The percentage applies only
+     * to the capacity above standard_capacity_base. eg. If 15 instances are
+     * requested and standard_capacity_base is 5 and
+     * standard_capacity_percent_above_base is 30, Dataproc will create 5
+     * standard VMs and then start mixing spot and standard VMs for remaining 10
+     * instances. The mix will be 30% standard and 70% spot.
+     * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityPercentAboveBase. + */ + @java.lang.Override + public int getStandardCapacityPercentAboveBase() { + return standardCapacityPercentAboveBase_; + } + + 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.writeInt32(1, standardCapacityBase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, standardCapacityPercentAboveBase_); + } + 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.computeInt32Size(1, standardCapacityBase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, standardCapacityPercentAboveBase_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix other = + (com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) obj; + + if (hasStandardCapacityBase() != other.hasStandardCapacityBase()) return false; + if (hasStandardCapacityBase()) { + if (getStandardCapacityBase() != other.getStandardCapacityBase()) return false; + } + if (hasStandardCapacityPercentAboveBase() != other.hasStandardCapacityPercentAboveBase()) + return false; + if (hasStandardCapacityPercentAboveBase()) { + if (getStandardCapacityPercentAboveBase() != other.getStandardCapacityPercentAboveBase()) + 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 (hasStandardCapacityBase()) { + hash = (37 * hash) + STANDARD_CAPACITY_BASE_FIELD_NUMBER; + hash = (53 * hash) + getStandardCapacityBase(); + } + if (hasStandardCapacityPercentAboveBase()) { + hash = (37 * hash) + STANDARD_CAPACITY_PERCENT_ABOVE_BASE_FIELD_NUMBER; + hash = (53 * hash) + getStandardCapacityPercentAboveBase(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines how Dataproc should create VMs with a mixture of provisioning
+     * models.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.class, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder + .class); + } + + // Construct using + // com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + standardCapacityBase_ = 0; + standardCapacityPercentAboveBase_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_ProvisioningModelMix_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix build() { + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + buildPartial() { + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix result = + new com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.standardCapacityBase_ = standardCapacityBase_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.standardCapacityPercentAboveBase_ = standardCapacityPercentAboveBase_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) { + return mergeFrom( + (com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix other) { + if (other + == com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance()) return this; + if (other.hasStandardCapacityBase()) { + setStandardCapacityBase(other.getStandardCapacityBase()); + } + if (other.hasStandardCapacityPercentAboveBase()) { + setStandardCapacityPercentAboveBase(other.getStandardCapacityPercentAboveBase()); + } + 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: + { + standardCapacityBase_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + standardCapacityPercentAboveBase_ = input.readInt32(); + 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 int standardCapacityBase_; + /** + * + * + *
+       * Optional. The base capacity that will always use Standard VMs to avoid
+       * risk of more preemption than the minimum capacity you need. Dataproc will
+       * create only standard VMs until it reaches standard_capacity_base, then it
+       * will start using standard_capacity_percent_above_base to mix Spot with
+       * Standard VMs. eg. If 15 instances are requested and
+       * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+       * start mixing spot and standard VMs for remaining 10 instances.
+       * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityBase field is set. + */ + @java.lang.Override + public boolean hasStandardCapacityBase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. The base capacity that will always use Standard VMs to avoid
+       * risk of more preemption than the minimum capacity you need. Dataproc will
+       * create only standard VMs until it reaches standard_capacity_base, then it
+       * will start using standard_capacity_percent_above_base to mix Spot with
+       * Standard VMs. eg. If 15 instances are requested and
+       * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+       * start mixing spot and standard VMs for remaining 10 instances.
+       * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityBase. + */ + @java.lang.Override + public int getStandardCapacityBase() { + return standardCapacityBase_; + } + /** + * + * + *
+       * Optional. The base capacity that will always use Standard VMs to avoid
+       * risk of more preemption than the minimum capacity you need. Dataproc will
+       * create only standard VMs until it reaches standard_capacity_base, then it
+       * will start using standard_capacity_percent_above_base to mix Spot with
+       * Standard VMs. eg. If 15 instances are requested and
+       * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+       * start mixing spot and standard VMs for remaining 10 instances.
+       * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The standardCapacityBase to set. + * @return This builder for chaining. + */ + public Builder setStandardCapacityBase(int value) { + + standardCapacityBase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The base capacity that will always use Standard VMs to avoid
+       * risk of more preemption than the minimum capacity you need. Dataproc will
+       * create only standard VMs until it reaches standard_capacity_base, then it
+       * will start using standard_capacity_percent_above_base to mix Spot with
+       * Standard VMs. eg. If 15 instances are requested and
+       * standard_capacity_base is 5, Dataproc will create 5 standard VMs and then
+       * start mixing spot and standard VMs for remaining 10 instances.
+       * 
+ * + * optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStandardCapacityBase() { + bitField0_ = (bitField0_ & ~0x00000001); + standardCapacityBase_ = 0; + onChanged(); + return this; + } + + private int standardCapacityPercentAboveBase_; + /** + * + * + *
+       * Optional. The percentage of target capacity that should use Standard VM.
+       * The remaining percentage will use Spot VMs. The percentage applies only
+       * to the capacity above standard_capacity_base. eg. If 15 instances are
+       * requested and standard_capacity_base is 5 and
+       * standard_capacity_percent_above_base is 30, Dataproc will create 5
+       * standard VMs and then start mixing spot and standard VMs for remaining 10
+       * instances. The mix will be 30% standard and 70% spot.
+       * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the standardCapacityPercentAboveBase field is set. + */ + @java.lang.Override + public boolean hasStandardCapacityPercentAboveBase() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The percentage of target capacity that should use Standard VM.
+       * The remaining percentage will use Spot VMs. The percentage applies only
+       * to the capacity above standard_capacity_base. eg. If 15 instances are
+       * requested and standard_capacity_base is 5 and
+       * standard_capacity_percent_above_base is 30, Dataproc will create 5
+       * standard VMs and then start mixing spot and standard VMs for remaining 10
+       * instances. The mix will be 30% standard and 70% spot.
+       * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The standardCapacityPercentAboveBase. + */ + @java.lang.Override + public int getStandardCapacityPercentAboveBase() { + return standardCapacityPercentAboveBase_; + } + /** + * + * + *
+       * Optional. The percentage of target capacity that should use Standard VM.
+       * The remaining percentage will use Spot VMs. The percentage applies only
+       * to the capacity above standard_capacity_base. eg. If 15 instances are
+       * requested and standard_capacity_base is 5 and
+       * standard_capacity_percent_above_base is 30, Dataproc will create 5
+       * standard VMs and then start mixing spot and standard VMs for remaining 10
+       * instances. The mix will be 30% standard and 70% spot.
+       * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The standardCapacityPercentAboveBase to set. + * @return This builder for chaining. + */ + public Builder setStandardCapacityPercentAboveBase(int value) { + + standardCapacityPercentAboveBase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The percentage of target capacity that should use Standard VM.
+       * The remaining percentage will use Spot VMs. The percentage applies only
+       * to the capacity above standard_capacity_base. eg. If 15 instances are
+       * requested and standard_capacity_base is 5 and
+       * standard_capacity_percent_above_base is 30, Dataproc will create 5
+       * standard VMs and then start mixing spot and standard VMs for remaining 10
+       * instances. The mix will be 30% standard and 70% spot.
+       * 
+ * + * + * optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStandardCapacityPercentAboveBase() { + bitField0_ = (bitField0_ & ~0x00000002); + standardCapacityPercentAboveBase_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix) + private static final com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix(); + } + + public static com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisioningModelMix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface InstanceSelectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection) @@ -1857,6 +2752,71 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; + public static final int PROVISIONING_MODEL_MIX_FIELD_NUMBER = 1; + private com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + provisioningModelMix_; + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisioningModelMix field is set. + */ + @java.lang.Override + public boolean hasProvisioningModelMix() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisioningModelMix. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getProvisioningModelMix() { + return provisioningModelMix_ == null + ? com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance() + : provisioningModelMix_; + } + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder + getProvisioningModelMixOrBuilder() { + return provisioningModelMix_ == null + ? com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance() + : provisioningModelMix_; + } + public static final int INSTANCE_SELECTION_LIST_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -2053,6 +3013,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getProvisioningModelMix()); + } for (int i = 0; i < instanceSelectionList_.size(); i++) { output.writeMessage(2, instanceSelectionList_.get(i)); } @@ -2068,6 +3031,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProvisioningModelMix()); + } for (int i = 0; i < instanceSelectionList_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2094,6 +3061,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy other = (com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy) obj; + if (hasProvisioningModelMix() != other.hasProvisioningModelMix()) return false; + if (hasProvisioningModelMix()) { + if (!getProvisioningModelMix().equals(other.getProvisioningModelMix())) return false; + } if (!getInstanceSelectionListList().equals(other.getInstanceSelectionListList())) return false; if (!getInstanceSelectionResultsList().equals(other.getInstanceSelectionResultsList())) return false; @@ -2108,6 +3079,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProvisioningModelMix()) { + hash = (37 * hash) + PROVISIONING_MODEL_MIX_FIELD_NUMBER; + hash = (53 * hash) + getProvisioningModelMix().hashCode(); + } if (getInstanceSelectionListCount() > 0) { hash = (37 * hash) + INSTANCE_SELECTION_LIST_FIELD_NUMBER; hash = (53 * hash) + getInstanceSelectionListList().hashCode(); @@ -2247,30 +3222,46 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProvisioningModelMixFieldBuilder(); + getInstanceSelectionListFieldBuilder(); + getInstanceSelectionResultsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + provisioningModelMix_ = null; + if (provisioningModelMixBuilder_ != null) { + provisioningModelMixBuilder_.dispose(); + provisioningModelMixBuilder_ = null; + } if (instanceSelectionListBuilder_ == null) { instanceSelectionList_ = java.util.Collections.emptyList(); } else { instanceSelectionList_ = null; instanceSelectionListBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); if (instanceSelectionResultsBuilder_ == null) { instanceSelectionResults_ = java.util.Collections.emptyList(); } else { instanceSelectionResults_ = null; instanceSelectionResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -2309,19 +3300,19 @@ public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy result) { if (instanceSelectionListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instanceSelectionList_ = java.util.Collections.unmodifiableList(instanceSelectionList_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instanceSelectionList_ = instanceSelectionList_; } else { result.instanceSelectionList_ = instanceSelectionListBuilder_.build(); } if (instanceSelectionResultsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { instanceSelectionResults_ = java.util.Collections.unmodifiableList(instanceSelectionResults_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.instanceSelectionResults_ = instanceSelectionResults_; } else { @@ -2331,6 +3322,15 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provisioningModelMix_ = + provisioningModelMixBuilder_ == null + ? provisioningModelMix_ + : provisioningModelMixBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2379,11 +3379,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy other) { if (other == com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.getDefaultInstance()) return this; + if (other.hasProvisioningModelMix()) { + mergeProvisioningModelMix(other.getProvisioningModelMix()); + } if (instanceSelectionListBuilder_ == null) { if (!other.instanceSelectionList_.isEmpty()) { if (instanceSelectionList_.isEmpty()) { instanceSelectionList_ = other.instanceSelectionList_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstanceSelectionListIsMutable(); instanceSelectionList_.addAll(other.instanceSelectionList_); @@ -2396,7 +3399,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instanceSelectionListBuilder_.dispose(); instanceSelectionListBuilder_ = null; instanceSelectionList_ = other.instanceSelectionList_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); instanceSelectionListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstanceSelectionListFieldBuilder() @@ -2410,7 +3413,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy if (!other.instanceSelectionResults_.isEmpty()) { if (instanceSelectionResults_.isEmpty()) { instanceSelectionResults_ = other.instanceSelectionResults_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInstanceSelectionResultsIsMutable(); instanceSelectionResults_.addAll(other.instanceSelectionResults_); @@ -2423,7 +3426,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instanceSelectionResultsBuilder_.dispose(); instanceSelectionResultsBuilder_ = null; instanceSelectionResults_ = other.instanceSelectionResults_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); instanceSelectionResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstanceSelectionResultsFieldBuilder() @@ -2459,6 +3462,13 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage( + getProvisioningModelMixFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 case 18: { com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection m = @@ -2508,16 +3518,241 @@ public Builder mergeFrom( private int bitField0_; + private com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + provisioningModelMix_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder> + provisioningModelMixBuilder_; + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisioningModelMix field is set. + */ + public boolean hasProvisioningModelMix() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisioningModelMix. + */ + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getProvisioningModelMix() { + if (provisioningModelMixBuilder_ == null) { + return provisioningModelMix_ == null + ? com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance() + : provisioningModelMix_; + } else { + return provisioningModelMixBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvisioningModelMix( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix value) { + if (provisioningModelMixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provisioningModelMix_ = value; + } else { + provisioningModelMixBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvisioningModelMix( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder + builderForValue) { + if (provisioningModelMixBuilder_ == null) { + provisioningModelMix_ = builderForValue.build(); + } else { + provisioningModelMixBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProvisioningModelMix( + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix value) { + if (provisioningModelMixBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && provisioningModelMix_ != null + && provisioningModelMix_ + != com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance()) { + getProvisioningModelMixBuilder().mergeFrom(value); + } else { + provisioningModelMix_ = value; + } + } else { + provisioningModelMixBuilder_.mergeFrom(value); + } + if (provisioningModelMix_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProvisioningModelMix() { + bitField0_ = (bitField0_ & ~0x00000001); + provisioningModelMix_ = null; + if (provisioningModelMixBuilder_ != null) { + provisioningModelMixBuilder_.dispose(); + provisioningModelMixBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder + getProvisioningModelMixBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProvisioningModelMixFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder + getProvisioningModelMixOrBuilder() { + if (provisioningModelMixBuilder_ != null) { + return provisioningModelMixBuilder_.getMessageOrBuilder(); + } else { + return provisioningModelMix_ == null + ? com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + .getDefaultInstance() + : provisioningModelMix_; + } + } + /** + * + * + *
+     * Optional. Defines how the Group selects the provisioning model to ensure
+     * required reliability.
+     * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder> + getProvisioningModelMixFieldBuilder() { + if (provisioningModelMixBuilder_ == null) { + provisioningModelMixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix.Builder, + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy + .ProvisioningModelMixOrBuilder>( + getProvisioningModelMix(), getParentForChildren(), isClean()); + provisioningModelMix_ = null; + } + return provisioningModelMixBuilder_; + } + private java.util.List instanceSelectionList_ = java.util.Collections.emptyList(); private void ensureInstanceSelectionListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instanceSelectionList_ = new java.util.ArrayList< com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection>( instanceSelectionList_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2778,7 +4013,7 @@ public Builder addAllInstanceSelectionList( public Builder clearInstanceSelectionList() { if (instanceSelectionListBuilder_ == null) { instanceSelectionList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { instanceSelectionListBuilder_.clear(); @@ -2934,7 +4169,7 @@ public Builder removeInstanceSelectionList(int index) { com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection.Builder, com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionOrBuilder>( instanceSelectionList_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instanceSelectionList_ = null; @@ -2947,12 +4182,12 @@ public Builder removeInstanceSelectionList(int index) { instanceSelectionResults_ = java.util.Collections.emptyList(); private void ensureInstanceSelectionResultsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { instanceSelectionResults_ = new java.util.ArrayList< com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult>( instanceSelectionResults_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -3206,7 +4441,7 @@ public Builder addAllInstanceSelectionResults( public Builder clearInstanceSelectionResults() { if (instanceSelectionResultsBuilder_ == null) { instanceSelectionResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { instanceSelectionResultsBuilder_.clear(); @@ -3358,7 +4593,7 @@ public Builder removeInstanceSelectionResults(int index) { com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy .InstanceSelectionResultOrBuilder>( instanceSelectionResults_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); instanceSelectionResults_ = null; diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicyOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicyOrBuilder.java index ca924ddfe388..d9715950025d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicyOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceFlexibilityPolicyOrBuilder.java @@ -24,6 +24,52 @@ public interface InstanceFlexibilityPolicyOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceFlexibilityPolicy) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provisioningModelMix field is set. + */ + boolean hasProvisioningModelMix(); + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisioningModelMix. + */ + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix + getProvisioningModelMix(); + /** + * + * + *
+   * Optional. Defines how the Group selects the provisioning model to ensure
+   * required reliability.
+   * 
+ * + * + * .google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMix provisioning_model_mix = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder + getProvisioningModelMixOrBuilder(); + /** * * diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index ab02b15fbeb5..ff52b61451b1 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -794,6 +794,30 @@ message ManagedGroupConfig { // Instance flexibility Policy allowing a mixture of VM shapes and provisioning // models. message InstanceFlexibilityPolicy { + // Defines how Dataproc should create VMs with a mixture of provisioning + // models. + message ProvisioningModelMix { + // Optional. The base capacity that will always use Standard VMs to avoid + // risk of more preemption than the minimum capacity you need. Dataproc will + // create only standard VMs until it reaches standard_capacity_base, then it + // will start using standard_capacity_percent_above_base to mix Spot with + // Standard VMs. eg. If 15 instances are requested and + // standard_capacity_base is 5, Dataproc will create 5 standard VMs and then + // start mixing spot and standard VMs for remaining 10 instances. + optional int32 standard_capacity_base = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The percentage of target capacity that should use Standard VM. + // The remaining percentage will use Spot VMs. The percentage applies only + // to the capacity above standard_capacity_base. eg. If 15 instances are + // requested and standard_capacity_base is 5 and + // standard_capacity_percent_above_base is 30, Dataproc will create 5 + // standard VMs and then start mixing spot and standard VMs for remaining 10 + // instances. The mix will be 30% standard and 70% spot. + optional int32 standard_capacity_percent_above_base = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // Defines machines types and a rank to which the machines types belong. message InstanceSelection { // Optional. Full machine-type names, e.g. "n1-standard-16". @@ -818,6 +842,11 @@ message InstanceFlexibilityPolicy { optional int32 vm_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Optional. Defines how the Group selects the provisioning model to ensure + // required reliability. + ProvisioningModelMix provisioning_model_mix = 1 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of instance selection options that the group will use when // creating new VMs. repeated InstanceSelection instance_selection_list = 2 @@ -883,6 +912,19 @@ message DiskConfig { // See [local SSD // performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates how many IOPS to provision for the disk. This sets the + // number of I/O operations per second that the disk can handle. Note: This + // field is only supported if boot_disk_type is hyperdisk-balanced. + optional int64 boot_disk_provisioned_iops = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates how much throughput to provision for the disk. This + // sets the number of throughput mb per second that the disk can handle. + // Values must be greater than or equal to 1. Note: This field is only + // supported if boot_disk_type is hyperdisk-balanced. + optional int64 boot_disk_provisioned_throughput = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Node group identification and configuration information. diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 19b82f99b9e6..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_AutoscalingPolicyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newHttpJsonBuilder().build(); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); - } -} -// [END dataproc_v1_generated_AutoscalingPolicyService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4d2399284773 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_AutoscalingPolicyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + AutoscalingPolicyServiceSettings.newHttpJsonBuilder().build(); + AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); + } +} +// [END dataproc_v1_generated_AutoscalingPolicyService_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 80d79c907158..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_BatchController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerSettings batchControllerSettings = - BatchControllerSettings.newHttpJsonBuilder().build(); - BatchControllerClient batchControllerClient = - BatchControllerClient.create(batchControllerSettings); - } -} -// [END dataproc_v1_generated_BatchController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..76fad8a96f79 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_BatchController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BatchControllerSettings batchControllerSettings = + BatchControllerSettings.newHttpJsonBuilder().build(); + BatchControllerClient batchControllerClient = + BatchControllerClient.create(batchControllerSettings); + } +} +// [END dataproc_v1_generated_BatchController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 763a436f3d76..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_ClusterController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newHttpJsonBuilder().build(); - ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - } -} -// [END dataproc_v1_generated_ClusterController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2663e4fce177 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_ClusterController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ClusterControllerSettings clusterControllerSettings = + ClusterControllerSettings.newHttpJsonBuilder().build(); + ClusterControllerClient clusterControllerClient = + ClusterControllerClient.create(clusterControllerSettings); + } +} +// [END dataproc_v1_generated_ClusterController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 64f4a32c72e8..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_JobController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerSettings jobControllerSettings = - JobControllerSettings.newHttpJsonBuilder().build(); - JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); - } -} -// [END dataproc_v1_generated_JobController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4b69a3ee4b31 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_JobController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.JobControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobControllerSettings jobControllerSettings = + JobControllerSettings.newHttpJsonBuilder().build(); + JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + } +} +// [END dataproc_v1_generated_JobController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7fd8396fede9..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.NodeGroupControllerClient; -import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - NodeGroupControllerSettings nodeGroupControllerSettings = - NodeGroupControllerSettings.newHttpJsonBuilder().build(); - NodeGroupControllerClient nodeGroupControllerClient = - NodeGroupControllerClient.create(nodeGroupControllerSettings); - } -} -// [END dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..45292fd089bb --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerSettings nodeGroupControllerSettings = + NodeGroupControllerSettings.newHttpJsonBuilder().build(); + NodeGroupControllerClient nodeGroupControllerClient = + NodeGroupControllerClient.create(nodeGroupControllerSettings); + } +} +// [END dataproc_v1_generated_NodeGroupController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1dc774c2dea9..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_SessionController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.SessionControllerClient; -import com.google.cloud.dataproc.v1.SessionControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionControllerSettings sessionControllerSettings = - SessionControllerSettings.newHttpJsonBuilder().build(); - SessionControllerClient sessionControllerClient = - SessionControllerClient.create(sessionControllerSettings); - } -} -// [END dataproc_v1_generated_SessionController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..15f3cd9f69b5 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessioncontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_SessionController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.SessionControllerClient; +import com.google.cloud.dataproc.v1.SessionControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionControllerSettings sessionControllerSettings = + SessionControllerSettings.newHttpJsonBuilder().build(); + SessionControllerClient sessionControllerClient = + SessionControllerClient.create(sessionControllerSettings); + } +} +// [END dataproc_v1_generated_SessionController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 37522aa85276..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_SessionTemplateController_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.SessionTemplateControllerClient; -import com.google.cloud.dataproc.v1.SessionTemplateControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionTemplateControllerSettings sessionTemplateControllerSettings = - SessionTemplateControllerSettings.newHttpJsonBuilder().build(); - SessionTemplateControllerClient sessionTemplateControllerClient = - SessionTemplateControllerClient.create(sessionTemplateControllerSettings); - } -} -// [END dataproc_v1_generated_SessionTemplateController_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b2ff11622bda --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/sessiontemplatecontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_SessionTemplateController_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.SessionTemplateControllerClient; +import com.google.cloud.dataproc.v1.SessionTemplateControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionTemplateControllerSettings sessionTemplateControllerSettings = + SessionTemplateControllerSettings.newHttpJsonBuilder().build(); + SessionTemplateControllerClient sessionTemplateControllerClient = + SessionTemplateControllerClient.create(sessionTemplateControllerSettings); + } +} +// [END dataproc_v1_generated_SessionTemplateController_Create_UseHttpJsonTransport_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 87a9642d9a77..000000000000 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_WorkflowTemplateService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - WorkflowTemplateServiceSettings.newHttpJsonBuilder().build(); - WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); - } -} -// [END dataproc_v1_generated_WorkflowTemplateService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateUseHttpJsonTransport.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0d8c5da08337 --- /dev/null +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_WorkflowTemplateService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + WorkflowTemplateServiceSettings.newHttpJsonBuilder().build(); + WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); + } +} +// [END dataproc_v1_generated_WorkflowTemplateService_Create_UseHttpJsonTransport_sync] diff --git a/java-datastream/README.md b/java-datastream/README.md index cb7d26366a34..a2d40a3f7fdf 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json index a74ca95ffdfd..bcd96d36b1b1 100644 --- a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json +++ b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.AvroFileFormat", "queryAllDeclaredConstructors": true, diff --git a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1alpha1/reflect-config.json b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1alpha1/reflect-config.json index 7d823e0ee62b..8b5b69c2321f 100644 --- a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1alpha1/reflect-config.json +++ b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1alpha1.AvroFileFormat", "queryAllDeclaredConstructors": true, diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index abea030404ad..000000000000 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datastream.v1.samples; - -// [START datastream_v1_generated_Datastream_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datastream.v1.DatastreamClient; -import com.google.cloud.datastream.v1.DatastreamSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DatastreamSettings datastreamSettings = DatastreamSettings.newHttpJsonBuilder().build(); - DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); - } -} -// [END datastream_v1_generated_Datastream_Create_SetCredentialsProvider1_sync] diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateUseHttpJsonTransport.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a1916b9627c3 --- /dev/null +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datastream.v1.samples; + +// [START datastream_v1_generated_Datastream_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.DatastreamSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DatastreamSettings datastreamSettings = DatastreamSettings.newHttpJsonBuilder().build(); + DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); + } +} +// [END datastream_v1_generated_Datastream_Create_UseHttpJsonTransport_sync] diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 53d125919fed..000000000000 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datastream.v1alpha1.samples; - -// [START datastream_v1alpha1_generated_Datastream_Create_SetCredentialsProvider1_sync] -import com.google.cloud.datastream.v1alpha1.DatastreamClient; -import com.google.cloud.datastream.v1alpha1.DatastreamSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DatastreamSettings datastreamSettings = DatastreamSettings.newHttpJsonBuilder().build(); - DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); - } -} -// [END datastream_v1alpha1_generated_Datastream_Create_SetCredentialsProvider1_sync] diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateUseHttpJsonTransport.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d5539a280e40 --- /dev/null +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.datastream.v1alpha1.samples; + +// [START datastream_v1alpha1_generated_Datastream_Create_UseHttpJsonTransport_sync] +import com.google.cloud.datastream.v1alpha1.DatastreamClient; +import com.google.cloud.datastream.v1alpha1.DatastreamSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DatastreamSettings datastreamSettings = DatastreamSettings.newHttpJsonBuilder().build(); + DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); + } +} +// [END datastream_v1alpha1_generated_Datastream_Create_UseHttpJsonTransport_sync] diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index da75960caa72..b4d5bbb82af5 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-debugger-client.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-debugger-client/google-cloud-debugger-client/src/main/resources/META-INF/native-image/com.google.cloud.debugger.v2/reflect-config.json b/java-debugger-client/google-cloud-debugger-client/src/main/resources/META-INF/native-image/com.google.cloud.debugger.v2/reflect-config.json index d132d6701df6..30fdbaa9e81f 100644 --- a/java-debugger-client/google-cloud-debugger-client/src/main/resources/META-INF/native-image/com.google.cloud.debugger.v2/reflect-config.json +++ b/java-debugger-client/google-cloud-debugger-client/src/main/resources/META-INF/native-image/com.google.cloud.debugger.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.clouddebugger.v2.Breakpoint", "queryAllDeclaredConstructors": true, diff --git a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateSetCredentialsProvider1.java b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fc0bc625c12e..000000000000 --- a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.debugger.v2.samples; - -// [START clouddebugger_v2_generated_Controller2_Create_SetCredentialsProvider1_sync] -import com.google.cloud.debugger.v2.Controller2Client; -import com.google.cloud.debugger.v2.Controller2Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - Controller2Settings controller2Settings = Controller2Settings.newHttpJsonBuilder().build(); - Controller2Client controller2Client = Controller2Client.create(controller2Settings); - } -} -// [END clouddebugger_v2_generated_Controller2_Create_SetCredentialsProvider1_sync] diff --git a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateUseHttpJsonTransport.java b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ad1beafbf858 --- /dev/null +++ b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/controller2/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.debugger.v2.samples; + +// [START clouddebugger_v2_generated_Controller2_Create_UseHttpJsonTransport_sync] +import com.google.cloud.debugger.v2.Controller2Client; +import com.google.cloud.debugger.v2.Controller2Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + Controller2Settings controller2Settings = Controller2Settings.newHttpJsonBuilder().build(); + Controller2Client controller2Client = Controller2Client.create(controller2Settings); + } +} +// [END clouddebugger_v2_generated_Controller2_Create_UseHttpJsonTransport_sync] diff --git a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateSetCredentialsProvider1.java b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 20e0e3635ed4..000000000000 --- a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.debugger.v2.samples; - -// [START clouddebugger_v2_generated_Debugger2_Create_SetCredentialsProvider1_sync] -import com.google.cloud.debugger.v2.Debugger2Client; -import com.google.cloud.debugger.v2.Debugger2Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - Debugger2Settings debugger2Settings = Debugger2Settings.newHttpJsonBuilder().build(); - Debugger2Client debugger2Client = Debugger2Client.create(debugger2Settings); - } -} -// [END clouddebugger_v2_generated_Debugger2_Create_SetCredentialsProvider1_sync] diff --git a/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateUseHttpJsonTransport.java b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dc6ea77df28c --- /dev/null +++ b/java-debugger-client/samples/snippets/generated/com/google/cloud/debugger/v2/debugger2/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.debugger.v2.samples; + +// [START clouddebugger_v2_generated_Debugger2_Create_UseHttpJsonTransport_sync] +import com.google.cloud.debugger.v2.Debugger2Client; +import com.google.cloud.debugger.v2.Debugger2Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + Debugger2Settings debugger2Settings = Debugger2Settings.newHttpJsonBuilder().build(); + Debugger2Client debugger2Client = Debugger2Client.create(debugger2Settings); + } +} +// [END clouddebugger_v2_generated_Debugger2_Create_UseHttpJsonTransport_sync] diff --git a/java-deploy/README.md b/java-deploy/README.md index 3d982d68f80b..477e13e55239 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json index 4b78bb5ae6ee..174bee0962c9 100644 --- a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json +++ b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.AbandonReleaseRequest", "queryAllDeclaredConstructors": true, diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateSetCredentialsProvider1.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f40e27e9cf6c..000000000000 --- a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.deploy.v1.samples; - -// [START clouddeploy_v1_generated_CloudDeploy_Create_SetCredentialsProvider1_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CloudDeploySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeploySettings cloudDeploySettings = CloudDeploySettings.newHttpJsonBuilder().build(); - CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_Create_SetCredentialsProvider1_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateUseHttpJsonTransport.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..29368276168a --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_Create_UseHttpJsonTransport_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CloudDeploySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudDeploySettings cloudDeploySettings = CloudDeploySettings.newHttpJsonBuilder().build(); + CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_Create_UseHttpJsonTransport_sync] diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 69dbf390030a..41890a63acef 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.9.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json index 6fb32f883c8b..9c26ea668d95 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateSetCredentialsProvider1.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9ae483329e67..000000000000 --- a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.developerconnect.v1.samples; - -// [START developerconnect_v1_generated_DeveloperConnect_Create_SetCredentialsProvider1_sync] -import com.google.cloud.developerconnect.v1.DeveloperConnectClient; -import com.google.cloud.developerconnect.v1.DeveloperConnectSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DeveloperConnectSettings developerConnectSettings = - DeveloperConnectSettings.newHttpJsonBuilder().build(); - DeveloperConnectClient developerConnectClient = - DeveloperConnectClient.create(developerConnectSettings); - } -} -// [END developerconnect_v1_generated_DeveloperConnect_Create_SetCredentialsProvider1_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateUseHttpJsonTransport.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fea30739cb8f --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_Create_UseHttpJsonTransport_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.DeveloperConnectSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DeveloperConnectSettings developerConnectSettings = + DeveloperConnectSettings.newHttpJsonBuilder().build(); + DeveloperConnectClient developerConnectClient = + DeveloperConnectClient.create(developerConnectSettings); + } +} +// [END developerconnect_v1_generated_DeveloperConnect_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index e523843ce66a..5c4f1064a5ea 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.63.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json index 935ad7c9bd30..1c02cf42cca6 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.AdvancedSettings", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json index 9fa476fba872..73dd9e2664c3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.Action", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0d1c79706807..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Agents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.AgentsClient; -import com.google.cloud.dialogflow.cx.v3.AgentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); - AgentsClient agentsClient = AgentsClient.create(agentsSettings); - } -} -// [END dialogflow_v3_generated_Agents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..38b65003ef77 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/agents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Agents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.AgentsClient; +import com.google.cloud.dialogflow.cx.v3.AgentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); + AgentsClient agentsClient = AgentsClient.create(agentsSettings); + } +} +// [END dialogflow_v3_generated_Agents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 227890fd42c5..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Changelogs_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.ChangelogsClient; -import com.google.cloud.dialogflow.cx.v3.ChangelogsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ChangelogsSettings changelogsSettings = ChangelogsSettings.newHttpJsonBuilder().build(); - ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); - } -} -// [END dialogflow_v3_generated_Changelogs_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dccfc99e68fd --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/changelogs/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Changelogs_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.ChangelogsClient; +import com.google.cloud.dialogflow.cx.v3.ChangelogsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ChangelogsSettings changelogsSettings = ChangelogsSettings.newHttpJsonBuilder().build(); + ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); + } +} +// [END dialogflow_v3_generated_Changelogs_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index efa142c248c5..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Deployments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.DeploymentsClient; -import com.google.cloud.dialogflow.cx.v3.DeploymentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DeploymentsSettings deploymentsSettings = DeploymentsSettings.newHttpJsonBuilder().build(); - DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); - } -} -// [END dialogflow_v3_generated_Deployments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..924ed8a24f77 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/deployments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Deployments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.DeploymentsClient; +import com.google.cloud.dialogflow.cx.v3.DeploymentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DeploymentsSettings deploymentsSettings = DeploymentsSettings.newHttpJsonBuilder().build(); + DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); + } +} +// [END dialogflow_v3_generated_Deployments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5846959f644b..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_EntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.EntityTypesClient; -import com.google.cloud.dialogflow.cx.v3.EntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); - EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); - } -} -// [END dialogflow_v3_generated_EntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1172681af026 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/entitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_EntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.EntityTypesClient; +import com.google.cloud.dialogflow.cx.v3.EntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); + EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); + } +} +// [END dialogflow_v3_generated_EntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4aa8f6514794..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.EnvironmentsClient; -import com.google.cloud.dialogflow.cx.v3.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END dialogflow_v3_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c53a7f91d061 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.EnvironmentsClient; +import com.google.cloud.dialogflow.cx.v3.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END dialogflow_v3_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 05e2244cf3cc..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Experiments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.ExperimentsClient; -import com.google.cloud.dialogflow.cx.v3.ExperimentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExperimentsSettings experimentsSettings = ExperimentsSettings.newHttpJsonBuilder().build(); - ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); - } -} -// [END dialogflow_v3_generated_Experiments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..89a1cc72e6c2 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/experiments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Experiments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.ExperimentsClient; +import com.google.cloud.dialogflow.cx.v3.ExperimentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExperimentsSettings experimentsSettings = ExperimentsSettings.newHttpJsonBuilder().build(); + ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); + } +} +// [END dialogflow_v3_generated_Experiments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1cc6c21ec90f..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Flows_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.FlowsClient; -import com.google.cloud.dialogflow.cx.v3.FlowsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FlowsSettings flowsSettings = FlowsSettings.newHttpJsonBuilder().build(); - FlowsClient flowsClient = FlowsClient.create(flowsSettings); - } -} -// [END dialogflow_v3_generated_Flows_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..190c9fd02cd4 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/flows/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Flows_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.FlowsClient; +import com.google.cloud.dialogflow.cx.v3.FlowsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FlowsSettings flowsSettings = FlowsSettings.newHttpJsonBuilder().build(); + FlowsClient flowsClient = FlowsClient.create(flowsSettings); + } +} +// [END dialogflow_v3_generated_Flows_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 12faa2065aa1..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Generators_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.GeneratorsClient; -import com.google.cloud.dialogflow.cx.v3.GeneratorsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); - GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); - } -} -// [END dialogflow_v3_generated_Generators_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d23cbe321b16 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/generators/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Generators_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.GeneratorsClient; +import com.google.cloud.dialogflow.cx.v3.GeneratorsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); + GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); + } +} +// [END dialogflow_v3_generated_Generators_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cf6eccbcba8d..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Intents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.IntentsClient; -import com.google.cloud.dialogflow.cx.v3.IntentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); - IntentsClient intentsClient = IntentsClient.create(intentsSettings); - } -} -// [END dialogflow_v3_generated_Intents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f63ceaecef7d --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/intents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Intents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.IntentsClient; +import com.google.cloud.dialogflow.cx.v3.IntentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); + IntentsClient intentsClient = IntentsClient.create(intentsSettings); + } +} +// [END dialogflow_v3_generated_Intents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 684983ff24cf..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Pages_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.PagesClient; -import com.google.cloud.dialogflow.cx.v3.PagesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PagesSettings pagesSettings = PagesSettings.newHttpJsonBuilder().build(); - PagesClient pagesClient = PagesClient.create(pagesSettings); - } -} -// [END dialogflow_v3_generated_Pages_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e9852af6f30c --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/pages/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Pages_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.PagesClient; +import com.google.cloud.dialogflow.cx.v3.PagesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PagesSettings pagesSettings = PagesSettings.newHttpJsonBuilder().build(); + PagesClient pagesClient = PagesClient.create(pagesSettings); + } +} +// [END dialogflow_v3_generated_Pages_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bc4421f05781..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_SecuritySettingsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient; -import com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecuritySettingsServiceSettings securitySettingsServiceSettings = - SecuritySettingsServiceSettings.newHttpJsonBuilder().build(); - SecuritySettingsServiceClient securitySettingsServiceClient = - SecuritySettingsServiceClient.create(securitySettingsServiceSettings); - } -} -// [END dialogflow_v3_generated_SecuritySettingsService_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5b1866ca5d8e --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_SecuritySettingsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient; +import com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecuritySettingsServiceSettings securitySettingsServiceSettings = + SecuritySettingsServiceSettings.newHttpJsonBuilder().build(); + SecuritySettingsServiceClient securitySettingsServiceClient = + SecuritySettingsServiceClient.create(securitySettingsServiceSettings); + } +} +// [END dialogflow_v3_generated_SecuritySettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cb1022db3b0f..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.SessionEntityTypesClient; -import com.google.cloud.dialogflow.cx.v3.SessionEntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionEntityTypesSettings sessionEntityTypesSettings = - SessionEntityTypesSettings.newHttpJsonBuilder().build(); - SessionEntityTypesClient sessionEntityTypesClient = - SessionEntityTypesClient.create(sessionEntityTypesSettings); - } -} -// [END dialogflow_v3_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fc45cb089fc3 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.SessionEntityTypesClient; +import com.google.cloud.dialogflow.cx.v3.SessionEntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionEntityTypesSettings sessionEntityTypesSettings = + SessionEntityTypesSettings.newHttpJsonBuilder().build(); + SessionEntityTypesClient sessionEntityTypesClient = + SessionEntityTypesClient.create(sessionEntityTypesSettings); + } +} +// [END dialogflow_v3_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0dc2cfb58d79..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Sessions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.SessionsClient; -import com.google.cloud.dialogflow.cx.v3.SessionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); - SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); - } -} -// [END dialogflow_v3_generated_Sessions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ab5b4cac9225 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/sessions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Sessions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.SessionsClient; +import com.google.cloud.dialogflow.cx.v3.SessionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); + SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); + } +} +// [END dialogflow_v3_generated_Sessions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 08ac30d3778f..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_TestCases_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.TestCasesClient; -import com.google.cloud.dialogflow.cx.v3.TestCasesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TestCasesSettings testCasesSettings = TestCasesSettings.newHttpJsonBuilder().build(); - TestCasesClient testCasesClient = TestCasesClient.create(testCasesSettings); - } -} -// [END dialogflow_v3_generated_TestCases_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..19bf5471284d --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/testcases/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_TestCases_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.TestCasesClient; +import com.google.cloud.dialogflow.cx.v3.TestCasesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestCasesSettings testCasesSettings = TestCasesSettings.newHttpJsonBuilder().build(); + TestCasesClient testCasesClient = TestCasesClient.create(testCasesSettings); + } +} +// [END dialogflow_v3_generated_TestCases_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index df1280b6a409..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_TransitionRouteGroups_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient; -import com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TransitionRouteGroupsSettings transitionRouteGroupsSettings = - TransitionRouteGroupsSettings.newHttpJsonBuilder().build(); - TransitionRouteGroupsClient transitionRouteGroupsClient = - TransitionRouteGroupsClient.create(transitionRouteGroupsSettings); - } -} -// [END dialogflow_v3_generated_TransitionRouteGroups_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..987b8c634d0a --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_TransitionRouteGroups_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient; +import com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TransitionRouteGroupsSettings transitionRouteGroupsSettings = + TransitionRouteGroupsSettings.newHttpJsonBuilder().build(); + TransitionRouteGroupsClient transitionRouteGroupsClient = + TransitionRouteGroupsClient.create(transitionRouteGroupsSettings); + } +} +// [END dialogflow_v3_generated_TransitionRouteGroups_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0a11f8f64c74..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Versions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.VersionsClient; -import com.google.cloud.dialogflow.cx.v3.VersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); - VersionsClient versionsClient = VersionsClient.create(versionsSettings); - } -} -// [END dialogflow_v3_generated_Versions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3ffba9043800 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/versions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Versions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.VersionsClient; +import com.google.cloud.dialogflow.cx.v3.VersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); + VersionsClient versionsClient = VersionsClient.create(versionsSettings); + } +} +// [END dialogflow_v3_generated_Versions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 280253ec1517..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3.samples; - -// [START dialogflow_v3_generated_Webhooks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3.WebhooksClient; -import com.google.cloud.dialogflow.cx.v3.WebhooksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebhooksSettings webhooksSettings = WebhooksSettings.newHttpJsonBuilder().build(); - WebhooksClient webhooksClient = WebhooksClient.create(webhooksSettings); - } -} -// [END dialogflow_v3_generated_Webhooks_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dd69a0329706 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3/webhooks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.samples; + +// [START dialogflow_v3_generated_Webhooks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3.WebhooksClient; +import com.google.cloud.dialogflow.cx.v3.WebhooksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebhooksSettings webhooksSettings = WebhooksSettings.newHttpJsonBuilder().build(); + WebhooksClient webhooksClient = WebhooksClient.create(webhooksSettings); + } +} +// [END dialogflow_v3_generated_Webhooks_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0786734e62d6..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Agents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.AgentsClient; -import com.google.cloud.dialogflow.cx.v3beta1.AgentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); - AgentsClient agentsClient = AgentsClient.create(agentsSettings); - } -} -// [END dialogflow_v3beta1_generated_Agents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..437a10467f52 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Agents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.AgentsClient; +import com.google.cloud.dialogflow.cx.v3beta1.AgentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); + AgentsClient agentsClient = AgentsClient.create(agentsSettings); + } +} +// [END dialogflow_v3beta1_generated_Agents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 68c5b5bd47d4..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Changelogs_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient; -import com.google.cloud.dialogflow.cx.v3beta1.ChangelogsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ChangelogsSettings changelogsSettings = ChangelogsSettings.newHttpJsonBuilder().build(); - ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); - } -} -// [END dialogflow_v3beta1_generated_Changelogs_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4c81b22060f8 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/changelogs/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Changelogs_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient; +import com.google.cloud.dialogflow.cx.v3beta1.ChangelogsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ChangelogsSettings changelogsSettings = ChangelogsSettings.newHttpJsonBuilder().build(); + ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings); + } +} +// [END dialogflow_v3beta1_generated_Changelogs_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 051bb0b1a326..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_ConversationHistory_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.ConversationHistoryClient; -import com.google.cloud.dialogflow.cx.v3beta1.ConversationHistorySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationHistorySettings conversationHistorySettings = - ConversationHistorySettings.newHttpJsonBuilder().build(); - ConversationHistoryClient conversationHistoryClient = - ConversationHistoryClient.create(conversationHistorySettings); - } -} -// [END dialogflow_v3beta1_generated_ConversationHistory_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..496bb75f499c --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/conversationhistory/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_ConversationHistory_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.ConversationHistoryClient; +import com.google.cloud.dialogflow.cx.v3beta1.ConversationHistorySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationHistorySettings conversationHistorySettings = + ConversationHistorySettings.newHttpJsonBuilder().build(); + ConversationHistoryClient conversationHistoryClient = + ConversationHistoryClient.create(conversationHistorySettings); + } +} +// [END dialogflow_v3beta1_generated_ConversationHistory_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b37c2d0dce9d..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Deployments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient; -import com.google.cloud.dialogflow.cx.v3beta1.DeploymentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DeploymentsSettings deploymentsSettings = DeploymentsSettings.newHttpJsonBuilder().build(); - DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); - } -} -// [END dialogflow_v3beta1_generated_Deployments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8cfb42eb2214 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/deployments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Deployments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient; +import com.google.cloud.dialogflow.cx.v3beta1.DeploymentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DeploymentsSettings deploymentsSettings = DeploymentsSettings.newHttpJsonBuilder().build(); + DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings); + } +} +// [END dialogflow_v3beta1_generated_Deployments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index aaa3ec80b41e..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_EntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.EntityTypesClient; -import com.google.cloud.dialogflow.cx.v3beta1.EntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); - EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); - } -} -// [END dialogflow_v3beta1_generated_EntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6017df4db646 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_EntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.EntityTypesClient; +import com.google.cloud.dialogflow.cx.v3beta1.EntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); + EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); + } +} +// [END dialogflow_v3beta1_generated_EntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4f22d78379b0..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient; -import com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END dialogflow_v3beta1_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5a2d87e89456 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient; +import com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END dialogflow_v3beta1_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4d6d67af90ef..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Examples_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.ExamplesClient; -import com.google.cloud.dialogflow.cx.v3beta1.ExamplesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExamplesSettings examplesSettings = ExamplesSettings.newHttpJsonBuilder().build(); - ExamplesClient examplesClient = ExamplesClient.create(examplesSettings); - } -} -// [END dialogflow_v3beta1_generated_Examples_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..69753115f0ee --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/examples/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Examples_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.ExamplesClient; +import com.google.cloud.dialogflow.cx.v3beta1.ExamplesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExamplesSettings examplesSettings = ExamplesSettings.newHttpJsonBuilder().build(); + ExamplesClient examplesClient = ExamplesClient.create(examplesSettings); + } +} +// [END dialogflow_v3beta1_generated_Examples_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4beb0d0eb8b0..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Experiments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.ExperimentsClient; -import com.google.cloud.dialogflow.cx.v3beta1.ExperimentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExperimentsSettings experimentsSettings = ExperimentsSettings.newHttpJsonBuilder().build(); - ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); - } -} -// [END dialogflow_v3beta1_generated_Experiments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..01bd33b9e41e --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/experiments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Experiments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.ExperimentsClient; +import com.google.cloud.dialogflow.cx.v3beta1.ExperimentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExperimentsSettings experimentsSettings = ExperimentsSettings.newHttpJsonBuilder().build(); + ExperimentsClient experimentsClient = ExperimentsClient.create(experimentsSettings); + } +} +// [END dialogflow_v3beta1_generated_Experiments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d200781ce3e7..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Flows_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.FlowsClient; -import com.google.cloud.dialogflow.cx.v3beta1.FlowsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FlowsSettings flowsSettings = FlowsSettings.newHttpJsonBuilder().build(); - FlowsClient flowsClient = FlowsClient.create(flowsSettings); - } -} -// [END dialogflow_v3beta1_generated_Flows_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5a3a625f681d --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/flows/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Flows_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.FlowsClient; +import com.google.cloud.dialogflow.cx.v3beta1.FlowsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FlowsSettings flowsSettings = FlowsSettings.newHttpJsonBuilder().build(); + FlowsClient flowsClient = FlowsClient.create(flowsSettings); + } +} +// [END dialogflow_v3beta1_generated_Flows_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 594c03df432e..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Generators_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.GeneratorsClient; -import com.google.cloud.dialogflow.cx.v3beta1.GeneratorsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); - GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); - } -} -// [END dialogflow_v3beta1_generated_Generators_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..158376811ba4 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/generators/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Generators_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.GeneratorsClient; +import com.google.cloud.dialogflow.cx.v3beta1.GeneratorsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); + GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); + } +} +// [END dialogflow_v3beta1_generated_Generators_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 837879c1fc7c..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Intents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.IntentsClient; -import com.google.cloud.dialogflow.cx.v3beta1.IntentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); - IntentsClient intentsClient = IntentsClient.create(intentsSettings); - } -} -// [END dialogflow_v3beta1_generated_Intents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..47b613a85ac1 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/intents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Intents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.IntentsClient; +import com.google.cloud.dialogflow.cx.v3beta1.IntentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); + IntentsClient intentsClient = IntentsClient.create(intentsSettings); + } +} +// [END dialogflow_v3beta1_generated_Intents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1dab621644e2..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Pages_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.PagesClient; -import com.google.cloud.dialogflow.cx.v3beta1.PagesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PagesSettings pagesSettings = PagesSettings.newHttpJsonBuilder().build(); - PagesClient pagesClient = PagesClient.create(pagesSettings); - } -} -// [END dialogflow_v3beta1_generated_Pages_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..12dd002f7cd4 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/pages/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Pages_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.PagesClient; +import com.google.cloud.dialogflow.cx.v3beta1.PagesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PagesSettings pagesSettings = PagesSettings.newHttpJsonBuilder().build(); + PagesClient pagesClient = PagesClient.create(pagesSettings); + } +} +// [END dialogflow_v3beta1_generated_Pages_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 16661f92d8ec..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Playbooks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.PlaybooksClient; -import com.google.cloud.dialogflow.cx.v3beta1.PlaybooksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PlaybooksSettings playbooksSettings = PlaybooksSettings.newHttpJsonBuilder().build(); - PlaybooksClient playbooksClient = PlaybooksClient.create(playbooksSettings); - } -} -// [END dialogflow_v3beta1_generated_Playbooks_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..43818d26b13c --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/playbooks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Playbooks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.PlaybooksClient; +import com.google.cloud.dialogflow.cx.v3beta1.PlaybooksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PlaybooksSettings playbooksSettings = PlaybooksSettings.newHttpJsonBuilder().build(); + PlaybooksClient playbooksClient = PlaybooksClient.create(playbooksSettings); + } +} +// [END dialogflow_v3beta1_generated_Playbooks_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cedd016d40d1..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_SecuritySettingsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient; -import com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecuritySettingsServiceSettings securitySettingsServiceSettings = - SecuritySettingsServiceSettings.newHttpJsonBuilder().build(); - SecuritySettingsServiceClient securitySettingsServiceClient = - SecuritySettingsServiceClient.create(securitySettingsServiceSettings); - } -} -// [END dialogflow_v3beta1_generated_SecuritySettingsService_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..49cccf2f6c05 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/securitysettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_SecuritySettingsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient; +import com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecuritySettingsServiceSettings securitySettingsServiceSettings = + SecuritySettingsServiceSettings.newHttpJsonBuilder().build(); + SecuritySettingsServiceClient securitySettingsServiceClient = + SecuritySettingsServiceClient.create(securitySettingsServiceSettings); + } +} +// [END dialogflow_v3beta1_generated_SecuritySettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d3d066ad79df..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient; -import com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionEntityTypesSettings sessionEntityTypesSettings = - SessionEntityTypesSettings.newHttpJsonBuilder().build(); - SessionEntityTypesClient sessionEntityTypesClient = - SessionEntityTypesClient.create(sessionEntityTypesSettings); - } -} -// [END dialogflow_v3beta1_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0334f6da3b5a --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient; +import com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionEntityTypesSettings sessionEntityTypesSettings = + SessionEntityTypesSettings.newHttpJsonBuilder().build(); + SessionEntityTypesClient sessionEntityTypesClient = + SessionEntityTypesClient.create(sessionEntityTypesSettings); + } +} +// [END dialogflow_v3beta1_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c6313094d1de..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Sessions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.SessionsClient; -import com.google.cloud.dialogflow.cx.v3beta1.SessionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); - SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); - } -} -// [END dialogflow_v3beta1_generated_Sessions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d36ae86fe8f3 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/sessions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Sessions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.SessionsClient; +import com.google.cloud.dialogflow.cx.v3beta1.SessionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); + SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); + } +} +// [END dialogflow_v3beta1_generated_Sessions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bae59aef4f94..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_TestCases_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.TestCasesClient; -import com.google.cloud.dialogflow.cx.v3beta1.TestCasesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TestCasesSettings testCasesSettings = TestCasesSettings.newHttpJsonBuilder().build(); - TestCasesClient testCasesClient = TestCasesClient.create(testCasesSettings); - } -} -// [END dialogflow_v3beta1_generated_TestCases_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ad293deb71c1 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/testcases/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_TestCases_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.TestCasesClient; +import com.google.cloud.dialogflow.cx.v3beta1.TestCasesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestCasesSettings testCasesSettings = TestCasesSettings.newHttpJsonBuilder().build(); + TestCasesClient testCasesClient = TestCasesClient.create(testCasesSettings); + } +} +// [END dialogflow_v3beta1_generated_TestCases_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d81d24660939..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Tools_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.ToolsClient; -import com.google.cloud.dialogflow.cx.v3beta1.ToolsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ToolsSettings toolsSettings = ToolsSettings.newHttpJsonBuilder().build(); - ToolsClient toolsClient = ToolsClient.create(toolsSettings); - } -} -// [END dialogflow_v3beta1_generated_Tools_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7286d982bbd3 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/tools/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Tools_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.ToolsClient; +import com.google.cloud.dialogflow.cx.v3beta1.ToolsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ToolsSettings toolsSettings = ToolsSettings.newHttpJsonBuilder().build(); + ToolsClient toolsClient = ToolsClient.create(toolsSettings); + } +} +// [END dialogflow_v3beta1_generated_Tools_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cb208f82fb86..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_TransitionRouteGroups_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient; -import com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TransitionRouteGroupsSettings transitionRouteGroupsSettings = - TransitionRouteGroupsSettings.newHttpJsonBuilder().build(); - TransitionRouteGroupsClient transitionRouteGroupsClient = - TransitionRouteGroupsClient.create(transitionRouteGroupsSettings); - } -} -// [END dialogflow_v3beta1_generated_TransitionRouteGroups_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e8074f3a5f68 --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/transitionroutegroups/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_TransitionRouteGroups_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient; +import com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TransitionRouteGroupsSettings transitionRouteGroupsSettings = + TransitionRouteGroupsSettings.newHttpJsonBuilder().build(); + TransitionRouteGroupsClient transitionRouteGroupsClient = + TransitionRouteGroupsClient.create(transitionRouteGroupsSettings); + } +} +// [END dialogflow_v3beta1_generated_TransitionRouteGroups_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d02db0d4d4e1..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Versions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.VersionsClient; -import com.google.cloud.dialogflow.cx.v3beta1.VersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); - VersionsClient versionsClient = VersionsClient.create(versionsSettings); - } -} -// [END dialogflow_v3beta1_generated_Versions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a2f25f86b7dc --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/versions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Versions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.VersionsClient; +import com.google.cloud.dialogflow.cx.v3beta1.VersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); + VersionsClient versionsClient = VersionsClient.create(versionsSettings); + } +} +// [END dialogflow_v3beta1_generated_Versions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6db1c96ea1cc..000000000000 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.cx.v3beta1.samples; - -// [START dialogflow_v3beta1_generated_Webhooks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.cx.v3beta1.WebhooksClient; -import com.google.cloud.dialogflow.cx.v3beta1.WebhooksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebhooksSettings webhooksSettings = WebhooksSettings.newHttpJsonBuilder().build(); - WebhooksClient webhooksClient = WebhooksClient.create(webhooksSettings); - } -} -// [END dialogflow_v3beta1_generated_Webhooks_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..21b9db9e594f --- /dev/null +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/webhooks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.samples; + +// [START dialogflow_v3beta1_generated_Webhooks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.cx.v3beta1.WebhooksClient; +import com.google.cloud.dialogflow.cx.v3beta1.WebhooksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebhooksSettings webhooksSettings = WebhooksSettings.newHttpJsonBuilder().build(); + WebhooksClient webhooksClient = WebhooksClient.create(webhooksSettings); + } +} +// [END dialogflow_v3beta1_generated_Webhooks_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 86bdfbd8c3cb..fce61a86ea02 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.58.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json index 0566cbbf227c..e3373968dd86 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.Agent", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json index a6a0fd8ee31a..4fc969b02793 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.Agent", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index dc7d50577e29..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Agents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.AgentsClient; -import com.google.cloud.dialogflow.v2.AgentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); - AgentsClient agentsClient = AgentsClient.create(agentsSettings); - } -} -// [END dialogflow_v2_generated_Agents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7d4426bf3b01 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/agents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Agents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.AgentsClient; +import com.google.cloud.dialogflow.v2.AgentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); + AgentsClient agentsClient = AgentsClient.create(agentsSettings); + } +} +// [END dialogflow_v2_generated_Agents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6926c88ad1d9..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_AnswerRecords_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.AnswerRecordsClient; -import com.google.cloud.dialogflow.v2.AnswerRecordsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnswerRecordsSettings answerRecordsSettings = - AnswerRecordsSettings.newHttpJsonBuilder().build(); - AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create(answerRecordsSettings); - } -} -// [END dialogflow_v2_generated_AnswerRecords_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8bd2047b4113 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/answerrecords/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_AnswerRecords_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.AnswerRecordsClient; +import com.google.cloud.dialogflow.v2.AnswerRecordsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnswerRecordsSettings answerRecordsSettings = + AnswerRecordsSettings.newHttpJsonBuilder().build(); + AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create(answerRecordsSettings); + } +} +// [END dialogflow_v2_generated_AnswerRecords_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 10b8af915e7a..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Contexts_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ContextsClient; -import com.google.cloud.dialogflow.v2.ContextsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ContextsSettings contextsSettings = ContextsSettings.newHttpJsonBuilder().build(); - ContextsClient contextsClient = ContextsClient.create(contextsSettings); - } -} -// [END dialogflow_v2_generated_Contexts_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3a4a442707c0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/contexts/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Contexts_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ContextsClient; +import com.google.cloud.dialogflow.v2.ContextsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ContextsSettings contextsSettings = ContextsSettings.newHttpJsonBuilder().build(); + ContextsClient contextsClient = ContextsClient.create(contextsSettings); + } +} +// [END dialogflow_v2_generated_Contexts_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5f4c3dea570f..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_ConversationDatasets_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ConversationDatasetsClient; -import com.google.cloud.dialogflow.v2.ConversationDatasetsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationDatasetsSettings conversationDatasetsSettings = - ConversationDatasetsSettings.newHttpJsonBuilder().build(); - ConversationDatasetsClient conversationDatasetsClient = - ConversationDatasetsClient.create(conversationDatasetsSettings); - } -} -// [END dialogflow_v2_generated_ConversationDatasets_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d39999eefe3f --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationdatasets/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_ConversationDatasets_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ConversationDatasetsClient; +import com.google.cloud.dialogflow.v2.ConversationDatasetsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationDatasetsSettings conversationDatasetsSettings = + ConversationDatasetsSettings.newHttpJsonBuilder().build(); + ConversationDatasetsClient conversationDatasetsClient = + ConversationDatasetsClient.create(conversationDatasetsSettings); + } +} +// [END dialogflow_v2_generated_ConversationDatasets_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6387808bab47..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_ConversationModels_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ConversationModelsClient; -import com.google.cloud.dialogflow.v2.ConversationModelsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationModelsSettings conversationModelsSettings = - ConversationModelsSettings.newHttpJsonBuilder().build(); - ConversationModelsClient conversationModelsClient = - ConversationModelsClient.create(conversationModelsSettings); - } -} -// [END dialogflow_v2_generated_ConversationModels_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2214c655fcbb --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationmodels/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_ConversationModels_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ConversationModelsClient; +import com.google.cloud.dialogflow.v2.ConversationModelsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationModelsSettings conversationModelsSettings = + ConversationModelsSettings.newHttpJsonBuilder().build(); + ConversationModelsClient conversationModelsClient = + ConversationModelsClient.create(conversationModelsSettings); + } +} +// [END dialogflow_v2_generated_ConversationModels_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 84f51780b3d6..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_ConversationProfiles_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ConversationProfilesClient; -import com.google.cloud.dialogflow.v2.ConversationProfilesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationProfilesSettings conversationProfilesSettings = - ConversationProfilesSettings.newHttpJsonBuilder().build(); - ConversationProfilesClient conversationProfilesClient = - ConversationProfilesClient.create(conversationProfilesSettings); - } -} -// [END dialogflow_v2_generated_ConversationProfiles_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..35d04cf19805 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_ConversationProfiles_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ConversationProfilesClient; +import com.google.cloud.dialogflow.v2.ConversationProfilesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationProfilesSettings conversationProfilesSettings = + ConversationProfilesSettings.newHttpJsonBuilder().build(); + ConversationProfilesClient conversationProfilesClient = + ConversationProfilesClient.create(conversationProfilesSettings); + } +} +// [END dialogflow_v2_generated_ConversationProfiles_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 67f9ddf244f4..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Conversations_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ConversationsClient; -import com.google.cloud.dialogflow.v2.ConversationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationsSettings conversationsSettings = - ConversationsSettings.newHttpJsonBuilder().build(); - ConversationsClient conversationsClient = ConversationsClient.create(conversationsSettings); - } -} -// [END dialogflow_v2_generated_Conversations_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..01c4f57ec2a8 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/conversations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Conversations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ConversationsClient; +import com.google.cloud.dialogflow.v2.ConversationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationsSettings conversationsSettings = + ConversationsSettings.newHttpJsonBuilder().build(); + ConversationsClient conversationsClient = ConversationsClient.create(conversationsSettings); + } +} +// [END dialogflow_v2_generated_Conversations_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index acce6bbb7206..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Documents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.DocumentsClient; -import com.google.cloud.dialogflow.v2.DocumentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentsSettings documentsSettings = DocumentsSettings.newHttpJsonBuilder().build(); - DocumentsClient documentsClient = DocumentsClient.create(documentsSettings); - } -} -// [END dialogflow_v2_generated_Documents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..72d43675f52d --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/documents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Documents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.DocumentsClient; +import com.google.cloud.dialogflow.v2.DocumentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentsSettings documentsSettings = DocumentsSettings.newHttpJsonBuilder().build(); + DocumentsClient documentsClient = DocumentsClient.create(documentsSettings); + } +} +// [END dialogflow_v2_generated_Documents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3adecc410b30..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_EncryptionSpecService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.EncryptionSpecServiceClient; -import com.google.cloud.dialogflow.v2.EncryptionSpecServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EncryptionSpecServiceSettings encryptionSpecServiceSettings = - EncryptionSpecServiceSettings.newHttpJsonBuilder().build(); - EncryptionSpecServiceClient encryptionSpecServiceClient = - EncryptionSpecServiceClient.create(encryptionSpecServiceSettings); - } -} -// [END dialogflow_v2_generated_EncryptionSpecService_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9f2396d35b50 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_EncryptionSpecService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.EncryptionSpecServiceClient; +import com.google.cloud.dialogflow.v2.EncryptionSpecServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EncryptionSpecServiceSettings encryptionSpecServiceSettings = + EncryptionSpecServiceSettings.newHttpJsonBuilder().build(); + EncryptionSpecServiceClient encryptionSpecServiceClient = + EncryptionSpecServiceClient.create(encryptionSpecServiceSettings); + } +} +// [END dialogflow_v2_generated_EncryptionSpecService_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 69651c912a04..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_EntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.EntityTypesClient; -import com.google.cloud.dialogflow.v2.EntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); - EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); - } -} -// [END dialogflow_v2_generated_EntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0d2a1d1be25e --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/entitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_EntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.EntityTypesClient; +import com.google.cloud.dialogflow.v2.EntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); + EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); + } +} +// [END dialogflow_v2_generated_EntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2832795f31d3..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.EnvironmentsClient; -import com.google.cloud.dialogflow.v2.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END dialogflow_v2_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ff0c27725a6c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.EnvironmentsClient; +import com.google.cloud.dialogflow.v2.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END dialogflow_v2_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index debb72445db4..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Fulfillments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.FulfillmentsClient; -import com.google.cloud.dialogflow.v2.FulfillmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FulfillmentsSettings fulfillmentsSettings = FulfillmentsSettings.newHttpJsonBuilder().build(); - FulfillmentsClient fulfillmentsClient = FulfillmentsClient.create(fulfillmentsSettings); - } -} -// [END dialogflow_v2_generated_Fulfillments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..70785645ec23 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/fulfillments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Fulfillments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.FulfillmentsClient; +import com.google.cloud.dialogflow.v2.FulfillmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FulfillmentsSettings fulfillmentsSettings = FulfillmentsSettings.newHttpJsonBuilder().build(); + FulfillmentsClient fulfillmentsClient = FulfillmentsClient.create(fulfillmentsSettings); + } +} +// [END dialogflow_v2_generated_Fulfillments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 24e6c6d59aed..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Generators_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.GeneratorsClient; -import com.google.cloud.dialogflow.v2.GeneratorsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); - GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); - } -} -// [END dialogflow_v2_generated_Generators_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5366436c1cec --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/generators/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Generators_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.GeneratorsClient; +import com.google.cloud.dialogflow.v2.GeneratorsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); + GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); + } +} +// [END dialogflow_v2_generated_Generators_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d76f9ad181d9..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Intents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.IntentsClient; -import com.google.cloud.dialogflow.v2.IntentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); - IntentsClient intentsClient = IntentsClient.create(intentsSettings); - } -} -// [END dialogflow_v2_generated_Intents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5e436579b720 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/intents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Intents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.IntentsClient; +import com.google.cloud.dialogflow.v2.IntentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); + IntentsClient intentsClient = IntentsClient.create(intentsSettings); + } +} +// [END dialogflow_v2_generated_Intents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8101f8ef86d6..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_KnowledgeBases_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.KnowledgeBasesClient; -import com.google.cloud.dialogflow.v2.KnowledgeBasesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - KnowledgeBasesSettings knowledgeBasesSettings = - KnowledgeBasesSettings.newHttpJsonBuilder().build(); - KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create(knowledgeBasesSettings); - } -} -// [END dialogflow_v2_generated_KnowledgeBases_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..47a51026bf41 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/knowledgebases/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_KnowledgeBases_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.KnowledgeBasesClient; +import com.google.cloud.dialogflow.v2.KnowledgeBasesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + KnowledgeBasesSettings knowledgeBasesSettings = + KnowledgeBasesSettings.newHttpJsonBuilder().build(); + KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create(knowledgeBasesSettings); + } +} +// [END dialogflow_v2_generated_KnowledgeBases_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 14a4b1ec938d..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Participants_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.ParticipantsClient; -import com.google.cloud.dialogflow.v2.ParticipantsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ParticipantsSettings participantsSettings = ParticipantsSettings.newHttpJsonBuilder().build(); - ParticipantsClient participantsClient = ParticipantsClient.create(participantsSettings); - } -} -// [END dialogflow_v2_generated_Participants_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d563b91ad8df --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Participants_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.ParticipantsClient; +import com.google.cloud.dialogflow.v2.ParticipantsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ParticipantsSettings participantsSettings = ParticipantsSettings.newHttpJsonBuilder().build(); + ParticipantsClient participantsClient = ParticipantsClient.create(participantsSettings); + } +} +// [END dialogflow_v2_generated_Participants_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 37dfb05a8f39..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.SessionEntityTypesClient; -import com.google.cloud.dialogflow.v2.SessionEntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionEntityTypesSettings sessionEntityTypesSettings = - SessionEntityTypesSettings.newHttpJsonBuilder().build(); - SessionEntityTypesClient sessionEntityTypesClient = - SessionEntityTypesClient.create(sessionEntityTypesSettings); - } -} -// [END dialogflow_v2_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..52e4f9f8716e --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.SessionEntityTypesClient; +import com.google.cloud.dialogflow.v2.SessionEntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionEntityTypesSettings sessionEntityTypesSettings = + SessionEntityTypesSettings.newHttpJsonBuilder().build(); + SessionEntityTypesClient sessionEntityTypesClient = + SessionEntityTypesClient.create(sessionEntityTypesSettings); + } +} +// [END dialogflow_v2_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5c74b8cfbbab..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Sessions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.SessionsClient; -import com.google.cloud.dialogflow.v2.SessionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); - SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); - } -} -// [END dialogflow_v2_generated_Sessions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..811a575f703c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/sessions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Sessions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.SessionsClient; +import com.google.cloud.dialogflow.v2.SessionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); + SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); + } +} +// [END dialogflow_v2_generated_Sessions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e79691dfa772..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2.samples; - -// [START dialogflow_v2_generated_Versions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2.VersionsClient; -import com.google.cloud.dialogflow.v2.VersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); - VersionsClient versionsClient = VersionsClient.create(versionsSettings); - } -} -// [END dialogflow_v2_generated_Versions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2b7230f7ec10 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/versions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2.samples; + +// [START dialogflow_v2_generated_Versions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2.VersionsClient; +import com.google.cloud.dialogflow.v2.VersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); + VersionsClient versionsClient = VersionsClient.create(versionsSettings); + } +} +// [END dialogflow_v2_generated_Versions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1a5b6787a81d..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Agents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.AgentsClient; -import com.google.cloud.dialogflow.v2beta1.AgentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); - AgentsClient agentsClient = AgentsClient.create(agentsSettings); - } -} -// [END dialogflow_v2beta1_generated_Agents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5e483d393f6f --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/agents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Agents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.AgentsClient; +import com.google.cloud.dialogflow.v2beta1.AgentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentsSettings agentsSettings = AgentsSettings.newHttpJsonBuilder().build(); + AgentsClient agentsClient = AgentsClient.create(agentsSettings); + } +} +// [END dialogflow_v2beta1_generated_Agents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 53f179b368dd..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_AnswerRecords_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.AnswerRecordsClient; -import com.google.cloud.dialogflow.v2beta1.AnswerRecordsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnswerRecordsSettings answerRecordsSettings = - AnswerRecordsSettings.newHttpJsonBuilder().build(); - AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create(answerRecordsSettings); - } -} -// [END dialogflow_v2beta1_generated_AnswerRecords_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..adb802c1e427 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/answerrecords/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_AnswerRecords_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.AnswerRecordsClient; +import com.google.cloud.dialogflow.v2beta1.AnswerRecordsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnswerRecordsSettings answerRecordsSettings = + AnswerRecordsSettings.newHttpJsonBuilder().build(); + AnswerRecordsClient answerRecordsClient = AnswerRecordsClient.create(answerRecordsSettings); + } +} +// [END dialogflow_v2beta1_generated_AnswerRecords_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bd6a0ea54cf9..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Contexts_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.ContextsClient; -import com.google.cloud.dialogflow.v2beta1.ContextsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ContextsSettings contextsSettings = ContextsSettings.newHttpJsonBuilder().build(); - ContextsClient contextsClient = ContextsClient.create(contextsSettings); - } -} -// [END dialogflow_v2beta1_generated_Contexts_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5fb7ffd3ce25 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/contexts/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Contexts_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.ContextsClient; +import com.google.cloud.dialogflow.v2beta1.ContextsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ContextsSettings contextsSettings = ContextsSettings.newHttpJsonBuilder().build(); + ContextsClient contextsClient = ContextsClient.create(contextsSettings); + } +} +// [END dialogflow_v2beta1_generated_Contexts_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 44aaa0945150..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_ConversationProfiles_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.ConversationProfilesClient; -import com.google.cloud.dialogflow.v2beta1.ConversationProfilesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationProfilesSettings conversationProfilesSettings = - ConversationProfilesSettings.newHttpJsonBuilder().build(); - ConversationProfilesClient conversationProfilesClient = - ConversationProfilesClient.create(conversationProfilesSettings); - } -} -// [END dialogflow_v2beta1_generated_ConversationProfiles_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9c3aca150dc8 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversationprofiles/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_ConversationProfiles_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.ConversationProfilesClient; +import com.google.cloud.dialogflow.v2beta1.ConversationProfilesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationProfilesSettings conversationProfilesSettings = + ConversationProfilesSettings.newHttpJsonBuilder().build(); + ConversationProfilesClient conversationProfilesClient = + ConversationProfilesClient.create(conversationProfilesSettings); + } +} +// [END dialogflow_v2beta1_generated_ConversationProfiles_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cce117009149..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Conversations_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.ConversationsClient; -import com.google.cloud.dialogflow.v2beta1.ConversationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationsSettings conversationsSettings = - ConversationsSettings.newHttpJsonBuilder().build(); - ConversationsClient conversationsClient = ConversationsClient.create(conversationsSettings); - } -} -// [END dialogflow_v2beta1_generated_Conversations_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b12562945409 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Conversations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.ConversationsClient; +import com.google.cloud.dialogflow.v2beta1.ConversationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationsSettings conversationsSettings = + ConversationsSettings.newHttpJsonBuilder().build(); + ConversationsClient conversationsClient = ConversationsClient.create(conversationsSettings); + } +} +// [END dialogflow_v2beta1_generated_Conversations_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c11f9684a6ef..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Documents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.DocumentsClient; -import com.google.cloud.dialogflow.v2beta1.DocumentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentsSettings documentsSettings = DocumentsSettings.newHttpJsonBuilder().build(); - DocumentsClient documentsClient = DocumentsClient.create(documentsSettings); - } -} -// [END dialogflow_v2beta1_generated_Documents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9022318aba0e --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/documents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Documents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.DocumentsClient; +import com.google.cloud.dialogflow.v2beta1.DocumentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentsSettings documentsSettings = DocumentsSettings.newHttpJsonBuilder().build(); + DocumentsClient documentsClient = DocumentsClient.create(documentsSettings); + } +} +// [END dialogflow_v2beta1_generated_Documents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 26d3cb13bd4d..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_EncryptionSpecService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.EncryptionSpecServiceClient; -import com.google.cloud.dialogflow.v2beta1.EncryptionSpecServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EncryptionSpecServiceSettings encryptionSpecServiceSettings = - EncryptionSpecServiceSettings.newHttpJsonBuilder().build(); - EncryptionSpecServiceClient encryptionSpecServiceClient = - EncryptionSpecServiceClient.create(encryptionSpecServiceSettings); - } -} -// [END dialogflow_v2beta1_generated_EncryptionSpecService_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5b25d470db4d --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/encryptionspecservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_EncryptionSpecService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.EncryptionSpecServiceClient; +import com.google.cloud.dialogflow.v2beta1.EncryptionSpecServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EncryptionSpecServiceSettings encryptionSpecServiceSettings = + EncryptionSpecServiceSettings.newHttpJsonBuilder().build(); + EncryptionSpecServiceClient encryptionSpecServiceClient = + EncryptionSpecServiceClient.create(encryptionSpecServiceSettings); + } +} +// [END dialogflow_v2beta1_generated_EncryptionSpecService_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index af4cb3c430c5..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_EntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.EntityTypesClient; -import com.google.cloud.dialogflow.v2beta1.EntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); - EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); - } -} -// [END dialogflow_v2beta1_generated_EntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6d3d1a65fce7 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/entitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_EntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.EntityTypesClient; +import com.google.cloud.dialogflow.v2beta1.EntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EntityTypesSettings entityTypesSettings = EntityTypesSettings.newHttpJsonBuilder().build(); + EntityTypesClient entityTypesClient = EntityTypesClient.create(entityTypesSettings); + } +} +// [END dialogflow_v2beta1_generated_EntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0e57f7af44dd..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.EnvironmentsClient; -import com.google.cloud.dialogflow.v2beta1.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END dialogflow_v2beta1_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a200ddae19c5 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.EnvironmentsClient; +import com.google.cloud.dialogflow.v2beta1.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END dialogflow_v2beta1_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 941f90ee2893..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Fulfillments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.FulfillmentsClient; -import com.google.cloud.dialogflow.v2beta1.FulfillmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FulfillmentsSettings fulfillmentsSettings = FulfillmentsSettings.newHttpJsonBuilder().build(); - FulfillmentsClient fulfillmentsClient = FulfillmentsClient.create(fulfillmentsSettings); - } -} -// [END dialogflow_v2beta1_generated_Fulfillments_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..481105cb2a42 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/fulfillments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Fulfillments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.FulfillmentsClient; +import com.google.cloud.dialogflow.v2beta1.FulfillmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FulfillmentsSettings fulfillmentsSettings = FulfillmentsSettings.newHttpJsonBuilder().build(); + FulfillmentsClient fulfillmentsClient = FulfillmentsClient.create(fulfillmentsSettings); + } +} +// [END dialogflow_v2beta1_generated_Fulfillments_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9edbe3b6dbdd..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Generators_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.GeneratorsClient; -import com.google.cloud.dialogflow.v2beta1.GeneratorsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); - GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); - } -} -// [END dialogflow_v2beta1_generated_Generators_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..78e7d07fa392 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generators/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Generators_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GeneratorsSettings generatorsSettings = GeneratorsSettings.newHttpJsonBuilder().build(); + GeneratorsClient generatorsClient = GeneratorsClient.create(generatorsSettings); + } +} +// [END dialogflow_v2beta1_generated_Generators_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d6b147b010a0..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Intents_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.IntentsClient; -import com.google.cloud.dialogflow.v2beta1.IntentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); - IntentsClient intentsClient = IntentsClient.create(intentsSettings); - } -} -// [END dialogflow_v2beta1_generated_Intents_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3593787f94be --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/intents/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Intents_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.IntentsClient; +import com.google.cloud.dialogflow.v2beta1.IntentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IntentsSettings intentsSettings = IntentsSettings.newHttpJsonBuilder().build(); + IntentsClient intentsClient = IntentsClient.create(intentsSettings); + } +} +// [END dialogflow_v2beta1_generated_Intents_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 09cf529b429a..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_KnowledgeBases_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.KnowledgeBasesClient; -import com.google.cloud.dialogflow.v2beta1.KnowledgeBasesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - KnowledgeBasesSettings knowledgeBasesSettings = - KnowledgeBasesSettings.newHttpJsonBuilder().build(); - KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create(knowledgeBasesSettings); - } -} -// [END dialogflow_v2beta1_generated_KnowledgeBases_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8c2e6dc65a4a --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/knowledgebases/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_KnowledgeBases_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.KnowledgeBasesClient; +import com.google.cloud.dialogflow.v2beta1.KnowledgeBasesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + KnowledgeBasesSettings knowledgeBasesSettings = + KnowledgeBasesSettings.newHttpJsonBuilder().build(); + KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create(knowledgeBasesSettings); + } +} +// [END dialogflow_v2beta1_generated_KnowledgeBases_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 192b4d8ab6be..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Participants_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.ParticipantsClient; -import com.google.cloud.dialogflow.v2beta1.ParticipantsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ParticipantsSettings participantsSettings = ParticipantsSettings.newHttpJsonBuilder().build(); - ParticipantsClient participantsClient = ParticipantsClient.create(participantsSettings); - } -} -// [END dialogflow_v2beta1_generated_Participants_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5839c38fdcda --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Participants_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.ParticipantsClient; +import com.google.cloud.dialogflow.v2beta1.ParticipantsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ParticipantsSettings participantsSettings = ParticipantsSettings.newHttpJsonBuilder().build(); + ParticipantsClient participantsClient = ParticipantsClient.create(participantsSettings); + } +} +// [END dialogflow_v2beta1_generated_Participants_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 07275e239d06..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.SessionEntityTypesClient; -import com.google.cloud.dialogflow.v2beta1.SessionEntityTypesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionEntityTypesSettings sessionEntityTypesSettings = - SessionEntityTypesSettings.newHttpJsonBuilder().build(); - SessionEntityTypesClient sessionEntityTypesClient = - SessionEntityTypesClient.create(sessionEntityTypesSettings); - } -} -// [END dialogflow_v2beta1_generated_SessionEntityTypes_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0311c58e28c4 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessionentitytypes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.SessionEntityTypesClient; +import com.google.cloud.dialogflow.v2beta1.SessionEntityTypesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionEntityTypesSettings sessionEntityTypesSettings = + SessionEntityTypesSettings.newHttpJsonBuilder().build(); + SessionEntityTypesClient sessionEntityTypesClient = + SessionEntityTypesClient.create(sessionEntityTypesSettings); + } +} +// [END dialogflow_v2beta1_generated_SessionEntityTypes_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index dc82945d7633..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Sessions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.SessionsClient; -import com.google.cloud.dialogflow.v2beta1.SessionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); - SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); - } -} -// [END dialogflow_v2beta1_generated_Sessions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8d687e3a52d8 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/sessions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Sessions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.SessionsClient; +import com.google.cloud.dialogflow.v2beta1.SessionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SessionsSettings sessionsSettings = SessionsSettings.newHttpJsonBuilder().build(); + SessionsClient sessionsClient = SessionsClient.create(sessionsSettings); + } +} +// [END dialogflow_v2beta1_generated_Sessions_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateSetCredentialsProvider1.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 55a5d6d1aac7..000000000000 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dialogflow.v2beta1.samples; - -// [START dialogflow_v2beta1_generated_Versions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dialogflow.v2beta1.VersionsClient; -import com.google.cloud.dialogflow.v2beta1.VersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); - VersionsClient versionsClient = VersionsClient.create(versionsSettings); - } -} -// [END dialogflow_v2beta1_generated_Versions_Create_SetCredentialsProvider1_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d1847f541242 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/versions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Versions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.VersionsClient; +import com.google.cloud.dialogflow.v2beta1.VersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VersionsSettings versionsSettings = VersionsSettings.newHttpJsonBuilder().build(); + VersionsClient versionsClient = VersionsClient.create(versionsSettings); + } +} +// [END dialogflow_v2beta1_generated_Versions_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 1f2c69763ee0..504b1e2084bb 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.48.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java index c15c232253ac..7ebcd5fc77dd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java @@ -299,9 +299,9 @@ public ControlServiceStub getStub() { * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @param control Required. The Control to create. * @param controlId Required. The ID to use for the Control, which will become the final component * of the Control's resource name. @@ -343,9 +343,9 @@ public final Control createControl(DataStoreName parent, Control control, String * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @param control Required. The Control to create. * @param controlId Required. The ID to use for the Control, which will become the final component * of the Control's resource name. @@ -389,9 +389,9 @@ public final Control createControl(EngineName parent, Control control, String co * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @param control Required. The Control to create. * @param controlId Required. The ID to use for the Control, which will become the final component * of the Control's resource name. @@ -505,7 +505,7 @@ public final UnaryCallable createControlCallable( * }
* * @param name Required. The resource name of the Control to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteControl(ControlName name) { @@ -539,7 +539,7 @@ public final void deleteControl(ControlName name) { * }
* * @param name Required. The resource name of the Control to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteControl(String name) { @@ -740,7 +740,7 @@ public final UnaryCallable updateControlCallable( * }
* * @param name Required. The resource name of the Control to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Control getControl(ControlName name) { @@ -771,7 +771,7 @@ public final Control getControl(ControlName name) { * }
* * @param name Required. The resource name of the Control to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Control getControl(String name) { @@ -862,9 +862,9 @@ public final UnaryCallable getControlCallable() { * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListControlsPagedResponse listControls(DataStoreName parent) { @@ -896,9 +896,9 @@ public final ListControlsPagedResponse listControls(DataStoreName parent) { * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListControlsPagedResponse listControls(EngineName parent) { @@ -932,9 +932,9 @@ public final ListControlsPagedResponse listControls(EngineName parent) { * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` * or - * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListControlsPagedResponse listControls(String parent) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java index ff2ab41d1e75..53c701d0da72 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java @@ -452,9 +452,9 @@ public ConversationalSearchServiceStub getStub() { * }
* * @param name Required. The resource name of the Conversation to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. * Use - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` * to activate auto session mode, which automatically creates a new conversation inside a * ConverseConversation session. * @param query Required. Current user input. @@ -495,9 +495,9 @@ public final ConverseConversationResponse converseConversation( * }
* * @param name Required. The resource name of the Conversation to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. * Use - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` * to activate auto session mode, which automatically creates a new conversation inside a * ConverseConversation session. * @param query Required. Current user input. @@ -624,7 +624,7 @@ public final ConverseConversationResponse converseConversation( * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -664,7 +664,7 @@ public final Conversation createConversation(DataStoreName parent, Conversation * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -774,7 +774,7 @@ public final UnaryCallable createConver * }
* * @param name Required. The resource name of the Conversation to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteConversation(ConversationName name) { @@ -811,7 +811,7 @@ public final void deleteConversation(ConversationName name) { * }
* * @param name Required. The resource name of the Conversation to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteConversation(String name) { @@ -1024,7 +1024,7 @@ public final UnaryCallable updateConver * }
* * @param name Required. The resource name of the Conversation to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Conversation getConversation(ConversationName name) { @@ -1056,7 +1056,7 @@ public final Conversation getConversation(ConversationName name) { * }
* * @param name Required. The resource name of the Conversation to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Conversation getConversation(String name) { @@ -1152,7 +1152,7 @@ public final UnaryCallable getConversation * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConversationsPagedResponse listConversations(DataStoreName parent) { @@ -1188,7 +1188,7 @@ public final ListConversationsPagedResponse listConversations(DataStoreName pare * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConversationsPagedResponse listConversations(String parent) { @@ -1435,7 +1435,7 @@ public final UnaryCallable answerQueryC * }
* * @param name Required. The resource name of the Answer to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Answer getAnswer(AnswerName name) { @@ -1467,7 +1467,7 @@ public final Answer getAnswer(AnswerName name) { * }
* * @param name Required. The resource name of the Answer to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Answer getAnswer(String name) { @@ -1564,7 +1564,7 @@ public final UnaryCallable getAnswerCallable() { * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1603,7 +1603,7 @@ public final Session createSession(DataStoreName parent, Session session) { * }
* * @param parent Required. Full resource name of parent data store. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1710,7 +1710,7 @@ public final UnaryCallable createSessionCallable( * }
* * @param name Required. The resource name of the Session to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSession(SessionName name) { @@ -1745,7 +1745,7 @@ public final void deleteSession(SessionName name) { * }
* * @param name Required. The resource name of the Session to delete. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSession(String name) { @@ -1953,7 +1953,7 @@ public final UnaryCallable updateSessionCallable( * }
* * @param name Required. The resource name of the Session to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Session getSession(SessionName name) { @@ -1985,7 +1985,7 @@ public final Session getSession(SessionName name) { * }
* * @param name Required. The resource name of the Session to get. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Session getSession(String name) { @@ -2080,7 +2080,7 @@ public final UnaryCallable getSessionCallable() { * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSessionsPagedResponse listSessions(DataStoreName parent) { @@ -2115,7 +2115,7 @@ public final ListSessionsPagedResponse listSessions(DataStoreName parent) { * }
* * @param parent Required. The data store resource name. Format: - * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSessionsPagedResponse listSessions(String parent) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java index 44b70d36858a..c3c85f3c591f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java @@ -17,6 +17,7 @@ package com.google.cloud.discoveryengine.v1; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1.stub.GroundedGenerationServiceStub; import com.google.cloud.discoveryengine.v1.stub.GroundedGenerationServiceStubSettings; @@ -39,17 +40,17 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GroundedGenerationServiceClient groundedGenerationServiceClient = * GroundedGenerationServiceClient.create()) { - * CheckGroundingRequest request = - * CheckGroundingRequest.newBuilder() - * .setGroundingConfig( - * GroundingConfigName.of("[PROJECT]", "[LOCATION]", "[GROUNDING_CONFIG]") - * .toString()) - * .setAnswerCandidate("answerCandidate-292402331") - * .addAllFacts(new ArrayList()) - * .setGroundingSpec(CheckGroundingSpec.newBuilder().build()) + * GenerateGroundedContentRequest request = + * GenerateGroundedContentRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setSystemInstruction(GroundedGenerationContent.newBuilder().build()) + * .addAllContents(new ArrayList()) + * .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build()) + * .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build()) * .putAllUserLabels(new HashMap()) * .build(); - * CheckGroundingResponse response = groundedGenerationServiceClient.checkGrounding(request); + * GenerateGroundedContentResponse response = + * groundedGenerationServiceClient.generateGroundedContent(request); * } * }
* @@ -65,6 +66,30 @@ * Method Variants * * + *

StreamGenerateGroundedContent + *

Generates grounded content in a streaming fashion. + * + *

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

+ *
    + *
  • streamGenerateGroundedContentCallable() + *

+ * + * + * + *

GenerateGroundedContent + *

Generates grounded content. + * + *

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

+ *
    + *
  • generateGroundedContent(GenerateGroundedContentRequest request) + *

+ *

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

+ *
    + *
  • generateGroundedContentCallable() + *

+ * + * + * *

CheckGrounding *

Performs a grounding check. * @@ -188,6 +213,115 @@ public GroundedGenerationServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates grounded content in a streaming fashion. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GroundedGenerationServiceClient groundedGenerationServiceClient =
+   *     GroundedGenerationServiceClient.create()) {
+   *   BidiStream bidiStream =
+   *       groundedGenerationServiceClient.streamGenerateGroundedContentCallable().call();
+   *   GenerateGroundedContentRequest request =
+   *       GenerateGroundedContentRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+   *           .addAllContents(new ArrayList())
+   *           .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+   *           .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   bidiStream.send(request);
+   *   for (GenerateGroundedContentResponse response : bidiStream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final BidiStreamingCallable< + GenerateGroundedContentRequest, GenerateGroundedContentResponse> + streamGenerateGroundedContentCallable() { + return stub.streamGenerateGroundedContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates grounded content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GroundedGenerationServiceClient groundedGenerationServiceClient =
+   *     GroundedGenerationServiceClient.create()) {
+   *   GenerateGroundedContentRequest request =
+   *       GenerateGroundedContentRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+   *           .addAllContents(new ArrayList())
+   *           .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+   *           .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   GenerateGroundedContentResponse response =
+   *       groundedGenerationServiceClient.generateGroundedContent(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateGroundedContentResponse generateGroundedContent( + GenerateGroundedContentRequest request) { + return generateGroundedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates grounded content. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GroundedGenerationServiceClient groundedGenerationServiceClient =
+   *     GroundedGenerationServiceClient.create()) {
+   *   GenerateGroundedContentRequest request =
+   *       GenerateGroundedContentRequest.newBuilder()
+   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+   *           .addAllContents(new ArrayList())
+   *           .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+   *           .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       groundedGenerationServiceClient.generateGroundedContentCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateGroundedContentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateGroundedContentCallable() { + return stub.generateGroundedContentCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Performs a grounding check. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java index 63c3824bf839..af47252d49bd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.GroundedGenerationServiceStubSettings; @@ -50,7 +51,7 @@ * *

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

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -61,10 +62,10 @@
  * GroundedGenerationServiceSettings.Builder groundedGenerationServiceSettingsBuilder =
  *     GroundedGenerationServiceSettings.newBuilder();
  * groundedGenerationServiceSettingsBuilder
- *     .checkGroundingSettings()
+ *     .generateGroundedContentSettings()
  *     .setRetrySettings(
  *         groundedGenerationServiceSettingsBuilder
- *             .checkGroundingSettings()
+ *             .generateGroundedContentSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -88,6 +89,20 @@
 public class GroundedGenerationServiceSettings
     extends ClientSettings {
 
+  /** Returns the object with the settings used for calls to streamGenerateGroundedContent. */
+  public StreamingCallSettings
+      streamGenerateGroundedContentSettings() {
+    return ((GroundedGenerationServiceStubSettings) getStubSettings())
+        .streamGenerateGroundedContentSettings();
+  }
+
+  /** Returns the object with the settings used for calls to generateGroundedContent. */
+  public UnaryCallSettings
+      generateGroundedContentSettings() {
+    return ((GroundedGenerationServiceStubSettings) getStubSettings())
+        .generateGroundedContentSettings();
+  }
+
   /** Returns the object with the settings used for calls to checkGrounding. */
   public UnaryCallSettings checkGroundingSettings() {
     return ((GroundedGenerationServiceStubSettings) getStubSettings()).checkGroundingSettings();
@@ -206,6 +221,20 @@ public Builder applyToAllUnaryMethods(
       return this;
     }
 
+    /** Returns the builder for the settings used for calls to streamGenerateGroundedContent. */
+    public StreamingCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        streamGenerateGroundedContentSettings() {
+      return getStubSettingsBuilder().streamGenerateGroundedContentSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to generateGroundedContent. */
+    public UnaryCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        generateGroundedContentSettings() {
+      return getStubSettingsBuilder().generateGroundedContentSettings();
+    }
+
     /** Returns the builder for the settings used for calls to checkGrounding. */
     public UnaryCallSettings.Builder
         checkGroundingSettings() {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java
index dbbc37894c36..053158f5dc68 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java
@@ -61,6 +61,7 @@
  *           .setPageSize(883849137)
  *           .setPageToken("pageToken873572522")
  *           .setOffset(-1019779949)
+ *           .setOneBoxPageSize(1988477988)
  *           .addAllDataStoreSpecs(new ArrayList())
  *           .setFilter("filter-1274492040")
  *           .setCanonicalFilter("canonicalFilter-722283124")
@@ -114,6 +115,23 @@
  *      
  *       
  *    
+ *    
+ *      

SearchLite + *

Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. + *

Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. + *

This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with required OAuth and IAM checks to provide better data security. + * + *

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

+ *
    + *
  • searchLite(SearchRequest request) + *

+ *

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

+ *
    + *
  • searchLitePagedCallable() + *

  • searchLiteCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -247,6 +265,7 @@ public SearchServiceStub getStub() { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") @@ -310,6 +329,7 @@ public final SearchPagedResponse search(SearchRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") @@ -373,6 +393,7 @@ public final UnaryCallable searchPagedCallab * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") @@ -414,6 +435,235 @@ public final UnaryCallable searchCallable() { return stub.searchCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a search. Similar to the + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite + * version that allows API key for authentication, where OAuth and IAM checks are not required. + * + *

Only public website search is supported by this method. If data stores and engines not + * associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. + * + *

This method can be used for easy onboarding without having to implement an authentication + * backend. However, it is strongly recommended to use + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with + * required OAuth and IAM checks to provide better data security. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setOneBoxPageSize(1988477988)
+   *           .addAllDataStoreSpecs(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setCanonicalFilter("canonicalFilter-722283124")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+   *           .setSession(
+   *               SessionName.ofProjectLocationDataStoreSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+   *                   .toString())
+   *           .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+   *           .build();
+   *   for (SearchResponse.SearchResult element :
+   *       searchServiceClient.searchLite(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchLitePagedResponse searchLite(SearchRequest request) { + return searchLitePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a search. Similar to the + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite + * version that allows API key for authentication, where OAuth and IAM checks are not required. + * + *

Only public website search is supported by this method. If data stores and engines not + * associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. + * + *

This method can be used for easy onboarding without having to implement an authentication + * backend. However, it is strongly recommended to use + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with + * required OAuth and IAM checks to provide better data security. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setOneBoxPageSize(1988477988)
+   *           .addAllDataStoreSpecs(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setCanonicalFilter("canonicalFilter-722283124")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+   *           .setSession(
+   *               SessionName.ofProjectLocationDataStoreSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+   *                   .toString())
+   *           .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       searchServiceClient.searchLitePagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (SearchResponse.SearchResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable searchLitePagedCallable() { + return stub.searchLitePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a search. Similar to the + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite + * version that allows API key for authentication, where OAuth and IAM checks are not required. + * + *

Only public website search is supported by this method. If data stores and engines not + * associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. + * + *

This method can be used for easy onboarding without having to implement an authentication + * backend. However, it is strongly recommended to use + * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with + * required OAuth and IAM checks to provide better data security. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setOneBoxPageSize(1988477988)
+   *           .addAllDataStoreSpecs(new ArrayList())
+   *           .setFilter("filter-1274492040")
+   *           .setCanonicalFilter("canonicalFilter-722283124")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+   *           .setSession(
+   *               SessionName.ofProjectLocationDataStoreSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+   *                   .toString())
+   *           .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     SearchResponse response = searchServiceClient.searchLiteCallable().call(request);
+   *     for (SearchResponse.SearchResult element : response.getResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable searchLiteCallable() { + return stub.searchLiteCallable(); + } + @Override public final void close() { stub.close(); @@ -516,4 +766,78 @@ protected SearchFixedSizeCollection createCollection( return new SearchFixedSizeCollection(pages, collectionSize); } } + + public static class SearchLitePagedResponse + extends AbstractPagedListResponse< + SearchRequest, + SearchResponse, + SearchResponse.SearchResult, + SearchLitePage, + SearchLiteFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchLitePage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new SearchLitePagedResponse(input), MoreExecutors.directExecutor()); + } + + private SearchLitePagedResponse(SearchLitePage page) { + super(page, SearchLiteFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchLitePage + extends AbstractPage< + SearchRequest, SearchResponse, SearchResponse.SearchResult, SearchLitePage> { + + private SearchLitePage( + PageContext context, + SearchResponse response) { + super(context, response); + } + + private static SearchLitePage createEmptyPage() { + return new SearchLitePage(null, null); + } + + @Override + protected SearchLitePage createPage( + PageContext context, + SearchResponse response) { + return new SearchLitePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchLiteFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchRequest, + SearchResponse, + SearchResponse.SearchResult, + SearchLitePage, + SearchLiteFixedSizeCollection> { + + private SearchLiteFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchLiteFixedSizeCollection createEmptyCollection() { + return new SearchLiteFixedSizeCollection(null, 0); + } + + @Override + protected SearchLiteFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchLiteFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java index 520d2643553c..cb2cbe13f626 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse; import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse; import com.google.api.core.ApiFunction; @@ -93,6 +94,12 @@ public PagedCallSettings sea return ((SearchServiceStubSettings) getStubSettings()).searchSettings(); } + /** Returns the object with the settings used for calls to searchLite. */ + public PagedCallSettings + searchLiteSettings() { + return ((SearchServiceStubSettings) getStubSettings()).searchLiteSettings(); + } + public static final SearchServiceSettings create(SearchServiceStubSettings stub) throws IOException { return new SearchServiceSettings.Builder(stub.toBuilder()).build(); @@ -211,6 +218,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().searchSettings(); } + /** Returns the builder for the settings used for calls to searchLite. */ + public PagedCallSettings.Builder + searchLiteSettings() { + return getStubSettingsBuilder().searchLiteSettings(); + } + @Override public SearchServiceSettings build() throws IOException { return new SearchServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java index d118ab4785d0..78b787d41c92 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java @@ -1693,6 +1693,7 @@ public final ListTargetSitesPagedResponse listTargetSites(ListTargetSitesRequest * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .addAllUris(new ArrayList()) + * .setSiteCredential("siteCredential-751929602") * .build(); * RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get(); * } @@ -1727,6 +1728,7 @@ public final OperationFuture recrawlUr * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .addAllUris(new ArrayList()) + * .setSiteCredential("siteCredential-751929602") * .build(); * OperationFuture future = * siteSearchEngineServiceClient.recrawlUrisOperationCallable().futureCall(request); @@ -1761,6 +1763,7 @@ public final OperationFuture recrawlUr * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .addAllUris(new ArrayList()) + * .setSiteCredential("siteCredential-751929602") * .build(); * ApiFuture future = * siteSearchEngineServiceClient.recrawlUrisCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json index 1ea6e9f5b4e7..ef5aac895d53 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json @@ -189,6 +189,12 @@ "rpcs": { "CheckGrounding": { "methods": ["checkGrounding", "checkGroundingCallable"] + }, + "GenerateGroundedContent": { + "methods": ["generateGroundedContent", "generateGroundedContentCallable"] + }, + "StreamGenerateGroundedContent": { + "methods": ["streamGenerateGroundedContentCallable"] } } } @@ -261,6 +267,9 @@ "rpcs": { "Search": { "methods": ["search", "searchPagedCallable", "searchCallable"] + }, + "SearchLite": { + "methods": ["searchLite", "searchLitePagedCallable", "searchLiteCallable"] } } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java index c07320c93030..46b7f6c1c9ce 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java @@ -168,17 +168,17 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GroundedGenerationServiceClient groundedGenerationServiceClient = * GroundedGenerationServiceClient.create()) { - * CheckGroundingRequest request = - * CheckGroundingRequest.newBuilder() - * .setGroundingConfig( - * GroundingConfigName.of("[PROJECT]", "[LOCATION]", "[GROUNDING_CONFIG]") - * .toString()) - * .setAnswerCandidate("answerCandidate-292402331") - * .addAllFacts(new ArrayList()) - * .setGroundingSpec(CheckGroundingSpec.newBuilder().build()) + * GenerateGroundedContentRequest request = + * GenerateGroundedContentRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setSystemInstruction(GroundedGenerationContent.newBuilder().build()) + * .addAllContents(new ArrayList()) + * .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build()) + * .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build()) * .putAllUserLabels(new HashMap()) * .build(); - * CheckGroundingResponse response = groundedGenerationServiceClient.checkGrounding(request); + * GenerateGroundedContentResponse response = + * groundedGenerationServiceClient.generateGroundedContent(request); * } * }
* @@ -308,6 +308,7 @@ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStub.java index 96f08d1747f2..358c5e63c3b0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStub.java @@ -17,9 +17,12 @@ package com.google.cloud.discoveryengine.v1.stub; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1.CheckGroundingRequest; import com.google.cloud.discoveryengine.v1.CheckGroundingResponse; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -31,6 +34,17 @@ @Generated("by gapic-generator-java") public abstract class GroundedGenerationServiceStub implements BackgroundResource { + public BidiStreamingCallable + streamGenerateGroundedContentCallable() { + throw new UnsupportedOperationException( + "Not implemented: streamGenerateGroundedContentCallable()"); + } + + public UnaryCallable + generateGroundedContentCallable() { + throw new UnsupportedOperationException("Not implemented: generateGroundedContentCallable()"); + } + public UnaryCallable checkGroundingCallable() { throw new UnsupportedOperationException("Not implemented: checkGroundingCallable()"); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java index f6c69e055253..6be10b1e8a52 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java @@ -32,11 +32,14 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.CheckGroundingRequest; import com.google.cloud.discoveryengine.v1.CheckGroundingResponse; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -64,7 +67,7 @@ * *

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

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -75,10 +78,10 @@
  * GroundedGenerationServiceStubSettings.Builder groundedGenerationServiceSettingsBuilder =
  *     GroundedGenerationServiceStubSettings.newBuilder();
  * groundedGenerationServiceSettingsBuilder
- *     .checkGroundingSettings()
+ *     .generateGroundedContentSettings()
  *     .setRetrySettings(
  *         groundedGenerationServiceSettingsBuilder
- *             .checkGroundingSettings()
+ *             .generateGroundedContentSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -105,9 +108,26 @@ public class GroundedGenerationServiceStubSettings
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
       ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
 
+  private final StreamingCallSettings<
+          GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+      streamGenerateGroundedContentSettings;
+  private final UnaryCallSettings
+      generateGroundedContentSettings;
   private final UnaryCallSettings
       checkGroundingSettings;
 
+  /** Returns the object with the settings used for calls to streamGenerateGroundedContent. */
+  public StreamingCallSettings
+      streamGenerateGroundedContentSettings() {
+    return streamGenerateGroundedContentSettings;
+  }
+
+  /** Returns the object with the settings used for calls to generateGroundedContent. */
+  public UnaryCallSettings
+      generateGroundedContentSettings() {
+    return generateGroundedContentSettings;
+  }
+
   /** Returns the object with the settings used for calls to checkGrounding. */
   public UnaryCallSettings checkGroundingSettings() {
     return checkGroundingSettings;
@@ -224,6 +244,9 @@ public Builder toBuilder() {
   protected GroundedGenerationServiceStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
+    streamGenerateGroundedContentSettings =
+        settingsBuilder.streamGenerateGroundedContentSettings().build();
+    generateGroundedContentSettings = settingsBuilder.generateGroundedContentSettings().build();
     checkGroundingSettings = settingsBuilder.checkGroundingSettings().build();
   }
 
@@ -231,6 +254,12 @@ protected GroundedGenerationServiceStubSettings(Builder settingsBuilder) throws
   public static class Builder
       extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
+    private final StreamingCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        streamGenerateGroundedContentSettings;
+    private final UnaryCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        generateGroundedContentSettings;
     private final UnaryCallSettings.Builder
         checkGroundingSettings;
     private static final ImmutableMap>
@@ -271,20 +300,27 @@ protected Builder() {
     protected Builder(ClientContext clientContext) {
       super(clientContext);
 
+      streamGenerateGroundedContentSettings = StreamingCallSettings.newBuilder();
+      generateGroundedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       checkGroundingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(checkGroundingSettings);
+          ImmutableList.>of(
+              generateGroundedContentSettings, checkGroundingSettings);
       initDefaults(this);
     }
 
     protected Builder(GroundedGenerationServiceStubSettings settings) {
       super(settings);
 
+      streamGenerateGroundedContentSettings =
+          settings.streamGenerateGroundedContentSettings.toBuilder();
+      generateGroundedContentSettings = settings.generateGroundedContentSettings.toBuilder();
       checkGroundingSettings = settings.checkGroundingSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(checkGroundingSettings);
+          ImmutableList.>of(
+              generateGroundedContentSettings, checkGroundingSettings);
     }
 
     private static Builder createDefault() {
@@ -312,6 +348,11 @@ private static Builder createHttpJsonDefault() {
     }
 
     private static Builder initDefaults(Builder builder) {
+      builder
+          .generateGroundedContentSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
       builder
           .checkGroundingSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -335,6 +376,20 @@ public Builder applyToAllUnaryMethods(
       return unaryMethodSettingsBuilders;
     }
 
+    /** Returns the builder for the settings used for calls to streamGenerateGroundedContent. */
+    public StreamingCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        streamGenerateGroundedContentSettings() {
+      return streamGenerateGroundedContentSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to generateGroundedContent. */
+    public UnaryCallSettings.Builder<
+            GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+        generateGroundedContentSettings() {
+      return generateGroundedContentSettings;
+    }
+
     /** Returns the builder for the settings used for calls to checkGrounding. */
     public UnaryCallSettings.Builder
         checkGroundingSettings() {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcGroundedGenerationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcGroundedGenerationServiceStub.java
index 7c43ca2de9c8..aac1718898e9 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcGroundedGenerationServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcGroundedGenerationServiceStub.java
@@ -20,11 +20,14 @@
 import com.google.api.gax.core.BackgroundResourceAggregation;
 import com.google.api.gax.grpc.GrpcCallSettings;
 import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BidiStreamingCallable;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.RequestParamsBuilder;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.discoveryengine.v1.CheckGroundingRequest;
 import com.google.cloud.discoveryengine.v1.CheckGroundingResponse;
+import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest;
+import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
@@ -40,6 +43,34 @@
  */
 @Generated("by gapic-generator-java")
 public class GrpcGroundedGenerationServiceStub extends GroundedGenerationServiceStub {
+  private static final MethodDescriptor<
+          GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+      streamGenerateGroundedContentMethodDescriptor =
+          MethodDescriptor
+              .newBuilder()
+              .setType(MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(
+                  "google.cloud.discoveryengine.v1.GroundedGenerationService/StreamGenerateGroundedContent")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GenerateGroundedContentRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(GenerateGroundedContentResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor<
+          GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+      generateGroundedContentMethodDescriptor =
+          MethodDescriptor
+              .newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.discoveryengine.v1.GroundedGenerationService/GenerateGroundedContent")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GenerateGroundedContentRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(GenerateGroundedContentResponse.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor
       checkGroundingMethodDescriptor =
           MethodDescriptor.newBuilder()
@@ -52,6 +83,11 @@ public class GrpcGroundedGenerationServiceStub extends GroundedGenerationService
                   ProtoUtils.marshaller(CheckGroundingResponse.getDefaultInstance()))
               .build();
 
+  private final BidiStreamingCallable<
+          GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+      streamGenerateGroundedContentCallable;
+  private final UnaryCallable
+      generateGroundedContentCallable;
   private final UnaryCallable checkGroundingCallable;
 
   private final BackgroundResource backgroundResources;
@@ -99,6 +135,30 @@ protected GrpcGroundedGenerationServiceStub(
     this.callableFactory = callableFactory;
     this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
 
+    GrpcCallSettings
+        streamGenerateGroundedContentTransportSettings =
+            GrpcCallSettings
+                .newBuilder()
+                .setMethodDescriptor(streamGenerateGroundedContentMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("location", String.valueOf(request.getLocation()));
+                      return builder.build();
+                    })
+                .build();
+    GrpcCallSettings
+        generateGroundedContentTransportSettings =
+            GrpcCallSettings
+                .newBuilder()
+                .setMethodDescriptor(generateGroundedContentMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("location", String.valueOf(request.getLocation()));
+                      return builder.build();
+                    })
+                .build();
     GrpcCallSettings
         checkGroundingTransportSettings =
             GrpcCallSettings.newBuilder()
@@ -111,6 +171,16 @@ protected GrpcGroundedGenerationServiceStub(
                     })
                 .build();
 
+    this.streamGenerateGroundedContentCallable =
+        callableFactory.createBidiStreamingCallable(
+            streamGenerateGroundedContentTransportSettings,
+            settings.streamGenerateGroundedContentSettings(),
+            clientContext);
+    this.generateGroundedContentCallable =
+        callableFactory.createUnaryCallable(
+            generateGroundedContentTransportSettings,
+            settings.generateGroundedContentSettings(),
+            clientContext);
     this.checkGroundingCallable =
         callableFactory.createUnaryCallable(
             checkGroundingTransportSettings, settings.checkGroundingSettings(), clientContext);
@@ -123,6 +193,18 @@ public GrpcOperationsStub getOperationsStub() {
     return operationsStub;
   }
 
+  @Override
+  public BidiStreamingCallable
+      streamGenerateGroundedContentCallable() {
+    return streamGenerateGroundedContentCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      generateGroundedContentCallable() {
+    return generateGroundedContentCallable;
+  }
+
   @Override
   public UnaryCallable checkGroundingCallable() {
     return checkGroundingCallable;
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java
index 782267a777db..e5fe1f34f202 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1.stub;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -50,8 +51,18 @@ public class GrpcSearchServiceStub extends SearchServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(SearchResponse.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor searchLiteMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.discoveryengine.v1.SearchService/SearchLite")
+          .setRequestMarshaller(ProtoUtils.marshaller(SearchRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(SearchResponse.getDefaultInstance()))
+          .build();
+
   private final UnaryCallable searchCallable;
   private final UnaryCallable searchPagedCallable;
+  private final UnaryCallable searchLiteCallable;
+  private final UnaryCallable searchLitePagedCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -105,6 +116,16 @@ protected GrpcSearchServiceStub(
                   return builder.build();
                 })
             .build();
+    GrpcCallSettings searchLiteTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(searchLiteMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("serving_config", String.valueOf(request.getServingConfig()));
+                  return builder.build();
+                })
+            .build();
 
     this.searchCallable =
         callableFactory.createUnaryCallable(
@@ -112,6 +133,12 @@ protected GrpcSearchServiceStub(
     this.searchPagedCallable =
         callableFactory.createPagedCallable(
             searchTransportSettings, settings.searchSettings(), clientContext);
+    this.searchLiteCallable =
+        callableFactory.createUnaryCallable(
+            searchLiteTransportSettings, settings.searchLiteSettings(), clientContext);
+    this.searchLitePagedCallable =
+        callableFactory.createPagedCallable(
+            searchLiteTransportSettings, settings.searchLiteSettings(), clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -131,6 +158,16 @@ public UnaryCallable searchPagedCallable() {
     return searchPagedCallable;
   }
 
+  @Override
+  public UnaryCallable searchLiteCallable() {
+    return searchLiteCallable;
+  }
+
+  @Override
+  public UnaryCallable searchLitePagedCallable() {
+    return searchLitePagedCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java
index d07f47f5ad81..507f4a63c4e7 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java
@@ -453,7 +453,7 @@ protected HttpJsonCompletionServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -530,7 +530,7 @@ protected HttpJsonCompletionServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java
index 2e8a4d57e741..7cf65ede45d0 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java
@@ -420,7 +420,7 @@ protected HttpJsonDataStoreServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -497,7 +497,7 @@ protected HttpJsonDataStoreServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java
index cb72ca29d467..5ccf6145c54e 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java
@@ -542,7 +542,7 @@ protected HttpJsonDocumentServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -619,7 +619,7 @@ protected HttpJsonDocumentServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java
index bfaa3ea79834..32875abd9966 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java
@@ -400,7 +400,7 @@ protected HttpJsonEngineServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -477,7 +477,7 @@ protected HttpJsonEngineServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonGroundedGenerationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonGroundedGenerationServiceStub.java
index 05daf15a6eb1..ea0a5a44e9f8 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonGroundedGenerationServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonGroundedGenerationServiceStub.java
@@ -25,11 +25,14 @@
 import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
 import com.google.api.gax.httpjson.ProtoMessageResponseParser;
 import com.google.api.gax.httpjson.ProtoRestSerializer;
+import com.google.api.gax.rpc.BidiStreamingCallable;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.RequestParamsBuilder;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.discoveryengine.v1.CheckGroundingRequest;
 import com.google.cloud.discoveryengine.v1.CheckGroundingResponse;
+import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest;
+import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse;
 import com.google.protobuf.TypeRegistry;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -49,6 +52,46 @@
 public class HttpJsonGroundedGenerationServiceStub extends GroundedGenerationServiceStub {
   private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
 
+  private static final ApiMethodDescriptor<
+          GenerateGroundedContentRequest, GenerateGroundedContentResponse>
+      generateGroundedContentMethodDescriptor =
+          ApiMethodDescriptor
+              .newBuilder()
+              .setFullMethodName(
+                  "google.cloud.discoveryengine.v1.GroundedGenerationService/GenerateGroundedContent")
+              .setHttpMethod("POST")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{location=projects/*/locations/*}:generateGroundedContent",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(fields, "location", request.getLocation());
+                            return fields;
+                          })
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(
+                          request ->
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().clearLocation().build(), true))
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(GenerateGroundedContentResponse.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .build();
+
   private static final ApiMethodDescriptor
       checkGroundingMethodDescriptor =
           ApiMethodDescriptor.newBuilder()
@@ -91,6 +134,8 @@ public class HttpJsonGroundedGenerationServiceStub extends GroundedGenerationSer
                       .build())
               .build();
 
+  private final UnaryCallable
+      generateGroundedContentCallable;
   private final UnaryCallable checkGroundingCallable;
 
   private final BackgroundResource backgroundResources;
@@ -138,6 +183,19 @@ protected HttpJsonGroundedGenerationServiceStub(
       throws IOException {
     this.callableFactory = callableFactory;
 
+    HttpJsonCallSettings
+        generateGroundedContentTransportSettings =
+            HttpJsonCallSettings
+                .newBuilder()
+                .setMethodDescriptor(generateGroundedContentMethodDescriptor)
+                .setTypeRegistry(typeRegistry)
+                .setParamsExtractor(
+                    request -> {
+                      RequestParamsBuilder builder = RequestParamsBuilder.create();
+                      builder.add("location", String.valueOf(request.getLocation()));
+                      return builder.build();
+                    })
+                .build();
     HttpJsonCallSettings
         checkGroundingTransportSettings =
             HttpJsonCallSettings.newBuilder()
@@ -151,6 +209,11 @@ protected HttpJsonGroundedGenerationServiceStub(
                     })
                 .build();
 
+    this.generateGroundedContentCallable =
+        callableFactory.createUnaryCallable(
+            generateGroundedContentTransportSettings,
+            settings.generateGroundedContentSettings(),
+            clientContext);
     this.checkGroundingCallable =
         callableFactory.createUnaryCallable(
             checkGroundingTransportSettings, settings.checkGroundingSettings(), clientContext);
@@ -162,15 +225,29 @@ protected HttpJsonGroundedGenerationServiceStub(
   @InternalApi
   public static List getMethodDescriptors() {
     List methodDescriptors = new ArrayList<>();
+    methodDescriptors.add(generateGroundedContentMethodDescriptor);
     methodDescriptors.add(checkGroundingMethodDescriptor);
     return methodDescriptors;
   }
 
+  @Override
+  public UnaryCallable
+      generateGroundedContentCallable() {
+    return generateGroundedContentCallable;
+  }
+
   @Override
   public UnaryCallable checkGroundingCallable() {
     return checkGroundingCallable;
   }
 
+  @Override
+  public BidiStreamingCallable
+      streamGenerateGroundedContentCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: streamGenerateGroundedContentCallable(). REST transport is not implemented for this method yet.");
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java
index 744f596cecd8..1c825ecbb5fa 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java
@@ -234,7 +234,7 @@ protected HttpJsonProjectServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -311,7 +311,7 @@ protected HttpJsonProjectServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java
index 143290510ade..7859ad0ec01b 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java
@@ -417,7 +417,7 @@ protected HttpJsonSchemaServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -494,7 +494,7 @@ protected HttpJsonSchemaServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java
index aa3dc680f58a..5a31d56fda64 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1.stub;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.core.InternalApi;
@@ -91,8 +92,52 @@ public class HttpJsonSearchServiceStub extends SearchServiceStub {
                   .build())
           .build();
 
+  private static final ApiMethodDescriptor
+      searchLiteMethodDescriptor =
+          ApiMethodDescriptor.newBuilder()
+              .setFullMethodName("google.cloud.discoveryengine.v1.SearchService/SearchLite")
+              .setHttpMethod("POST")
+              .setType(ApiMethodDescriptor.MethodType.UNARY)
+              .setRequestFormatter(
+                  ProtoMessageRequestFormatter.newBuilder()
+                      .setPath(
+                          "/v1/{servingConfig=projects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite",
+                          request -> {
+                            Map fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putPathParam(
+                                fields, "servingConfig", request.getServingConfig());
+                            return fields;
+                          })
+                      .setAdditionalPaths(
+                          "/v1/{servingConfig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:searchLite",
+                          "/v1/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:searchLite")
+                      .setQueryParamsExtractor(
+                          request -> {
+                            Map> fields = new HashMap<>();
+                            ProtoRestSerializer serializer =
+                                ProtoRestSerializer.create();
+                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+                            return fields;
+                          })
+                      .setRequestBodyExtractor(
+                          request ->
+                              ProtoRestSerializer.create()
+                                  .toBody(
+                                      "*", request.toBuilder().clearServingConfig().build(), true))
+                      .build())
+              .setResponseParser(
+                  ProtoMessageResponseParser.newBuilder()
+                      .setDefaultInstance(SearchResponse.getDefaultInstance())
+                      .setDefaultTypeRegistry(typeRegistry)
+                      .build())
+              .build();
+
   private final UnaryCallable searchCallable;
   private final UnaryCallable searchPagedCallable;
+  private final UnaryCallable searchLiteCallable;
+  private final UnaryCallable searchLitePagedCallable;
 
   private final BackgroundResource backgroundResources;
   private final HttpJsonStubCallableFactory callableFactory;
@@ -147,6 +192,17 @@ protected HttpJsonSearchServiceStub(
                   return builder.build();
                 })
             .build();
+    HttpJsonCallSettings searchLiteTransportSettings =
+        HttpJsonCallSettings.newBuilder()
+            .setMethodDescriptor(searchLiteMethodDescriptor)
+            .setTypeRegistry(typeRegistry)
+            .setParamsExtractor(
+                request -> {
+                  RequestParamsBuilder builder = RequestParamsBuilder.create();
+                  builder.add("serving_config", String.valueOf(request.getServingConfig()));
+                  return builder.build();
+                })
+            .build();
 
     this.searchCallable =
         callableFactory.createUnaryCallable(
@@ -154,6 +210,12 @@ protected HttpJsonSearchServiceStub(
     this.searchPagedCallable =
         callableFactory.createPagedCallable(
             searchTransportSettings, settings.searchSettings(), clientContext);
+    this.searchLiteCallable =
+        callableFactory.createUnaryCallable(
+            searchLiteTransportSettings, settings.searchLiteSettings(), clientContext);
+    this.searchLitePagedCallable =
+        callableFactory.createPagedCallable(
+            searchLiteTransportSettings, settings.searchLiteSettings(), clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -163,6 +225,7 @@ protected HttpJsonSearchServiceStub(
   public static List getMethodDescriptors() {
     List methodDescriptors = new ArrayList<>();
     methodDescriptors.add(searchMethodDescriptor);
+    methodDescriptors.add(searchLiteMethodDescriptor);
     return methodDescriptors;
   }
 
@@ -176,6 +239,16 @@ public UnaryCallable searchPagedCallable() {
     return searchPagedCallable;
   }
 
+  @Override
+  public UnaryCallable searchLiteCallable() {
+    return searchLiteCallable;
+  }
+
+  @Override
+  public UnaryCallable searchLitePagedCallable() {
+    return searchLitePagedCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java
index 0fb346542f30..2f4d83b1365d 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java
@@ -277,7 +277,7 @@ protected HttpJsonSearchTuningServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -354,7 +354,7 @@ protected HttpJsonSearchTuningServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java
index ddfd6b9d34a6..a03665716e99 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java
@@ -797,7 +797,7 @@ protected HttpJsonSiteSearchEngineServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -874,7 +874,7 @@ protected HttpJsonSiteSearchEngineServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java
index 7199a1d8299c..20af148911e6 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java
@@ -381,7 +381,7 @@ protected HttpJsonUserEventServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
@@ -458,7 +458,7 @@ protected HttpJsonUserEventServiceStub(
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
                                 .setGet(
-                                    "/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations")
+                                    "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations")
                                 .build())
                         .addAdditionalBindings(
                             HttpRule.newBuilder()
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java
index b85762a8a594..f7c18235f7a0 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1.stub;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -41,6 +42,14 @@ public UnaryCallable searchCallable() {
     throw new UnsupportedOperationException("Not implemented: searchCallable()");
   }
 
+  public UnaryCallable searchLitePagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: searchLitePagedCallable()");
+  }
+
+  public UnaryCallable searchLiteCallable() {
+    throw new UnsupportedOperationException("Not implemented: searchLiteCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java
index 72f52146fb07..2a5fa541f74b 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1.stub;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -114,6 +115,8 @@ public class SearchServiceStubSettings extends StubSettings
       searchSettings;
+  private final PagedCallSettings
+      searchLiteSettings;
 
   private static final PagedListDescriptor<
           SearchRequest, SearchResponse, SearchResponse.SearchResult>
@@ -150,6 +153,41 @@ public Iterable extractResources(SearchResponse pay
             }
           };
 
+  private static final PagedListDescriptor<
+          SearchRequest, SearchResponse, SearchResponse.SearchResult>
+      SEARCH_LITE_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public SearchRequest injectToken(SearchRequest payload, String token) {
+              return SearchRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public SearchRequest injectPageSize(SearchRequest payload, int pageSize) {
+              return SearchRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(SearchRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(SearchResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(SearchResponse payload) {
+              return payload.getResultsList();
+            }
+          };
+
   private static final PagedListResponseFactory
       SEARCH_PAGE_STR_FACT =
           new PagedListResponseFactory() {
@@ -165,11 +203,33 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          SearchRequest, SearchResponse, SearchLitePagedResponse>
+      SEARCH_LITE_PAGE_STR_FACT =
+          new PagedListResponseFactory() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                SearchRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, SEARCH_LITE_PAGE_STR_DESC, request, context);
+              return SearchLitePagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to search. */
   public PagedCallSettings searchSettings() {
     return searchSettings;
   }
 
+  /** Returns the object with the settings used for calls to searchLite. */
+  public PagedCallSettings
+      searchLiteSettings() {
+    return searchLiteSettings;
+  }
+
   public SearchServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -282,6 +342,7 @@ protected SearchServiceStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     searchSettings = settingsBuilder.searchSettings().build();
+    searchLiteSettings = settingsBuilder.searchLiteSettings().build();
   }
 
   /** Builder for SearchServiceStubSettings. */
@@ -289,6 +350,8 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders;
     private final PagedCallSettings.Builder
         searchSettings;
+    private final PagedCallSettings.Builder
+        searchLiteSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -328,9 +391,10 @@ protected Builder(ClientContext clientContext) {
       super(clientContext);
 
       searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT);
+      searchLiteSettings = PagedCallSettings.newBuilder(SEARCH_LITE_PAGE_STR_FACT);
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(searchSettings);
+          ImmutableList.>of(searchSettings, searchLiteSettings);
       initDefaults(this);
     }
 
@@ -338,9 +402,10 @@ protected Builder(SearchServiceStubSettings settings) {
       super(settings);
 
       searchSettings = settings.searchSettings.toBuilder();
+      searchLiteSettings = settings.searchLiteSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(searchSettings);
+          ImmutableList.>of(searchSettings, searchLiteSettings);
     }
 
     private static Builder createDefault() {
@@ -373,6 +438,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
+      builder
+          .searchLiteSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
       return builder;
     }
 
@@ -397,6 +467,12 @@ public Builder applyToAllUnaryMethods(
       return searchSettings;
     }
 
+    /** Returns the builder for the settings used for calls to searchLite. */
+    public PagedCallSettings.Builder
+        searchLiteSettings() {
+      return searchLiteSettings;
+    }
+
     @Override
     public SearchServiceStubSettings build() throws IOException {
       return new SearchServiceStubSettings(this);
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json
index 462695cc8973..5e1d661cbc0f 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json
@@ -413,6 +413,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.AlloyDbSource",
     "queryAllDeclaredConstructors": true,
@@ -1052,6 +1070,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo",
     "queryAllDeclaredConstructors": true,
@@ -1214,6 +1250,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Matcher",
     "queryAllDeclaredConstructors": true,
@@ -2258,6 +2312,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.DataStore$Builder",
     "queryAllDeclaredConstructors": true,
@@ -3014,6 +3086,339 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Version",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Version",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Source",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.GetAnswerRequest",
     "queryAllDeclaredConstructors": true,
@@ -3194,6 +3599,42 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.GroundingFact",
     "queryAllDeclaredConstructors": true,
@@ -4589,6 +5030,60 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$Builder",
     "queryAllDeclaredConstructors": true,
@@ -5732,6 +6227,33 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Type",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1.WriteUserEventRequest",
     "queryAllDeclaredConstructors": true,
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json
index bea00f8696d7..ffdd953c276a 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json
@@ -413,6 +413,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1alpha.AclConfig",
     "queryAllDeclaredConstructors": true,
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json
index 611ab20bdea1..e83a93099e80 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json
@@ -413,6 +413,24 @@
     "allDeclaredClasses": true,
     "allPublicClasses": true
   },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
+  {
+    "name": "com.google.api.SelectiveGapicGeneration$Builder",
+    "queryAllDeclaredConstructors": true,
+    "queryAllPublicConstructors": true,
+    "queryAllDeclaredMethods": true,
+    "allPublicMethods": true,
+    "allDeclaredClasses": true,
+    "allPublicClasses": true
+  },
   {
     "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource",
     "queryAllDeclaredConstructors": true,
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java
index 5d98295a80a2..a6506970fada 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java
@@ -95,6 +95,8 @@ public void createDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -158,6 +160,8 @@ public void createDataStoreTest2() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -221,6 +225,8 @@ public void getDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -277,6 +283,8 @@ public void getDataStoreTest2() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -523,6 +531,8 @@ public void updateDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -539,6 +549,8 @@ public void updateDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -581,6 +593,8 @@ public void updateDataStoreExceptionTest() throws Exception {
               .addAllSolutionTypes(new ArrayList())
               .setDefaultSchemaId("defaultSchemaId1300415485")
               .setCreateTime(Timestamp.newBuilder().build())
+              .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+              .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
               .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
               .setStartingSchema(Schema.newBuilder().build())
               .build();
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java
index 1f982e0ddd99..3f83b14bd410 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java
@@ -102,6 +102,8 @@ public void createDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -164,6 +166,8 @@ public void createDataStoreTest2() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -226,6 +230,8 @@ public void getDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -276,6 +282,8 @@ public void getDataStoreTest2() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
@@ -498,6 +506,8 @@ public void updateDataStoreTest() throws Exception {
             .addAllSolutionTypes(new ArrayList())
             .setDefaultSchemaId("defaultSchemaId1300415485")
             .setCreateTime(Timestamp.newBuilder().build())
+            .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build())
+            .setWorkspaceConfig(WorkspaceConfig.newBuilder().build())
             .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
             .setStartingSchema(Schema.newBuilder().build())
             .build();
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java
index a55790bd8fe1..671260469a56 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java
@@ -95,6 +95,7 @@ public void createEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -156,6 +157,7 @@ public void createEngineTest2() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -309,6 +311,7 @@ public void updateEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -323,6 +326,7 @@ public void updateEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     FieldMask updateMask = FieldMask.newBuilder().build();
 
@@ -363,6 +367,7 @@ public void updateEngineExceptionTest() throws Exception {
               .setSolutionType(SolutionType.forNumber(0))
               .setIndustryVertical(IndustryVertical.forNumber(0))
               .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+              .setDisableAnalytics(true)
               .build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       client.updateEngine(engine, updateMask);
@@ -385,6 +390,7 @@ public void getEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -437,6 +443,7 @@ public void getEngineTest2() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockService.addResponse(expectedResponse);
 
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java
index 0a5ea2c69b3c..45c0104f27c9 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java
@@ -102,6 +102,7 @@ public void createEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -162,6 +163,7 @@ public void createEngineTest2() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -306,6 +308,7 @@ public void updateEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockEngineService.addResponse(expectedResponse);
 
@@ -355,6 +358,7 @@ public void getEngineTest() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockEngineService.addResponse(expectedResponse);
 
@@ -401,6 +405,7 @@ public void getEngineTest2() throws Exception {
             .setSolutionType(SolutionType.forNumber(0))
             .setIndustryVertical(IndustryVertical.forNumber(0))
             .setCommonConfig(Engine.CommonConfig.newBuilder().build())
+            .setDisableAnalytics(true)
             .build();
     mockEngineService.addResponse(expectedResponse);
 
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientHttpJsonTest.java
index 77b8e203d6ae..a26afa3c5d05 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientHttpJsonTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientHttpJsonTest.java
@@ -73,6 +73,72 @@ public void tearDown() throws Exception {
     mockService.reset();
   }
 
+  @Test
+  public void streamGenerateGroundedContentUnsupportedMethodTest() throws Exception {
+    // The streamGenerateGroundedContent() method is not supported in REST transport.
+    // This empty test is generated for technical reasons.
+  }
+
+  @Test
+  public void generateGroundedContentTest() throws Exception {
+    GenerateGroundedContentResponse expectedResponse =
+        GenerateGroundedContentResponse.newBuilder()
+            .addAllCandidates(new ArrayList())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    GenerateGroundedContentRequest request =
+        GenerateGroundedContentRequest.newBuilder()
+            .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+            .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+            .addAllContents(new ArrayList())
+            .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+            .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+            .putAllUserLabels(new HashMap())
+            .build();
+
+    GenerateGroundedContentResponse actualResponse = client.generateGroundedContent(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void generateGroundedContentExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      GenerateGroundedContentRequest request =
+          GenerateGroundedContentRequest.newBuilder()
+              .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+              .addAllContents(new ArrayList())
+              .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+              .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+              .putAllUserLabels(new HashMap())
+              .build();
+      client.generateGroundedContent(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void checkGroundingTest() throws Exception {
     CheckGroundingResponse expectedResponse =
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientTest.java
index a49508d6dbad..cc16baae59cd 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClientTest.java
@@ -21,8 +21,12 @@
 import com.google.api.gax.grpc.testing.LocalChannelProvider;
 import com.google.api.gax.grpc.testing.MockGrpcService;
 import com.google.api.gax.grpc.testing.MockServiceHelper;
+import com.google.api.gax.grpc.testing.MockStreamObserver;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiStreamObserver;
+import com.google.api.gax.rpc.BidiStreamingCallable;
 import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
 import com.google.protobuf.AbstractMessage;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
@@ -31,6 +35,7 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
+import java.util.concurrent.ExecutionException;
 import javax.annotation.Generated;
 import org.junit.After;
 import org.junit.AfterClass;
@@ -80,6 +85,133 @@ public void tearDown() throws Exception {
     client.close();
   }
 
+  @Test
+  public void streamGenerateGroundedContentTest() throws Exception {
+    GenerateGroundedContentResponse expectedResponse =
+        GenerateGroundedContentResponse.newBuilder()
+            .addAllCandidates(new ArrayList())
+            .build();
+    mockGroundedGenerationService.addResponse(expectedResponse);
+    GenerateGroundedContentRequest request =
+        GenerateGroundedContentRequest.newBuilder()
+            .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+            .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+            .addAllContents(new ArrayList())
+            .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+            .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+            .putAllUserLabels(new HashMap())
+            .build();
+
+    MockStreamObserver responseObserver =
+        new MockStreamObserver<>();
+
+    BidiStreamingCallable
+        callable = client.streamGenerateGroundedContentCallable();
+    ApiStreamObserver requestObserver =
+        callable.bidiStreamingCall(responseObserver);
+
+    requestObserver.onNext(request);
+    requestObserver.onCompleted();
+
+    List actualResponses = responseObserver.future().get();
+    Assert.assertEquals(1, actualResponses.size());
+    Assert.assertEquals(expectedResponse, actualResponses.get(0));
+  }
+
+  @Test
+  public void streamGenerateGroundedContentExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockGroundedGenerationService.addException(exception);
+    GenerateGroundedContentRequest request =
+        GenerateGroundedContentRequest.newBuilder()
+            .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+            .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+            .addAllContents(new ArrayList())
+            .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+            .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+            .putAllUserLabels(new HashMap())
+            .build();
+
+    MockStreamObserver responseObserver =
+        new MockStreamObserver<>();
+
+    BidiStreamingCallable
+        callable = client.streamGenerateGroundedContentCallable();
+    ApiStreamObserver requestObserver =
+        callable.bidiStreamingCall(responseObserver);
+
+    requestObserver.onNext(request);
+
+    try {
+      List actualResponses = responseObserver.future().get();
+      Assert.fail("No exception thrown");
+    } catch (ExecutionException e) {
+      Assert.assertTrue(e.getCause() instanceof InvalidArgumentException);
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void generateGroundedContentTest() throws Exception {
+    GenerateGroundedContentResponse expectedResponse =
+        GenerateGroundedContentResponse.newBuilder()
+            .addAllCandidates(new ArrayList())
+            .build();
+    mockGroundedGenerationService.addResponse(expectedResponse);
+
+    GenerateGroundedContentRequest request =
+        GenerateGroundedContentRequest.newBuilder()
+            .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+            .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+            .addAllContents(new ArrayList())
+            .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+            .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+            .putAllUserLabels(new HashMap())
+            .build();
+
+    GenerateGroundedContentResponse actualResponse = client.generateGroundedContent(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockGroundedGenerationService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GenerateGroundedContentRequest actualRequest =
+        ((GenerateGroundedContentRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getLocation(), actualRequest.getLocation());
+    Assert.assertEquals(request.getSystemInstruction(), actualRequest.getSystemInstruction());
+    Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList());
+    Assert.assertEquals(request.getGenerationSpec(), actualRequest.getGenerationSpec());
+    Assert.assertEquals(request.getGroundingSpec(), actualRequest.getGroundingSpec());
+    Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void generateGroundedContentExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockGroundedGenerationService.addException(exception);
+
+    try {
+      GenerateGroundedContentRequest request =
+          GenerateGroundedContentRequest.newBuilder()
+              .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setSystemInstruction(GroundedGenerationContent.newBuilder().build())
+              .addAllContents(new ArrayList())
+              .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build())
+              .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build())
+              .putAllUserLabels(new HashMap())
+              .build();
+      client.generateGroundedContent(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void checkGroundingTest() throws Exception {
     CheckGroundingResponse expectedResponse =
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockGroundedGenerationServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockGroundedGenerationServiceImpl.java
index d10387127f25..859e8336c9b1 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockGroundedGenerationServiceImpl.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockGroundedGenerationServiceImpl.java
@@ -58,6 +58,65 @@ public void reset() {
     responses = new LinkedList<>();
   }
 
+  @Override
+  public StreamObserver streamGenerateGroundedContent(
+      final StreamObserver responseObserver) {
+    StreamObserver requestObserver =
+        new StreamObserver() {
+          @Override
+          public void onNext(GenerateGroundedContentRequest value) {
+            requests.add(value);
+            final Object response = responses.remove();
+            if (response instanceof GenerateGroundedContentResponse) {
+              responseObserver.onNext(((GenerateGroundedContentResponse) response));
+            } else if (response instanceof Exception) {
+              responseObserver.onError(((Exception) response));
+            } else {
+              responseObserver.onError(
+                  new IllegalArgumentException(
+                      String.format(
+                          "Unrecognized response type %s for method StreamGenerateGroundedContent, expected %s or %s",
+                          response == null ? "null" : response.getClass().getName(),
+                          GenerateGroundedContentResponse.class.getName(),
+                          Exception.class.getName())));
+            }
+          }
+
+          @Override
+          public void onError(Throwable t) {
+            responseObserver.onError(t);
+          }
+
+          @Override
+          public void onCompleted() {
+            responseObserver.onCompleted();
+          }
+        };
+    return requestObserver;
+  }
+
+  @Override
+  public void generateGroundedContent(
+      GenerateGroundedContentRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof GenerateGroundedContentResponse) {
+      requests.add(request);
+      responseObserver.onNext(((GenerateGroundedContentResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GenerateGroundedContent, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  GenerateGroundedContentResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void checkGrounding(
       CheckGroundingRequest request, StreamObserver responseObserver) {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java
index c85f301ac42c..b4fb88e1f327 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java
@@ -77,4 +77,24 @@ public void search(SearchRequest request, StreamObserver respons
                   Exception.class.getName())));
     }
   }
+
+  @Override
+  public void searchLite(SearchRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof SearchResponse) {
+      requests.add(request);
+      responseObserver.onNext(((SearchResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method SearchLite, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  SearchResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
 }
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java
index e3d808cc96b4..007263b03ed0 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -103,6 +104,7 @@ public void searchTest() throws Exception {
             .setPageSize(883849137)
             .setPageToken("pageToken873572522")
             .setOffset(-1019779949)
+            .setOneBoxPageSize(1988477988)
             .addAllDataStoreSpecs(new ArrayList())
             .setFilter("filter-1274492040")
             .setCanonicalFilter("canonicalFilter-722283124")
@@ -172,6 +174,7 @@ public void searchExceptionTest() throws Exception {
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOffset(-1019779949)
+              .setOneBoxPageSize(1988477988)
               .addAllDataStoreSpecs(new ArrayList())
               .setFilter("filter-1274492040")
               .setCanonicalFilter("canonicalFilter-722283124")
@@ -200,4 +203,129 @@ public void searchExceptionTest() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void searchLiteTest() throws Exception {
+    SearchResponse.SearchResult responsesElement = SearchResponse.SearchResult.newBuilder().build();
+    SearchResponse expectedResponse =
+        SearchResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllResults(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SearchRequest request =
+        SearchRequest.newBuilder()
+            .setServingConfig(
+                ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+                    .toString())
+            .setBranch(
+                BranchName.ofProjectLocationDataStoreBranchName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+                    .toString())
+            .setQuery("query107944136")
+            .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .setOffset(-1019779949)
+            .setOneBoxPageSize(1988477988)
+            .addAllDataStoreSpecs(new ArrayList())
+            .setFilter("filter-1274492040")
+            .setCanonicalFilter("canonicalFilter-722283124")
+            .setOrderBy("orderBy-1207110587")
+            .setUserInfo(UserInfo.newBuilder().build())
+            .setLanguageCode("languageCode-2092349083")
+            .addAllFacetSpecs(new ArrayList())
+            .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+            .putAllParams(new HashMap())
+            .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+            .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+            .setUserPseudoId("userPseudoId-1155274652")
+            .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+            .setSafeSearch(true)
+            .putAllUserLabels(new HashMap())
+            .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+            .setSession(
+                SessionName.ofProjectLocationDataStoreSessionName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+                    .toString())
+            .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+            .build();
+
+    SearchLitePagedResponse pagedListResponse = client.searchLite(request);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void searchLiteExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SearchRequest request =
+          SearchRequest.newBuilder()
+              .setServingConfig(
+                  ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+                      .toString())
+              .setBranch(
+                  BranchName.ofProjectLocationDataStoreBranchName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+                      .toString())
+              .setQuery("query107944136")
+              .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setOffset(-1019779949)
+              .setOneBoxPageSize(1988477988)
+              .addAllDataStoreSpecs(new ArrayList())
+              .setFilter("filter-1274492040")
+              .setCanonicalFilter("canonicalFilter-722283124")
+              .setOrderBy("orderBy-1207110587")
+              .setUserInfo(UserInfo.newBuilder().build())
+              .setLanguageCode("languageCode-2092349083")
+              .addAllFacetSpecs(new ArrayList())
+              .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+              .putAllParams(new HashMap())
+              .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+              .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+              .setUserPseudoId("userPseudoId-1155274652")
+              .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+              .setSafeSearch(true)
+              .putAllUserLabels(new HashMap())
+              .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+              .setSession(
+                  SessionName.ofProjectLocationDataStoreSessionName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+                      .toString())
+              .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+              .build();
+      client.searchLite(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java
index d89381c8733a..acaeccbe8ce8 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java
@@ -16,6 +16,7 @@
 
 package com.google.cloud.discoveryengine.v1;
 
+import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchLitePagedResponse;
 import static com.google.cloud.discoveryengine.v1.SearchServiceClient.SearchPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -109,6 +110,7 @@ public void searchTest() throws Exception {
             .setPageSize(883849137)
             .setPageToken("pageToken873572522")
             .setOffset(-1019779949)
+            .setOneBoxPageSize(1988477988)
             .addAllDataStoreSpecs(new ArrayList())
             .setFilter("filter-1274492040")
             .setCanonicalFilter("canonicalFilter-722283124")
@@ -151,6 +153,7 @@ public void searchTest() throws Exception {
     Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
     Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
     Assert.assertEquals(request.getOffset(), actualRequest.getOffset());
+    Assert.assertEquals(request.getOneBoxPageSize(), actualRequest.getOneBoxPageSize());
     Assert.assertEquals(request.getDataStoreSpecsList(), actualRequest.getDataStoreSpecsList());
     Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
     Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter());
@@ -196,6 +199,7 @@ public void searchExceptionTest() throws Exception {
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOffset(-1019779949)
+              .setOneBoxPageSize(1988477988)
               .addAllDataStoreSpecs(new ArrayList())
               .setFilter("filter-1274492040")
               .setCanonicalFilter("canonicalFilter-722283124")
@@ -224,4 +228,148 @@ public void searchExceptionTest() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void searchLiteTest() throws Exception {
+    SearchResponse.SearchResult responsesElement = SearchResponse.SearchResult.newBuilder().build();
+    SearchResponse expectedResponse =
+        SearchResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllResults(Arrays.asList(responsesElement))
+            .build();
+    mockSearchService.addResponse(expectedResponse);
+
+    SearchRequest request =
+        SearchRequest.newBuilder()
+            .setServingConfig(
+                ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+                    .toString())
+            .setBranch(
+                BranchName.ofProjectLocationDataStoreBranchName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+                    .toString())
+            .setQuery("query107944136")
+            .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .setOffset(-1019779949)
+            .setOneBoxPageSize(1988477988)
+            .addAllDataStoreSpecs(new ArrayList())
+            .setFilter("filter-1274492040")
+            .setCanonicalFilter("canonicalFilter-722283124")
+            .setOrderBy("orderBy-1207110587")
+            .setUserInfo(UserInfo.newBuilder().build())
+            .setLanguageCode("languageCode-2092349083")
+            .addAllFacetSpecs(new ArrayList())
+            .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+            .putAllParams(new HashMap())
+            .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+            .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+            .setUserPseudoId("userPseudoId-1155274652")
+            .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+            .setSafeSearch(true)
+            .putAllUserLabels(new HashMap())
+            .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+            .setSession(
+                SessionName.ofProjectLocationDataStoreSessionName(
+                        "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+                    .toString())
+            .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+            .build();
+
+    SearchLitePagedResponse pagedListResponse = client.searchLite(request);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0));
+
+    List actualRequests = mockSearchService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SearchRequest actualRequest = ((SearchRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig());
+    Assert.assertEquals(request.getBranch(), actualRequest.getBranch());
+    Assert.assertEquals(request.getQuery(), actualRequest.getQuery());
+    Assert.assertEquals(request.getImageQuery(), actualRequest.getImageQuery());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertEquals(request.getOffset(), actualRequest.getOffset());
+    Assert.assertEquals(request.getOneBoxPageSize(), actualRequest.getOneBoxPageSize());
+    Assert.assertEquals(request.getDataStoreSpecsList(), actualRequest.getDataStoreSpecsList());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter());
+    Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy());
+    Assert.assertEquals(request.getUserInfo(), actualRequest.getUserInfo());
+    Assert.assertEquals(request.getLanguageCode(), actualRequest.getLanguageCode());
+    Assert.assertEquals(request.getFacetSpecsList(), actualRequest.getFacetSpecsList());
+    Assert.assertEquals(request.getBoostSpec(), actualRequest.getBoostSpec());
+    Assert.assertEquals(request.getParamsMap(), actualRequest.getParamsMap());
+    Assert.assertEquals(request.getQueryExpansionSpec(), actualRequest.getQueryExpansionSpec());
+    Assert.assertEquals(request.getSpellCorrectionSpec(), actualRequest.getSpellCorrectionSpec());
+    Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId());
+    Assert.assertEquals(request.getContentSearchSpec(), actualRequest.getContentSearchSpec());
+    Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch());
+    Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap());
+    Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec());
+    Assert.assertEquals(request.getSession(), actualRequest.getSession());
+    Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void searchLiteExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSearchService.addException(exception);
+
+    try {
+      SearchRequest request =
+          SearchRequest.newBuilder()
+              .setServingConfig(
+                  ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+                      .toString())
+              .setBranch(
+                  BranchName.ofProjectLocationDataStoreBranchName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+                      .toString())
+              .setQuery("query107944136")
+              .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setOffset(-1019779949)
+              .setOneBoxPageSize(1988477988)
+              .addAllDataStoreSpecs(new ArrayList())
+              .setFilter("filter-1274492040")
+              .setCanonicalFilter("canonicalFilter-722283124")
+              .setOrderBy("orderBy-1207110587")
+              .setUserInfo(UserInfo.newBuilder().build())
+              .setLanguageCode("languageCode-2092349083")
+              .addAllFacetSpecs(new ArrayList())
+              .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+              .putAllParams(new HashMap())
+              .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+              .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+              .setUserPseudoId("userPseudoId-1155274652")
+              .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+              .setSafeSearch(true)
+              .putAllUserLabels(new HashMap())
+              .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build())
+              .setSession(
+                  SessionName.ofProjectLocationDataStoreSessionName(
+                          "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+                      .toString())
+              .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build())
+              .build();
+      client.searchLite(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientHttpJsonTest.java
index 5c9de1ad169c..f6f82ab7d99c 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientHttpJsonTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientHttpJsonTest.java
@@ -917,6 +917,7 @@ public void recrawlUrisTest() throws Exception {
                         "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                     .toString())
             .addAllUris(new ArrayList())
+            .setSiteCredential("siteCredential-751929602")
             .build();
 
     RecrawlUrisResponse actualResponse = client.recrawlUrisAsync(request).get();
@@ -952,6 +953,7 @@ public void recrawlUrisExceptionTest() throws Exception {
                           "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                       .toString())
               .addAllUris(new ArrayList())
+              .setSiteCredential("siteCredential-751929602")
               .build();
       client.recrawlUrisAsync(request).get();
       Assert.fail("No exception raised");
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientTest.java
index d83159367dfb..3a4ae1f31964 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientTest.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClientTest.java
@@ -834,6 +834,7 @@ public void recrawlUrisTest() throws Exception {
                         "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                     .toString())
             .addAllUris(new ArrayList())
+            .setSiteCredential("siteCredential-751929602")
             .build();
 
     RecrawlUrisResponse actualResponse = client.recrawlUrisAsync(request).get();
@@ -845,6 +846,7 @@ public void recrawlUrisTest() throws Exception {
 
     Assert.assertEquals(request.getSiteSearchEngine(), actualRequest.getSiteSearchEngine());
     Assert.assertEquals(request.getUrisList(), actualRequest.getUrisList());
+    Assert.assertEquals(request.getSiteCredential(), actualRequest.getSiteCredential());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -864,6 +866,7 @@ public void recrawlUrisExceptionTest() throws Exception {
                           "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                       .toString())
               .addAllUris(new ArrayList())
+              .setSiteCredential("siteCredential-751929602")
               .build();
       client.recrawlUrisAsync(request).get();
       Assert.fail("No exception raised");
diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java
index 1856f1ac2f4f..c5db27365c47 100644
--- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java
+++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java
@@ -36,6 +36,112 @@ private GroundedGenerationServiceGrpc() {}
       "google.cloud.discoveryengine.v1.GroundedGenerationService";
 
   // Static method descriptors that strictly reflect the proto.
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+      getStreamGenerateGroundedContentMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "StreamGenerateGroundedContent",
+      requestType = com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.class,
+      responseType = com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+      getStreamGenerateGroundedContentMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+            com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+        getStreamGenerateGroundedContentMethod;
+    if ((getStreamGenerateGroundedContentMethod =
+            GroundedGenerationServiceGrpc.getStreamGenerateGroundedContentMethod)
+        == null) {
+      synchronized (GroundedGenerationServiceGrpc.class) {
+        if ((getStreamGenerateGroundedContentMethod =
+                GroundedGenerationServiceGrpc.getStreamGenerateGroundedContentMethod)
+            == null) {
+          GroundedGenerationServiceGrpc.getStreamGenerateGroundedContentMethod =
+              getStreamGenerateGroundedContentMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "StreamGenerateGroundedContent"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new GroundedGenerationServiceMethodDescriptorSupplier(
+                              "StreamGenerateGroundedContent"))
+                      .build();
+        }
+      }
+    }
+    return getStreamGenerateGroundedContentMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+      getGenerateGroundedContentMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GenerateGroundedContent",
+      requestType = com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.class,
+      responseType = com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+          com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+      getGenerateGroundedContentMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest,
+            com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>
+        getGenerateGroundedContentMethod;
+    if ((getGenerateGroundedContentMethod =
+            GroundedGenerationServiceGrpc.getGenerateGroundedContentMethod)
+        == null) {
+      synchronized (GroundedGenerationServiceGrpc.class) {
+        if ((getGenerateGroundedContentMethod =
+                GroundedGenerationServiceGrpc.getGenerateGroundedContentMethod)
+            == null) {
+          GroundedGenerationServiceGrpc.getGenerateGroundedContentMethod =
+              getGenerateGroundedContentMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "GenerateGroundedContent"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new GroundedGenerationServiceMethodDescriptorSupplier(
+                              "GenerateGroundedContent"))
+                      .build();
+        }
+      }
+    }
+    return getGenerateGroundedContentMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.discoveryengine.v1.CheckGroundingRequest,
           com.google.cloud.discoveryengine.v1.CheckGroundingResponse>
@@ -134,6 +240,39 @@ public GroundedGenerationServiceFutureStub newStub(
    */
   public interface AsyncService {
 
+    /**
+     *
+     *
+     * 
+     * Generates grounded content in a streaming fashion.
+     * 
+ */ + default io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest> + streamGenerateGroundedContent( + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamGenerateGroundedContentMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates grounded content.
+     * 
+ */ + default void generateGroundedContent( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateGroundedContentMethod(), responseObserver); + } + /** * * @@ -186,6 +325,42 @@ protected GroundedGenerationServiceStub build( return new GroundedGenerationServiceStub(channel, callOptions); } + /** + * + * + *
+     * Generates grounded content in a streaming fashion.
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest> + streamGenerateGroundedContent( + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamGenerateGroundedContentMethod(), getCallOptions()), + responseObserver); + } + + /** + * + * + *
+     * Generates grounded content.
+     * 
+ */ + public void generateGroundedContent( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateGroundedContentMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -224,6 +399,20 @@ protected GroundedGenerationServiceBlockingStub build( return new GroundedGenerationServiceBlockingStub(channel, callOptions); } + /** + * + * + *
+     * Generates grounded content.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + generateGroundedContent( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateGroundedContentMethod(), getCallOptions(), request); + } + /** * * @@ -259,6 +448,21 @@ protected GroundedGenerationServiceFutureStub build( return new GroundedGenerationServiceFutureStub(channel, callOptions); } + /** + * + * + *
+     * Generates grounded content.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse> + generateGroundedContent( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateGroundedContentMethod(), getCallOptions()), request); + } + /** * * @@ -274,7 +478,9 @@ protected GroundedGenerationServiceFutureStub build( } } - private static final int METHODID_CHECK_GROUNDING = 0; + private static final int METHODID_GENERATE_GROUNDED_CONTENT = 0; + private static final int METHODID_CHECK_GROUNDING = 1; + private static final int METHODID_STREAM_GENERATE_GROUNDED_CONTENT = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -293,6 +499,13 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_GENERATE_GROUNDED_CONTENT: + serviceImpl.generateGroundedContent( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>) + responseObserver); + break; case METHODID_CHECK_GROUNDING: serviceImpl.checkGrounding( (com.google.cloud.discoveryengine.v1.CheckGroundingRequest) request, @@ -310,6 +523,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_STREAM_GENERATE_GROUNDED_CONTENT: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamGenerateGroundedContent( + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>) + responseObserver); default: throw new AssertionError(); } @@ -318,6 +537,20 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamGenerateGroundedContentMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>( + service, METHODID_STREAM_GENERATE_GROUNDED_CONTENT))) + .addMethod( + getGenerateGroundedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse>( + service, METHODID_GENERATE_GROUNDED_CONTENT))) .addMethod( getCheckGroundingMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -376,6 +609,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new GroundedGenerationServiceFileDescriptorSupplier()) + .addMethod(getStreamGenerateGroundedContentMethod()) + .addMethod(getGenerateGroundedContentMethod()) .addMethod(getCheckGroundingMethod()) .build(); } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java index b64e207f957e..db0563ddd8f4 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java @@ -82,6 +82,52 @@ private SearchServiceGrpc() {} return getSearchMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SearchRequest, + com.google.cloud.discoveryengine.v1.SearchResponse> + getSearchLiteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchLite", + requestType = com.google.cloud.discoveryengine.v1.SearchRequest.class, + responseType = com.google.cloud.discoveryengine.v1.SearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SearchRequest, + com.google.cloud.discoveryengine.v1.SearchResponse> + getSearchLiteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SearchRequest, + com.google.cloud.discoveryengine.v1.SearchResponse> + getSearchLiteMethod; + if ((getSearchLiteMethod = SearchServiceGrpc.getSearchLiteMethod) == null) { + synchronized (SearchServiceGrpc.class) { + if ((getSearchLiteMethod = SearchServiceGrpc.getSearchLiteMethod) == null) { + SearchServiceGrpc.getSearchLiteMethod = + getSearchLiteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchLite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.SearchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.SearchResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("SearchLite")) + .build(); + } + } + } + return getSearchLiteMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static SearchServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -145,6 +191,30 @@ default void search( responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); } + + /** + * + * + *
+     * Performs a search. Similar to the
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * method, but a lite version that allows API key for authentication, where
+     * OAuth and IAM checks are not required.
+     * Only public website search is supported by this method. If data stores and
+     * engines not associated with public website search are specified, a
+     * `FAILED_PRECONDITION` error is returned.
+     * This method can be used for easy onboarding without having to implement an
+     * authentication backend. However, it is strongly recommended to use
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * instead with required OAuth and IAM checks to provide better data security.
+     * 
+ */ + default void searchLite( + com.google.cloud.discoveryengine.v1.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchLiteMethod(), responseObserver); + } } /** @@ -195,6 +265,31 @@ public void search( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Performs a search. Similar to the
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * method, but a lite version that allows API key for authentication, where
+     * OAuth and IAM checks are not required.
+     * Only public website search is supported by this method. If data stores and
+     * engines not associated with public website search are specified, a
+     * `FAILED_PRECONDITION` error is returned.
+     * This method can be used for easy onboarding without having to implement an
+     * authentication backend. However, it is strongly recommended to use
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * instead with required OAuth and IAM checks to provide better data security.
+     * 
+ */ + public void searchLite( + com.google.cloud.discoveryengine.v1.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchLiteMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -228,6 +323,29 @@ public com.google.cloud.discoveryengine.v1.SearchResponse search( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Performs a search. Similar to the
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * method, but a lite version that allows API key for authentication, where
+     * OAuth and IAM checks are not required.
+     * Only public website search is supported by this method. If data stores and
+     * engines not associated with public website search are specified, a
+     * `FAILED_PRECONDITION` error is returned.
+     * This method can be used for easy onboarding without having to implement an
+     * authentication backend. However, it is strongly recommended to use
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * instead with required OAuth and IAM checks to provide better data security.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.SearchResponse searchLite( + com.google.cloud.discoveryengine.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchLiteMethod(), getCallOptions(), request); + } } /** @@ -262,9 +380,34 @@ protected SearchServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Performs a search. Similar to the
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * method, but a lite version that allows API key for authentication, where
+     * OAuth and IAM checks are not required.
+     * Only public website search is supported by this method. If data stores and
+     * engines not associated with public website search are specified, a
+     * `FAILED_PRECONDITION` error is returned.
+     * This method can be used for easy onboarding without having to implement an
+     * authentication backend. However, it is strongly recommended to use
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * instead with required OAuth and IAM checks to provide better data security.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.SearchResponse> + searchLite(com.google.cloud.discoveryengine.v1.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchLiteMethod(), getCallOptions()), request); + } } private static final int METHODID_SEARCH = 0; + private static final int METHODID_SEARCH_LITE = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -289,6 +432,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SEARCH_LITE: + serviceImpl.searchLite( + (com.google.cloud.discoveryengine.v1.SearchRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -313,6 +462,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.discoveryengine.v1.SearchRequest, com.google.cloud.discoveryengine.v1.SearchResponse>(service, METHODID_SEARCH))) + .addMethod( + getSearchLiteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.SearchRequest, + com.google.cloud.discoveryengine.v1.SearchResponse>( + service, METHODID_SEARCH_LITE))) .build(); } @@ -365,6 +521,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) .addMethod(getSearchMethod()) + .addMethod(getSearchLiteMethod()) .build(); } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Answer.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Answer.java index 0a80ee5b56d6..9066a46883af 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Answer.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Answer.java @@ -283,7 +283,9 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * * *
-     * The non-answer seeking query ignored case.
+     * The non-answer seeking query ignored case
+     *
+     * Google skips the answer if the query is chit chat.
      * 
* * NON_ANSWER_SEEKING_QUERY_IGNORED = 2; @@ -354,6 +356,31 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * CUSTOMER_POLICY_VIOLATION = 7; */ CUSTOMER_POLICY_VIOLATION(7), + /** + * + * + *
+     * The non-answer seeking query ignored case.
+     *
+     * Google skips the answer if the query doesn't have clear intent.
+     * 
+ * + * NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8; + */ + NON_ANSWER_SEEKING_QUERY_IGNORED_V2(8), + /** + * + * + *
+     * The low-grounded answer case.
+     *
+     * Google skips the answer if a well grounded answer was unable to be
+     * generated.
+     * 
+ * + * LOW_GROUNDED_ANSWER = 9; + */ + LOW_GROUNDED_ANSWER(9), UNRECOGNIZED(-1), ; @@ -381,7 +408,9 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * * *
-     * The non-answer seeking query ignored case.
+     * The non-answer seeking query ignored case
+     *
+     * Google skips the answer if the query is chit chat.
      * 
* * NON_ANSWER_SEEKING_QUERY_IGNORED = 2; @@ -452,6 +481,31 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * CUSTOMER_POLICY_VIOLATION = 7; */ public static final int CUSTOMER_POLICY_VIOLATION_VALUE = 7; + /** + * + * + *
+     * The non-answer seeking query ignored case.
+     *
+     * Google skips the answer if the query doesn't have clear intent.
+     * 
+ * + * NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8; + */ + public static final int NON_ANSWER_SEEKING_QUERY_IGNORED_V2_VALUE = 8; + /** + * + * + *
+     * The low-grounded answer case.
+     *
+     * Google skips the answer if a well grounded answer was unable to be
+     * generated.
+     * 
+ * + * LOW_GROUNDED_ANSWER = 9; + */ + public static final int LOW_GROUNDED_ANSWER_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -493,6 +547,10 @@ public static AnswerSkippedReason forNumber(int value) { return JAIL_BREAKING_QUERY_IGNORED; case 7: return CUSTOMER_POLICY_VIOLATION; + case 8: + return NON_ANSWER_SEEKING_QUERY_IGNORED_V2; + case 9: + return LOW_GROUNDED_ANSWER; default: return null; } @@ -21344,7 +21402,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * Non-answer-seeking query classification type.
+         * Non-answer-seeking query classification type, for chit chat.
          * 
* * NON_ANSWER_SEEKING_QUERY = 2; @@ -21360,6 +21418,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * JAIL_BREAKING_QUERY = 3; */ JAIL_BREAKING_QUERY(3), + /** + * + * + *
+         * Non-answer-seeking query classification type, for no clear intent.
+         * 
+ * + * NON_ANSWER_SEEKING_QUERY_V2 = 4; + */ + NON_ANSWER_SEEKING_QUERY_V2(4), UNRECOGNIZED(-1), ; @@ -21387,7 +21455,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * Non-answer-seeking query classification type.
+         * Non-answer-seeking query classification type, for chit chat.
          * 
* * NON_ANSWER_SEEKING_QUERY = 2; @@ -21403,6 +21471,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * JAIL_BREAKING_QUERY = 3; */ public static final int JAIL_BREAKING_QUERY_VALUE = 3; + /** + * + * + *
+         * Non-answer-seeking query classification type, for no clear intent.
+         * 
+ * + * NON_ANSWER_SEEKING_QUERY_V2 = 4; + */ + public static final int NON_ANSWER_SEEKING_QUERY_V2_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -21436,6 +21514,8 @@ public static Type forNumber(int value) { return NON_ANSWER_SEEKING_QUERY; case 3: return JAIL_BREAKING_QUERY; + case 4: + return NON_ANSWER_SEEKING_QUERY_V2; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerProto.java index 266e7f03fd4a..92763c311b8a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerProto.java @@ -114,7 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032\034google/protobuf/str" + "uct.proto\032\037google/protobuf/timestamp.pro" - + "to\"\365!\n\006Answer\022\021\n\004name\030\001 \001(\tB\003\340A\005\022<\n\005stat" + + "to\"\331\"\n\006Answer\022\021\n\004name\030\001 \001(\tB\003\340A\005\022<\n\005stat" + "e\030\002 \001(\0162-.google.cloud.discoveryengine.v" + "1.Answer.State\022\023\n\013answer_text\030\003 \001(\t\022C\n\tc" + "itations\030\004 \003(\01320.google.cloud.discoverye" @@ -193,43 +193,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002 \001(\t\022\034\n\017relevance_score\030\003 \001(\002H\000\210\001\001B\022\n\020_" + "relevance_scoreB\010\n\006action\"J\n\005State\022\025\n\021ST" + "ATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\n\n\006FA" - + "ILED\020\002\022\r\n\tSUCCEEDED\020\003\032\230\003\n\026QueryUnderstan" + + "ILED\020\002\022\r\n\tSUCCEEDED\020\003\032\272\003\n\026QueryUnderstan" + "dingInfo\022y\n\031query_classification_info\030\001 " + "\003(\0132V.google.cloud.discoveryengine.v1.An" + "swer.QueryUnderstandingInfo.QueryClassif" - + "icationInfo\032\202\002\n\027QueryClassificationInfo\022" + + "icationInfo\032\244\002\n\027QueryClassificationInfo\022" + "i\n\004type\030\001 \001(\0162[.google.cloud.discoveryen" + "gine.v1.Answer.QueryUnderstandingInfo.Qu" + "eryClassificationInfo.Type\022\020\n\010positive\030\002" - + " \001(\010\"j\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021AD" - + "VERSARIAL_QUERY\020\001\022\034\n\030NON_ANSWER_SEEKING_" - + "QUERY\020\002\022\027\n\023JAIL_BREAKING_QUERY\020\003\"J\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020" - + "\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\"\233\002\n\023AnswerS" - + "kippedReason\022%\n!ANSWER_SKIPPED_REASON_UN" - + "SPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED" - + "\020\001\022$\n NON_ANSWER_SEEKING_QUERY_IGNORED\020\002" - + "\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POT" - + "ENTIAL_POLICY_VIOLATION\020\004\022\027\n\023NO_RELEVANT" - + "_CONTENT\020\005\022\037\n\033JAIL_BREAKING_QUERY_IGNORE" - + "D\020\006\022\035\n\031CUSTOMER_POLICY_VIOLATION\020\007:\205\003\352A\201" - + "\003\n%discoveryengine.googleapis.com/Answer" - + "\022cprojects/{project}/locations/{location" - + "}/dataStores/{data_store}/sessions/{sess" - + "ion}/answers/{answer}\022|projects/{project" - + "}/locations/{location}/collections/{coll" - + "ection}/dataStores/{data_store}/sessions" - + "/{session}/answers/{answer}\022uprojects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/engines/{engine}/sessions/" - + "{session}/answers/{answer}B\376\001\n#com.googl" - + "e.cloud.discoveryengine.v1B\013AnswerProtoP" - + "\001ZMcloud.google.com/go/discoveryengine/a" - + "piv1/discoveryenginepb;discoveryenginepb" - + "\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discov" - + "eryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEng" - + "ine\\V1\352\002\"Google::Cloud::DiscoveryEngine:" - + ":V1b\006proto3" + + " \001(\010\"\213\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021A" + + "DVERSARIAL_QUERY\020\001\022\034\n\030NON_ANSWER_SEEKING" + + "_QUERY\020\002\022\027\n\023JAIL_BREAKING_QUERY\020\003\022\037\n\033NON" + + "_ANSWER_SEEKING_QUERY_V2\020\004\"J\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\n\n\006F" + + "AILED\020\002\022\r\n\tSUCCEEDED\020\003\"\335\002\n\023AnswerSkipped" + + "Reason\022%\n!ANSWER_SKIPPED_REASON_UNSPECIF" + + "IED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022$\n " + + "NON_ANSWER_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OU" + + "T_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL" + + "_POLICY_VIOLATION\020\004\022\027\n\023NO_RELEVANT_CONTE" + + "NT\020\005\022\037\n\033JAIL_BREAKING_QUERY_IGNORED\020\006\022\035\n" + + "\031CUSTOMER_POLICY_VIOLATION\020\007\022\'\n#NON_ANSW" + + "ER_SEEKING_QUERY_IGNORED_V2\020\010\022\027\n\023LOW_GRO" + + "UNDED_ANSWER\020\t:\205\003\352A\201\003\n%discoveryengine.g" + + "oogleapis.com/Answer\022cprojects/{project}" + + "/locations/{location}/dataStores/{data_s" + + "tore}/sessions/{session}/answers/{answer" + + "}\022|projects/{project}/locations/{locatio" + + "n}/collections/{collection}/dataStores/{" + + "data_store}/sessions/{session}/answers/{" + + "answer}\022uprojects/{project}/locations/{l" + + "ocation}/collections/{collection}/engine" + + "s/{engine}/sessions/{session}/answers/{a" + + "nswer}B\376\001\n#com.google.cloud.discoveryeng" + + "ine.v1B\013AnswerProtoP\001ZMcloud.google.com/" + + "go/discoveryengine/apiv1/discoveryengine" + + "pb;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002" + + "\037Google.Cloud.DiscoveryEngine.V1\312\002\037Googl" + + "e\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clo" + + "ud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java index aa4683415300..1d904ad63909 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java @@ -1407,6 +1407,29 @@ public interface AnswerGenerationSpecOrBuilder * @return The ignoreLowRelevantContent. */ boolean getIgnoreLowRelevantContent(); + + /** + * + * + *
+     * Optional. Specifies whether to filter out jail-breaking queries. The
+     * default value is `false`.
+     *
+     * Google employs search-query classification to detect jail-breaking
+     * queries. No summary is returned if the search query is classified as a
+     * jail-breaking query. A user might add instructions to the query to
+     * change the tone, style, language, content of the answer, or ask the
+     * model to act as a different entity, e.g. "Reply in the tone of a
+     * competing company's CEO". If this field is set to `true`, we skip
+     * generating summaries for jail-breaking queries and return fallback
+     * messages instead.
+     * 
+ * + * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreJailBreakingQuery. + */ + boolean getIgnoreJailBreakingQuery(); } /** * @@ -3161,6 +3184,34 @@ public boolean getIgnoreLowRelevantContent() { return ignoreLowRelevantContent_; } + public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 8; + private boolean ignoreJailBreakingQuery_ = false; + /** + * + * + *
+     * Optional. Specifies whether to filter out jail-breaking queries. The
+     * default value is `false`.
+     *
+     * Google employs search-query classification to detect jail-breaking
+     * queries. No summary is returned if the search query is classified as a
+     * jail-breaking query. A user might add instructions to the query to
+     * change the tone, style, language, content of the answer, or ask the
+     * model to act as a different entity, e.g. "Reply in the tone of a
+     * competing company's CEO". If this field is set to `true`, we skip
+     * generating summaries for jail-breaking queries and return fallback
+     * messages instead.
+     * 
+ * + * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreJailBreakingQuery. + */ + @java.lang.Override + public boolean getIgnoreJailBreakingQuery() { + return ignoreJailBreakingQuery_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3196,6 +3247,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(7, ignoreLowRelevantContent_); } + if (ignoreJailBreakingQuery_ != false) { + output.writeBool(8, ignoreJailBreakingQuery_); + } getUnknownFields().writeTo(output); } @@ -3227,6 +3281,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreLowRelevantContent_); } + if (ignoreJailBreakingQuery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, ignoreJailBreakingQuery_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3260,6 +3317,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIgnoreLowRelevantContent()) { if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; } + if (getIgnoreJailBreakingQuery() != other.getIgnoreJailBreakingQuery()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3293,6 +3351,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreLowRelevantContent()); } + hash = (37 * hash) + IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreJailBreakingQuery()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3468,6 +3528,7 @@ public Builder clear() { ignoreAdversarialQuery_ = false; ignoreNonAnswerSeekingQuery_ = false; ignoreLowRelevantContent_ = false; + ignoreJailBreakingQuery_ = false; return this; } @@ -3535,6 +3596,9 @@ private void buildPartial0( result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ignoreJailBreakingQuery_ = ignoreJailBreakingQuery_; + } result.bitField0_ |= to_bitField0_; } @@ -3614,6 +3678,9 @@ public Builder mergeFrom( if (other.hasIgnoreLowRelevantContent()) { setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); } + if (other.getIgnoreJailBreakingQuery() != false) { + setIgnoreJailBreakingQuery(other.getIgnoreJailBreakingQuery()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3682,6 +3749,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 56 + case 64: + { + ignoreJailBreakingQuery_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4565,6 +4638,89 @@ public Builder clearIgnoreLowRelevantContent() { return this; } + private boolean ignoreJailBreakingQuery_; + /** + * + * + *
+       * Optional. Specifies whether to filter out jail-breaking queries. The
+       * default value is `false`.
+       *
+       * Google employs search-query classification to detect jail-breaking
+       * queries. No summary is returned if the search query is classified as a
+       * jail-breaking query. A user might add instructions to the query to
+       * change the tone, style, language, content of the answer, or ask the
+       * model to act as a different entity, e.g. "Reply in the tone of a
+       * competing company's CEO". If this field is set to `true`, we skip
+       * generating summaries for jail-breaking queries and return fallback
+       * messages instead.
+       * 
+ * + * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreJailBreakingQuery. + */ + @java.lang.Override + public boolean getIgnoreJailBreakingQuery() { + return ignoreJailBreakingQuery_; + } + /** + * + * + *
+       * Optional. Specifies whether to filter out jail-breaking queries. The
+       * default value is `false`.
+       *
+       * Google employs search-query classification to detect jail-breaking
+       * queries. No summary is returned if the search query is classified as a
+       * jail-breaking query. A user might add instructions to the query to
+       * change the tone, style, language, content of the answer, or ask the
+       * model to act as a different entity, e.g. "Reply in the tone of a
+       * competing company's CEO". If this field is set to `true`, we skip
+       * generating summaries for jail-breaking queries and return fallback
+       * messages instead.
+       * 
+ * + * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreJailBreakingQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreJailBreakingQuery(boolean value) { + + ignoreJailBreakingQuery_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies whether to filter out jail-breaking queries. The
+       * default value is `false`.
+       *
+       * Google employs search-query classification to detect jail-breaking
+       * queries. No summary is returned if the search query is classified as a
+       * jail-breaking query. A user might add instructions to the query to
+       * change the tone, style, language, content of the answer, or ask the
+       * model to act as a different entity, e.g. "Reply in the tone of a
+       * competing company's CEO". If this field is set to `true`, we skip
+       * generating summaries for jail-breaking queries and return fallback
+       * messages instead.
+       * 
+ * + * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreJailBreakingQuery() { + bitField0_ = (bitField0_ & ~0x00000080); + ignoreJailBreakingQuery_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7632,7 +7788,9 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -7647,7 +7805,9 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -7661,7 +7821,9 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -7673,7 +7835,9 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -7690,7 +7854,9 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -7778,13 +7944,17 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List< com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> @@ -7793,13 +7963,17 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer getExtractiveAnswers(int index); @@ -7807,25 +7981,33 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated int getExtractiveAnswersCount(); /** * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List< ? extends com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec @@ -7836,13 +8018,17 @@ public interface UnstructuredDocumentInfoOrBuilder * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder getExtractiveAnswersOrBuilder(int index); @@ -7935,7 +8121,7 @@ public interface DocumentContextOrBuilder * * *
-             * Document content.
+             * Document content to be used for answer generation.
              * 
* * string content = 2; @@ -7947,7 +8133,7 @@ public interface DocumentContextOrBuilder * * *
-             * Document content.
+             * Document content to be used for answer generation.
              * 
* * string content = 2; @@ -8065,7 +8251,7 @@ public com.google.protobuf.ByteString getPageIdentifierBytes() { * * *
-             * Document content.
+             * Document content to be used for answer generation.
              * 
* * string content = 2; @@ -8088,7 +8274,7 @@ public java.lang.String getContent() { * * *
-             * Document content.
+             * Document content to be used for answer generation.
              * 
* * string content = 2; @@ -8660,7 +8846,7 @@ public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { * * *
-               * Document content.
+               * Document content to be used for answer generation.
                * 
* * string content = 2; @@ -8682,7 +8868,7 @@ public java.lang.String getContent() { * * *
-               * Document content.
+               * Document content to be used for answer generation.
                * 
* * string content = 2; @@ -8704,7 +8890,7 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-               * Document content.
+               * Document content to be used for answer generation.
                * 
* * string content = 2; @@ -8725,7 +8911,7 @@ public Builder setContent(java.lang.String value) { * * *
-               * Document content.
+               * Document content to be used for answer generation.
                * 
* * string content = 2; @@ -8742,7 +8928,7 @@ public Builder clearContent() { * * *
-               * Document content.
+               * Document content to be used for answer generation.
                * 
* * string content = 2; @@ -8894,6 +9080,8 @@ public interface ExtractiveSegmentOrBuilder *
            * Extractive segment.
            * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
+           * Answer generation will only use it if document_contexts is empty.
+           * This is supposed to be shorter snippets.
            * 
* * Protobuf type {@code @@ -9251,6 +9439,8 @@ protected Builder newBuilderForType( *
              * Extractive segment.
              * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
+             * Answer generation will only use it if document_contexts is empty.
+             * This is supposed to be shorter snippets.
              * 
* * Protobuf type {@code @@ -10865,7 +11055,9 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -10883,7 +11075,9 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -10903,7 +11097,9 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -10918,7 +11114,9 @@ public int getDocumentContextsCount() { * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -10935,7 +11133,9 @@ public int getDocumentContextsCount() { * * *
-           * List of document contexts.
+           * List of document contexts. The content will be used for Answer
+           * Generation. This is supposed to be the main content of the document
+           * that can be long and comprehensive.
            * 
* * @@ -11055,14 +11255,18 @@ public int getExtractiveSegmentsCount() { * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List< com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> @@ -11073,14 +11277,18 @@ public int getExtractiveSegmentsCount() { * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec @@ -11093,14 +11301,18 @@ public int getExtractiveSegmentsCount() { * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public int getExtractiveAnswersCount() { return extractiveAnswers_.size(); } @@ -11108,14 +11320,18 @@ public int getExtractiveAnswersCount() { * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer getExtractiveAnswers(int index) { @@ -11125,14 +11341,18 @@ public int getExtractiveAnswersCount() { * * *
+           * Deprecated: This field is deprecated and will have no effect on
+           * the Answer generation.
+           * Please use document_contexts and extractive_segments fields.
            * List of extractive answers.
            * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder getExtractiveAnswersOrBuilder(int index) { @@ -12179,7 +12399,9 @@ private void ensureDocumentContextsIsMutable() { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12200,7 +12422,9 @@ private void ensureDocumentContextsIsMutable() { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12218,7 +12442,9 @@ public int getDocumentContextsCount() { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12238,7 +12464,9 @@ public int getDocumentContextsCount() { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12266,7 +12494,9 @@ public Builder setDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12291,7 +12521,9 @@ public Builder setDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12318,7 +12550,9 @@ public Builder addDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12346,7 +12580,9 @@ public Builder addDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12370,7 +12606,9 @@ public Builder addDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12395,7 +12633,9 @@ public Builder addDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12422,7 +12662,9 @@ public Builder addAllDocumentContexts( * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12443,7 +12685,9 @@ public Builder clearDocumentContexts() { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12464,7 +12708,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12480,7 +12726,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12500,7 +12748,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12523,7 +12773,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12543,7 +12795,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -12564,7 +12818,9 @@ public Builder removeDocumentContexts(int index) { * * *
-             * List of document contexts.
+             * List of document contexts. The content will be used for Answer
+             * Generation. This is supposed to be the main content of the document
+             * that can be long and comprehensive.
              * 
* * @@ -13106,13 +13362,17 @@ private void ensureExtractiveAnswersIsMutable() { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> @@ -13127,13 +13387,17 @@ private void ensureExtractiveAnswersIsMutable() { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public int getExtractiveAnswersCount() { if (extractiveAnswersBuilder_ == null) { return extractiveAnswers_.size(); @@ -13145,13 +13409,17 @@ public int getExtractiveAnswersCount() { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer getExtractiveAnswers(int index) { @@ -13165,13 +13433,17 @@ public int getExtractiveAnswersCount() { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setExtractiveAnswers( int index, com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList @@ -13193,13 +13465,17 @@ public Builder setExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setExtractiveAnswers( int index, com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList @@ -13218,13 +13494,17 @@ public Builder setExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addExtractiveAnswers( com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer @@ -13245,13 +13525,17 @@ public Builder addExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addExtractiveAnswers( int index, com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList @@ -13273,13 +13557,17 @@ public Builder addExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addExtractiveAnswers( com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder @@ -13297,13 +13585,17 @@ public Builder addExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addExtractiveAnswers( int index, com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList @@ -13322,13 +13614,17 @@ public Builder addExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addAllExtractiveAnswers( java.lang.Iterable< ? extends @@ -13349,13 +13645,17 @@ public Builder addAllExtractiveAnswers( * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearExtractiveAnswers() { if (extractiveAnswersBuilder_ == null) { extractiveAnswers_ = java.util.Collections.emptyList(); @@ -13370,13 +13670,17 @@ public Builder clearExtractiveAnswers() { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public Builder removeExtractiveAnswers(int index) { if (extractiveAnswersBuilder_ == null) { ensureExtractiveAnswersIsMutable(); @@ -13391,13 +13695,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder getExtractiveAnswersBuilder(int index) { @@ -13407,13 +13715,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo .ExtractiveAnswerOrBuilder @@ -13428,13 +13740,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec @@ -13451,13 +13767,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder addExtractiveAnswersBuilder() { @@ -13471,13 +13791,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder addExtractiveAnswersBuilder(int index) { @@ -13492,13 +13816,17 @@ public Builder removeExtractiveAnswers(int index) { * * *
+             * Deprecated: This field is deprecated and will have no effect on
+             * the Answer generation.
+             * Please use document_contexts and extractive_segments fields.
              * List of extractive answers.
              * 
* * - * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6; + * repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer @@ -13664,6 +13992,51 @@ public interface ChunkInfoOrBuilder * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return Whether the documentMetadata field is set. + */ + boolean hasDocumentMetadata(); + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata(); + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); } /** * @@ -13713,113 +14086,1104 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .SearchResultList.SearchResult.ChunkInfo.Builder.class); } - public static final int CHUNK_FIELD_NUMBER = 1; + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object chunk_ = ""; - /** - * - * - *
-           * Chunk resource name.
-           * 
- * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The chunk. - */ - @java.lang.Override - public java.lang.String getChunk() { - java.lang.Object ref = chunk_; - 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(); - chunk_ = s; - return s; - } + /** + * + * + *
+             * Uri of the document.
+             * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+             * Uri of the document.
+             * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+             * Title of the document.
+             * 
+ * + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+             * Title of the document.
+             * 
+ * + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); } /** * * *
-           * Chunk resource name.
+           * Document metadata contains the information of the document of the
+           * current chunk.
            * 
* - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for chunk. + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} */ - @java.lang.Override - public com.google.protobuf.ByteString getChunkBytes() { - java.lang.Object ref = chunk_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - chunk_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int CONTENT_FIELD_NUMBER = 2; + private DocumentMetadata() { + uri_ = ""; + title_ = ""; + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * - * - *
-           * Chunk textual content.
-           * 
- * - * string content = 2; - * - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - 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(); - content_ = s; - return s; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentMetadata(); } - } - /** - * - * - *
-           * Chunk textual content.
-           * 
- * - * string content = 2; - * - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; } - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+             * Uri of the document.
+             * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+             * Uri of the document.
+             * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+             * Title of the document.
+             * 
+ * + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + * + * + *
+             * Title of the document.
+             * 
+ * + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + 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.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + other = + (com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + 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.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + 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.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+             * Document metadata contains the information of the document of the
+             * current chunk.
+             * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + build() { + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + result = + new com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+               * Uri of the document.
+               * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+               * Uri of the document.
+               * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+               * Uri of the document.
+               * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+               * Uri of the document.
+               * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+               * Uri of the document.
+               * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+               * Title of the document.
+               * 
+ * + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+               * Title of the document.
+               * 
+ * + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+               * Title of the document.
+               * 
+ * + * string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+               * Title of the document.
+               * 
+ * + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+               * Title of the document.
+               * 
+ * + * string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentMetadata 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.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CHUNK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object chunk_ = ""; + /** + * + * + *
+           * Chunk resource name.
+           * 
+ * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The chunk. + */ + @java.lang.Override + public java.lang.String getChunk() { + java.lang.Object ref = chunk_; + 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(); + chunk_ = s; + return s; + } + } + /** + * + * + *
+           * Chunk resource name.
+           * 
+ * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for chunk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChunkBytes() { + java.lang.Object ref = chunk_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + chunk_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + * + * + *
+           * Chunk textual content.
+           * 
+ * + * string content = 2; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + * + * + *
+           * Chunk textual content.
+           * 
+ * + * string content = 2; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + documentMetadata_; + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + /** + * + * + *
+           * Metadata of the document from the current chunk.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; @@ -13836,6 +15200,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDocumentMetadata()); + } getUnknownFields().writeTo(output); } @@ -13851,6 +15218,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getDocumentMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13876,6 +15248,10 @@ public boolean equals(final java.lang.Object obj) { if (!getChunk().equals(other.getChunk())) return false; if (!getContent().equals(other.getContent())) return false; + if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; + if (hasDocumentMetadata()) { + if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13891,6 +15267,10 @@ public int hashCode() { hash = (53 * hash) + getChunk().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -14052,10 +15432,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocumentMetadataFieldBuilder(); + } } @java.lang.Override @@ -14064,6 +15453,11 @@ public Builder clear() { bitField0_ = 0; chunk_ = ""; content_ = ""; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } return this; } @@ -14121,6 +15515,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.content_ = content_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null + ? documentMetadata_ + : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -14191,6 +15594,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -14229,6 +15635,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 34: + { + input.readMessage( + getDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -14460,6 +15873,242 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + documentMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> + documentMetadataBuilder_; + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata.Builder + builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDocumentMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; + } + } + /** + * + * + *
+             * Metadata of the document from the current chunk.
+             * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> + getDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18388,7 +20037,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * Non-answer-seeking query classification type.
+         * Non-answer-seeking query classification type, for chit chat.
          * 
* * NON_ANSWER_SEEKING_QUERY = 2; @@ -18404,6 +20053,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * JAIL_BREAKING_QUERY = 3; */ JAIL_BREAKING_QUERY(3), + /** + * + * + *
+         * Non-answer-seeking query classification type, for no clear intent.
+         * 
+ * + * NON_ANSWER_SEEKING_QUERY_V2 = 4; + */ + NON_ANSWER_SEEKING_QUERY_V2(4), UNRECOGNIZED(-1), ; @@ -18431,7 +20090,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * Non-answer-seeking query classification type.
+         * Non-answer-seeking query classification type, for chit chat.
          * 
* * NON_ANSWER_SEEKING_QUERY = 2; @@ -18447,6 +20106,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * JAIL_BREAKING_QUERY = 3; */ public static final int JAIL_BREAKING_QUERY_VALUE = 3; + /** + * + * + *
+         * Non-answer-seeking query classification type, for no clear intent.
+         * 
+ * + * NON_ANSWER_SEEKING_QUERY_V2 = 4; + */ + public static final int NON_ANSWER_SEEKING_QUERY_V2_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -18480,6 +20149,8 @@ public static Type forNumber(int value) { return NON_ANSWER_SEEKING_QUERY; case 3: return JAIL_BREAKING_QUERY; + case 4: + return NON_ANSWER_SEEKING_QUERY_V2; default: return null; } @@ -21741,6 +23412,9 @@ public boolean hasQueryUnderstandingSpec() { * * *
+   * Deprecated: This field is deprecated. Streaming Answer API will be
+   * supported.
+   *
    * Asynchronous mode control.
    *
    * If enabled, the response will be returned with answer/session resource
@@ -21752,11 +23426,14 @@ public boolean hasQueryUnderstandingSpec() {
    * method.
    * 
* - * bool asynchronous_mode = 10; + * bool asynchronous_mode = 10 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is deprecated. + * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=821 * @return The asynchronousMode. */ @java.lang.Override + @java.lang.Deprecated public boolean getAsynchronousMode() { return asynchronousMode_; } @@ -24203,6 +25880,9 @@ public Builder clearQueryUnderstandingSpec() { * * *
+     * Deprecated: This field is deprecated. Streaming Answer API will be
+     * supported.
+     *
      * Asynchronous mode control.
      *
      * If enabled, the response will be returned with answer/session resource
@@ -24214,11 +25894,14 @@ public Builder clearQueryUnderstandingSpec() {
      * method.
      * 
* - * bool asynchronous_mode = 10; + * bool asynchronous_mode = 10 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=821 * @return The asynchronousMode. */ @java.lang.Override + @java.lang.Deprecated public boolean getAsynchronousMode() { return asynchronousMode_; } @@ -24226,6 +25909,9 @@ public boolean getAsynchronousMode() { * * *
+     * Deprecated: This field is deprecated. Streaming Answer API will be
+     * supported.
+     *
      * Asynchronous mode control.
      *
      * If enabled, the response will be returned with answer/session resource
@@ -24237,11 +25923,14 @@ public boolean getAsynchronousMode() {
      * method.
      * 
* - * bool asynchronous_mode = 10; + * bool asynchronous_mode = 10 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=821 * @param value The asynchronousMode to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setAsynchronousMode(boolean value) { asynchronousMode_ = value; @@ -24253,6 +25942,9 @@ public Builder setAsynchronousMode(boolean value) { * * *
+     * Deprecated: This field is deprecated. Streaming Answer API will be
+     * supported.
+     *
      * Asynchronous mode control.
      *
      * If enabled, the response will be returned with answer/session resource
@@ -24264,10 +25956,13 @@ public Builder setAsynchronousMode(boolean value) {
      * method.
      * 
* - * bool asynchronous_mode = 10; + * bool asynchronous_mode = 10 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=821 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearAsynchronousMode() { bitField0_ = (bitField0_ & ~0x00000100); asynchronousMode_ = false; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java index d1064cac8e78..446ffdaa5907 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java @@ -344,6 +344,9 @@ public interface AnswerQueryRequestOrBuilder * * *
+   * Deprecated: This field is deprecated. Streaming Answer API will be
+   * supported.
+   *
    * Asynchronous mode control.
    *
    * If enabled, the response will be returned with answer/session resource
@@ -355,10 +358,13 @@ public interface AnswerQueryRequestOrBuilder
    * method.
    * 
* - * bool asynchronous_mode = 10; + * bool asynchronous_mode = 10 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is deprecated. + * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=821 * @return The asynchronousMode. */ + @java.lang.Deprecated boolean getAsynchronousMode(); /** diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataRequest.java index 51f365fc9906..c7d504e7575a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataRequest.java @@ -865,6 +865,873 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface FhirMatcherOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the fhirResources. + */ + java.util.List getFhirResourcesList(); + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of fhirResources. + */ + int getFhirResourcesCount(); + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The fhirResources at the given index. + */ + java.lang.String getFhirResources(int index); + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the fhirResources at the given index. + */ + com.google.protobuf.ByteString getFhirResourcesBytes(int index); + } + /** + * + * + *
+   * Matcher for the [Document][google.cloud.discoveryengine.v1.Document]s by
+   * FHIR resource names.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher} + */ + public static final class FhirMatcher extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + FhirMatcherOrBuilder { + private static final long serialVersionUID = 0L; + // Use FhirMatcher.newBuilder() to construct. + private FhirMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FhirMatcher() { + fhirResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FhirMatcher(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto + .internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto + .internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .class, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder.class); + } + + public static final int FHIR_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fhirResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the fhirResources. + */ + public com.google.protobuf.ProtocolStringList getFhirResourcesList() { + return fhirResources_; + } + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of fhirResources. + */ + public int getFhirResourcesCount() { + return fhirResources_.size(); + } + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The fhirResources at the given index. + */ + public java.lang.String getFhirResources(int index) { + return fhirResources_.get(index); + } + /** + * + * + *
+     * Required. The FHIR resources to match by.
+     * Format:
+     * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+     * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the fhirResources at the given index. + */ + public com.google.protobuf.ByteString getFhirResourcesBytes(int index) { + return fhirResources_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fhirResources_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fhirResources_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < fhirResources_.size(); i++) { + dataSize += computeStringSizeNoTag(fhirResources_.getRaw(i)); + } + size += dataSize; + size += 1 * getFhirResourcesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher other = + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) obj; + + if (!getFhirResourcesList().equals(other.getFhirResourcesList())) 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 (getFhirResourcesCount() > 0) { + hash = (37 * hash) + FHIR_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getFhirResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + 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.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + 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.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Matcher for the [Document][google.cloud.discoveryengine.v1.Document]s by
+     * FHIR resource names.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcherOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto + .internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto + .internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .class, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fhirResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto + .internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + build() { + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + buildPartial() { + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher result = + new com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fhirResources_.makeImmutable(); + result.fhirResources_ = fhirResources_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher other) { + if (other + == com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance()) return this; + if (!other.fhirResources_.isEmpty()) { + if (fhirResources_.isEmpty()) { + fhirResources_ = other.fhirResources_; + bitField0_ |= 0x00000001; + } else { + ensureFhirResourcesIsMutable(); + fhirResources_.addAll(other.fhirResources_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFhirResourcesIsMutable(); + fhirResources_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList fhirResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFhirResourcesIsMutable() { + if (!fhirResources_.isModifiable()) { + fhirResources_ = new com.google.protobuf.LazyStringArrayList(fhirResources_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the fhirResources. + */ + public com.google.protobuf.ProtocolStringList getFhirResourcesList() { + fhirResources_.makeImmutable(); + return fhirResources_; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of fhirResources. + */ + public int getFhirResourcesCount() { + return fhirResources_.size(); + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The fhirResources at the given index. + */ + public java.lang.String getFhirResources(int index) { + return fhirResources_.get(index); + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the fhirResources at the given index. + */ + public com.google.protobuf.ByteString getFhirResourcesBytes(int index) { + return fhirResources_.getByteString(index); + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The fhirResources to set. + * @return This builder for chaining. + */ + public Builder setFhirResources(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFhirResourcesIsMutable(); + fhirResources_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The fhirResources to add. + * @return This builder for chaining. + */ + public Builder addFhirResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFhirResourcesIsMutable(); + fhirResources_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The fhirResources to add. + * @return This builder for chaining. + */ + public Builder addAllFhirResources(java.lang.Iterable values) { + ensureFhirResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fhirResources_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFhirResources() { + fhirResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The FHIR resources to match by.
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * + * repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the fhirResources to add. + * @return This builder for chaining. + */ + public Builder addFhirResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFhirResourcesIsMutable(); + fhirResources_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + private static final com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcher + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher(); + } + + public static com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FhirMatcher 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.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface MatcherOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher) @@ -881,37 +1748,80 @@ public interface MatcherOrBuilder * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; *
* - * @return Whether the urisMatcher field is set. + * @return Whether the urisMatcher field is set. + */ + boolean hasUrisMatcher(); + /** + * + * + *
+     * Matcher by exact URIs.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; + * + * + * @return The urisMatcher. + */ + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher + getUrisMatcher(); + /** + * + * + *
+     * Matcher by exact URIs.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; + * + */ + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcherOrBuilder + getUrisMatcherOrBuilder(); + + /** + * + * + *
+     * Matcher by FHIR resource names.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + * + * @return Whether the fhirMatcher field is set. */ - boolean hasUrisMatcher(); + boolean hasFhirMatcher(); /** * * *
-     * Matcher by exact URIs.
+     * Matcher by FHIR resource names.
      * 
* * - * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; * * - * @return The urisMatcher. + * @return The fhirMatcher. */ - com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher - getUrisMatcher(); + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getFhirMatcher(); /** * * *
-     * Matcher by exact URIs.
+     * Matcher by FHIR resource names.
      * 
* * - * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; * */ - com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcherOrBuilder - getUrisMatcherOrBuilder(); + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcherOrBuilder + getFhirMatcherOrBuilder(); com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher.MatcherCase getMatcherCase(); @@ -970,6 +1880,7 @@ public enum MatcherCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URIS_MATCHER(1), + FHIR_MATCHER(2), MATCHER_NOT_SET(0); private final int value; @@ -990,6 +1901,8 @@ public static MatcherCase forNumber(int value) { switch (value) { case 1: return URIS_MATCHER; + case 2: + return FHIR_MATCHER; case 0: return MATCHER_NOT_SET; default: @@ -1069,6 +1982,69 @@ public boolean hasUrisMatcher() { .getDefaultInstance(); } + public static final int FHIR_MATCHER_FIELD_NUMBER = 2; + /** + * + * + *
+     * Matcher by FHIR resource names.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + * + * @return Whether the fhirMatcher field is set. + */ + @java.lang.Override + public boolean hasFhirMatcher() { + return matcherCase_ == 2; + } + /** + * + * + *
+     * Matcher by FHIR resource names.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + * + * @return The fhirMatcher. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getFhirMatcher() { + if (matcherCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + matcher_; + } + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + /** + * + * + *
+     * Matcher by FHIR resource names.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcherOrBuilder + getFhirMatcherOrBuilder() { + if (matcherCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + matcher_; + } + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1089,6 +2065,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher) matcher_); } + if (matcherCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + matcher_); + } getUnknownFields().writeTo(output); } @@ -1105,6 +2087,13 @@ public int getSerializedSize() { (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher) matcher_); } + if (matcherCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + matcher_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1128,6 +2117,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getUrisMatcher().equals(other.getUrisMatcher())) return false; break; + case 2: + if (!getFhirMatcher().equals(other.getFhirMatcher())) return false; + break; case 0: default: } @@ -1147,6 +2139,10 @@ public int hashCode() { hash = (37 * hash) + URIS_MATCHER_FIELD_NUMBER; hash = (53 * hash) + getUrisMatcher().hashCode(); break; + case 2: + hash = (37 * hash) + FHIR_MATCHER_FIELD_NUMBER; + hash = (53 * hash) + getFhirMatcher().hashCode(); + break; case 0: default: } @@ -1305,6 +2301,9 @@ public Builder clear() { if (urisMatcherBuilder_ != null) { urisMatcherBuilder_.clear(); } + if (fhirMatcherBuilder_ != null) { + fhirMatcherBuilder_.clear(); + } matcherCase_ = 0; matcher_ = null; return this; @@ -1358,6 +2357,9 @@ private void buildPartialOneofs( if (matcherCase_ == 1 && urisMatcherBuilder_ != null) { result.matcher_ = urisMatcherBuilder_.build(); } + if (matcherCase_ == 2 && fhirMatcherBuilder_ != null) { + result.matcher_ = fhirMatcherBuilder_.build(); + } } @java.lang.Override @@ -1419,6 +2421,11 @@ public Builder mergeFrom( mergeUrisMatcher(other.getUrisMatcher()); break; } + case FHIR_MATCHER: + { + mergeFhirMatcher(other.getFhirMatcher()); + break; + } case MATCHER_NOT_SET: { break; @@ -1456,6 +2463,12 @@ public Builder mergeFrom( matcherCase_ = 1; break; } // case 10 + case 18: + { + input.readMessage(getFhirMatcherFieldBuilder().getBuilder(), extensionRegistry); + matcherCase_ = 2; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1745,6 +2758,262 @@ public Builder clearUrisMatcher() { return urisMatcherBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcherOrBuilder> + fhirMatcherBuilder_; + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + * + * @return Whether the fhirMatcher field is set. + */ + @java.lang.Override + public boolean hasFhirMatcher() { + return matcherCase_ == 2; + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + * + * @return The fhirMatcher. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + getFhirMatcher() { + if (fhirMatcherBuilder_ == null) { + if (matcherCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcher) + matcher_; + } + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } else { + if (matcherCase_ == 2) { + return fhirMatcherBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + public Builder setFhirMatcher( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher value) { + if (fhirMatcherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matcher_ = value; + onChanged(); + } else { + fhirMatcherBuilder_.setMessage(value); + } + matcherCase_ = 2; + return this; + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + public Builder setFhirMatcher( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher.Builder + builderForValue) { + if (fhirMatcherBuilder_ == null) { + matcher_ = builderForValue.build(); + onChanged(); + } else { + fhirMatcherBuilder_.setMessage(builderForValue.build()); + } + matcherCase_ = 2; + return this; + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + public Builder mergeFhirMatcher( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher value) { + if (fhirMatcherBuilder_ == null) { + if (matcherCase_ == 2 + && matcher_ + != com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcher.getDefaultInstance()) { + matcher_ = + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .newBuilder( + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcher) + matcher_) + .mergeFrom(value) + .buildPartial(); + } else { + matcher_ = value; + } + onChanged(); + } else { + if (matcherCase_ == 2) { + fhirMatcherBuilder_.mergeFrom(value); + } else { + fhirMatcherBuilder_.setMessage(value); + } + } + matcherCase_ = 2; + return this; + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + public Builder clearFhirMatcher() { + if (fhirMatcherBuilder_ == null) { + if (matcherCase_ == 2) { + matcherCase_ = 0; + matcher_ = null; + onChanged(); + } + } else { + if (matcherCase_ == 2) { + matcherCase_ = 0; + matcher_ = null; + } + fhirMatcherBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder + getFhirMatcherBuilder() { + return getFhirMatcherFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcherOrBuilder + getFhirMatcherOrBuilder() { + if ((matcherCase_ == 2) && (fhirMatcherBuilder_ != null)) { + return fhirMatcherBuilder_.getMessageOrBuilder(); + } else { + if (matcherCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcher) + matcher_; + } + return com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Matcher by FHIR resource names.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcherOrBuilder> + getFhirMatcherFieldBuilder() { + if (fhirMatcherBuilder_ == null) { + if (!(matcherCase_ == 2)) { + matcher_ = + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .getDefaultInstance(); + } + fhirMatcherBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher + .Builder, + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest + .FhirMatcherOrBuilder>( + (com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher) + matcher_, + getParentForChildren(), + isClean()); + matcher_ = null; + } + matcherCase_ = 2; + onChanged(); + return fhirMatcherBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataResponse.java index 348bae9d3e8c..d6425854d486 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchGetDocumentsMetadataResponse.java @@ -499,6 +499,46 @@ public interface MatcherValueOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the fhirResource field is set. + */ + boolean hasFhirResource(); + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The fhirResource. + */ + java.lang.String getFhirResource(); + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for fhirResource. + */ + com.google.protobuf.ByteString getFhirResourceBytes(); + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata .MatcherValue.MatcherValueCase getMatcherValueCase(); @@ -559,6 +599,7 @@ public enum MatcherValueCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), + FHIR_RESOURCE(2), MATCHERVALUE_NOT_SET(0); private final int value; @@ -579,6 +620,8 @@ public static MatcherValueCase forNumber(int value) { switch (value) { case 1: return URI; + case 2: + return FHIR_RESOURCE; case 0: return MATCHERVALUE_NOT_SET; default: @@ -668,6 +711,79 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int FHIR_RESOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the fhirResource field is set. + */ + public boolean hasFhirResource() { + return matcherValueCase_ == 2; + } + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The fhirResource. + */ + public java.lang.String getFhirResource() { + java.lang.Object ref = ""; + if (matcherValueCase_ == 2) { + ref = matcherValue_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matcherValueCase_ == 2) { + matcherValue_ = s; + } + return s; + } + } + /** + * + * + *
+       * Format:
+       * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+       * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for fhirResource. + */ + public com.google.protobuf.ByteString getFhirResourceBytes() { + java.lang.Object ref = ""; + if (matcherValueCase_ == 2) { + ref = matcherValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matcherValueCase_ == 2) { + matcherValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -685,6 +801,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (matcherValueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, matcherValue_); } + if (matcherValueCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, matcherValue_); + } getUnknownFields().writeTo(output); } @@ -697,6 +816,9 @@ public int getSerializedSize() { if (matcherValueCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, matcherValue_); } + if (matcherValueCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, matcherValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -725,6 +847,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getUri().equals(other.getUri())) return false; break; + case 2: + if (!getFhirResource().equals(other.getFhirResource())) return false; + break; case 0: default: } @@ -744,6 +869,10 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); break; + case 2: + hash = (37 * hash) + FHIR_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getFhirResource().hashCode(); + break; case 0: default: } @@ -1047,6 +1176,13 @@ public Builder mergeFrom( onChanged(); break; } + case FHIR_RESOURCE: + { + matcherValueCase_ = 2; + matcherValue_ = other.matcherValue_; + onChanged(); + break; + } case MATCHERVALUE_NOT_SET: { break; @@ -1085,6 +1221,13 @@ public Builder mergeFrom( matcherValue_ = s; break; } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + matcherValueCase_ = 2; + matcherValue_ = s; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1258,6 +1401,146 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the fhirResource field is set. + */ + @java.lang.Override + public boolean hasFhirResource() { + return matcherValueCase_ == 2; + } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The fhirResource. + */ + @java.lang.Override + public java.lang.String getFhirResource() { + java.lang.Object ref = ""; + if (matcherValueCase_ == 2) { + ref = matcherValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matcherValueCase_ == 2) { + matcherValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for fhirResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFhirResourceBytes() { + java.lang.Object ref = ""; + if (matcherValueCase_ == 2) { + ref = matcherValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matcherValueCase_ == 2) { + matcherValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The fhirResource to set. + * @return This builder for chaining. + */ + public Builder setFhirResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matcherValueCase_ = 2; + matcherValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearFhirResource() { + if (matcherValueCase_ == 2) { + matcherValueCase_ = 0; + matcherValue_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Format:
+         * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
+         * 
+ * + * string fhir_resource = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for fhirResource to set. + * @return This builder for chaining. + */ + public Builder setFhirResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matcherValueCase_ = 2; + matcherValue_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java index 6f9198e6a6c4..dfabd5450de3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ARCH_TIER_UNSPECIFIED\020\000\022\030\n\024SEARCH_TIER_S" + "TANDARD\020\001\022\032\n\026SEARCH_TIER_ENTERPRISE\020\002*C\n" + "\013SearchAddOn\022\035\n\031SEARCH_ADD_ON_UNSPECIFIE" - + "D\020\000\022\025\n\021SEARCH_ADD_ON_LLM\020\001B\243\013\n#com.googl" + + "D\020\000\022\025\n\021SEARCH_ADD_ON_LLM\020\001B\313\014\n#com.googl" + "e.cloud.discoveryengine.v1B\013CommonProtoP" + "\001ZMcloud.google.com/go/discoveryengine/a" + "piv1/discoveryenginepb;discoveryenginepb" @@ -106,7 +106,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "kingConfigs/{ranking_config}\352Ay\n#healthc" + "are.googleapis.com/FhirStore\022Rprojects/{" + "project}/locations/{location}/datasets/{" - + "dataset}/fhirStores/{fhir_store}b\006proto3" + + "dataset}/fhirStores/{fhir_store}\352A\244\001\n&he" + + "althcare.googleapis.com/FhirResource\022zpr" + + "ojects/{project}/locations/{location}/da" + + "tasets/{dataset}/fhirStores/{fhir_store}" + + "/fhir/{resource_type}/{fhir_resource_id}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Condition.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Condition.java index efd313908e2e..17bfc6e51d9c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Condition.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Condition.java @@ -41,6 +41,7 @@ private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Condition() { queryTerms_ = java.util.Collections.emptyList(); activeTimeRange_ = java.util.Collections.emptyList(); + queryRegex_ = ""; } @java.lang.Override @@ -1981,6 +1982,9 @@ public com.google.cloud.discoveryengine.v1.Condition.TimeRange getDefaultInstanc *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -1998,6 +2002,9 @@ public com.google.cloud.discoveryengine.v1.Condition.TimeRange getDefaultInstanc *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -2015,6 +2022,9 @@ public com.google.cloud.discoveryengine.v1.Condition.TimeRange getDefaultInstanc *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -2031,6 +2041,9 @@ public int getQueryTermsCount() { *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -2047,6 +2060,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTerm getQueryTerms(int *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -2147,6 +2163,63 @@ public com.google.cloud.discoveryengine.v1.Condition.TimeRange getActiveTimeRang return activeTimeRange_.get(index); } + public static final int QUERY_REGEX_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryRegex_ = ""; + /** + * + * + *
+   * Optional. Query regex to match the whole search query.
+   * Cannot be set when
+   * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+   * is set. This is currently supporting promotion use case.
+   * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryRegex. + */ + @java.lang.Override + public java.lang.String getQueryRegex() { + java.lang.Object ref = queryRegex_; + 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(); + queryRegex_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Query regex to match the whole search query.
+   * Cannot be set when
+   * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+   * is set. This is currently supporting promotion use case.
+   * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryRegex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryRegexBytes() { + java.lang.Object ref = queryRegex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2167,6 +2240,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < activeTimeRange_.size(); i++) { output.writeMessage(3, activeTimeRange_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryRegex_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryRegex_); + } getUnknownFields().writeTo(output); } @@ -2182,6 +2258,9 @@ public int getSerializedSize() { for (int i = 0; i < activeTimeRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, activeTimeRange_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryRegex_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, queryRegex_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2200,6 +2279,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueryTermsList().equals(other.getQueryTermsList())) return false; if (!getActiveTimeRangeList().equals(other.getActiveTimeRangeList())) return false; + if (!getQueryRegex().equals(other.getQueryRegex())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2219,6 +2299,8 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_TIME_RANGE_FIELD_NUMBER; hash = (53 * hash) + getActiveTimeRangeList().hashCode(); } + hash = (37 * hash) + QUERY_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getQueryRegex().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2372,6 +2454,7 @@ public Builder clear() { activeTimeRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + queryRegex_ = ""; return this; } @@ -2430,6 +2513,9 @@ private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.Cond private void buildPartial0(com.google.cloud.discoveryengine.v1.Condition result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryRegex_ = queryRegex_; + } } @java.lang.Override @@ -2531,6 +2617,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Condition other) { } } } + if (!other.getQueryRegex().isEmpty()) { + queryRegex_ = other.queryRegex_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2585,6 +2676,12 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + queryRegex_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2628,6 +2725,9 @@ private void ensureQueryTermsIsMutable() { *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2648,6 +2748,9 @@ private void ensureQueryTermsIsMutable() { *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2667,6 +2770,9 @@ public int getQueryTermsCount() { *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2686,6 +2792,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTerm getQueryTerms(int *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2712,6 +2821,9 @@ public Builder setQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2736,6 +2848,9 @@ public Builder setQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2761,6 +2876,9 @@ public Builder addQueryTerms(com.google.cloud.discoveryengine.v1.Condition.Query *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2787,6 +2905,9 @@ public Builder addQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2810,6 +2931,9 @@ public Builder addQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2834,6 +2958,9 @@ public Builder addQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2858,6 +2985,9 @@ public Builder addAllQueryTerms( *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2880,6 +3010,9 @@ public Builder clearQueryTerms() { *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2902,6 +3035,9 @@ public Builder removeQueryTerms(int index) { *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2918,6 +3054,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTerm.Builder getQueryT *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2938,6 +3077,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTermOrBuilder getQuery *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2959,6 +3101,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTermOrBuilder getQuery *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2975,6 +3120,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTerm.Builder addQueryT *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -2993,6 +3141,9 @@ public com.google.cloud.discoveryengine.v1.Condition.QueryTerm.Builder addQueryT *
      * Search only
      * A list of terms to match the query on.
+     * Cannot be set when
+     * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+     * is set.
      *
      * Maximum of 10 query terms.
      * 
@@ -3443,6 +3594,127 @@ public Builder removeActiveTimeRange(int index) { return activeTimeRangeBuilder_; } + private java.lang.Object queryRegex_ = ""; + /** + * + * + *
+     * Optional. Query regex to match the whole search query.
+     * Cannot be set when
+     * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+     * is set. This is currently supporting promotion use case.
+     * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryRegex. + */ + public java.lang.String getQueryRegex() { + java.lang.Object ref = queryRegex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryRegex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Query regex to match the whole search query.
+     * Cannot be set when
+     * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+     * is set. This is currently supporting promotion use case.
+     * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryRegex. + */ + public com.google.protobuf.ByteString getQueryRegexBytes() { + java.lang.Object ref = queryRegex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Query regex to match the whole search query.
+     * Cannot be set when
+     * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+     * is set. This is currently supporting promotion use case.
+     * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The queryRegex to set. + * @return This builder for chaining. + */ + public Builder setQueryRegex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryRegex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Query regex to match the whole search query.
+     * Cannot be set when
+     * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+     * is set. This is currently supporting promotion use case.
+     * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQueryRegex() { + queryRegex_ = getDefaultInstance().getQueryRegex(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Query regex to match the whole search query.
+     * Cannot be set when
+     * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+     * is set. This is currently supporting promotion use case.
+     * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for queryRegex to set. + * @return This builder for chaining. + */ + public Builder setQueryRegexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryRegex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConditionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConditionOrBuilder.java index 8c7fb59651ff..9a19ffa3ecd4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConditionOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConditionOrBuilder.java @@ -30,6 +30,9 @@ public interface ConditionOrBuilder *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -43,6 +46,9 @@ public interface ConditionOrBuilder *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -56,6 +62,9 @@ public interface ConditionOrBuilder *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -69,6 +78,9 @@ public interface ConditionOrBuilder *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -83,6 +95,9 @@ public interface ConditionOrBuilder *
    * Search only
    * A list of terms to match the query on.
+   * Cannot be set when
+   * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex]
+   * is set.
    *
    * Maximum of 10 query terms.
    * 
@@ -159,4 +174,35 @@ com.google.cloud.discoveryengine.v1.Condition.QueryTermOrBuilder getQueryTermsOr */ com.google.cloud.discoveryengine.v1.Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder( int index); + + /** + * + * + *
+   * Optional. Query regex to match the whole search query.
+   * Cannot be set when
+   * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+   * is set. This is currently supporting promotion use case.
+   * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryRegex. + */ + java.lang.String getQueryRegex(); + /** + * + * + *
+   * Optional. Query regex to match the whole search query.
+   * Cannot be set when
+   * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms]
+   * is set. This is currently supporting promotion use case.
+   * 
+ * + * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryRegex. + */ + com.google.protobuf.ByteString getQueryRegexBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlProto.java index 99a2b20696d3..8de1074ff7eb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlProto.java @@ -74,54 +74,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032,google/cloud/disco" + "veryengine/v1/common.proto\032\037google/proto" - + "buf/timestamp.proto\"\302\002\n\tCondition\022I\n\013que" + + "buf/timestamp.proto\"\334\002\n\tCondition\022I\n\013que" + "ry_terms\030\002 \003(\01324.google.cloud.discoverye" + "ngine.v1.Condition.QueryTerm\022O\n\021active_t" + "ime_range\030\003 \003(\01324.google.cloud.discovery" - + "engine.v1.Condition.TimeRange\032.\n\tQueryTe" - + "rm\022\r\n\005value\030\001 \001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n" - + "\tTimeRange\022.\n\nstart_time\030\001 \001(\0132\032.google." - + "protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\"\224\n\n\007Control\022L\n\014" - + "boost_action\030\006 \001(\01324.google.cloud.discov" - + "eryengine.v1.Control.BoostActionH\000\022N\n\rfi" - + "lter_action\030\007 \001(\01325.google.cloud.discove" - + "ryengine.v1.Control.FilterActionH\000\022R\n\017re" - + "direct_action\030\t \001(\01327.google.cloud.disco" - + "veryengine.v1.Control.RedirectActionH\000\022R" - + "\n\017synonyms_action\030\n \001(\01327.google.cloud.d" - + "iscoveryengine.v1.Control.SynonymsAction" - + "H\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name\030\002 " - + "\001(\tB\003\340A\002\022*\n\035associated_serving_config_id" - + "s\030\003 \003(\tB\003\340A\003\022L\n\rsolution_type\030\004 \001(\0162-.go" - + "ogle.cloud.discoveryengine.v1.SolutionTy" - + "peB\006\340A\002\340A\005\022A\n\tuse_cases\030\010 \003(\0162..google.c" - + "loud.discoveryengine.v1.SearchUseCase\022>\n" - + "\nconditions\030\005 \003(\0132*.google.cloud.discove" - + "ryengine.v1.Condition\032|\n\013BoostAction\022\022\n\005" - + "boost\030\001 \001(\002B\003\340A\002\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022D\n" - + "\ndata_store\030\003 \001(\tB0\340A\002\372A*\n(discoveryengi" - + "ne.googleapis.com/DataStore\032i\n\014FilterAct" - + "ion\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022D\n\ndata_store\030\002" - + " \001(\tB0\340A\002\372A*\n(discoveryengine.googleapis" - + ".com/DataStore\032+\n\016RedirectAction\022\031\n\014redi" - + "rect_uri\030\001 \001(\tB\003\340A\002\032\"\n\016SynonymsAction\022\020\n" - + "\010synonyms\030\001 \003(\t:\323\002\352A\317\002\n&discoveryengine." - + "googleapis.com/Control\022Rprojects/{projec" - + "t}/locations/{location}/dataStores/{data" - + "_store}/controls/{control}\022kprojects/{pr" - + "oject}/locations/{location}/collections/" - + "{collection}/dataStores/{data_store}/con" - + "trols/{control}\022dprojects/{project}/loca" - + "tions/{location}/collections/{collection" - + "}/engines/{engine}/controls/{control}B\010\n" - + "\006actionB\377\001\n#com.google.cloud.discoveryen" - + "gine.v1B\014ControlProtoP\001ZMcloud.google.co" - + "m/go/discoveryengine/apiv1/discoveryengi" - + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" - + "\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Goo" - + "gle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::C" - + "loud::DiscoveryEngine::V1b\006proto3" + + "engine.v1.Condition.TimeRange\022\030\n\013query_r" + + "egex\030\004 \001(\tB\003\340A\001\032.\n\tQueryTerm\022\r\n\005value\030\001 " + + "\001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTimeRange\022.\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\"\224\n\n\007Control\022L\n\014boost_action\030\006" + + " \001(\01324.google.cloud.discoveryengine.v1.C" + + "ontrol.BoostActionH\000\022N\n\rfilter_action\030\007 " + + "\001(\01325.google.cloud.discoveryengine.v1.Co" + + "ntrol.FilterActionH\000\022R\n\017redirect_action\030" + + "\t \001(\01327.google.cloud.discoveryengine.v1." + + "Control.RedirectActionH\000\022R\n\017synonyms_act" + + "ion\030\n \001(\01327.google.cloud.discoveryengine" + + ".v1.Control.SynonymsActionH\000\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022*\n\035as" + + "sociated_serving_config_ids\030\003 \003(\tB\003\340A\003\022L" + + "\n\rsolution_type\030\004 \001(\0162-.google.cloud.dis" + + "coveryengine.v1.SolutionTypeB\006\340A\002\340A\005\022A\n\t" + + "use_cases\030\010 \003(\0162..google.cloud.discovery" + + "engine.v1.SearchUseCase\022>\n\nconditions\030\005 " + + "\003(\0132*.google.cloud.discoveryengine.v1.Co" + + "ndition\032|\n\013BoostAction\022\022\n\005boost\030\001 \001(\002B\003\340" + + "A\002\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022D\n\ndata_store\030\003 " + + "\001(\tB0\340A\002\372A*\n(discoveryengine.googleapis." + + "com/DataStore\032i\n\014FilterAction\022\023\n\006filter\030" + + "\001 \001(\tB\003\340A\002\022D\n\ndata_store\030\002 \001(\tB0\340A\002\372A*\n(" + + "discoveryengine.googleapis.com/DataStore" + + "\032+\n\016RedirectAction\022\031\n\014redirect_uri\030\001 \001(\t" + + "B\003\340A\002\032\"\n\016SynonymsAction\022\020\n\010synonyms\030\001 \003(" + + "\t:\323\002\352A\317\002\n&discoveryengine.googleapis.com" + + "/Control\022Rprojects/{project}/locations/{" + + "location}/dataStores/{data_store}/contro" + + "ls/{control}\022kprojects/{project}/locatio" + + "ns/{location}/collections/{collection}/d" + + "ataStores/{data_store}/controls/{control" + + "}\022dprojects/{project}/locations/{locatio" + + "n}/collections/{collection}/engines/{eng" + + "ine}/controls/{control}B\010\n\006actionB\377\001\n#co" + + "m.google.cloud.discoveryengine.v1B\014Contr" + + "olProtoP\001ZMcloud.google.com/go/discovery" + + "engine/apiv1/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" + + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" + + "overyEngine\\V1\352\002\"Google::Cloud::Discover" + + "yEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,7 +139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Condition_descriptor, new java.lang.String[] { - "QueryTerms", "ActiveTimeRange", + "QueryTerms", "ActiveTimeRange", "QueryRegex", }); internal_static_google_cloud_discoveryengine_v1_Condition_QueryTerm_descriptor = internal_static_google_cloud_discoveryengine_v1_Condition_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java index 4c5103cd5250..206d50d8eb44 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java @@ -124,6 +124,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -235,8 +239,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"z\n\031Li" + "stConversationsResponse\022D\n\rconversations" + "\030\001 \003(\0132-.google.cloud.discoveryengine.v1" - + ".Conversation\022\027\n\017next_page_token\030\002 \001(\t\"\277" - + "\037\n\022AnswerQueryRequest\022L\n\016serving_config\030" + + ".Conversation\022\027\n\017next_page_token\030\002 \001(\t\"\330" + + "!\n\022AnswerQueryRequest\022L\n\016serving_config\030" + "\001 \001(\tB4\340A\002\372A.\n,discoveryengine.googleapi" + "s.com/ServingConfig\022:\n\005query\030\002 \001(\0132&.goo" + "gle.cloud.discoveryengine.v1.QueryB\003\340A\002\022" @@ -253,249 +257,256 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "veryengine.v1.AnswerQueryRequest.SearchS" + "pec\022l\n\030query_understanding_spec\030\t \001(\0132J." + "google.cloud.discoveryengine.v1.AnswerQu" - + "eryRequest.QueryUnderstandingSpec\022\031\n\021asy" - + "nchronous_mode\030\n \001(\010\022\026\n\016user_pseudo_id\030\014" - + " \001(\t\022X\n\013user_labels\030\r \003(\0132C.google.cloud" - + ".discoveryengine.v1.AnswerQueryRequest.U" - + "serLabelsEntry\032\034\n\nSafetySpec\022\016\n\006enable\030\001" - + " \001(\010\032&\n\024RelatedQuestionsSpec\022\016\n\006enable\030\001" - + " \001(\010\032\372\003\n\024AnswerGenerationSpec\022f\n\nmodel_s" - + "pec\030\001 \001(\0132R.google.cloud.discoveryengine" - + ".v1.AnswerQueryRequest.AnswerGenerationS" - + "pec.ModelSpec\022h\n\013prompt_spec\030\002 \001(\0132S.goo" - + "gle.cloud.discoveryengine.v1.AnswerQuery" - + "Request.AnswerGenerationSpec.PromptSpec\022" - + "\031\n\021include_citations\030\003 \001(\010\022\034\n\024answer_lan" - + "guage_code\030\004 \001(\t\022 \n\030ignore_adversarial_q" - + "uery\030\005 \001(\010\022\'\n\037ignore_non_answer_seeking_" - + "query\030\006 \001(\010\022(\n\033ignore_low_relevant_conte" - + "nt\030\007 \001(\010H\000\210\001\001\032\"\n\tModelSpec\022\025\n\rmodel_vers" - + "ion\030\001 \001(\t\032\036\n\nPromptSpec\022\020\n\010preamble\030\001 \001(" - + "\tB\036\n\034_ignore_low_relevant_content\032\216\017\n\nSe" - + "archSpec\022d\n\rsearch_params\030\001 \001(\0132K.google" - + ".cloud.discoveryengine.v1.AnswerQueryReq" - + "uest.SearchSpec.SearchParamsH\000\022m\n\022search" - + "_result_list\030\002 \001(\0132O.google.cloud.discov" + + "eryRequest.QueryUnderstandingSpec\022\035\n\021asy" + + "nchronous_mode\030\n \001(\010B\002\030\001\022\026\n\016user_pseudo_" + + "id\030\014 \001(\t\022X\n\013user_labels\030\r \003(\0132C.google.c" + + "loud.discoveryengine.v1.AnswerQueryReque" + + "st.UserLabelsEntry\032\034\n\nSafetySpec\022\016\n\006enab" + + "le\030\001 \001(\010\032&\n\024RelatedQuestionsSpec\022\016\n\006enab" + + "le\030\001 \001(\010\032\243\004\n\024AnswerGenerationSpec\022f\n\nmod" + + "el_spec\030\001 \001(\0132R.google.cloud.discoveryen" + + "gine.v1.AnswerQueryRequest.AnswerGenerat" + + "ionSpec.ModelSpec\022h\n\013prompt_spec\030\002 \001(\0132S" + + ".google.cloud.discoveryengine.v1.AnswerQ" + + "ueryRequest.AnswerGenerationSpec.PromptS" + + "pec\022\031\n\021include_citations\030\003 \001(\010\022\034\n\024answer" + + "_language_code\030\004 \001(\t\022 \n\030ignore_adversari" + + "al_query\030\005 \001(\010\022\'\n\037ignore_non_answer_seek" + + "ing_query\030\006 \001(\010\022(\n\033ignore_low_relevant_c" + + "ontent\030\007 \001(\010H\000\210\001\001\022\'\n\032ignore_jail_breakin" + + "g_query\030\010 \001(\010B\003\340A\001\032\"\n\tModelSpec\022\025\n\rmodel" + + "_version\030\001 \001(\t\032\036\n\nPromptSpec\022\020\n\010preamble" + + "\030\001 \001(\tB\036\n\034_ignore_low_relevant_content\032\330" + + "\020\n\nSearchSpec\022d\n\rsearch_params\030\001 \001(\0132K.g" + + "oogle.cloud.discoveryengine.v1.AnswerQue" + + "ryRequest.SearchSpec.SearchParamsH\000\022m\n\022s" + + "earch_result_list\030\002 \001(\0132O.google.cloud.d" + + "iscoveryengine.v1.AnswerQueryRequest.Sea" + + "rchSpec.SearchResultListH\000\032\341\002\n\014SearchPar" + + "ams\022\032\n\022max_return_results\030\001 \001(\005\022\016\n\006filte" + + "r\030\002 \001(\t\022L\n\nboost_spec\030\003 \001(\01328.google.clo" + + "ud.discoveryengine.v1.SearchRequest.Boos" + + "tSpec\022\020\n\010order_by\030\004 \001(\t\022m\n\022search_result" + + "_mode\030\005 \001(\0162Q.google.cloud.discoveryengi" + + "ne.v1.SearchRequest.ContentSearchSpec.Se" + + "archResultMode\022V\n\020data_store_specs\030\007 \003(\013" + + "2<.google.cloud.discoveryengine.v1.Searc" + + "hRequest.DataStoreSpec\032\207\014\n\020SearchResultL" + + "ist\022t\n\016search_results\030\001 \003(\0132\\.google.clo" + + "ud.discoveryengine.v1.AnswerQueryRequest" + + ".SearchSpec.SearchResultList.SearchResul" + + "t\032\374\n\n\014SearchResult\022\233\001\n\032unstructured_docu" + + "ment_info\030\001 \001(\0132u.google.cloud.discovery" + + "engine.v1.AnswerQueryRequest.SearchSpec." + + "SearchResultList.SearchResult.Unstructur" + + "edDocumentInfoH\000\022|\n\nchunk_info\030\002 \001(\0132f.g" + + "oogle.cloud.discoveryengine.v1.AnswerQue" + + "ryRequest.SearchSpec.SearchResultList.Se" + + "archResult.ChunkInfoH\000\032\246\006\n\030UnstructuredD" + + "ocumentInfo\022>\n\010document\030\001 \001(\tB,\372A)\n\'disc" + + "overyengine.googleapis.com/Document\022\013\n\003u" + + "ri\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\241\001\n\021document_con" + + "texts\030\004 \003(\0132\205\001.google.cloud.discoveryeng" + + "ine.v1.AnswerQueryRequest.SearchSpec.Sea" + + "rchResultList.SearchResult.UnstructuredD" + + "ocumentInfo.DocumentContext\022\245\001\n\023extracti" + + "ve_segments\030\005 \003(\0132\207\001.google.cloud.discov" + "eryengine.v1.AnswerQueryRequest.SearchSp" - + "ec.SearchResultListH\000\032\341\002\n\014SearchParams\022\032" - + "\n\022max_return_results\030\001 \001(\005\022\016\n\006filter\030\002 \001" - + "(\t\022L\n\nboost_spec\030\003 \001(\01328.google.cloud.di" - + "scoveryengine.v1.SearchRequest.BoostSpec" - + "\022\020\n\010order_by\030\004 \001(\t\022m\n\022search_result_mode" - + "\030\005 \001(\0162Q.google.cloud.discoveryengine.v1" - + ".SearchRequest.ContentSearchSpec.SearchR" - + "esultMode\022V\n\020data_store_specs\030\007 \003(\0132<.go" - + "ogle.cloud.discoveryengine.v1.SearchRequ" - + "est.DataStoreSpec\032\275\n\n\020SearchResultList\022t" - + "\n\016search_results\030\001 \003(\0132\\.google.cloud.di" - + "scoveryengine.v1.AnswerQueryRequest.Sear" - + "chSpec.SearchResultList.SearchResult\032\262\t\n" - + "\014SearchResult\022\233\001\n\032unstructured_document_" - + "info\030\001 \001(\0132u.google.cloud.discoveryengin" - + "e.v1.AnswerQueryRequest.SearchSpec.Searc" - + "hResultList.SearchResult.UnstructuredDoc" - + "umentInfoH\000\022|\n\nchunk_info\030\002 \001(\0132f.google" - + ".cloud.discoveryengine.v1.AnswerQueryReq" - + "uest.SearchSpec.SearchResultList.SearchR" - + "esult.ChunkInfoH\000\032\242\006\n\030UnstructuredDocume" - + "ntInfo\022>\n\010document\030\001 \001(\tB,\372A)\n\'discovery" - + "engine.googleapis.com/Document\022\013\n\003uri\030\002 " - + "\001(\t\022\r\n\005title\030\003 \001(\t\022\241\001\n\021document_contexts" - + "\030\004 \003(\0132\205\001.google.cloud.discoveryengine.v" - + "1.AnswerQueryRequest.SearchSpec.SearchRe" - + "sultList.SearchResult.UnstructuredDocume" - + "ntInfo.DocumentContext\022\245\001\n\023extractive_se" - + "gments\030\005 \003(\0132\207\001.google.cloud.discoveryen" - + "gine.v1.AnswerQueryRequest.SearchSpec.Se" - + "archResultList.SearchResult.Unstructured" - + "DocumentInfo.ExtractiveSegment\022\243\001\n\022extra" - + "ctive_answers\030\006 \003(\0132\206\001.google.cloud.disc" - + "overyengine.v1.AnswerQueryRequest.Search" - + "Spec.SearchResultList.SearchResult.Unstr" - + "ucturedDocumentInfo.ExtractiveAnswer\032;\n\017" - + "DocumentContext\022\027\n\017page_identifier\030\001 \001(\t" - + "\022\017\n\007content\030\002 \001(\t\032=\n\021ExtractiveSegment\022\027" - + "\n\017page_identifier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t" - + "\032<\n\020ExtractiveAnswer\022\027\n\017page_identifier\030" - + "\001 \001(\t\022\017\n\007content\030\002 \001(\t\032V\n\tChunkInfo\0228\n\005c" - + "hunk\030\001 \001(\tB)\372A&\n$discoveryengine.googlea" - + "pis.com/Chunk\022\017\n\007content\030\002 \001(\tB\t\n\007conten" - + "tB\007\n\005input\032\340\004\n\026QueryUnderstandingSpec\022\205\001" - + "\n\031query_classification_spec\030\001 \001(\0132b.goog" - + "le.cloud.discoveryengine.v1.AnswerQueryR" - + "equest.QueryUnderstandingSpec.QueryClass" - + "ificationSpec\022{\n\024query_rephraser_spec\030\002 " - + "\001(\0132].google.cloud.discoveryengine.v1.An" - + "swerQueryRequest.QueryUnderstandingSpec." - + "QueryRephraserSpec\032\375\001\n\027QueryClassificati" - + "onSpec\022v\n\005types\030\001 \003(\0162g.google.cloud.dis" - + "coveryengine.v1.AnswerQueryRequest.Query" - + "UnderstandingSpec.QueryClassificationSpe" - + "c.Type\"j\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021" - + "ADVERSARIAL_QUERY\020\001\022\034\n\030NON_ANSWER_SEEKIN" - + "G_QUERY\020\002\022\027\n\023JAIL_BREAKING_QUERY\020\003\032A\n\022Qu" - + "eryRephraserSpec\022\017\n\007disable\030\001 \001(\010\022\032\n\022max" - + "_rephrase_steps\030\002 \001(\005\0321\n\017UserLabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\001\n\023Ans" - + "werQueryResponse\0227\n\006answer\030\001 \001(\0132\'.googl" - + "e.cloud.discoveryengine.v1.Answer\0229\n\007ses" - + "sion\030\002 \001(\0132(.google.cloud.discoveryengin" - + "e.v1.Session\022\032\n\022answer_query_token\030\003 \001(\t" - + "\"O\n\020GetAnswerRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372" - + "A\'\n%discoveryengine.googleapis.com/Answe" - + "r\"\230\001\n\024CreateSessionRequest\022@\n\006parent\030\001 \001" - + "(\tB0\340A\002\372A*\n(discoveryengine.googleapis.c" - + "om/DataStore\022>\n\007session\030\002 \001(\0132(.google.c" - + "loud.discoveryengine.v1.SessionB\003\340A\002\"\207\001\n" - + "\024UpdateSessionRequest\022>\n\007session\030\001 \001(\0132(" - + ".google.cloud.discoveryengine.v1.Session" - + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"T\n\024DeleteSessionRequest\022<" - + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengine.go" - + "ogleapis.com/Session\"Q\n\021GetSessionReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengine" - + ".googleapis.com/Session\"\240\001\n\023ListSessions" - + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discove" - + "ryengine.googleapis.com/DataStore\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" - + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"k\n\024ListSessio" - + "nsResponse\022:\n\010sessions\030\001 \003(\0132(.google.cl" - + "oud.discoveryengine.v1.Session\022\027\n\017next_p" - + "age_token\030\002 \001(\t2\333\'\n\033ConversationalSearch" - + "Service\022\253\003\n\024ConverseConversation\022<.googl" - + "e.cloud.discoveryengine.v1.ConverseConve" - + "rsationRequest\032=.google.cloud.discoverye" - + "ngine.v1.ConverseConversationResponse\"\225\002" - + "\332A\nname,query\202\323\344\223\002\201\002\"G/v1/{name=projects" - + "/*/locations/*/dataStores/*/conversation" - + "s/*}:converse:\001*ZZ\"U/v1/{name=projects/*" - + "/locations/*/collections/*/dataStores/*/" - + "conversations/*}:converse:\001*ZW\"R/v1/{nam" - + "e=projects/*/locations/*/collections/*/e" - + "ngines/*/conversations/*}:converse:\001*\022\246\003" - + "\n\022CreateConversation\022:.google.cloud.disc" - + "overyengine.v1.CreateConversationRequest" - + "\032-.google.cloud.discoveryengine.v1.Conve" - + "rsation\"\244\002\332A\023parent,conversation\202\323\344\223\002\207\002\"" - + ">/v1/{parent=projects/*/locations/*/data" - + "Stores/*}/conversations:\014conversationZ\\\"" - + "L/v1/{parent=projects/*/locations/*/coll" - + "ections/*/dataStores/*}/conversations:\014c" - + "onversationZY\"I/v1/{parent=projects/*/lo" - + "cations/*/collections/*/engines/*}/conve" - + "rsations:\014conversation\022\326\002\n\022DeleteConvers" - + "ation\022:.google.cloud.discoveryengine.v1." - + "DeleteConversationRequest\032\026.google.proto" - + "buf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*>/v1/{name=pr" - + "ojects/*/locations/*/dataStores/*/conver" - + "sations/*}ZN*L/v1/{name=projects/*/locat" - + "ions/*/collections/*/dataStores/*/conver" - + "sations/*}ZK*I/v1/{name=projects/*/locat" - + "ions/*/collections/*/engines/*/conversat" - + "ions/*}\022\322\003\n\022UpdateConversation\022:.google." - + "cloud.discoveryengine.v1.UpdateConversat" - + "ionRequest\032-.google.cloud.discoveryengin" - + "e.v1.Conversation\"\320\002\332A\030conversation,upda" - + "te_mask\202\323\344\223\002\256\0022K/v1/{conversation.name=p" + + "ec.SearchResultList.SearchResult.Unstruc" + + "turedDocumentInfo.ExtractiveSegment\022\247\001\n\022" + + "extractive_answers\030\006 \003(\0132\206\001.google.cloud" + + ".discoveryengine.v1.AnswerQueryRequest.S" + + "earchSpec.SearchResultList.SearchResult." + + "UnstructuredDocumentInfo.ExtractiveAnswe" + + "rB\002\030\001\032;\n\017DocumentContext\022\027\n\017page_identif" + + "ier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032=\n\021Extractive" + + "Segment\022\027\n\017page_identifier\030\001 \001(\t\022\017\n\007cont" + + "ent\030\002 \001(\t\032<\n\020ExtractiveAnswer\022\027\n\017page_id" + + "entifier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032\233\002\n\tChun" + + "kInfo\0228\n\005chunk\030\001 \001(\tB)\372A&\n$discoveryengi" + + "ne.googleapis.com/Chunk\022\017\n\007content\030\002 \001(\t" + + "\022\222\001\n\021document_metadata\030\004 \001(\0132w.google.cl" + + "oud.discoveryengine.v1.AnswerQueryReques" + + "t.SearchSpec.SearchResultList.SearchResu" + + "lt.ChunkInfo.DocumentMetadata\032.\n\020Documen" + + "tMetadata\022\013\n\003uri\030\001 \001(\t\022\r\n\005title\030\002 \001(\tB\t\n" + + "\007contentB\007\n\005input\032\202\005\n\026QueryUnderstanding" + + "Spec\022\205\001\n\031query_classification_spec\030\001 \001(\013" + + "2b.google.cloud.discoveryengine.v1.Answe" + + "rQueryRequest.QueryUnderstandingSpec.Que" + + "ryClassificationSpec\022{\n\024query_rephraser_" + + "spec\030\002 \001(\0132].google.cloud.discoveryengin" + + "e.v1.AnswerQueryRequest.QueryUnderstandi" + + "ngSpec.QueryRephraserSpec\032\237\002\n\027QueryClass" + + "ificationSpec\022v\n\005types\030\001 \003(\0162g.google.cl" + + "oud.discoveryengine.v1.AnswerQueryReques" + + "t.QueryUnderstandingSpec.QueryClassifica" + + "tionSpec.Type\"\213\001\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\025\n\021ADVERSARIAL_QUERY\020\001\022\034\n\030NON_ANSWE" + + "R_SEEKING_QUERY\020\002\022\027\n\023JAIL_BREAKING_QUERY" + + "\020\003\022\037\n\033NON_ANSWER_SEEKING_QUERY_V2\020\004\032A\n\022Q" + + "ueryRephraserSpec\022\017\n\007disable\030\001 \001(\010\022\032\n\022ma" + + "x_rephrase_steps\030\002 \001(\005\0321\n\017UserLabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\001\n\023An" + + "swerQueryResponse\0227\n\006answer\030\001 \001(\0132\'.goog" + + "le.cloud.discoveryengine.v1.Answer\0229\n\007se" + + "ssion\030\002 \001(\0132(.google.cloud.discoveryengi" + + "ne.v1.Session\022\032\n\022answer_query_token\030\003 \001(" + + "\t\"O\n\020GetAnswerRequest\022;\n\004name\030\001 \001(\tB-\340A\002" + + "\372A\'\n%discoveryengine.googleapis.com/Answ" + + "er\"\230\001\n\024CreateSessionRequest\022@\n\006parent\030\001 " + + "\001(\tB0\340A\002\372A*\n(discoveryengine.googleapis." + + "com/DataStore\022>\n\007session\030\002 \001(\0132(.google." + + "cloud.discoveryengine.v1.SessionB\003\340A\002\"\207\001" + + "\n\024UpdateSessionRequest\022>\n\007session\030\001 \001(\0132" + + "(.google.cloud.discoveryengine.v1.Sessio" + + "nB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\"T\n\024DeleteSessionRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengine.g" + + "oogleapis.com/Session\"Q\n\021GetSessionReque" + + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengin" + + "e.googleapis.com/Session\"\240\001\n\023ListSession" + + "sRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discov" + + "eryengine.googleapis.com/DataStore\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" + + "ter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"k\n\024ListSessi" + + "onsResponse\022:\n\010sessions\030\001 \003(\0132(.google.c" + + "loud.discoveryengine.v1.Session\022\027\n\017next_" + + "page_token\030\002 \001(\t2\333\'\n\033ConversationalSearc" + + "hService\022\253\003\n\024ConverseConversation\022<.goog" + + "le.cloud.discoveryengine.v1.ConverseConv" + + "ersationRequest\032=.google.cloud.discovery" + + "engine.v1.ConverseConversationResponse\"\225" + + "\002\332A\nname,query\202\323\344\223\002\201\002\"G/v1/{name=project" + + "s/*/locations/*/dataStores/*/conversatio" + + "ns/*}:converse:\001*ZZ\"U/v1/{name=projects/" + + "*/locations/*/collections/*/dataStores/*" + + "/conversations/*}:converse:\001*ZW\"R/v1/{na" + + "me=projects/*/locations/*/collections/*/" + + "engines/*/conversations/*}:converse:\001*\022\246" + + "\003\n\022CreateConversation\022:.google.cloud.dis" + + "coveryengine.v1.CreateConversationReques" + + "t\032-.google.cloud.discoveryengine.v1.Conv" + + "ersation\"\244\002\332A\023parent,conversation\202\323\344\223\002\207\002" + + "\">/v1/{parent=projects/*/locations/*/dat" + + "aStores/*}/conversations:\014conversationZ\\" + + "\"L/v1/{parent=projects/*/locations/*/col" + + "lections/*/dataStores/*}/conversations:\014" + + "conversationZY\"I/v1/{parent=projects/*/l" + + "ocations/*/collections/*/engines/*}/conv" + + "ersations:\014conversation\022\326\002\n\022DeleteConver" + + "sation\022:.google.cloud.discoveryengine.v1" + + ".DeleteConversationRequest\032\026.google.prot" + + "obuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*>/v1/{name=p" + "rojects/*/locations/*/dataStores/*/conve" - + "rsations/*}:\014conversationZi2Y/v1/{conver" - + "sation.name=projects/*/locations/*/colle" - + "ctions/*/dataStores/*/conversations/*}:\014" - + "conversationZf2V/v1/{conversation.name=p" + + "rsations/*}ZN*L/v1/{name=projects/*/loca" + + "tions/*/collections/*/dataStores/*/conve" + + "rsations/*}ZK*I/v1/{name=projects/*/loca" + + "tions/*/collections/*/engines/*/conversa" + + "tions/*}\022\322\003\n\022UpdateConversation\022:.google" + + ".cloud.discoveryengine.v1.UpdateConversa" + + "tionRequest\032-.google.cloud.discoveryengi" + + "ne.v1.Conversation\"\320\002\332A\030conversation,upd" + + "ate_mask\202\323\344\223\002\256\0022K/v1/{conversation.name=" + + "projects/*/locations/*/dataStores/*/conv" + + "ersations/*}:\014conversationZi2Y/v1/{conve" + + "rsation.name=projects/*/locations/*/coll" + + "ections/*/dataStores/*/conversations/*}:" + + "\014conversationZf2V/v1/{conversation.name=" + + "projects/*/locations/*/collections/*/eng" + + "ines/*/conversations/*}:\014conversation\022\347\002" + + "\n\017GetConversation\0227.google.cloud.discove" + + "ryengine.v1.GetConversationRequest\032-.goo" + + "gle.cloud.discoveryengine.v1.Conversatio" + + "n\"\353\001\332A\004name\202\323\344\223\002\335\001\022>/v1/{name=projects/*" + + "/locations/*/dataStores/*/conversations/" + + "*}ZN\022L/v1/{name=projects/*/locations/*/c" + + "ollections/*/dataStores/*/conversations/" + + "*}ZK\022I/v1/{name=projects/*/locations/*/c" + + "ollections/*/engines/*/conversations/*}\022" + + "\372\002\n\021ListConversations\0229.google.cloud.dis" + + "coveryengine.v1.ListConversationsRequest" + + "\032:.google.cloud.discoveryengine.v1.ListC" + + "onversationsResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022" + + ">/v1/{parent=projects/*/locations/*/data" + + "Stores/*}/conversationsZN\022L/v1/{parent=p" + + "rojects/*/locations/*/collections/*/data" + + "Stores/*}/conversationsZK\022I/v1/{parent=p" + "rojects/*/locations/*/collections/*/engi" - + "nes/*/conversations/*}:\014conversation\022\347\002\n" - + "\017GetConversation\0227.google.cloud.discover" - + "yengine.v1.GetConversationRequest\032-.goog" - + "le.cloud.discoveryengine.v1.Conversation" - + "\"\353\001\332A\004name\202\323\344\223\002\335\001\022>/v1/{name=projects/*/" - + "locations/*/dataStores/*/conversations/*" - + "}ZN\022L/v1/{name=projects/*/locations/*/co" - + "llections/*/dataStores/*/conversations/*" - + "}ZK\022I/v1/{name=projects/*/locations/*/co" - + "llections/*/engines/*/conversations/*}\022\372" - + "\002\n\021ListConversations\0229.google.cloud.disc" - + "overyengine.v1.ListConversationsRequest\032" - + ":.google.cloud.discoveryengine.v1.ListCo" - + "nversationsResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022>" - + "/v1/{parent=projects/*/locations/*/dataS" - + "tores/*}/conversationsZN\022L/v1/{parent=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*}/conversationsZK\022I/v1/{parent=pr" - + "ojects/*/locations/*/collections/*/engin" - + "es/*}/conversations\022\236\003\n\013AnswerQuery\0223.go" - + "ogle.cloud.discoveryengine.v1.AnswerQuer" - + "yRequest\0324.google.cloud.discoveryengine." - + "v1.AnswerQueryResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{s" - + "erving_config=projects/*/locations/*/dat" - + "aStores/*/servingConfigs/*}:answer:\001*Zc\"" - + "^/v1/{serving_config=projects/*/location" - + "s/*/collections/*/dataStores/*/servingCo" - + "nfigs/*}:answer:\001*Z`\"[/v1/{serving_confi" - + "g=projects/*/locations/*/collections/*/e" - + "ngines/*/servingConfigs/*}:answer:\001*\022\344\002\n" - + "\tGetAnswer\0221.google.cloud.discoveryengin" - + "e.v1.GetAnswerRequest\032\'.google.cloud.dis" - + "coveryengine.v1.Answer\"\372\001\332A\004name\202\323\344\223\002\354\001\022" - + "C/v1/{name=projects/*/locations/*/dataSt" - + "ores/*/sessions/*/answers/*}ZS\022Q/v1/{nam" - + "e=projects/*/locations/*/collections/*/d" - + "ataStores/*/sessions/*/answers/*}ZP\022N/v1" - + "/{name=projects/*/locations/*/collection" - + "s/*/engines/*/sessions/*/answers/*}\022\364\002\n\r" - + "CreateSession\0225.google.cloud.discoveryen" - + "gine.v1.CreateSessionRequest\032(.google.cl" - + "oud.discoveryengine.v1.Session\"\201\002\332A\016pare" - + "nt,session\202\323\344\223\002\351\001\"9/v1/{parent=projects/" - + "*/locations/*/dataStores/*}/sessions:\007se" - + "ssionZR\"G/v1/{parent=projects/*/location" - + "s/*/collections/*/dataStores/*}/sessions" - + ":\007sessionZO\"D/v1/{parent=projects/*/loca" - + "tions/*/collections/*/engines/*}/session" - + "s:\007session\022\275\002\n\rDeleteSession\0225.google.cl" - + "oud.discoveryengine.v1.DeleteSessionRequ" - + "est\032\026.google.protobuf.Empty\"\334\001\332A\004name\202\323\344" - + "\223\002\316\001*9/v1/{name=projects/*/locations/*/d" - + "ataStores/*/sessions/*}ZI*G/v1/{name=pro" - + "jects/*/locations/*/collections/*/dataSt" - + "ores/*/sessions/*}ZF*D/v1/{name=projects" - + "/*/locations/*/collections/*/engines/*/s" - + "essions/*}\022\221\003\n\rUpdateSession\0225.google.cl" - + "oud.discoveryengine.v1.UpdateSessionRequ" - + "est\032(.google.cloud.discoveryengine.v1.Se" - + "ssion\"\236\002\332A\023session,update_mask\202\323\344\223\002\201\0022A/" - + "v1/{session.name=projects/*/locations/*/" - + "dataStores/*/sessions/*}:\007sessionZZ2O/v1" - + "/{session.name=projects/*/locations/*/co" - + "llections/*/dataStores/*/sessions/*}:\007se" - + "ssionZW2L/v1/{session.name=projects/*/lo" - + "cations/*/collections/*/engines/*/sessio" - + "ns/*}:\007session\022\311\002\n\nGetSession\0222.google.c" - + "loud.discoveryengine.v1.GetSessionReques" - + "t\032(.google.cloud.discoveryengine.v1.Sess" - + "ion\"\334\001\332A\004name\202\323\344\223\002\316\001\0229/v1/{name=projects" - + "/*/locations/*/dataStores/*/sessions/*}Z" - + "I\022G/v1/{name=projects/*/locations/*/coll" - + "ections/*/dataStores/*/sessions/*}ZF\022D/v" + + "nes/*}/conversations\022\236\003\n\013AnswerQuery\0223.g" + + "oogle.cloud.discoveryengine.v1.AnswerQue" + + "ryRequest\0324.google.cloud.discoveryengine" + + ".v1.AnswerQueryResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{" + + "serving_config=projects/*/locations/*/da" + + "taStores/*/servingConfigs/*}:answer:\001*Zc" + + "\"^/v1/{serving_config=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/servingC" + + "onfigs/*}:answer:\001*Z`\"[/v1/{serving_conf" + + "ig=projects/*/locations/*/collections/*/" + + "engines/*/servingConfigs/*}:answer:\001*\022\344\002" + + "\n\tGetAnswer\0221.google.cloud.discoveryengi" + + "ne.v1.GetAnswerRequest\032\'.google.cloud.di" + + "scoveryengine.v1.Answer\"\372\001\332A\004name\202\323\344\223\002\354\001" + + "\022C/v1/{name=projects/*/locations/*/dataS" + + "tores/*/sessions/*/answers/*}ZS\022Q/v1/{na" + + "me=projects/*/locations/*/collections/*/" + + "dataStores/*/sessions/*/answers/*}ZP\022N/v" + "1/{name=projects/*/locations/*/collectio" - + "ns/*/engines/*/sessions/*}\022\334\002\n\014ListSessi" - + "ons\0224.google.cloud.discoveryengine.v1.Li" - + "stSessionsRequest\0325.google.cloud.discove" - + "ryengine.v1.ListSessionsResponse\"\336\001\332A\006pa" - + "rent\202\323\344\223\002\316\001\0229/v1/{parent=projects/*/loca" - + "tions/*/dataStores/*}/sessionsZI\022G/v1/{p" - + "arent=projects/*/locations/*/collections" - + "/*/dataStores/*}/sessionsZF\022D/v1/{parent" - + "=projects/*/locations/*/collections/*/en" - + "gines/*}/sessions\032R\312A\036discoveryengine.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\223\002\n#com.google.clo" - + "ud.discoveryengine.v1B ConversationalSea" - + "rchServiceProtoP\001ZMcloud.google.com/go/d" - + "iscoveryengine/apiv1/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo" - + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl" - + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::" - + "DiscoveryEngine::V1b\006proto3" + + "ns/*/engines/*/sessions/*/answers/*}\022\364\002\n" + + "\rCreateSession\0225.google.cloud.discoverye" + + "ngine.v1.CreateSessionRequest\032(.google.c" + + "loud.discoveryengine.v1.Session\"\201\002\332A\016par" + + "ent,session\202\323\344\223\002\351\001\"9/v1/{parent=projects" + + "/*/locations/*/dataStores/*}/sessions:\007s" + + "essionZR\"G/v1/{parent=projects/*/locatio" + + "ns/*/collections/*/dataStores/*}/session" + + "s:\007sessionZO\"D/v1/{parent=projects/*/loc" + + "ations/*/collections/*/engines/*}/sessio" + + "ns:\007session\022\275\002\n\rDeleteSession\0225.google.c" + + "loud.discoveryengine.v1.DeleteSessionReq" + + "uest\032\026.google.protobuf.Empty\"\334\001\332A\004name\202\323" + + "\344\223\002\316\001*9/v1/{name=projects/*/locations/*/" + + "dataStores/*/sessions/*}ZI*G/v1/{name=pr" + + "ojects/*/locations/*/collections/*/dataS" + + "tores/*/sessions/*}ZF*D/v1/{name=project" + + "s/*/locations/*/collections/*/engines/*/" + + "sessions/*}\022\221\003\n\rUpdateSession\0225.google.c" + + "loud.discoveryengine.v1.UpdateSessionReq" + + "uest\032(.google.cloud.discoveryengine.v1.S" + + "ession\"\236\002\332A\023session,update_mask\202\323\344\223\002\201\0022A" + + "/v1/{session.name=projects/*/locations/*" + + "/dataStores/*/sessions/*}:\007sessionZZ2O/v" + + "1/{session.name=projects/*/locations/*/c" + + "ollections/*/dataStores/*/sessions/*}:\007s" + + "essionZW2L/v1/{session.name=projects/*/l" + + "ocations/*/collections/*/engines/*/sessi" + + "ons/*}:\007session\022\311\002\n\nGetSession\0222.google." + + "cloud.discoveryengine.v1.GetSessionReque" + + "st\032(.google.cloud.discoveryengine.v1.Ses" + + "sion\"\334\001\332A\004name\202\323\344\223\002\316\001\0229/v1/{name=project" + + "s/*/locations/*/dataStores/*/sessions/*}" + + "ZI\022G/v1/{name=projects/*/locations/*/col" + + "lections/*/dataStores/*/sessions/*}ZF\022D/" + + "v1/{name=projects/*/locations/*/collecti" + + "ons/*/engines/*/sessions/*}\022\334\002\n\014ListSess" + + "ions\0224.google.cloud.discoveryengine.v1.L" + + "istSessionsRequest\0325.google.cloud.discov" + + "eryengine.v1.ListSessionsResponse\"\336\001\332A\006p" + + "arent\202\323\344\223\002\316\001\0229/v1/{parent=projects/*/loc" + + "ations/*/dataStores/*}/sessionsZI\022G/v1/{" + + "parent=projects/*/locations/*/collection" + + "s/*/dataStores/*}/sessionsZF\022D/v1/{paren" + + "t=projects/*/locations/*/collections/*/e" + + "ngines/*}/sessions\032R\312A\036discoveryengine.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\223\002\n#com.google.cl" + + "oud.discoveryengine.v1B ConversationalSe" + + "archServiceProtoP\001ZMcloud.google.com/go/" + + "discoveryengine/apiv1/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Go" + + "ogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\C" + + "loud\\DiscoveryEngine\\V1\352\002\"Google::Cloud:" + + ":DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -647,6 +658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreAdversarialQuery", "IgnoreNonAnswerSeekingQuery", "IgnoreLowRelevantContent", + "IgnoreJailBreakingQuery", }); internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_AnswerGenerationSpec_descriptor @@ -766,7 +778,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor, new java.lang.String[] { - "Chunk", "Content", + "Chunk", "Content", "DocumentMetadata", + }); + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor, + new java.lang.String[] { + "Uri", "Title", }); internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_QueryUnderstandingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_AnswerQueryRequest_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java index 2ccc015c9461..c5cd83ffa762 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java @@ -89,9 +89,9 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
    * Use
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
    * to activate auto session mode, which automatically creates a new
    * conversation inside a ConverseConversation session.
    * 
@@ -119,9 +119,9 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
    * Use
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
    * to activate auto session mode, which automatically creates a new
    * conversation inside a ConverseConversation session.
    * 
@@ -210,7 +210,7 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder( * *
    * The resource name of the Serving Config to use. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
    * If this is not set, the default serving config will be used.
    * 
* @@ -235,7 +235,7 @@ public java.lang.String getServingConfig() { * *
    * The resource name of the Serving Config to use. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
    * If this is not set, the default serving config will be used.
    * 
* @@ -1322,9 +1322,9 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
      * Use
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
      * to activate auto session mode, which automatically creates a new
      * conversation inside a ConverseConversation session.
      * 
@@ -1351,9 +1351,9 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
      * Use
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
      * to activate auto session mode, which automatically creates a new
      * conversation inside a ConverseConversation session.
      * 
@@ -1380,9 +1380,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
      * Use
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
      * to activate auto session mode, which automatically creates a new
      * conversation inside a ConverseConversation session.
      * 
@@ -1408,9 +1408,9 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
      * Use
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
      * to activate auto session mode, which automatically creates a new
      * conversation inside a ConverseConversation session.
      * 
@@ -1432,9 +1432,9 @@ public Builder clearName() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
      * Use
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
      * to activate auto session mode, which automatically creates a new
      * conversation inside a ConverseConversation session.
      * 
@@ -1666,7 +1666,7 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder( * *
      * The resource name of the Serving Config to use. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
      * If this is not set, the default serving config will be used.
      * 
* @@ -1690,7 +1690,7 @@ public java.lang.String getServingConfig() { * *
      * The resource name of the Serving Config to use. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
      * If this is not set, the default serving config will be used.
      * 
* @@ -1714,7 +1714,7 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * *
      * The resource name of the Serving Config to use. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
      * If this is not set, the default serving config will be used.
      * 
* @@ -1737,7 +1737,7 @@ public Builder setServingConfig(java.lang.String value) { * *
      * The resource name of the Serving Config to use. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
      * If this is not set, the default serving config will be used.
      * 
* @@ -1756,7 +1756,7 @@ public Builder clearServingConfig() { * *
      * The resource name of the Serving Config to use. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
      * If this is not set, the default serving config will be used.
      * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java index f711ab680442..173ead73fa2f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java @@ -29,9 +29,9 @@ public interface ConverseConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
    * Use
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
    * to activate auto session mode, which automatically creates a new
    * conversation inside a ConverseConversation session.
    * 
@@ -48,9 +48,9 @@ public interface ConverseConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
    * Use
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
    * to activate auto session mode, which automatically creates a new
    * conversation inside a ConverseConversation session.
    * 
@@ -109,7 +109,7 @@ public interface ConverseConversationRequestOrBuilder * *
    * The resource name of the Serving Config to use. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
    * If this is not set, the default serving config will be used.
    * 
* @@ -123,7 +123,7 @@ public interface ConverseConversationRequestOrBuilder * *
    * The resource name of the Serving Config to use. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
    * If this is not set, the default serving config will be used.
    * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequest.java index e45d8c714783..3959a32d1da8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequest.java @@ -74,9 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -102,9 +102,9 @@ public java.lang.String getParent() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -657,9 +657,9 @@ public Builder mergeFrom( * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -684,9 +684,9 @@ public java.lang.String getParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -711,9 +711,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -737,9 +737,9 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -759,9 +759,9 @@ public Builder clearParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequestOrBuilder.java index a53fe1ddced6..d322afef6f43 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateControlRequestOrBuilder.java @@ -29,9 +29,9 @@ public interface CreateControlRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -46,9 +46,9 @@ public interface CreateControlRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java index 65519600eace..ef35b2b95988 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -99,7 +99,7 @@ public java.lang.String getParent() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -573,7 +573,7 @@ public Builder mergeFrom( * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -598,7 +598,7 @@ public java.lang.String getParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -623,7 +623,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -647,7 +647,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -667,7 +667,7 @@ public Builder clearParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java index 85b43ef4d7ac..9018aee75255 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface CreateConversationRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface CreateConversationRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java index 5e82a1ef1c7d..5ab207e954a9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -99,7 +99,7 @@ public java.lang.String getParent() { * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -569,7 +569,7 @@ public Builder mergeFrom( * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -594,7 +594,7 @@ public java.lang.String getParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -619,7 +619,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -643,7 +643,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -663,7 +663,7 @@ public Builder clearParent() { * *
      * Required. Full resource name of parent data store. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java index a57f76412241..d1cdd55aab2d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface CreateSessionRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface CreateSessionRequestOrBuilder * *
    * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModel.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModel.java index 8e19559f5f38..731c7a7729f2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModel.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModel.java @@ -42,6 +42,7 @@ private CustomTuningModel() { name_ = ""; displayName_ = ""; modelState_ = 0; + errorMessage_ = ""; } @java.lang.Override @@ -358,8 +359,9 @@ private ModelState(int value) { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -387,8 +389,9 @@ public java.lang.String getName() { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -522,13 +525,13 @@ public com.google.cloud.discoveryengine.v1.CustomTuningModel.ModelState getModel * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return Whether the createTime field is set. */ @java.lang.Override @@ -540,13 +543,13 @@ public boolean hasCreateTime() { * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return The createTime. */ @java.lang.Override @@ -558,7 +561,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -718,6 +721,59 @@ public double getMetricsOrThrow(java.lang.String key) { return map.get(key); } + public static final int ERROR_MESSAGE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
+   * Currently this is only populated if the model state is
+   * `INPUT_VALIDATION_FAILED`.
+   * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Currently this is only populated if the model state is
+   * `INPUT_VALIDATION_FAILED`.
+   * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -754,6 +810,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetrics(), MetricsDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, errorMessage_); + } getUnknownFields().writeTo(output); } @@ -793,6 +852,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, metrics__); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, errorMessage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -822,6 +884,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTrainingStartTime().equals(other.getTrainingStartTime())) return false; } if (!internalGetMetrics().equals(other.internalGetMetrics())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -853,6 +916,8 @@ public int hashCode() { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + internalGetMetrics().hashCode(); } + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1040,6 +1105,7 @@ public Builder clear() { trainingStartTimeBuilder_ = null; } internalGetMutableMetrics().clear(); + errorMessage_ = ""; return this; } @@ -1104,6 +1170,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CustomTuningModel result.metrics_ = internalGetMetrics(); result.metrics_.makeImmutable(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.errorMessage_ = errorMessage_; + } result.bitField0_ |= to_bitField0_; } @@ -1177,6 +1246,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CustomTuningModel o } internalGetMutableMetrics().mergeFrom(other.internalGetMetrics()); bitField0_ |= 0x00000040; + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1252,6 +1326,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1279,8 +1359,9 @@ public Builder mergeFrom( * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -1307,8 +1388,9 @@ public java.lang.String getName() { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -1335,8 +1417,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -1362,8 +1445,9 @@ public Builder setName(java.lang.String value) { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -1385,8 +1469,9 @@ public Builder clearName() { * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -1669,13 +1754,13 @@ public Builder clearModelState() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return Whether the createTime field is set. */ @java.lang.Deprecated @@ -1686,13 +1771,13 @@ public boolean hasCreateTime() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return The createTime. */ @java.lang.Deprecated @@ -1709,7 +1794,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1732,7 +1817,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1752,7 +1837,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1780,7 +1865,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1800,7 +1885,7 @@ public Builder clearCreateTime() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1815,7 +1900,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -1834,7 +1919,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Deprecated: timestamp the Model was created at.
+     * Deprecated: Timestamp the Model was created at.
      * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -2199,6 +2284,117 @@ public Builder putAllMetrics(java.util.Map v return this; } + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+     * Currently this is only populated if the model state is
+     * `INPUT_VALIDATION_FAILED`.
+     * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Currently this is only populated if the model state is
+     * `INPUT_VALIDATION_FAILED`.
+     * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Currently this is only populated if the model state is
+     * `INPUT_VALIDATION_FAILED`.
+     * 
+ * + * string error_message = 8; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Currently this is only populated if the model state is
+     * `INPUT_VALIDATION_FAILED`.
+     * 
+ * + * string error_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Currently this is only populated if the model state is
+     * `INPUT_VALIDATION_FAILED`.
+     * 
+ * + * string error_message = 8; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelOrBuilder.java index 589aff76dbbe..782416de8051 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelOrBuilder.java @@ -31,8 +31,9 @@ public interface CustomTuningModelOrBuilder * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -49,8 +50,9 @@ public interface CustomTuningModelOrBuilder * Required. The fully qualified resource name of the model. * * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - * model must be an alpha-numerical string with limit of 40 characters. + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + * + * Model must be an alpha-numerical string with limit of 40 characters. *
* * @@ -128,13 +130,13 @@ public interface CustomTuningModelOrBuilder * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return Whether the createTime field is set. */ @java.lang.Deprecated @@ -143,13 +145,13 @@ public interface CustomTuningModelOrBuilder * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.CustomTuningModel.create_time is deprecated. See - * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=88 + * google/cloud/discoveryengine/v1/custom_tuning_model.proto;l=89 * @return The createTime. */ @java.lang.Deprecated @@ -158,7 +160,7 @@ public interface CustomTuningModelOrBuilder * * *
-   * Deprecated: timestamp the Model was created at.
+   * Deprecated: Timestamp the Model was created at.
    * 
* * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; @@ -254,4 +256,31 @@ public interface CustomTuningModelOrBuilder * map<string, double> metrics = 7; */ double getMetricsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Currently this is only populated if the model state is
+   * `INPUT_VALIDATION_FAILED`.
+   * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+   * Currently this is only populated if the model state is
+   * `INPUT_VALIDATION_FAILED`.
+   * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelProto.java index 301c87e9973b..91f59fe93737 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomTuningModelProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_tuning_model.proto\022\037google.cloud.discov" + "eryengine.v1\032\037google/api/field_behavior." + "proto\032\031google/api/resource.proto\032\037google" - + "/protobuf/timestamp.proto\"\266\007\n\021CustomTuni" + + "/protobuf/timestamp.proto\"\315\007\n\021CustomTuni" + "ngModel\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0discovery" + "engine.googleapis.com/CustomTuningModel\022" + "\024\n\014display_name\030\002 \001(\t\022\025\n\rmodel_version\030\003" @@ -60,27 +60,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\022P" + "\n\007metrics\030\007 \003(\0132?.google.cloud.discovery" + "engine.v1.CustomTuningModel.MetricsEntry" - + "\032.\n\014MetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\001:\0028\001\"\300\001\n\nModelState\022\033\n\027MODEL_STATE_U" - + "NSPECIFIED\020\000\022\023\n\017TRAINING_PAUSED\020\001\022\014\n\010TRA" - + "INING\020\002\022\025\n\021TRAINING_COMPLETE\020\003\022\025\n\021READY_" - + "FOR_SERVING\020\004\022\023\n\017TRAINING_FAILED\020\005\022\022\n\016NO" - + "_IMPROVEMENT\020\006\022\033\n\027INPUT_VALIDATION_FAILE" - + "D\020\007:\244\002\352A\240\002\n0discoveryengine.googleapis.c" - + "om/CustomTuningModel\022hprojects/{project}" - + "/locations/{location}/dataStores/{data_s" - + "tore}/customTuningModels/{custom_tuning_" - + "model}\022\201\001projects/{project}/locations/{l" - + "ocation}/collections/{collection}/dataSt" - + "ores/{data_store}/customTuningModels/{cu" - + "stom_tuning_model}B\211\002\n#com.google.cloud." - + "discoveryengine.v1B\026CustomTuningModelPro" - + "toP\001ZMcloud.google.com/go/discoveryengin" - + "e/apiv1/discoveryenginepb;discoveryengin" - + "epb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Dis" - + "coveryEngine.V1\312\002\037Google\\Cloud\\Discovery" - + "Engine\\V1\352\002\"Google::Cloud::DiscoveryEngi" - + "ne::V1b\006proto3" + + "\022\025\n\rerror_message\030\010 \001(\t\032.\n\014MetricsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\300\001\n\nMode" + + "lState\022\033\n\027MODEL_STATE_UNSPECIFIED\020\000\022\023\n\017T" + + "RAINING_PAUSED\020\001\022\014\n\010TRAINING\020\002\022\025\n\021TRAINI" + + "NG_COMPLETE\020\003\022\025\n\021READY_FOR_SERVING\020\004\022\023\n\017" + + "TRAINING_FAILED\020\005\022\022\n\016NO_IMPROVEMENT\020\006\022\033\n" + + "\027INPUT_VALIDATION_FAILED\020\007:\244\002\352A\240\002\n0disco" + + "veryengine.googleapis.com/CustomTuningMo" + + "del\022hprojects/{project}/locations/{locat" + + "ion}/dataStores/{data_store}/customTunin" + + "gModels/{custom_tuning_model}\022\201\001projects" + + "/{project}/locations/{location}/collecti" + + "ons/{collection}/dataStores/{data_store}" + + "/customTuningModels/{custom_tuning_model" + + "}B\211\002\n#com.google.cloud.discoveryengine.v" + + "1B\026CustomTuningModelProtoP\001ZMcloud.googl" + + "e.com/go/discoveryengine/apiv1/discovery" + + "enginepb;discoveryenginepb\242\002\017DISCOVERYEN" + + "GINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002" + + "\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Googl" + + "e::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -103,6 +103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "TrainingStartTime", "Metrics", + "ErrorMessage", }); internal_static_google_cloud_discoveryengine_v1_CustomTuningModel_MetricsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1_CustomTuningModel_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java index 8487eb20653c..7c8bba27998a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java @@ -120,6 +120,18 @@ public enum ContentConfig implements com.google.protobuf.ProtocolMessageEnum { * PUBLIC_WEBSITE = 3; */ PUBLIC_WEBSITE(3), + /** + * + * + *
+     * The data store is used for workspace search. Details of workspace
+     * data store are specified in the
+     * [WorkspaceConfig][google.cloud.discoveryengine.v1.WorkspaceConfig].
+     * 
+ * + * GOOGLE_WORKSPACE = 4; + */ + GOOGLE_WORKSPACE(4), UNRECOGNIZED(-1), ; @@ -165,6 +177,18 @@ public enum ContentConfig implements com.google.protobuf.ProtocolMessageEnum { * PUBLIC_WEBSITE = 3; */ public static final int PUBLIC_WEBSITE_VALUE = 3; + /** + * + * + *
+     * The data store is used for workspace search. Details of workspace
+     * data store are specified in the
+     * [WorkspaceConfig][google.cloud.discoveryengine.v1.WorkspaceConfig].
+     * 
+ * + * GOOGLE_WORKSPACE = 4; + */ + public static final int GOOGLE_WORKSPACE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -198,6 +222,8 @@ public static ContentConfig forNumber(int value) { return CONTENT_REQUIRED; case 3: return PUBLIC_WEBSITE; + case 4: + return GOOGLE_WORKSPACE; default: return null; } @@ -251,160 +277,1864 @@ private ContentConfig(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataStore.ContentConfig) } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface BillingEstimationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Immutable. The full resource name of the data store.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + /** + * + * + *
+     * Data size for structured data in terms of bytes.
+     * 
+ * + * int64 structured_data_size = 1; + * + * @return The structuredDataSize. + */ + long getStructuredDataSize(); + + /** + * + * + *
+     * Data size for unstructured data in terms of bytes.
+     * 
+ * + * int64 unstructured_data_size = 2; + * + * @return The unstructuredDataSize. + */ + long getUnstructuredDataSize(); + + /** + * + * + *
+     * Data size for websites in terms of bytes.
+     * 
+ * + * int64 website_data_size = 3; + * + * @return The websiteDataSize. + */ + long getWebsiteDataSize(); + + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return Whether the structuredDataUpdateTime field is set. + */ + boolean hasStructuredDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return The structuredDataUpdateTime. + */ + com.google.protobuf.Timestamp getStructuredDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getStructuredDataUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return Whether the unstructuredDataUpdateTime field is set. + */ + boolean hasUnstructuredDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return The unstructuredDataUpdateTime. + */ + com.google.protobuf.Timestamp getUnstructuredDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getUnstructuredDataUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return Whether the websiteDataUpdateTime field is set. + */ + boolean hasWebsiteDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return The websiteDataUpdateTime. + */ + com.google.protobuf.Timestamp getWebsiteDataUpdateTime(); + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getWebsiteDataUpdateTimeOrBuilder(); } /** * * *
-   * Immutable. The full resource name of the data store.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
+   * Estimation of data size per data store.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.BillingEstimation} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class BillingEstimation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) + BillingEstimationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BillingEstimation.newBuilder() to construct. + private BillingEstimation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private BillingEstimation() {} - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - * - * - *
-   * Required. The data store display name.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 128
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BillingEstimation(); } - } - /** - * - * - *
-   * Required. The data store display name.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 128
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor; } - } - public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 3; - private int industryVertical_ = 0; - /** - * - * - *
-   * Immutable. The industry vertical that the data store registers.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for industryVertical. - */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; - } - /** - * - * - *
-   * Immutable. The industry vertical that the data store registers.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The industryVertical. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.class, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder.class); + } + + private int bitField0_; + public static final int STRUCTURED_DATA_SIZE_FIELD_NUMBER = 1; + private long structuredDataSize_ = 0L; + /** + * + * + *
+     * Data size for structured data in terms of bytes.
+     * 
+ * + * int64 structured_data_size = 1; + * + * @return The structuredDataSize. + */ + @java.lang.Override + public long getStructuredDataSize() { + return structuredDataSize_; + } + + public static final int UNSTRUCTURED_DATA_SIZE_FIELD_NUMBER = 2; + private long unstructuredDataSize_ = 0L; + /** + * + * + *
+     * Data size for unstructured data in terms of bytes.
+     * 
+ * + * int64 unstructured_data_size = 2; + * + * @return The unstructuredDataSize. + */ + @java.lang.Override + public long getUnstructuredDataSize() { + return unstructuredDataSize_; + } + + public static final int WEBSITE_DATA_SIZE_FIELD_NUMBER = 3; + private long websiteDataSize_ = 0L; + /** + * + * + *
+     * Data size for websites in terms of bytes.
+     * 
+ * + * int64 website_data_size = 3; + * + * @return The websiteDataSize. + */ + @java.lang.Override + public long getWebsiteDataSize() { + return websiteDataSize_; + } + + public static final int STRUCTURED_DATA_UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp structuredDataUpdateTime_; + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return Whether the structuredDataUpdateTime field is set. + */ + @java.lang.Override + public boolean hasStructuredDataUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return The structuredDataUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStructuredDataUpdateTime() { + return structuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : structuredDataUpdateTime_; + } + /** + * + * + *
+     * Last updated timestamp for structured data.
+     * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStructuredDataUpdateTimeOrBuilder() { + return structuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : structuredDataUpdateTime_; + } + + public static final int UNSTRUCTURED_DATA_UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp unstructuredDataUpdateTime_; + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return Whether the unstructuredDataUpdateTime field is set. + */ + @java.lang.Override + public boolean hasUnstructuredDataUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return The unstructuredDataUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUnstructuredDataUpdateTime() { + return unstructuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : unstructuredDataUpdateTime_; + } + /** + * + * + *
+     * Last updated timestamp for unstructured data.
+     * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUnstructuredDataUpdateTimeOrBuilder() { + return unstructuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : unstructuredDataUpdateTime_; + } + + public static final int WEBSITE_DATA_UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp websiteDataUpdateTime_; + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return Whether the websiteDataUpdateTime field is set. + */ + @java.lang.Override + public boolean hasWebsiteDataUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return The websiteDataUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getWebsiteDataUpdateTime() { + return websiteDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : websiteDataUpdateTime_; + } + /** + * + * + *
+     * Last updated timestamp for websites.
+     * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getWebsiteDataUpdateTimeOrBuilder() { + return websiteDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : websiteDataUpdateTime_; + } + + 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 (structuredDataSize_ != 0L) { + output.writeInt64(1, structuredDataSize_); + } + if (unstructuredDataSize_ != 0L) { + output.writeInt64(2, unstructuredDataSize_); + } + if (websiteDataSize_ != 0L) { + output.writeInt64(3, websiteDataSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStructuredDataUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUnstructuredDataUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getWebsiteDataUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (structuredDataSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, structuredDataSize_); + } + if (unstructuredDataSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, unstructuredDataSize_); + } + if (websiteDataSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, websiteDataSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getStructuredDataUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getUnstructuredDataUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebsiteDataUpdateTime()); + } + 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.discoveryengine.v1.DataStore.BillingEstimation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation other = + (com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation) obj; + + if (getStructuredDataSize() != other.getStructuredDataSize()) return false; + if (getUnstructuredDataSize() != other.getUnstructuredDataSize()) return false; + if (getWebsiteDataSize() != other.getWebsiteDataSize()) return false; + if (hasStructuredDataUpdateTime() != other.hasStructuredDataUpdateTime()) return false; + if (hasStructuredDataUpdateTime()) { + if (!getStructuredDataUpdateTime().equals(other.getStructuredDataUpdateTime())) + return false; + } + if (hasUnstructuredDataUpdateTime() != other.hasUnstructuredDataUpdateTime()) return false; + if (hasUnstructuredDataUpdateTime()) { + if (!getUnstructuredDataUpdateTime().equals(other.getUnstructuredDataUpdateTime())) + return false; + } + if (hasWebsiteDataUpdateTime() != other.hasWebsiteDataUpdateTime()) return false; + if (hasWebsiteDataUpdateTime()) { + if (!getWebsiteDataUpdateTime().equals(other.getWebsiteDataUpdateTime())) 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) + STRUCTURED_DATA_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStructuredDataSize()); + hash = (37 * hash) + UNSTRUCTURED_DATA_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUnstructuredDataSize()); + hash = (37 * hash) + WEBSITE_DATA_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWebsiteDataSize()); + if (hasStructuredDataUpdateTime()) { + hash = (37 * hash) + STRUCTURED_DATA_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDataUpdateTime().hashCode(); + } + if (hasUnstructuredDataUpdateTime()) { + hash = (37 * hash) + UNSTRUCTURED_DATA_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredDataUpdateTime().hashCode(); + } + if (hasWebsiteDataUpdateTime()) { + hash = (37 * hash) + WEBSITE_DATA_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteDataUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation 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.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation 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.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.DataStore.BillingEstimation 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Estimation of data size per data store.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.BillingEstimation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.class, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStructuredDataUpdateTimeFieldBuilder(); + getUnstructuredDataUpdateTimeFieldBuilder(); + getWebsiteDataUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + structuredDataSize_ = 0L; + unstructuredDataSize_ = 0L; + websiteDataSize_ = 0L; + structuredDataUpdateTime_ = null; + if (structuredDataUpdateTimeBuilder_ != null) { + structuredDataUpdateTimeBuilder_.dispose(); + structuredDataUpdateTimeBuilder_ = null; + } + unstructuredDataUpdateTime_ = null; + if (unstructuredDataUpdateTimeBuilder_ != null) { + unstructuredDataUpdateTimeBuilder_.dispose(); + unstructuredDataUpdateTimeBuilder_ = null; + } + websiteDataUpdateTime_ = null; + if (websiteDataUpdateTimeBuilder_ != null) { + websiteDataUpdateTimeBuilder_.dispose(); + websiteDataUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation build() { + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation result = + new com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.structuredDataSize_ = structuredDataSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unstructuredDataSize_ = unstructuredDataSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.websiteDataSize_ = websiteDataSize_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.structuredDataUpdateTime_ = + structuredDataUpdateTimeBuilder_ == null + ? structuredDataUpdateTime_ + : structuredDataUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.unstructuredDataUpdateTime_ = + unstructuredDataUpdateTimeBuilder_ == null + ? unstructuredDataUpdateTime_ + : unstructuredDataUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.websiteDataUpdateTime_ = + websiteDataUpdateTimeBuilder_ == null + ? websiteDataUpdateTime_ + : websiteDataUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance()) + return this; + if (other.getStructuredDataSize() != 0L) { + setStructuredDataSize(other.getStructuredDataSize()); + } + if (other.getUnstructuredDataSize() != 0L) { + setUnstructuredDataSize(other.getUnstructuredDataSize()); + } + if (other.getWebsiteDataSize() != 0L) { + setWebsiteDataSize(other.getWebsiteDataSize()); + } + if (other.hasStructuredDataUpdateTime()) { + mergeStructuredDataUpdateTime(other.getStructuredDataUpdateTime()); + } + if (other.hasUnstructuredDataUpdateTime()) { + mergeUnstructuredDataUpdateTime(other.getUnstructuredDataUpdateTime()); + } + if (other.hasWebsiteDataUpdateTime()) { + mergeWebsiteDataUpdateTime(other.getWebsiteDataUpdateTime()); + } + 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: + { + structuredDataSize_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + unstructuredDataSize_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + websiteDataSize_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getStructuredDataUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getUnstructuredDataUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getWebsiteDataUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 structuredDataSize_; + /** + * + * + *
+       * Data size for structured data in terms of bytes.
+       * 
+ * + * int64 structured_data_size = 1; + * + * @return The structuredDataSize. + */ + @java.lang.Override + public long getStructuredDataSize() { + return structuredDataSize_; + } + /** + * + * + *
+       * Data size for structured data in terms of bytes.
+       * 
+ * + * int64 structured_data_size = 1; + * + * @param value The structuredDataSize to set. + * @return This builder for chaining. + */ + public Builder setStructuredDataSize(long value) { + + structuredDataSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Data size for structured data in terms of bytes.
+       * 
+ * + * int64 structured_data_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearStructuredDataSize() { + bitField0_ = (bitField0_ & ~0x00000001); + structuredDataSize_ = 0L; + onChanged(); + return this; + } + + private long unstructuredDataSize_; + /** + * + * + *
+       * Data size for unstructured data in terms of bytes.
+       * 
+ * + * int64 unstructured_data_size = 2; + * + * @return The unstructuredDataSize. + */ + @java.lang.Override + public long getUnstructuredDataSize() { + return unstructuredDataSize_; + } + /** + * + * + *
+       * Data size for unstructured data in terms of bytes.
+       * 
+ * + * int64 unstructured_data_size = 2; + * + * @param value The unstructuredDataSize to set. + * @return This builder for chaining. + */ + public Builder setUnstructuredDataSize(long value) { + + unstructuredDataSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Data size for unstructured data in terms of bytes.
+       * 
+ * + * int64 unstructured_data_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnstructuredDataSize() { + bitField0_ = (bitField0_ & ~0x00000002); + unstructuredDataSize_ = 0L; + onChanged(); + return this; + } + + private long websiteDataSize_; + /** + * + * + *
+       * Data size for websites in terms of bytes.
+       * 
+ * + * int64 website_data_size = 3; + * + * @return The websiteDataSize. + */ + @java.lang.Override + public long getWebsiteDataSize() { + return websiteDataSize_; + } + /** + * + * + *
+       * Data size for websites in terms of bytes.
+       * 
+ * + * int64 website_data_size = 3; + * + * @param value The websiteDataSize to set. + * @return This builder for chaining. + */ + public Builder setWebsiteDataSize(long value) { + + websiteDataSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Data size for websites in terms of bytes.
+       * 
+ * + * int64 website_data_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearWebsiteDataSize() { + bitField0_ = (bitField0_ & ~0x00000004); + websiteDataSize_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp structuredDataUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + structuredDataUpdateTimeBuilder_; + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return Whether the structuredDataUpdateTime field is set. + */ + public boolean hasStructuredDataUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + * + * @return The structuredDataUpdateTime. + */ + public com.google.protobuf.Timestamp getStructuredDataUpdateTime() { + if (structuredDataUpdateTimeBuilder_ == null) { + return structuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : structuredDataUpdateTime_; + } else { + return structuredDataUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public Builder setStructuredDataUpdateTime(com.google.protobuf.Timestamp value) { + if (structuredDataUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structuredDataUpdateTime_ = value; + } else { + structuredDataUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public Builder setStructuredDataUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (structuredDataUpdateTimeBuilder_ == null) { + structuredDataUpdateTime_ = builderForValue.build(); + } else { + structuredDataUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public Builder mergeStructuredDataUpdateTime(com.google.protobuf.Timestamp value) { + if (structuredDataUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && structuredDataUpdateTime_ != null + && structuredDataUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStructuredDataUpdateTimeBuilder().mergeFrom(value); + } else { + structuredDataUpdateTime_ = value; + } + } else { + structuredDataUpdateTimeBuilder_.mergeFrom(value); + } + if (structuredDataUpdateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public Builder clearStructuredDataUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + structuredDataUpdateTime_ = null; + if (structuredDataUpdateTimeBuilder_ != null) { + structuredDataUpdateTimeBuilder_.dispose(); + structuredDataUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getStructuredDataUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStructuredDataUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStructuredDataUpdateTimeOrBuilder() { + if (structuredDataUpdateTimeBuilder_ != null) { + return structuredDataUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return structuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : structuredDataUpdateTime_; + } + } + /** + * + * + *
+       * Last updated timestamp for structured data.
+       * 
+ * + * .google.protobuf.Timestamp structured_data_update_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStructuredDataUpdateTimeFieldBuilder() { + if (structuredDataUpdateTimeBuilder_ == null) { + structuredDataUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStructuredDataUpdateTime(), getParentForChildren(), isClean()); + structuredDataUpdateTime_ = null; + } + return structuredDataUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp unstructuredDataUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + unstructuredDataUpdateTimeBuilder_; + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return Whether the unstructuredDataUpdateTime field is set. + */ + public boolean hasUnstructuredDataUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + * + * @return The unstructuredDataUpdateTime. + */ + public com.google.protobuf.Timestamp getUnstructuredDataUpdateTime() { + if (unstructuredDataUpdateTimeBuilder_ == null) { + return unstructuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : unstructuredDataUpdateTime_; + } else { + return unstructuredDataUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public Builder setUnstructuredDataUpdateTime(com.google.protobuf.Timestamp value) { + if (unstructuredDataUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unstructuredDataUpdateTime_ = value; + } else { + unstructuredDataUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public Builder setUnstructuredDataUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (unstructuredDataUpdateTimeBuilder_ == null) { + unstructuredDataUpdateTime_ = builderForValue.build(); + } else { + unstructuredDataUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public Builder mergeUnstructuredDataUpdateTime(com.google.protobuf.Timestamp value) { + if (unstructuredDataUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && unstructuredDataUpdateTime_ != null + && unstructuredDataUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUnstructuredDataUpdateTimeBuilder().mergeFrom(value); + } else { + unstructuredDataUpdateTime_ = value; + } + } else { + unstructuredDataUpdateTimeBuilder_.mergeFrom(value); + } + if (unstructuredDataUpdateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public Builder clearUnstructuredDataUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + unstructuredDataUpdateTime_ = null; + if (unstructuredDataUpdateTimeBuilder_ != null) { + unstructuredDataUpdateTimeBuilder_.dispose(); + unstructuredDataUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getUnstructuredDataUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUnstructuredDataUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUnstructuredDataUpdateTimeOrBuilder() { + if (unstructuredDataUpdateTimeBuilder_ != null) { + return unstructuredDataUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return unstructuredDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : unstructuredDataUpdateTime_; + } + } + /** + * + * + *
+       * Last updated timestamp for unstructured data.
+       * 
+ * + * .google.protobuf.Timestamp unstructured_data_update_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUnstructuredDataUpdateTimeFieldBuilder() { + if (unstructuredDataUpdateTimeBuilder_ == null) { + unstructuredDataUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUnstructuredDataUpdateTime(), getParentForChildren(), isClean()); + unstructuredDataUpdateTime_ = null; + } + return unstructuredDataUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp websiteDataUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + websiteDataUpdateTimeBuilder_; + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return Whether the websiteDataUpdateTime field is set. + */ + public boolean hasWebsiteDataUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + * + * @return The websiteDataUpdateTime. + */ + public com.google.protobuf.Timestamp getWebsiteDataUpdateTime() { + if (websiteDataUpdateTimeBuilder_ == null) { + return websiteDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : websiteDataUpdateTime_; + } else { + return websiteDataUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public Builder setWebsiteDataUpdateTime(com.google.protobuf.Timestamp value) { + if (websiteDataUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + websiteDataUpdateTime_ = value; + } else { + websiteDataUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public Builder setWebsiteDataUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (websiteDataUpdateTimeBuilder_ == null) { + websiteDataUpdateTime_ = builderForValue.build(); + } else { + websiteDataUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public Builder mergeWebsiteDataUpdateTime(com.google.protobuf.Timestamp value) { + if (websiteDataUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && websiteDataUpdateTime_ != null + && websiteDataUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getWebsiteDataUpdateTimeBuilder().mergeFrom(value); + } else { + websiteDataUpdateTime_ = value; + } + } else { + websiteDataUpdateTimeBuilder_.mergeFrom(value); + } + if (websiteDataUpdateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public Builder clearWebsiteDataUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + websiteDataUpdateTime_ = null; + if (websiteDataUpdateTimeBuilder_ != null) { + websiteDataUpdateTimeBuilder_.dispose(); + websiteDataUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getWebsiteDataUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getWebsiteDataUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getWebsiteDataUpdateTimeOrBuilder() { + if (websiteDataUpdateTimeBuilder_ != null) { + return websiteDataUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return websiteDataUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : websiteDataUpdateTime_; + } + } + /** + * + * + *
+       * Last updated timestamp for websites.
+       * 
+ * + * .google.protobuf.Timestamp website_data_update_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getWebsiteDataUpdateTimeFieldBuilder() { + if (websiteDataUpdateTimeBuilder_ == null) { + websiteDataUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getWebsiteDataUpdateTime(), getParentForChildren(), isClean()); + websiteDataUpdateTime_ = null; + } + return websiteDataUpdateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) + private static final com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillingEstimation 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.discoveryengine.v1.DataStore.BillingEstimation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Immutable. The full resource name of the data store.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The full resource name of the data store.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. The data store display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The data store display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 3; + private int industryVertical_ = 0; + /** + * + * + *
+   * Immutable. The industry vertical that the data store registers.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + /** + * + * + *
+   * Immutable. The industry vertical that the data store registers.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); return result == null ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED @@ -592,101 +2322,221 @@ public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { } } - public static final int CONTENT_CONFIG_FIELD_NUMBER = 6; - private int contentConfig_ = 0; + public static final int CONTENT_CONFIG_FIELD_NUMBER = 6; + private int contentConfig_ = 0; + /** + * + * + *
+   * Immutable. The content config of the data store. If this field is unset,
+   * the server behavior defaults to
+   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for contentConfig. + */ + @java.lang.Override + public int getContentConfigValue() { + return contentConfig_; + } + /** + * + * + *
+   * Immutable. The content config of the data store. If this field is unset,
+   * the server behavior defaults to
+   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The contentConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int BILLING_ESTIMATION_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; /** * * *
-   * Immutable. The content config of the data store. If this field is unset,
-   * the server behavior defaults to
-   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * Output only. Data size estimation for billing.
    * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for contentConfig. + * @return Whether the billingEstimation field is set. */ @java.lang.Override - public int getContentConfigValue() { - return contentConfig_; + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-   * Immutable. The content config of the data store. If this field is unset,
-   * the server behavior defaults to
-   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * Output only. Data size estimation for billing.
    * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The contentConfig. + * @return The billingEstimation. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; /** * * *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * Output only. Data size estimation for billing.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } + + public static final int WORKSPACE_CONFIG_FIELD_NUMBER = 25; + private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; + /** * - * @return Whether the createTime field is set. + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * @return Whether the workspaceConfig field is set. */ @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasWorkspaceConfig() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; * - * @return The createTime. + * @return The workspaceConfig. */ @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } /** * * *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder + getWorkspaceConfigOrBuilder() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; @@ -706,7 +2556,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -775,7 +2625,7 @@ public boolean hasDocumentProcessingConfig() { */ @java.lang.Override public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -881,9 +2731,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultSchemaId_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(27, getDocumentProcessingConfig()); + output.writeMessage(23, getBillingEstimation()); } if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(28, getStartingSchema()); } getUnknownFields().writeTo(output); @@ -931,11 +2787,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultSchemaId_); } if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 27, getDocumentProcessingConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); } size += getUnknownFields().getSerializedSize(); @@ -964,6 +2826,14 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasBillingEstimation() != other.hasBillingEstimation()) return false; + if (hasBillingEstimation()) { + if (!getBillingEstimation().equals(other.getBillingEstimation())) return false; + } + if (hasWorkspaceConfig() != other.hasWorkspaceConfig()) return false; + if (hasWorkspaceConfig()) { + if (!getWorkspaceConfig().equals(other.getWorkspaceConfig())) return false; + } if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; if (hasDocumentProcessingConfig()) { if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; @@ -1001,6 +2871,14 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasBillingEstimation()) { + hash = (37 * hash) + BILLING_ESTIMATION_FIELD_NUMBER; + hash = (53 * hash) + getBillingEstimation().hashCode(); + } + if (hasWorkspaceConfig()) { + hash = (37 * hash) + WORKSPACE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceConfig().hashCode(); + } if (hasDocumentProcessingConfig()) { hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); @@ -1150,393 +3028,857 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); + getBillingEstimationFieldBuilder(); + getWorkspaceConfigFieldBuilder(); getDocumentProcessingConfigFieldBuilder(); getStartingSchemaFieldBuilder(); } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - industryVertical_ = 0; - solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - defaultSchemaId_ = ""; - contentConfig_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + industryVertical_ = 0; + solutionTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + defaultSchemaId_ = ""; + contentConfig_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; + } + workspaceConfig_ = null; + if (workspaceConfigBuilder_ != null) { + workspaceConfigBuilder_.dispose(); + workspaceConfigBuilder_ = null; + } + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore build() { + com.google.cloud.discoveryengine.v1.DataStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore result = + new com.google.cloud.discoveryengine.v1.DataStore(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.DataStore result) { + if (((bitField0_ & 0x00000008) != 0)) { + solutionTypes_ = java.util.Collections.unmodifiableList(solutionTypes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.solutionTypes_ = solutionTypes_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.industryVertical_ = industryVertical_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.defaultSchemaId_ = defaultSchemaId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.contentConfig_ = contentConfig_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.billingEstimation_ = + billingEstimationBuilder_ == null + ? billingEstimation_ + : billingEstimationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.workspaceConfig_ = + workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { + if (other == com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.industryVertical_ != 0) { + setIndustryVerticalValue(other.getIndustryVerticalValue()); + } + if (!other.solutionTypes_.isEmpty()) { + if (solutionTypes_.isEmpty()) { + solutionTypes_ = other.solutionTypes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSolutionTypesIsMutable(); + solutionTypes_.addAll(other.solutionTypes_); + } + onChanged(); + } + if (!other.getDefaultSchemaId().isEmpty()) { + defaultSchemaId_ = other.defaultSchemaId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.contentConfig_ != 0) { + setContentConfigValue(other.getContentConfigValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); } - documentProcessingConfig_ = null; - if (documentProcessingConfigBuilder_ != null) { - documentProcessingConfigBuilder_.dispose(); - documentProcessingConfigBuilder_ = null; + if (other.hasBillingEstimation()) { + mergeBillingEstimation(other.getBillingEstimation()); } - startingSchema_ = null; - if (startingSchemaBuilder_ != null) { - startingSchemaBuilder_.dispose(); - startingSchemaBuilder_ = null; + if (other.hasWorkspaceConfig()) { + mergeWorkspaceConfig(other.getWorkspaceConfig()); + } + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance(); + public final boolean isInitialized() { + return true; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore build() { - com.google.cloud.discoveryengine.v1.DataStore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + 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(); } - return result; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 40: + { + int tmpRaw = input.readEnum(); + ensureSolutionTypesIsMutable(); + solutionTypes_.add(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSolutionTypesIsMutable(); + solutionTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + case 48: + { + contentConfig_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + defaultSchemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 186: + { + input.readMessage( + getBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 186 + case 202: + { + input.readMessage(getWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 202 + case 218: + { + input.readMessage( + getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 218 + case 226: + { + input.readMessage(getStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 226 + 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; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore buildPartial() { - com.google.cloud.discoveryengine.v1.DataStore result = - new com.google.cloud.discoveryengine.v1.DataStore(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private int bitField0_; - private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.DataStore result) { - if (((bitField0_ & 0x00000008) != 0)) { - solutionTypes_ = java.util.Collections.unmodifiableList(solutionTypes_); - bitField0_ = (bitField0_ & ~0x00000008); + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - result.solutionTypes_ = solutionTypes_; } - - private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.industryVertical_ = industryVertical_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.defaultSchemaId_ = defaultSchemaId_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.contentConfig_ = contentConfig_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.documentProcessingConfig_ = - documentProcessingConfigBuilder_ == null - ? documentProcessingConfig_ - : documentProcessingConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.startingSchema_ = - startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
+     * Immutable. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Immutable. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Immutable. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * Immutable. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.DataStore) { - return mergeFrom((com.google.cloud.discoveryengine.v1.DataStore) other); + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; } else { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { - if (other == com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.industryVertical_ != 0) { - setIndustryVerticalValue(other.getIndustryVerticalValue()); - } - if (!other.solutionTypes_.isEmpty()) { - if (solutionTypes_.isEmpty()) { - solutionTypes_ = other.solutionTypes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSolutionTypesIsMutable(); - solutionTypes_.addAll(other.solutionTypes_); - } - onChanged(); - } - if (!other.getDefaultSchemaId().isEmpty()) { - defaultSchemaId_ = other.defaultSchemaId_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.contentConfig_ != 0) { - setContentConfigValue(other.getContentConfigValue()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (other.hasDocumentProcessingConfig()) { - mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (other.hasStartingSchema()) { - mergeStartingSchema(other.getStartingSchema()); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } + private int industryVertical_ = 0; + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public int getIndustryVerticalValue() { + return industryVertical_; } - + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVerticalValue(int value) { + industryVertical_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ @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(); + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - industryVertical_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSolutionTypesIsMutable(); - solutionTypes_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSolutionTypesIsMutable(); - solutionTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 48: - { - contentConfig_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - defaultSchemaId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 218: - { - input.readMessage( - getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 218 - case 226: - { - input.readMessage(getStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 226 - 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 + bitField0_ |= 0x00000004; + industryVertical_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearIndustryVertical() { + bitField0_ = (bitField0_ & ~0x00000004); + industryVertical_ = 0; + onChanged(); return this; } - - private int bitField0_; - - private java.lang.Object name_ = ""; + + private java.util.List solutionTypes_ = java.util.Collections.emptyList(); + + private void ensureSolutionTypesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + solutionTypes_ = new java.util.ArrayList(solutionTypes_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return A list containing the solutionTypes. + */ + public java.util.List getSolutionTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.discoveryengine.v1.SolutionType>( + solutionTypes_, solutionTypes_converter_); + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return The count of solutionTypes. + */ + public int getSolutionTypesCount() { + return solutionTypes_.size(); + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the element to return. + * @return The solutionTypes at the given index. + */ + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { + return solutionTypes_converter_.convert(solutionTypes_.get(index)); + } /** * * *
-     * Immutable. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
      *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; * - * @return The name. + * @param index The index to set the value at. + * @param value The solutionTypes to set. + * @return This builder for chaining. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder setSolutionTypes( + int index, com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } + ensureSolutionTypesIsMutable(); + solutionTypes_.set(index, value.getNumber()); + onChanged(); + return this; } /** * * *
-     * Immutable. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
      *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; * - * @return The bytes for name. + * @param value The solutionTypes to add. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } + ensureSolutionTypesIsMutable(); + solutionTypes_.add(value.getNumber()); + onChanged(); + return this; } /** * * *
-     * Immutable. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
      *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; * - * @param value The name to set. + * @param values The solutionTypes to add. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllSolutionTypes( + java.lang.Iterable values) { + ensureSolutionTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1.SolutionType value : values) { + solutionTypes_.add(value.getNumber()); } - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1544,21 +3886,21 @@ public Builder setName(java.lang.String value) { * * *
-     * Immutable. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
      *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearSolutionTypes() { + solutionTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1566,51 +3908,134 @@ public Builder clearName() { * * *
-     * Immutable. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
      *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; * - * @param value The bytes for name to set. + * @return A list containing the enum numeric values on the wire for solutionTypes. + */ + public java.util.List getSolutionTypesValueList() { + return java.util.Collections.unmodifiableList(solutionTypes_); + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of solutionTypes at the given index. + */ + public int getSolutionTypesValue(int index) { + return solutionTypes_.get(index); + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for solutionTypes to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setSolutionTypesValue(int index, int value) { + ensureSolutionTypesIsMutable(); + solutionTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param value The enum numeric value on the wire for solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addSolutionTypesValue(int value) { + ensureSolutionTypesIsMutable(); + solutionTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     *   solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param values The enum numeric values on the wire for solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSolutionTypesValue(java.lang.Iterable values) { + ensureSolutionTypesIsMutable(); + for (int value : values) { + solutionTypes_.add(value); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object displayName_ = ""; + private java.lang.Object defaultSchemaId_ = ""; /** * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
+     * store.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The displayName. + * @return The defaultSchemaId. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; + public java.lang.String getDefaultSchemaId() { + java.lang.Object ref = defaultSchemaId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - displayName_ = s; + defaultSchemaId_ = s; return s; } else { return (java.lang.String) ref; @@ -1620,22 +4045,21 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
+     * store.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for displayName. + * @return The bytes for defaultSchemaId. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; + public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { + java.lang.Object ref = defaultSchemaId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; + defaultSchemaId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1645,23 +4069,22 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
+     * store.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The displayName to set. + * @param value The defaultSchemaId to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDefaultSchemaId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1669,19 +4092,18 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
+     * store.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearDefaultSchemaId() { + defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1689,63 +4111,66 @@ public Builder clearDisplayName() { * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
+     * store.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for displayName to set. + * @param value The bytes for defaultSchemaId to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDefaultSchemaIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private int industryVertical_ = 0; + private int contentConfig_ = 0; /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @return The enum numeric value on the wire for industryVertical. + * @return The enum numeric value on the wire for contentConfig. */ @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; + public int getContentConfigValue() { + return contentConfig_; } /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @param value The enum numeric value on the wire for industryVertical to set. + * @param value The enum numeric value on the wire for contentConfig to set. * @return This builder for chaining. */ - public Builder setIndustryVerticalValue(int value) { - industryVertical_ = value; - bitField0_ |= 0x00000004; + public Builder setContentConfigValue(int value) { + contentConfig_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1753,43 +4178,48 @@ public Builder setIndustryVerticalValue(int value) { * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @return The industryVertical. + * @return The contentConfig. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = - com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); return result == null - ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED : result; } /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @param value The industryVertical to set. + * @param value The contentConfig to set. * @return This builder for chaining. */ - public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + public Builder setContentConfig( + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; - industryVertical_ = value.getNumber(); + bitField0_ |= 0x00000020; + contentConfig_ = value.getNumber(); onChanged(); return this; } @@ -1797,189 +4227,92 @@ public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryV * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ - public Builder clearIndustryVertical() { - bitField0_ = (bitField0_ & ~0x00000004); - industryVertical_ = 0; + public Builder clearContentConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + contentConfig_ = 0; onChanged(); return this; } - private java.util.List solutionTypes_ = java.util.Collections.emptyList(); - - private void ensureSolutionTypesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - solutionTypes_ = new java.util.ArrayList(solutionTypes_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return A list containing the solutionTypes. - */ - public java.util.List getSolutionTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.discoveryengine.v1.SolutionType>( - solutionTypes_, solutionTypes_converter_); - } - /** - * - * - *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return The count of solutionTypes. - */ - public int getSolutionTypesCount() { - return solutionTypes_.size(); - } - /** - * - * - *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the element to return. - * @return The solutionTypes at the given index. - */ - public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { - return solutionTypes_converter_.convert(solutionTypes_.get(index)); - } - /** - * - * - *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index to set the value at. - * @param value The solutionTypes to set. - * @return This builder for chaining. - */ - public Builder setSolutionTypes( - int index, com.google.cloud.discoveryengine.v1.SolutionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSolutionTypesIsMutable(); - solutionTypes_.set(index, value.getNumber()); - onChanged(); - return this; - } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param value The solutionTypes to add. - * @return This builder for chaining. - */ - public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1.SolutionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSolutionTypesIsMutable(); - solutionTypes_.add(value.getNumber()); - onChanged(); - return this; + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param values The solutionTypes to add. - * @return This builder for chaining. + * @return The createTime. */ - public Builder addAllSolutionTypes( - java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (com.google.cloud.discoveryengine.v1.SolutionType value : values) { - solutionTypes_.add(value.getNumber()); + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - onChanged(); - return this; } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearSolutionTypes() { - solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1987,62 +4320,73 @@ public Builder clearSolutionTypes() { * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return A list containing the enum numeric values on the wire for solutionTypes. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getSolutionTypesValueList() { - return java.util.Collections.unmodifiableList(solutionTypes_); + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of solutionTypes at the given index. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public int getSolutionTypesValue(int index) { - return solutionTypes_.get(index); + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for solutionTypes to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSolutionTypesValue(int index, int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.set(index, value); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } onChanged(); return this; } @@ -2050,139 +4394,135 @@ public Builder setSolutionTypesValue(int index, int value) { * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param value The enum numeric value on the wire for solutionTypes to add. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSolutionTypesValue(int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.add(value); + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return this; + return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     *   solutions cannot be enrolled.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param values The enum numeric values on the wire for solutionTypes to add. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllSolutionTypesValue(java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (int value : values) { - solutionTypes_.add(value); + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - onChanged(); - return this; } - - private java.lang.Object defaultSchemaId_ = ""; /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
-     * store.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The defaultSchemaId. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getDefaultSchemaId() { - java.lang.Object ref = defaultSchemaId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchemaId_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } + return createTimeBuilder_; } + + private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> + billingEstimationBuilder_; /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
-     * store.
+     * Output only. Data size estimation for billing.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for defaultSchemaId. + * @return Whether the billingEstimation field is set. */ - public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultSchemaId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
-     * store.
+     * Output only. Data size estimation for billing.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The defaultSchemaId to set. - * @return This builder for chaining. + * @return The billingEstimation. */ - public Builder setDefaultSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { + if (billingEstimationBuilder_ == null) { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } else { + return billingEstimationBuilder_.getMessage(); } - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; } /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
-     * store.
+     * Output only. Data size estimation for billing.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDefaultSchemaId() { - defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + billingEstimation_ = value; + } else { + billingEstimationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2190,66 +4530,74 @@ public Builder clearDefaultSchemaId() { * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data
-     * store.
+     * Output only. Data size estimation for billing.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for defaultSchemaId to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDefaultSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder builderForValue) { + if (billingEstimationBuilder_ == null) { + billingEstimation_ = builderForValue.build(); + } else { + billingEstimationBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } - - private int contentConfig_ = 0; /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for contentConfig. */ - @java.lang.Override - public int getContentConfigValue() { - return contentConfig_; + public Builder mergeBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && billingEstimation_ != null + && billingEstimation_ + != com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation + .getDefaultInstance()) { + getBillingEstimationBuilder().mergeFrom(value); + } else { + billingEstimation_ = value; + } + } else { + billingEstimationBuilder_.mergeFrom(value); + } + if (billingEstimation_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; } /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for contentConfig to set. - * @return This builder for chaining. */ - public Builder setContentConfigValue(int value) { - contentConfig_ = value; - bitField0_ |= 0x00000020; + public Builder clearBillingEstimation() { + bitField0_ = (bitField0_ & ~0x00000080); + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; + } onChanged(); return this; } @@ -2257,141 +4605,139 @@ public Builder setContentConfigValue(int value) { * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The contentConfig. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder + getBillingEstimationBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getBillingEstimationFieldBuilder().getBuilder(); } /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The contentConfig to set. - * @return This builder for chaining. */ - public Builder setContentConfig( - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + if (billingEstimationBuilder_ != null) { + return billingEstimationBuilder_.getMessageOrBuilder(); + } else { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; } - bitField0_ |= 0x00000020; - contentConfig_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearContentConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - contentConfig_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> + getBillingEstimationFieldBuilder() { + if (billingEstimationBuilder_ == null) { + billingEstimationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder>( + getBillingEstimation(), getParentForChildren(), isClean()); + billingEstimation_ = null; + } + return billingEstimationBuilder_; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> + workspaceConfigBuilder_; /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; * - * @return Whether the createTime field is set. + * @return Whether the workspaceConfig field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasWorkspaceConfig() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; * - * @return The createTime. + * @return The workspaceConfig. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { + if (workspaceConfigBuilder_ == null) { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } else { - return createTimeBuilder_.getMessage(); + return workspaceConfigBuilder_.getMessage(); } } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { + if (workspaceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + workspaceConfig_ = value; } else { - createTimeBuilder_.setMessage(value); + workspaceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2399,21 +4745,23 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setWorkspaceConfig( + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder builderForValue) { + if (workspaceConfigBuilder_ == null) { + workspaceConfig_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + workspaceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2421,28 +4769,30 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); + public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { + if (workspaceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && workspaceConfig_ != null + && workspaceConfig_ + != com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance()) { + getWorkspaceConfigBuilder().mergeFrom(value); } else { - createTime_ = value; + workspaceConfig_ = value; } } else { - createTimeBuilder_.mergeFrom(value); + workspaceConfigBuilder_.mergeFrom(value); } - if (createTime_ != null) { - bitField0_ |= 0x00000040; + if (workspaceConfig_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2451,20 +4801,21 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearWorkspaceConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + workspaceConfig_ = null; + if (workspaceConfigBuilder_ != null) { + workspaceConfigBuilder_.dispose(); + workspaceConfigBuilder_ = null; } onChanged(); return this; @@ -2473,67 +4824,71 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder getWorkspaceConfigBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return getWorkspaceConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder + getWorkspaceConfigOrBuilder() { + if (workspaceConfigBuilder_ != null) { + return workspaceConfigBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> + getWorkspaceConfigFieldBuilder() { + if (workspaceConfigBuilder_ == null) { + workspaceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder>( + getWorkspaceConfig(), getParentForChildren(), isClean()); + workspaceConfig_ = null; } - return createTimeBuilder_; + return workspaceConfigBuilder_; } private com.google.cloud.discoveryengine.v1.DocumentProcessingConfig documentProcessingConfig_; @@ -2556,7 +4911,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the documentProcessingConfig field is set. */ public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2602,7 +4957,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2624,7 +4979,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2642,7 +4997,7 @@ public Builder setDocumentProcessingConfig( public Builder mergeDocumentProcessingConfig( com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { if (documentProcessingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000200) != 0) && documentProcessingConfig_ != null && documentProcessingConfig_ != com.google.cloud.discoveryengine.v1.DocumentProcessingConfig @@ -2655,7 +5010,7 @@ public Builder mergeDocumentProcessingConfig( documentProcessingConfigBuilder_.mergeFrom(value); } if (documentProcessingConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2672,7 +5027,7 @@ public Builder mergeDocumentProcessingConfig( *
*/ public Builder clearDocumentProcessingConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); documentProcessingConfig_ = null; if (documentProcessingConfigBuilder_ != null) { documentProcessingConfigBuilder_.dispose(); @@ -2694,7 +5049,7 @@ public Builder clearDocumentProcessingConfig() { */ public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder getDocumentProcessingConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return getDocumentProcessingConfigFieldBuilder().getBuilder(); } @@ -2778,7 +5133,7 @@ public Builder clearDocumentProcessingConfig() { * @return Whether the startingSchema field is set. */ public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -2844,7 +5199,7 @@ public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema valu } else { startingSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2877,7 +5232,7 @@ public Builder setStartingSchema( } else { startingSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2905,7 +5260,7 @@ public Builder setStartingSchema( */ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (startingSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && startingSchema_ != null && startingSchema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { getStartingSchemaBuilder().mergeFrom(value); @@ -2916,7 +5271,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema va startingSchemaBuilder_.mergeFrom(value); } if (startingSchema_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -2944,7 +5299,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema va * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ public Builder clearStartingSchema() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); startingSchema_ = null; if (startingSchemaBuilder_ != null) { startingSchemaBuilder_.dispose(); @@ -2976,7 +5331,7 @@ public Builder clearStartingSchema() { * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ public com.google.cloud.discoveryengine.v1.Schema.Builder getStartingSchemaBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getStartingSchemaFieldBuilder().getBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java index 31d4895ccae6..264157c1d04d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java @@ -310,6 +310,95 @@ public interface DataStoreOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the billingEstimation field is set. + */ + boolean hasBillingEstimation(); + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The billingEstimation. + */ + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation(); + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder(); + + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * @return Whether the workspaceConfig field is set. + */ + boolean hasWorkspaceConfig(); + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * @return The workspaceConfig. + */ + com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig(); + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + */ + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder getWorkspaceConfigOrBuilder(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java index e1011ca9bd12..a47e6cb7ddd4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_DataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -49,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud/discoveryengine/v1/document_processi" + "ng_config.proto\032,google/cloud/discoverye" + "ngine/v1/schema.proto\032\037google/protobuf/t" - + "imestamp.proto\"\330\006\n\tDataStore\022\021\n\004name\030\001 \001" + + "imestamp.proto\"\312\n\n\tDataStore\022\021\n\004name\030\001 \001" + "(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022Q\n\021in" + "dustry_vertical\030\003 \001(\01621.google.cloud.dis" + "coveryengine.v1.IndustryVerticalB\003\340A\005\022E\n" @@ -59,25 +67,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01628.google.cloud.discoveryengine.v1.D" + "ataStore.ContentConfigB\003\340A\005\0224\n\013create_ti" + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022]\n\032document_processing_config\030\033 \001(\01329." - + "google.cloud.discoveryengine.v1.Document" - + "ProcessingConfig\022@\n\017starting_schema\030\034 \001(" - + "\0132\'.google.cloud.discoveryengine.v1.Sche" - + "ma\"i\n\rContentConfig\022\036\n\032CONTENT_CONFIG_UN" - + "SPECIFIED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_R" - + "EQUIRED\020\002\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(di" - + "scoveryengine.googleapis.com/DataStore\022?" - + "projects/{project}/locations/{location}/" - + "dataStores/{data_store}\022Xprojects/{proje" - + "ct}/locations/{location}/collections/{co" - + "llection}/dataStores/{data_store}B\201\002\n#co" - + "m.google.cloud.discoveryengine.v1B\016DataS" - + "toreProtoP\001ZMcloud.google.com/go/discove" - + "ryengine/apiv1/discoveryenginepb;discove" - + "ryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cl" - + "oud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Di" - + "scoveryEngine\\V1\352\002\"Google::Cloud::Discov" - + "eryEngine::V1b\006proto3" + + "\003\022]\n\022billing_estimation\030\027 \001(\0132<.google.c" + + "loud.discoveryengine.v1.DataStore.Billin" + + "gEstimationB\003\340A\003\022J\n\020workspace_config\030\031 \001" + + "(\01320.google.cloud.discoveryengine.v1.Wor" + + "kspaceConfig\022]\n\032document_processing_conf" + + "ig\030\033 \001(\01329.google.cloud.discoveryengine." + + "v1.DocumentProcessingConfig\022@\n\017starting_" + + "schema\030\034 \001(\0132\'.google.cloud.discoveryeng" + + "ine.v1.Schema\032\256\002\n\021BillingEstimation\022\034\n\024s" + + "tructured_data_size\030\001 \001(\003\022\036\n\026unstructure" + + "d_data_size\030\002 \001(\003\022\031\n\021website_data_size\030\003" + + " \001(\003\022?\n\033structured_data_update_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022A\n\035unstruc" + + "tured_data_update_time\030\005 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022<\n\030website_data_update_" + + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"\177" + + "\n\rContentConfig\022\036\n\032CONTENT_CONFIG_UNSPEC" + + "IFIED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQUI" + + "RED\020\002\022\022\n\016PUBLIC_WEBSITE\020\003\022\024\n\020GOOGLE_WORK" + + "SPACE\020\004:\311\001\352A\305\001\n(discoveryengine.googleap" + + "is.com/DataStore\022?projects/{project}/loc" + + "ations/{location}/dataStores/{data_store" + + "}\022Xprojects/{project}/locations/{locatio" + + "n}/collections/{collection}/dataStores/{" + + "data_store}\"\342\002\n\017WorkspaceConfig\022C\n\004type\030" + + "\001 \001(\01625.google.cloud.discoveryengine.v1." + + "WorkspaceConfig.Type\022\032\n\022dasher_customer_" + + "id\030\002 \001(\t\022(\n\033super_admin_service_account\030" + + "\004 \001(\tB\003\340A\001\022&\n\031super_admin_email_address\030" + + "\005 \001(\tB\003\340A\001\"\233\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" + + "\000\022\020\n\014GOOGLE_DRIVE\020\001\022\017\n\013GOOGLE_MAIL\020\002\022\020\n\014" + + "GOOGLE_SITES\020\003\022\023\n\017GOOGLE_CALENDAR\020\004\022\017\n\013G" + + "OOGLE_CHAT\020\005\022\021\n\rGOOGLE_GROUPS\020\006\022\017\n\013GOOGL" + + "E_KEEP\020\007B\201\002\n#com.google.cloud.discoverye" + + "ngine.v1B\016DataStoreProtoP\001ZMcloud.google" + + ".com/go/discoveryengine/apiv1/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037" + + "Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Google" + + "::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -103,9 +132,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSchemaId", "ContentConfig", "CreateTime", + "BillingEstimation", + "WorkspaceConfig", "DocumentProcessingConfig", "StartingSchema", }); + internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor, + new java.lang.String[] { + "StructuredDataSize", + "UnstructuredDataSize", + "WebsiteDataSize", + "StructuredDataUpdateTime", + "UnstructuredDataUpdateTime", + "WebsiteDataUpdateTime", + }); + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor, + new java.lang.String[] { + "Type", "DasherCustomerId", "SuperAdminServiceAccount", "SuperAdminEmailAddress", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequest.java index 7e117f3a441e..0a6a6c010e0a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Control to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Control to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -469,7 +469,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Control to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -494,7 +494,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Control to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -519,7 +519,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Control to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -543,7 +543,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Control to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -563,7 +563,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Control to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequestOrBuilder.java index 17b591166284..6cc970e7ab87 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteControlRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteControlRequestOrBuilder * *
    * Required. The resource name of the Control to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface DeleteControlRequestOrBuilder * *
    * Required. The resource name of the Control to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java index 9eacdd3516f4..f062a89ece6e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -472,7 +472,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Conversation to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -497,7 +497,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Conversation to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -522,7 +522,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Conversation to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -546,7 +546,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Conversation to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -566,7 +566,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Conversation to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java index ea611b8337cc..07b384305ed0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface DeleteConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequest.java index c242d1e00823..83ea1fc5aa6b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Session to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Session to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -469,7 +469,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Session to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -494,7 +494,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Session to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -519,7 +519,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Session to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -543,7 +543,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Session to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -563,7 +563,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Session to delete. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequestOrBuilder.java index dc6896705b29..caf86efa2077 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSessionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteSessionRequestOrBuilder * *
    * Required. The resource name of the Session to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface DeleteSessionRequestOrBuilder * *
    * Required. The resource name of the Session to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java index d8db9d63c5e6..0da033ef22ea 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java @@ -193,7 +193,7 @@ public com.google.protobuf.ByteString getIdBytes() { *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -209,7 +209,7 @@ public boolean hasName() { *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -238,7 +238,7 @@ public java.lang.String getName() { *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1137,7 +1137,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1154,7 +1154,7 @@ public boolean hasName() { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1184,7 +1184,7 @@ public java.lang.String getName() { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1214,7 +1214,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1237,7 +1237,7 @@ public Builder setName(java.lang.String value) { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -1258,7 +1258,7 @@ public Builder clearName() { *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
-     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java index e4d28394bd8a..039f26236937 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java @@ -67,7 +67,7 @@ public interface DocumentInfoOrBuilder *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -81,7 +81,7 @@ public interface DocumentInfoOrBuilder *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } @@ -95,7 +95,7 @@ public interface DocumentInfoOrBuilder *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
-   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java index 56fc3ae97abc..de038ab82204 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java @@ -24,11 +24,11 @@ * *
  * A singleton resource of
- * [DataStore][google.cloud.discoveryengine.v1.DataStore]. It's empty when
- * [DataStore][google.cloud.discoveryengine.v1.DataStore] is created, which
- * defaults to digital parser. The first call to
- * [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
- * the config.
+ * [DataStore][google.cloud.discoveryengine.v1.DataStore]. If it's empty when
+ * [DataStore][google.cloud.discoveryengine.v1.DataStore] is created and
+ * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to
+ * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED],
+ * the default parser will default to digital parser.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DocumentProcessingConfig} @@ -5879,6 +5879,8 @@ public int getParsingConfigOverridesCount() { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -5918,6 +5920,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -5948,6 +5952,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -5986,6 +5992,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -6230,11 +6238,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A singleton resource of
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore]. It's empty when
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] is created, which
-   * defaults to digital parser. The first call to
-   * [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
-   * the config.
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]. If it's empty when
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] is created and
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to
+   * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED],
+   * the default parser will default to digital parser.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DocumentProcessingConfig} @@ -7172,6 +7180,8 @@ public int getParsingConfigOverridesCount() { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7211,6 +7221,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7241,6 +7253,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7282,6 +7296,8 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7326,6 +7342,8 @@ public Builder clearParsingConfigOverrides() { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7365,6 +7383,8 @@ public Builder removeParsingConfigOverrides(java.lang.String key) { * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7401,6 +7421,8 @@ public Builder putParsingConfigOverrides( * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -7441,6 +7463,8 @@ public Builder putAllParsingConfigOverrides( * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigOrBuilder.java index cd57a195e92d..a6ca38b1862e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigOrBuilder.java @@ -162,6 +162,8 @@ public interface DocumentProcessingConfigOrBuilder * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -186,6 +188,8 @@ public interface DocumentProcessingConfigOrBuilder * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -216,6 +220,8 @@ public interface DocumentProcessingConfigOrBuilder * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -243,6 +249,8 @@ public interface DocumentProcessingConfigOrBuilder * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
@@ -272,6 +280,8 @@ public interface DocumentProcessingConfigOrBuilder * layout parsing are supported. * * `pptx`: Override parsing config for PPTX files, only digital parsing and * layout parsing are supported. + * * `xlsm`: Override parsing config for XLSM files, only digital parsing and + * layout parsing are supported. * * `xlsx`: Override parsing config for XLSX files, only digital parsing and * layout parsing are supported. *
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java index 2b82f8167366..1c46376782c2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java @@ -60,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_UrisMatcher_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_UrisMatcher_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_Matcher_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,109 +120,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"V" + "\n\025DeleteDocumentRequest\022=\n\004name\030\001 \001(\tB/\340" + "A\002\372A)\n\'discoveryengine.googleapis.com/Do" - + "cument\"\334\002\n BatchGetDocumentsMetadataRequ" + + "cument\"\233\004\n BatchGetDocumentsMetadataRequ" + "est\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryen" + "gine.googleapis.com/Branch\022_\n\007matcher\030\002 " + "\001(\0132I.google.cloud.discoveryengine.v1.Ba" + "tchGetDocumentsMetadataRequest.MatcherB\003" - + "\340A\002\032\033\n\013UrisMatcher\022\014\n\004uris\030\001 \003(\t\032{\n\007Matc" - + "her\022e\n\014uris_matcher\030\001 \001(\0132M.google.cloud" - + ".discoveryengine.v1.BatchGetDocumentsMet" - + "adataRequest.UrisMatcherH\000B\t\n\007matcher\"\332\004" - + "\n!BatchGetDocumentsMetadataResponse\022o\n\022d" - + "ocuments_metadata\030\001 \003(\0132S.google.cloud.d" + + "\340A\002\032\033\n\013UrisMatcher\022\014\n\004uris\030\001 \003(\t\032U\n\013Fhir" + + "Matcher\022F\n\016fhir_resources\030\001 \003(\tB.\340A\002\372A(\n" + + "&healthcare.googleapis.com/FhirResource\032" + + "\342\001\n\007Matcher\022e\n\014uris_matcher\030\001 \001(\0132M.goog" + + "le.cloud.discoveryengine.v1.BatchGetDocu" + + "mentsMetadataRequest.UrisMatcherH\000\022e\n\014fh" + + "ir_matcher\030\002 \001(\0132M.google.cloud.discover" + + "yengine.v1.BatchGetDocumentsMetadataRequ" + + "est.FhirMatcherH\000B\t\n\007matcher\"\240\005\n!BatchGe" + + "tDocumentsMetadataResponse\022o\n\022documents_" + + "metadata\030\001 \003(\0132S.google.cloud.discoverye" + + "ngine.v1.BatchGetDocumentsMetadataRespon" + + "se.DocumentMetadata\032\262\003\n\020DocumentMetadata" + + "\022w\n\rmatcher_value\030\002 \001(\0132`.google.cloud.d" + "iscoveryengine.v1.BatchGetDocumentsMetad" - + "ataResponse.DocumentMetadata\032\354\002\n\020Documen" - + "tMetadata\022w\n\rmatcher_value\030\002 \001(\0132`.googl" - + "e.cloud.discoveryengine.v1.BatchGetDocum" - + "entsMetadataResponse.DocumentMetadata.Ma" - + "tcherValue\022W\n\005state\030\003 \001(\0162H.google.cloud" - + ".discoveryengine.v1.BatchGetDocumentsMet" - + "adataResponse.State\0227\n\023last_refreshed_ti" - + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022\035\n\025" - + "data_ingestion_source\030\005 \001(\t\032.\n\014MatcherVa" - + "lue\022\r\n\003uri\030\001 \001(\tH\000B\017\n\rmatcher_value\"U\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007INDEXED\020\001" - + "\022\026\n\022NOT_IN_TARGET_SITE\020\002\022\020\n\014NOT_IN_INDEX" - + "\020\0032\235\026\n\017DocumentService\022\234\002\n\013GetDocument\0223" - + ".google.cloud.discoveryengine.v1.GetDocu" - + "mentRequest\032).google.cloud.discoveryengi" - + "ne.v1.Document\"\254\001\332A\004name\202\323\344\223\002\236\001\022E/v1/{na" - + "me=projects/*/locations/*/dataStores/*/b" - + "ranches/*/documents/*}ZU\022S/v1/{name=proj" + + "ataResponse.DocumentMetadata.MatcherValu" + + "e\022W\n\005state\030\003 \001(\0162H.google.cloud.discover" + + "yengine.v1.BatchGetDocumentsMetadataResp" + + "onse.State\0227\n\023last_refreshed_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\022\035\n\025data_inge" + + "stion_source\030\005 \001(\t\032t\n\014MatcherValue\022\r\n\003ur" + + "i\030\001 \001(\tH\000\022D\n\rfhir_resource\030\002 \001(\tB+\372A(\n&h" + + "ealthcare.googleapis.com/FhirResourceH\000B" + + "\017\n\rmatcher_value\"U\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\013\n\007INDEXED\020\001\022\026\n\022NOT_IN_TARGET_S" + + "ITE\020\002\022\020\n\014NOT_IN_INDEX\020\0032\235\026\n\017DocumentServ" + + "ice\022\234\002\n\013GetDocument\0223.google.cloud.disco" + + "veryengine.v1.GetDocumentRequest\032).googl" + + "e.cloud.discoveryengine.v1.Document\"\254\001\332A" + + "\004name\202\323\344\223\002\236\001\022E/v1/{name=projects/*/locat" + + "ions/*/dataStores/*/branches/*/documents" + + "/*}ZU\022S/v1/{name=projects/*/locations/*/" + + "collections/*/dataStores/*/branches/*/do" + + "cuments/*}\022\257\002\n\rListDocuments\0225.google.cl" + + "oud.discoveryengine.v1.ListDocumentsRequ" + + "est\0326.google.cloud.discoveryengine.v1.Li" + + "stDocumentsResponse\"\256\001\332A\006parent\202\323\344\223\002\236\001\022E" + + "/v1/{parent=projects/*/locations/*/dataS" + + "tores/*/branches/*}/documentsZU\022S/v1/{pa" + + "rent=projects/*/locations/*/collections/" + + "*/dataStores/*/branches/*}/documents\022\315\002\n" + + "\016CreateDocument\0226.google.cloud.discovery" + + "engine.v1.CreateDocumentRequest\032).google" + + ".cloud.discoveryengine.v1.Document\"\327\001\332A\033" + + "parent,document,document_id\202\323\344\223\002\262\001\"E/v1/" + + "{parent=projects/*/locations/*/dataStore" + + "s/*/branches/*}/documents:\010documentZ_\"S/" + + "v1/{parent=projects/*/locations/*/collec" + + "tions/*/dataStores/*/branches/*}/documen" + + "ts:\010document\022\330\002\n\016UpdateDocument\0226.google" + + ".cloud.discoveryengine.v1.UpdateDocument" + + "Request\032).google.cloud.discoveryengine.v" + + "1.Document\"\342\001\332A\024document,update_mask\202\323\344\223" + + "\002\304\0012N/v1/{document.name=projects/*/locat" + + "ions/*/dataStores/*/branches/*/documents" + + "/*}:\010documentZh2\\/v1/{document.name=proj" + "ects/*/locations/*/collections/*/dataSto" - + "res/*/branches/*/documents/*}\022\257\002\n\rListDo" - + "cuments\0225.google.cloud.discoveryengine.v" - + "1.ListDocumentsRequest\0326.google.cloud.di" - + "scoveryengine.v1.ListDocumentsResponse\"\256" - + "\001\332A\006parent\202\323\344\223\002\236\001\022E/v1/{parent=projects/" - + "*/locations/*/dataStores/*/branches/*}/d" - + "ocumentsZU\022S/v1/{parent=projects/*/locat" - + "ions/*/collections/*/dataStores/*/branch" - + "es/*}/documents\022\315\002\n\016CreateDocument\0226.goo" - + "gle.cloud.discoveryengine.v1.CreateDocum" - + "entRequest\032).google.cloud.discoveryengin" - + "e.v1.Document\"\327\001\332A\033parent,document,docum" - + "ent_id\202\323\344\223\002\262\001\"E/v1/{parent=projects/*/lo" - + "cations/*/dataStores/*/branches/*}/docum" - + "ents:\010documentZ_\"S/v1/{parent=projects/*" - + "/locations/*/collections/*/dataStores/*/" - + "branches/*}/documents:\010document\022\330\002\n\016Upda" - + "teDocument\0226.google.cloud.discoveryengin" - + "e.v1.UpdateDocumentRequest\032).google.clou" - + "d.discoveryengine.v1.Document\"\342\001\332A\024docum" - + "ent,update_mask\202\323\344\223\002\304\0012N/v1/{document.na" - + "me=projects/*/locations/*/dataStores/*/b" - + "ranches/*/documents/*}:\010documentZh2\\/v1/" - + "{document.name=projects/*/locations/*/co" - + "llections/*/dataStores/*/branches/*/docu" - + "ments/*}:\010document\022\217\002\n\016DeleteDocument\0226." - + "google.cloud.discoveryengine.v1.DeleteDo" - + "cumentRequest\032\026.google.protobuf.Empty\"\254\001" - + "\332A\004name\202\323\344\223\002\236\001*E/v1/{name=projects/*/loc" - + "ations/*/dataStores/*/branches/*/documen" - + "ts/*}ZU*S/v1/{name=projects/*/locations/" - + "*/collections/*/dataStores/*/branches/*/" - + "documents/*}\022\232\003\n\017ImportDocuments\0227.googl" - + "e.cloud.discoveryengine.v1.ImportDocumen" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"\256\002\312Ar\n7google.cloud.discoveryengine.v1." - + "ImportDocumentsResponse\0227google.cloud.di" - + "scoveryengine.v1.ImportDocumentsMetadata" - + "\202\323\344\223\002\262\001\"L/v1/{parent=projects/*/location" - + "s/*/dataStores/*/branches/*}/documents:i" - + "mport:\001*Z_\"Z/v1/{parent=projects/*/locat" - + "ions/*/collections/*/dataStores/*/branch" - + "es/*}/documents:import:\001*\022\224\003\n\016PurgeDocum" - + "ents\0226.google.cloud.discoveryengine.v1.P" - + "urgeDocumentsRequest\032\035.google.longrunnin" - + "g.Operation\"\252\002\312Ap\n6google.cloud.discover" - + "yengine.v1.PurgeDocumentsResponse\0226googl" - + "e.cloud.discoveryengine.v1.PurgeDocument" - + "sMetadata\202\323\344\223\002\260\001\"K/v1/{parent=projects/*" - + "/locations/*/dataStores/*/branches/*}/do" - + "cuments:purge:\001*Z^\"Y/v1/{parent=projects" - + "/*/locations/*/collections/*/dataStores/" - + "*/branches/*}/documents:purge:\001*\022\363\002\n\031Bat" - + "chGetDocumentsMetadata\022A.google.cloud.di" - + "scoveryengine.v1.BatchGetDocumentsMetada" - + "taRequest\032B.google.cloud.discoveryengine" - + ".v1.BatchGetDocumentsMetadataResponse\"\316\001" - + "\332A\006parent\202\323\344\223\002\276\001\022U/v1/{parent=projects/*" - + "/locations/*/dataStores/*/branches/*}/ba" - + "tchGetDocumentsMetadataZe\022c/v1/{parent=p" - + "rojects/*/locations/*/collections/*/data" - + "Stores/*/branches/*}/batchGetDocumentsMe" - + "tadata\032R\312A\036discoveryengine.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\207\002\n#com.google.cloud.discover" - + "yengine.v1B\024DocumentServiceProtoP\001ZMclou" - + "d.google.com/go/discoveryengine/apiv1/di" - + "scoveryenginepb;discoveryenginepb\242\002\017DISC" - + "OVERYENGINE\252\002\037Google.Cloud.DiscoveryEngi" - + "ne.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352" - + "\002\"Google::Cloud::DiscoveryEngine::V1b\006pr" - + "oto3" + + "res/*/branches/*/documents/*}:\010document\022" + + "\217\002\n\016DeleteDocument\0226.google.cloud.discov" + + "eryengine.v1.DeleteDocumentRequest\032\026.goo" + + "gle.protobuf.Empty\"\254\001\332A\004name\202\323\344\223\002\236\001*E/v1" + + "/{name=projects/*/locations/*/dataStores" + + "/*/branches/*/documents/*}ZU*S/v1/{name=" + + "projects/*/locations/*/collections/*/dat" + + "aStores/*/branches/*/documents/*}\022\232\003\n\017Im" + + "portDocuments\0227.google.cloud.discoveryen" + + "gine.v1.ImportDocumentsRequest\032\035.google." + + "longrunning.Operation\"\256\002\312Ar\n7google.clou" + + "d.discoveryengine.v1.ImportDocumentsResp" + + "onse\0227google.cloud.discoveryengine.v1.Im" + + "portDocumentsMetadata\202\323\344\223\002\262\001\"L/v1/{paren" + + "t=projects/*/locations/*/dataStores/*/br" + + "anches/*}/documents:import:\001*Z_\"Z/v1/{pa" + + "rent=projects/*/locations/*/collections/" + + "*/dataStores/*/branches/*}/documents:imp" + + "ort:\001*\022\224\003\n\016PurgeDocuments\0226.google.cloud" + + ".discoveryengine.v1.PurgeDocumentsReques" + + "t\032\035.google.longrunning.Operation\"\252\002\312Ap\n6" + + "google.cloud.discoveryengine.v1.PurgeDoc" + + "umentsResponse\0226google.cloud.discoveryen" + + "gine.v1.PurgeDocumentsMetadata\202\323\344\223\002\260\001\"K/" + + "v1/{parent=projects/*/locations/*/dataSt" + + "ores/*/branches/*}/documents:purge:\001*Z^\"" + + "Y/v1/{parent=projects/*/locations/*/coll" + + "ections/*/dataStores/*/branches/*}/docum" + + "ents:purge:\001*\022\363\002\n\031BatchGetDocumentsMetad" + + "ata\022A.google.cloud.discoveryengine.v1.Ba" + + "tchGetDocumentsMetadataRequest\032B.google." + + "cloud.discoveryengine.v1.BatchGetDocumen" + + "tsMetadataResponse\"\316\001\332A\006parent\202\323\344\223\002\276\001\022U/" + + "v1/{parent=projects/*/locations/*/dataSt" + + "ores/*/branches/*}/batchGetDocumentsMeta" + + "dataZe\022c/v1/{parent=projects/*/locations" + + "/*/collections/*/dataStores/*/branches/*" + + "}/batchGetDocumentsMetadata\032R\312A\036discover" + + "yengine.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\207\002\n#com." + + "google.cloud.discoveryengine.v1B\024Documen" + + "tServiceProtoP\001ZMcloud.google.com/go/dis" + + "coveryengine/apiv1/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" + + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" + + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::Di" + + "scoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -302,15 +312,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uris", }); - internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_Matcher_descriptor = + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor = internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_FhirMatcher_descriptor, + new java.lang.String[] { + "FhirResources", + }); + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_Matcher_descriptor = + internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_Matcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataRequest_Matcher_descriptor, new java.lang.String[] { - "UrisMatcher", "Matcher", + "UrisMatcher", "FhirMatcher", "Matcher", }); internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataResponse_descriptor = getDescriptor().getMessageTypes().get(7); @@ -338,7 +358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_BatchGetDocumentsMetadataResponse_DocumentMetadata_MatcherValue_descriptor, new java.lang.String[] { - "Uri", "MatcherValue", + "Uri", "FhirResource", "MatcherValue", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java index cd321bee5e2a..381f49b6a05f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java @@ -5500,7 +5500,7 @@ public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata getChatEngi * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -5531,7 +5531,7 @@ public java.lang.String getName() { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -5971,6 +5971,25 @@ public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getCommonConfig() : commonConfig_; } + public static final int DISABLE_ANALYTICS_FIELD_NUMBER = 26; + private boolean disableAnalytics_ = false; + /** + * + * + *
+   * Optional. Whether to disable analytics for searches performed on this
+   * engine.
+   * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAnalytics. + */ + @java.lang.Override + public boolean getDisableAnalytics() { + return disableAnalytics_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6024,6 +6043,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(16, industryVertical_); } + if (disableAnalytics_ != false) { + output.writeBool(26, disableAnalytics_); + } getUnknownFields().writeTo(output); } @@ -6080,6 +6102,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, industryVertical_); } + if (disableAnalytics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, disableAnalytics_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6113,6 +6138,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCommonConfig()) { if (!getCommonConfig().equals(other.getCommonConfig())) return false; } + if (getDisableAnalytics() != other.getDisableAnalytics()) return false; if (!getEngineConfigCase().equals(other.getEngineConfigCase())) return false; switch (engineConfigCase_) { case 11: @@ -6167,6 +6193,8 @@ public int hashCode() { hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCommonConfig().hashCode(); } + hash = (37 * hash) + DISABLE_ANALYTICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAnalytics()); switch (engineConfigCase_) { case 11: hash = (37 * hash) + CHAT_ENGINE_CONFIG_FIELD_NUMBER; @@ -6367,6 +6395,7 @@ public Builder clear() { commonConfigBuilder_.dispose(); commonConfigBuilder_ = null; } + disableAnalytics_ = false; engineConfigCase_ = 0; engineConfig_ = null; engineMetadataCase_ = 0; @@ -6438,6 +6467,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Engine result) { commonConfigBuilder_ == null ? commonConfig_ : commonConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.disableAnalytics_ = disableAnalytics_; + } result.bitField0_ |= to_bitField0_; } @@ -6537,6 +6569,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine other) { if (other.hasCommonConfig()) { mergeCommonConfig(other.getCommonConfig()); } + if (other.getDisableAnalytics() != false) { + setDisableAnalytics(other.getDisableAnalytics()); + } switch (other.getEngineConfigCase()) { case CHAT_ENGINE_CONFIG: { @@ -6660,6 +6695,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 128 + case 208: + { + disableAnalytics_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7466,7 +7507,7 @@ public Builder clearChatEngineMetadata() { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -7496,7 +7537,7 @@ public java.lang.String getName() { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -7526,7 +7567,7 @@ public com.google.protobuf.ByteString getNameBytes() { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -7555,7 +7596,7 @@ public Builder setName(java.lang.String value) { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -7580,7 +7621,7 @@ public Builder clearName() { * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -8849,6 +8890,62 @@ public Builder clearCommonConfig() { return commonConfigBuilder_; } + private boolean disableAnalytics_; + /** + * + * + *
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
+     * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAnalytics. + */ + @java.lang.Override + public boolean getDisableAnalytics() { + return disableAnalytics_; + } + /** + * + * + *
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
+     * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableAnalytics to set. + * @return This builder for chaining. + */ + public Builder setDisableAnalytics(boolean value) { + + disableAnalytics_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
+     * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableAnalytics() { + bitField0_ = (bitField0_ & ~0x00000800); + disableAnalytics_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java index e4bddda8fa6c..6112e61f5d03 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java @@ -172,7 +172,7 @@ public interface EngineOrBuilder * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -192,7 +192,7 @@ public interface EngineOrBuilder * characters. * * Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * engine should be 1-63 characters, and valid characters are * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. *
@@ -522,6 +522,20 @@ public interface EngineOrBuilder */ com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder getCommonConfigOrBuilder(); + /** + * + * + *
+   * Optional. Whether to disable analytics for searches performed on this
+   * engine.
+   * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAnalytics. + */ + boolean getDisableAnalytics(); + com.google.cloud.discoveryengine.v1.Engine.EngineConfigCase getEngineConfigCase(); com.google.cloud.discoveryengine.v1.Engine.EngineMetadataCase getEngineMetadataCase(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java index a9b6845cf81e..e42434748890 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java @@ -66,7 +66,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032,google/cloud/discov" + "eryengine/v1/common.proto\032\037google/protob" - + "uf/timestamp.proto\"\343\n\n\006Engine\022V\n\022chat_en" + + "uf/timestamp.proto\"\203\013\n\006Engine\022V\n\022chat_en" + "gine_config\030\013 \001(\01328.google.cloud.discove" + "ryengine.v1.Engine.ChatEngineConfigH\000\022Z\n" + "\024search_engine_config\030\r \001(\0132:.google.clo" @@ -83,31 +83,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "L\n\021industry_vertical\030\020 \001(\01621.google.clou" + "d.discoveryengine.v1.IndustryVertical\022K\n" + "\rcommon_config\030\017 \001(\01324.google.cloud.disc" - + "overyengine.v1.Engine.CommonConfig\032\234\001\n\022S" - + "earchEngineConfig\022@\n\013search_tier\030\001 \001(\0162+" - + ".google.cloud.discoveryengine.v1.SearchT" - + "ier\022D\n\016search_add_ons\030\002 \003(\0162,.google.clo" - + "ud.discoveryengine.v1.SearchAddOn\032\223\002\n\020Ch" - + "atEngineConfig\022k\n\025agent_creation_config\030" - + "\001 \001(\0132L.google.cloud.discoveryengine.v1." - + "Engine.ChatEngineConfig.AgentCreationCon" - + "fig\022 \n\030dialogflow_agent_to_link\030\002 \001(\t\032p\n" - + "\023AgentCreationConfig\022\020\n\010business\030\001 \001(\t\022\035" - + "\n\025default_language_code\030\002 \001(\t\022\026\n\ttime_zo" - + "ne\030\003 \001(\tB\003\340A\002\022\020\n\010location\030\004 \001(\t\032$\n\014Commo" - + "nConfig\022\024\n\014company_name\030\001 \001(\t\032.\n\022ChatEng" - + "ineMetadata\022\030\n\020dialogflow_agent\030\001 \001(\t:}\352" - + "Az\n%discoveryengine.googleapis.com/Engin" - + "e\022Qprojects/{project}/locations/{locatio" - + "n}/collections/{collection}/engines/{eng" - + "ine}B\017\n\rengine_configB\021\n\017engine_metadata" - + "B\376\001\n#com.google.cloud.discoveryengine.v1" - + "B\013EngineProtoP\001ZMcloud.google.com/go/dis" - + "coveryengine/apiv1/discoveryenginepb;dis" - + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" - + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" - + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::Di" - + "scoveryEngine::V1b\006proto3" + + "overyengine.v1.Engine.CommonConfig\022\036\n\021di" + + "sable_analytics\030\032 \001(\010B\003\340A\001\032\234\001\n\022SearchEng" + + "ineConfig\022@\n\013search_tier\030\001 \001(\0162+.google." + + "cloud.discoveryengine.v1.SearchTier\022D\n\016s" + + "earch_add_ons\030\002 \003(\0162,.google.cloud.disco" + + "veryengine.v1.SearchAddOn\032\223\002\n\020ChatEngine" + + "Config\022k\n\025agent_creation_config\030\001 \001(\0132L." + + "google.cloud.discoveryengine.v1.Engine.C" + + "hatEngineConfig.AgentCreationConfig\022 \n\030d" + + "ialogflow_agent_to_link\030\002 \001(\t\032p\n\023AgentCr" + + "eationConfig\022\020\n\010business\030\001 \001(\t\022\035\n\025defaul" + + "t_language_code\030\002 \001(\t\022\026\n\ttime_zone\030\003 \001(\t" + + "B\003\340A\002\022\020\n\010location\030\004 \001(\t\032$\n\014CommonConfig\022" + + "\024\n\014company_name\030\001 \001(\t\032.\n\022ChatEngineMetad" + + "ata\022\030\n\020dialogflow_agent\030\001 \001(\t:}\352Az\n%disc" + + "overyengine.googleapis.com/Engine\022Qproje" + + "cts/{project}/locations/{location}/colle" + + "ctions/{collection}/engines/{engine}B\017\n\r" + + "engine_configB\021\n\017engine_metadataB\376\001\n#com" + + ".google.cloud.discoveryengine.v1B\013Engine" + + "ProtoP\001ZMcloud.google.com/go/discoveryen" + + "gine/apiv1/discoveryenginepb;discoveryen" + + "ginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud." + + "DiscoveryEngine.V1\312\002\037Google\\Cloud\\Discov" + + "eryEngine\\V1\352\002\"Google::Cloud::DiscoveryE" + + "ngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -135,6 +136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SolutionType", "IndustryVertical", "CommonConfig", + "DisableAnalytics", "EngineConfig", "EngineMetadata", }); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java new file mode 100644 index 000000000000..91ca8309fb8c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java @@ -0,0 +1,13153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Top-level message sent by the client for the `GenerateGroundedContent`
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GenerateGroundedContentRequest} + */ +public final class GenerateGroundedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) + GenerateGroundedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateGroundedContentRequest.newBuilder() to construct. + private GenerateGroundedContentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateGroundedContentRequest() { + location_ = ""; + contents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateGroundedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.Builder.class); + } + + public interface GenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Specifies which Vertex model id to use for generation.
+     * 
+ * + * string model_id = 3; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
+     * Specifies which Vertex model id to use for generation.
+     * 
+ * + * string model_id = 3; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
+     * Language code for content. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * 
+ * + * string language_code = 2; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+     * Language code for content. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * 
+ * + * string language_code = 2; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+     * If specified, custom value for the temperature will be used.
+     * 
+ * + * optional float temperature = 4; + * + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * + * + *
+     * If specified, custom value for the temperature will be used.
+     * 
+ * + * optional float temperature = 4; + * + * @return The temperature. + */ + float getTemperature(); + + /** + * + * + *
+     * If specified, custom value for nucleus sampling will be used.
+     * 
+ * + * optional float top_p = 5; + * + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * + * + *
+     * If specified, custom value for nucleus sampling will be used.
+     * 
+ * + * optional float top_p = 5; + * + * @return The topP. + */ + float getTopP(); + + /** + * + * + *
+     * If specified, custom value for top-k sampling will be used.
+     * 
+ * + * optional int32 top_k = 7; + * + * @return Whether the topK field is set. + */ + boolean hasTopK(); + /** + * + * + *
+     * If specified, custom value for top-k sampling will be used.
+     * 
+ * + * optional int32 top_k = 7; + * + * @return The topK. + */ + int getTopK(); + + /** + * + * + *
+     * If specified, custom value for frequency penalty will be used.
+     * 
+ * + * optional float frequency_penalty = 8; + * + * @return Whether the frequencyPenalty field is set. + */ + boolean hasFrequencyPenalty(); + /** + * + * + *
+     * If specified, custom value for frequency penalty will be used.
+     * 
+ * + * optional float frequency_penalty = 8; + * + * @return The frequencyPenalty. + */ + float getFrequencyPenalty(); + + /** + * + * + *
+     * If specified, custom value for presence penalty will be used.
+     * 
+ * + * optional float presence_penalty = 9; + * + * @return Whether the presencePenalty field is set. + */ + boolean hasPresencePenalty(); + /** + * + * + *
+     * If specified, custom value for presence penalty will be used.
+     * 
+ * + * optional float presence_penalty = 9; + * + * @return The presencePenalty. + */ + float getPresencePenalty(); + + /** + * + * + *
+     * If specified, custom value for max output tokens will be used.
+     * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return Whether the maxOutputTokens field is set. + */ + boolean hasMaxOutputTokens(); + /** + * + * + *
+     * If specified, custom value for max output tokens will be used.
+     * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return The maxOutputTokens. + */ + int getMaxOutputTokens(); + } + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec} + */ + public static final class GenerationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + GenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerationSpec.newBuilder() to construct. + private GenerationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerationSpec() { + modelId_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerationSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .Builder.class); + } + + private int bitField0_; + public static final int MODEL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + /** + * + * + *
+     * Specifies which Vertex model id to use for generation.
+     * 
+ * + * string model_id = 3; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + 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(); + modelId_ = s; + return s; + } + } + /** + * + * + *
+     * Specifies which Vertex model id to use for generation.
+     * 
+ * + * string model_id = 3; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Language code for content. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * 
+ * + * string language_code = 2; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+     * Language code for content. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * 
+ * + * string language_code = 2; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPERATURE_FIELD_NUMBER = 4; + private float temperature_ = 0F; + /** + * + * + *
+     * If specified, custom value for the temperature will be used.
+     * 
+ * + * optional float temperature = 4; + * + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * If specified, custom value for the temperature will be used.
+     * 
+ * + * optional float temperature = 4; + * + * @return The temperature. + */ + @java.lang.Override + public float getTemperature() { + return temperature_; + } + + public static final int TOP_P_FIELD_NUMBER = 5; + private float topP_ = 0F; + /** + * + * + *
+     * If specified, custom value for nucleus sampling will be used.
+     * 
+ * + * optional float top_p = 5; + * + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * If specified, custom value for nucleus sampling will be used.
+     * 
+ * + * optional float top_p = 5; + * + * @return The topP. + */ + @java.lang.Override + public float getTopP() { + return topP_; + } + + public static final int TOP_K_FIELD_NUMBER = 7; + private int topK_ = 0; + /** + * + * + *
+     * If specified, custom value for top-k sampling will be used.
+     * 
+ * + * optional int32 top_k = 7; + * + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * If specified, custom value for top-k sampling will be used.
+     * 
+ * + * optional int32 top_k = 7; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 8; + private float frequencyPenalty_ = 0F; + /** + * + * + *
+     * If specified, custom value for frequency penalty will be used.
+     * 
+ * + * optional float frequency_penalty = 8; + * + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * If specified, custom value for frequency penalty will be used.
+     * 
+ * + * optional float frequency_penalty = 8; + * + * @return The frequencyPenalty. + */ + @java.lang.Override + public float getFrequencyPenalty() { + return frequencyPenalty_; + } + + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 9; + private float presencePenalty_ = 0F; + /** + * + * + *
+     * If specified, custom value for presence penalty will be used.
+     * 
+ * + * optional float presence_penalty = 9; + * + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * If specified, custom value for presence penalty will be used.
+     * 
+ * + * optional float presence_penalty = 9; + * + * @return The presencePenalty. + */ + @java.lang.Override + public float getPresencePenalty() { + return presencePenalty_; + } + + public static final int MAX_OUTPUT_TOKENS_FIELD_NUMBER = 10; + private int maxOutputTokens_ = 0; + /** + * + * + *
+     * If specified, custom value for max output tokens will be used.
+     * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return Whether the maxOutputTokens field is set. + */ + @java.lang.Override + public boolean hasMaxOutputTokens() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * If specified, custom value for max output tokens will be used.
+     * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return The maxOutputTokens. + */ + @java.lang.Override + public int getMaxOutputTokens() { + return maxOutputTokens_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(4, temperature_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(5, topP_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(7, topK_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeFloat(8, frequencyPenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeFloat(9, presencePenalty_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt32(10, maxOutputTokens_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, temperature_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, topP_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, topK_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, frequencyPenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, presencePenalty_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, maxOutputTokens_); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) obj; + + if (!getModelId().equals(other.getModelId())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasTemperature() != other.hasTemperature()) return false; + if (hasTemperature()) { + if (java.lang.Float.floatToIntBits(getTemperature()) + != java.lang.Float.floatToIntBits(other.getTemperature())) return false; + } + if (hasTopP() != other.hasTopP()) return false; + if (hasTopP()) { + if (java.lang.Float.floatToIntBits(getTopP()) + != java.lang.Float.floatToIntBits(other.getTopP())) return false; + } + if (hasTopK() != other.hasTopK()) return false; + if (hasTopK()) { + if (getTopK() != other.getTopK()) return false; + } + if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false; + if (hasFrequencyPenalty()) { + if (java.lang.Float.floatToIntBits(getFrequencyPenalty()) + != java.lang.Float.floatToIntBits(other.getFrequencyPenalty())) return false; + } + if (hasPresencePenalty() != other.hasPresencePenalty()) return false; + if (hasPresencePenalty()) { + if (java.lang.Float.floatToIntBits(getPresencePenalty()) + != java.lang.Float.floatToIntBits(other.getPresencePenalty())) return false; + } + if (hasMaxOutputTokens() != other.hasMaxOutputTokens()) return false; + if (hasMaxOutputTokens()) { + if (getMaxOutputTokens() != other.getMaxOutputTokens()) 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) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasTemperature()) { + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTemperature()); + } + if (hasTopP()) { + hash = (37 * hash) + TOP_P_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTopP()); + } + if (hasTopK()) { + hash = (37 * hash) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + getTopK(); + } + if (hasFrequencyPenalty()) { + hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrequencyPenalty()); + } + if (hasPresencePenalty()) { + hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPresencePenalty()); + } + if (hasMaxOutputTokens()) { + hash = (37 * hash) + MAX_OUTPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getMaxOutputTokens(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + 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.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + 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.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelId_ = ""; + languageCode_ = ""; + temperature_ = 0F; + topP_ = 0F; + topK_ = 0; + frequencyPenalty_ = 0F; + presencePenalty_ = 0F; + maxOutputTokens_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topK_ = topK_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.frequencyPenalty_ = frequencyPenalty_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.maxOutputTokens_ = maxOutputTokens_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance()) return this; + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + if (other.hasTopK()) { + setTopK(other.getTopK()); + } + if (other.hasFrequencyPenalty()) { + setFrequencyPenalty(other.getFrequencyPenalty()); + } + if (other.hasPresencePenalty()) { + setPresencePenalty(other.getPresencePenalty()); + } + if (other.hasMaxOutputTokens()) { + setMaxOutputTokens(other.getMaxOutputTokens()); + } + 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: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + modelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 37: + { + temperature_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 37 + case 45: + { + topP_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 45 + case 56: + { + topK_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 56 + case 69: + { + frequencyPenalty_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 69 + case 77: + { + presencePenalty_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 77 + case 80: + { + maxOutputTokens_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object modelId_ = ""; + /** + * + * + *
+       * Specifies which Vertex model id to use for generation.
+       * 
+ * + * string model_id = 3; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Specifies which Vertex model id to use for generation.
+       * 
+ * + * string model_id = 3; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Specifies which Vertex model id to use for generation.
+       * 
+ * + * string model_id = 3; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Specifies which Vertex model id to use for generation.
+       * 
+ * + * string model_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Specifies which Vertex model id to use for generation.
+       * 
+ * + * string model_id = 3; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+       * Language code for content. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * 
+ * + * string language_code = 2; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Language code for content. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * 
+ * + * string language_code = 2; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Language code for content. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * 
+ * + * string language_code = 2; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Language code for content. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * 
+ * + * string language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Language code for content. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * 
+ * + * string language_code = 2; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private float temperature_; + /** + * + * + *
+       * If specified, custom value for the temperature will be used.
+       * 
+ * + * optional float temperature = 4; + * + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * If specified, custom value for the temperature will be used.
+       * 
+ * + * optional float temperature = 4; + * + * @return The temperature. + */ + @java.lang.Override + public float getTemperature() { + return temperature_; + } + /** + * + * + *
+       * If specified, custom value for the temperature will be used.
+       * 
+ * + * optional float temperature = 4; + * + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(float value) { + + temperature_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for the temperature will be used.
+       * 
+ * + * optional float temperature = 4; + * + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000004); + temperature_ = 0F; + onChanged(); + return this; + } + + private float topP_; + /** + * + * + *
+       * If specified, custom value for nucleus sampling will be used.
+       * 
+ * + * optional float top_p = 5; + * + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * If specified, custom value for nucleus sampling will be used.
+       * 
+ * + * optional float top_p = 5; + * + * @return The topP. + */ + @java.lang.Override + public float getTopP() { + return topP_; + } + /** + * + * + *
+       * If specified, custom value for nucleus sampling will be used.
+       * 
+ * + * optional float top_p = 5; + * + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(float value) { + + topP_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for nucleus sampling will be used.
+       * 
+ * + * optional float top_p = 5; + * + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000008); + topP_ = 0F; + onChanged(); + return this; + } + + private int topK_; + /** + * + * + *
+       * If specified, custom value for top-k sampling will be used.
+       * 
+ * + * optional int32 top_k = 7; + * + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * If specified, custom value for top-k sampling will be used.
+       * 
+ * + * optional int32 top_k = 7; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + /** + * + * + *
+       * If specified, custom value for top-k sampling will be used.
+       * 
+ * + * optional int32 top_k = 7; + * + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(int value) { + + topK_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for top-k sampling will be used.
+       * 
+ * + * optional int32 top_k = 7; + * + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000010); + topK_ = 0; + onChanged(); + return this; + } + + private float frequencyPenalty_; + /** + * + * + *
+       * If specified, custom value for frequency penalty will be used.
+       * 
+ * + * optional float frequency_penalty = 8; + * + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * If specified, custom value for frequency penalty will be used.
+       * 
+ * + * optional float frequency_penalty = 8; + * + * @return The frequencyPenalty. + */ + @java.lang.Override + public float getFrequencyPenalty() { + return frequencyPenalty_; + } + /** + * + * + *
+       * If specified, custom value for frequency penalty will be used.
+       * 
+ * + * optional float frequency_penalty = 8; + * + * @param value The frequencyPenalty to set. + * @return This builder for chaining. + */ + public Builder setFrequencyPenalty(float value) { + + frequencyPenalty_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for frequency penalty will be used.
+       * 
+ * + * optional float frequency_penalty = 8; + * + * @return This builder for chaining. + */ + public Builder clearFrequencyPenalty() { + bitField0_ = (bitField0_ & ~0x00000020); + frequencyPenalty_ = 0F; + onChanged(); + return this; + } + + private float presencePenalty_; + /** + * + * + *
+       * If specified, custom value for presence penalty will be used.
+       * 
+ * + * optional float presence_penalty = 9; + * + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+       * If specified, custom value for presence penalty will be used.
+       * 
+ * + * optional float presence_penalty = 9; + * + * @return The presencePenalty. + */ + @java.lang.Override + public float getPresencePenalty() { + return presencePenalty_; + } + /** + * + * + *
+       * If specified, custom value for presence penalty will be used.
+       * 
+ * + * optional float presence_penalty = 9; + * + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(float value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for presence penalty will be used.
+       * 
+ * + * optional float presence_penalty = 9; + * + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000040); + presencePenalty_ = 0F; + onChanged(); + return this; + } + + private int maxOutputTokens_; + /** + * + * + *
+       * If specified, custom value for max output tokens will be used.
+       * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return Whether the maxOutputTokens field is set. + */ + @java.lang.Override + public boolean hasMaxOutputTokens() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+       * If specified, custom value for max output tokens will be used.
+       * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return The maxOutputTokens. + */ + @java.lang.Override + public int getMaxOutputTokens() { + return maxOutputTokens_; + } + /** + * + * + *
+       * If specified, custom value for max output tokens will be used.
+       * 
+ * + * optional int32 max_output_tokens = 10; + * + * @param value The maxOutputTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxOutputTokens(int value) { + + maxOutputTokens_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, custom value for max output tokens will be used.
+       * 
+ * + * optional int32 max_output_tokens = 10; + * + * @return This builder for chaining. + */ + public Builder clearMaxOutputTokens() { + bitField0_ = (bitField0_ & ~0x00000080); + maxOutputTokens_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerationSpec 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.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DynamicRetrievalConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return Whether the predictor field is set. + */ + boolean hasPredictor(); + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return The predictor. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration + .DynamicRetrievalPredictor + getPredictor(); + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration + .DynamicRetrievalPredictorOrBuilder + getPredictorOrBuilder(); + } + /** + * + * + *
+   * Describes the options to customize dynamic retrieval.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration} + */ + public static final class DynamicRetrievalConfiguration + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration) + DynamicRetrievalConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicRetrievalConfiguration.newBuilder() to construct. + private DynamicRetrievalConfiguration( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DynamicRetrievalConfiguration() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DynamicRetrievalConfiguration(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder.class); + } + + public interface DynamicRetrievalPredictorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The version of the predictor to be used in dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + /** + * + * + *
+       * The version of the predictor to be used in dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The version. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + getVersion(); + + /** + * + * + *
+       * The value of the threshold. If the predictor will predict a
+       * value smaller than this, it would suppress grounding in the source.
+       * 
+ * + * optional float threshold = 2; + * + * @return Whether the threshold field is set. + */ + boolean hasThreshold(); + /** + * + * + *
+       * The value of the threshold. If the predictor will predict a
+       * value smaller than this, it would suppress grounding in the source.
+       * 
+ * + * optional float threshold = 2; + * + * @return The threshold. + */ + float getThreshold(); + } + /** + * + * + *
+     * Describes the predictor settings for dynamic retrieval.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor} + */ + public static final class DynamicRetrievalPredictor + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + DynamicRetrievalPredictorOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicRetrievalPredictor.newBuilder() to construct. + private DynamicRetrievalPredictor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DynamicRetrievalPredictor() { + version_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DynamicRetrievalPredictor(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder.class); + } + + /** + * + * + *
+       * The version of the predictor to be used in dynamic retrieval.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version} + */ + public enum Version implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Automatically choose the best version of the retrieval predictor.
+         * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + VERSION_UNSPECIFIED(0), + /** + * + * + *
+         * The V1 model which is evaluating each source independently.
+         * 
+ * + * V1_INDEPENDENT = 1; + */ + V1_INDEPENDENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Automatically choose the best version of the retrieval predictor.
+         * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + public static final int VERSION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * The V1 model which is evaluating each source independently.
+         * 
+ * + * V1_INDEPENDENT = 1; + */ + public static final int V1_INDEPENDENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Version 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 Version forNumber(int value) { + switch (value) { + case 0: + return VERSION_UNSPECIFIED; + case 1: + return V1_INDEPENDENT; + 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 Version findValueByNumber(int number) { + return Version.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Version[] VALUES = values(); + + public static Version 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 Version(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + * + * + *
+       * The version of the predictor to be used in dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+       * The version of the predictor to be used in dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + getVersion() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.forNumber( + version_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.UNRECOGNIZED + : result; + } + + public static final int THRESHOLD_FIELD_NUMBER = 2; + private float threshold_ = 0F; + /** + * + * + *
+       * The value of the threshold. If the predictor will predict a
+       * value smaller than this, it would suppress grounding in the source.
+       * 
+ * + * optional float threshold = 2; + * + * @return Whether the threshold field is set. + */ + @java.lang.Override + public boolean hasThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The value of the threshold. If the predictor will predict a
+       * value smaller than this, it would suppress grounding in the source.
+       * 
+ * + * optional float threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public float getThreshold() { + return threshold_; + } + + 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 (version_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.VERSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, threshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, threshold_); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + obj; + + if (version_ != other.version_) return false; + if (hasThreshold() != other.hasThreshold()) return false; + if (hasThreshold()) { + if (java.lang.Float.floatToIntBits(getThreshold()) + != java.lang.Float.floatToIntBits(other.getThreshold())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + if (hasThreshold()) { + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getThreshold()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Describes the predictor settings for dynamic retrieval.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + threshold_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = threshold_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance()) + return this; + if (other.version_ != 0) { + setVersionValue(other.getVersionValue()); + } + if (other.hasThreshold()) { + setThreshold(other.getThreshold()); + } + 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: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + threshold_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int version_ = 0; + /** + * + * + *
+         * The version of the predictor to be used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+         * The version of the predictor to be used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The version of the predictor to be used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + getVersion() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.forNumber( + version_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * The version of the predictor to be used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * The version of the predictor to be used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + + private float threshold_; + /** + * + * + *
+         * The value of the threshold. If the predictor will predict a
+         * value smaller than this, it would suppress grounding in the source.
+         * 
+ * + * optional float threshold = 2; + * + * @return Whether the threshold field is set. + */ + @java.lang.Override + public boolean hasThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * The value of the threshold. If the predictor will predict a
+         * value smaller than this, it would suppress grounding in the source.
+         * 
+ * + * optional float threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public float getThreshold() { + return threshold_; + } + /** + * + * + *
+         * The value of the threshold. If the predictor will predict a
+         * value smaller than this, it would suppress grounding in the source.
+         * 
+ * + * optional float threshold = 2; + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(float value) { + + threshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The value of the threshold. If the predictor will predict a
+         * value smaller than this, it would suppress grounding in the source.
+         * 
+ * + * optional float threshold = 2; + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicRetrievalPredictor 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PREDICTOR_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + predictor_; + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return Whether the predictor field is set. + */ + @java.lang.Override + public boolean hasPredictor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return The predictor. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + getPredictor() { + return predictor_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance() + : predictor_; + } + /** + * + * + *
+     * Specification for the predictor for dynamic retrieval.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder + getPredictorOrBuilder() { + return predictor_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance() + : predictor_; + } + + 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, getPredictor()); + } + 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, getPredictor()); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration) + obj; + + if (hasPredictor() != other.hasPredictor()) return false; + if (hasPredictor()) { + if (!getPredictor().equals(other.getPredictor())) 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 (hasPredictor()) { + hash = (37 * hash) + PREDICTOR_FIELD_NUMBER; + hash = (53 * hash) + getPredictor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Describes the options to customize dynamic retrieval.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictor_ = null; + if (predictorBuilder_ != null) { + predictorBuilder_.dispose(); + predictorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictor_ = predictorBuilder_ == null ? predictor_ : predictorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance()) return this; + if (other.hasPredictor()) { + mergePredictor(other.getPredictor()); + } + 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(getPredictorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + predictor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder> + predictorBuilder_; + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return Whether the predictor field is set. + */ + public boolean hasPredictor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + * + * @return The predictor. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + getPredictor() { + if (predictorBuilder_ == null) { + return predictor_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance() + : predictor_; + } else { + return predictorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public Builder setPredictor( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + value) { + if (predictorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictor_ = value; + } else { + predictorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public Builder setPredictor( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder + builderForValue) { + if (predictorBuilder_ == null) { + predictor_ = builderForValue.build(); + } else { + predictorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public Builder mergePredictor( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + value) { + if (predictorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictor_ != null + && predictor_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor + .getDefaultInstance()) { + getPredictorBuilder().mergeFrom(value); + } else { + predictor_ = value; + } + } else { + predictorBuilder_.mergeFrom(value); + } + if (predictor_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public Builder clearPredictor() { + bitField0_ = (bitField0_ & ~0x00000001); + predictor_ = null; + if (predictorBuilder_ != null) { + predictorBuilder_.dispose(); + predictorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder + getPredictorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder + getPredictorOrBuilder() { + if (predictorBuilder_ != null) { + return predictorBuilder_.getMessageOrBuilder(); + } else { + return predictor_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.getDefaultInstance() + : predictor_; + } + } + /** + * + * + *
+       * Specification for the predictor for dynamic retrieval.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder> + getPredictorFieldBuilder() { + if (predictorBuilder_ == null) { + predictorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder>( + getPredictor(), getParentForChildren(), isClean()); + predictor_ = null; + } + return predictorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicRetrievalConfiguration 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GroundingSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource + getInlineSource(); + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return Whether the searchSource field is set. + */ + boolean hasSearchSource(); + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return The searchSource. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource + getSearchSource(); + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder + getSearchSourceOrBuilder(); + + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return Whether the googleSearchSource field is set. + */ + boolean hasGoogleSearchSource(); + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return The googleSearchSource. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getGoogleSearchSource(); + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder + getGoogleSearchSourceOrBuilder(); + + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SourceCase + getSourceCase(); + } + /** + * + * + *
+   * Grounding source.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource} + */ + public static final class GroundingSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + GroundingSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSource.newBuilder() to construct. + private GroundingSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + java.util.List getGroundingFactsList(); + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + com.google.cloud.discoveryengine.v1.GroundingFact getGroundingFacts(int index); + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + int getGroundingFactsCount(); + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + java.util.List + getGroundingFactsOrBuilderList(); + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder getGroundingFactsOrBuilder( + int index); + + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + int getAttributesCount(); + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAttributes(); + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + java.util.Map getAttributesMap(); + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + /* nullable */ + java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + java.lang.String getAttributesOrThrow(java.lang.String key); + } + /** + * + * + *
+     * Message to be used for grounding based on inline content.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + groundingFacts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder.class); + } + + public static final int GROUNDING_FACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List groundingFacts_; + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + @java.lang.Override + public java.util.List + getGroundingFactsList() { + return groundingFacts_; + } + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + @java.lang.Override + public java.util.List + getGroundingFactsOrBuilderList() { + return groundingFacts_; + } + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + @java.lang.Override + public int getGroundingFactsCount() { + return groundingFacts_.size(); + } + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundingFact getGroundingFacts(int index) { + return groundingFacts_.get(index); + } + /** + * + * + *
+       * List of facts to be used for grounding.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder getGroundingFactsOrBuilder( + int index) { + return groundingFacts_.get(index); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().getMap().containsKey(key); + } + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Attributes associated with the content.
+       *
+       * Common attributes include `source` (indicating where the content was
+       * sourced from) and `author` (indicating the author of the content).
+       * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < groundingFacts_.size(); i++) { + output.writeMessage(1, groundingFacts_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < groundingFacts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, groundingFacts_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry attributes__ = + AttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + obj; + + if (!getGroundingFactsList().equals(other.getGroundingFactsList())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) 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 (getGroundingFactsCount() > 0) { + hash = (37 * hash) + GROUNDING_FACTS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingFactsList().hashCode(); + } + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Message to be used for grounding based on inline content.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor + internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 2: + return internalGetMutableAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (groundingFactsBuilder_ == null) { + groundingFacts_ = java.util.Collections.emptyList(); + } else { + groundingFacts_ = null; + groundingFactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + result) { + if (groundingFactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + groundingFacts_ = java.util.Collections.unmodifiableList(groundingFacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groundingFacts_ = groundingFacts_; + } else { + result.groundingFacts_ = groundingFactsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance()) return this; + if (groundingFactsBuilder_ == null) { + if (!other.groundingFacts_.isEmpty()) { + if (groundingFacts_.isEmpty()) { + groundingFacts_ = other.groundingFacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroundingFactsIsMutable(); + groundingFacts_.addAll(other.groundingFacts_); + } + onChanged(); + } + } else { + if (!other.groundingFacts_.isEmpty()) { + if (groundingFactsBuilder_.isEmpty()) { + groundingFactsBuilder_.dispose(); + groundingFactsBuilder_ = null; + groundingFacts_ = other.groundingFacts_; + bitField0_ = (bitField0_ & ~0x00000001); + groundingFactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingFactsFieldBuilder() + : null; + } else { + groundingFactsBuilder_.addAllMessages(other.groundingFacts_); + } + } + } + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.GroundingFact m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GroundingFact.parser(), + extensionRegistry); + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + groundingFacts_.add(m); + } else { + groundingFactsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .getMutableMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List groundingFacts_ = + java.util.Collections.emptyList(); + + private void ensureGroundingFactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + groundingFacts_ = + new java.util.ArrayList( + groundingFacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundingFact, + com.google.cloud.discoveryengine.v1.GroundingFact.Builder, + com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder> + groundingFactsBuilder_; + + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public java.util.List + getGroundingFactsList() { + if (groundingFactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingFacts_); + } else { + return groundingFactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public int getGroundingFactsCount() { + if (groundingFactsBuilder_ == null) { + return groundingFacts_.size(); + } else { + return groundingFactsBuilder_.getCount(); + } + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public com.google.cloud.discoveryengine.v1.GroundingFact getGroundingFacts(int index) { + if (groundingFactsBuilder_ == null) { + return groundingFacts_.get(index); + } else { + return groundingFactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder setGroundingFacts( + int index, com.google.cloud.discoveryengine.v1.GroundingFact value) { + if (groundingFactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingFactsIsMutable(); + groundingFacts_.set(index, value); + onChanged(); + } else { + groundingFactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder setGroundingFacts( + int index, com.google.cloud.discoveryengine.v1.GroundingFact.Builder builderForValue) { + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + groundingFacts_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingFactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder addGroundingFacts(com.google.cloud.discoveryengine.v1.GroundingFact value) { + if (groundingFactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingFactsIsMutable(); + groundingFacts_.add(value); + onChanged(); + } else { + groundingFactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder addGroundingFacts( + int index, com.google.cloud.discoveryengine.v1.GroundingFact value) { + if (groundingFactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingFactsIsMutable(); + groundingFacts_.add(index, value); + onChanged(); + } else { + groundingFactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder addGroundingFacts( + com.google.cloud.discoveryengine.v1.GroundingFact.Builder builderForValue) { + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + groundingFacts_.add(builderForValue.build()); + onChanged(); + } else { + groundingFactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder addGroundingFacts( + int index, com.google.cloud.discoveryengine.v1.GroundingFact.Builder builderForValue) { + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + groundingFacts_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingFactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder addAllGroundingFacts( + java.lang.Iterable + values) { + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingFacts_); + onChanged(); + } else { + groundingFactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder clearGroundingFacts() { + if (groundingFactsBuilder_ == null) { + groundingFacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groundingFactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public Builder removeGroundingFacts(int index) { + if (groundingFactsBuilder_ == null) { + ensureGroundingFactsIsMutable(); + groundingFacts_.remove(index); + onChanged(); + } else { + groundingFactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public com.google.cloud.discoveryengine.v1.GroundingFact.Builder getGroundingFactsBuilder( + int index) { + return getGroundingFactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder + getGroundingFactsOrBuilder(int index) { + if (groundingFactsBuilder_ == null) { + return groundingFacts_.get(index); + } else { + return groundingFactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public java.util.List + getGroundingFactsOrBuilderList() { + if (groundingFactsBuilder_ != null) { + return groundingFactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingFacts_); + } + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public com.google.cloud.discoveryengine.v1.GroundingFact.Builder + addGroundingFactsBuilder() { + return getGroundingFactsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.GroundingFact.getDefaultInstance()); + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public com.google.cloud.discoveryengine.v1.GroundingFact.Builder addGroundingFactsBuilder( + int index) { + return getGroundingFactsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.GroundingFact.getDefaultInstance()); + } + /** + * + * + *
+         * List of facts to be used for grounding.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; + */ + public java.util.List + getGroundingFactsBuilderList() { + return getGroundingFactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundingFact, + com.google.cloud.discoveryengine.v1.GroundingFact.Builder, + com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder> + getGroundingFactsFieldBuilder() { + if (groundingFactsBuilder_ == null) { + groundingFactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundingFact, + com.google.cloud.discoveryengine.v1.GroundingFact.Builder, + com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder>( + groundingFacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + groundingFacts_ = null; + } + return groundingFactsBuilder_; + } + + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + private com.google.protobuf.MapField + internalGetMutableAttributes() { + if (attributes_ == null) { + attributes_ = + com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().getMap().containsKey(key); + } + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000002; + return internalGetMutableAttributes().getMutableMap(); + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + public Builder putAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+         * Attributes associated with the content.
+         *
+         * Common attributes include `source` (indicating where the content was
+         * sourced from) and `author` (indicating the author of the content).
+         * 
+ * + * map<string, string> attributes = 2; + */ + public Builder putAllAttributes(java.util.Map values) { + internalGetMutableAttributes().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The resource name of the Engine to use.
+       *
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+       * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The servingConfig. + */ + java.lang.String getServingConfig(); + /** + * + * + *
+       * The resource name of the Engine to use.
+       *
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+       * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for servingConfig. + */ + com.google.protobuf.ByteString getServingConfigBytes(); + + /** + * + * + *
+       * Number of search results to return.
+       *
+       * The default value is 10. The maximumm allowed value is 10.
+       * 
+ * + * int32 max_result_count = 2; + * + * @return The maxResultCount. + */ + int getMaxResultCount(); + + /** + * + * + *
+       * Filter expression to be applied to the search.
+       *
+       * The syntax is the same as
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+       * 
+ * + * string filter = 3; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+       * Filter expression to be applied to the search.
+       *
+       * The syntax is the same as
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+       * 
+ * + * string filter = 3; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+       * If set, safe search is enabled in Vertex AI Search requests.
+       * 
+ * + * bool safe_search = 5; + * + * @return The safeSearch. + */ + boolean getSafeSearch(); + } + /** + * + * + *
+     * Message to be used for grounding with Vertex AI Search.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource} + */ + public static final class SearchSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource) + SearchSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchSource.newBuilder() to construct. + private SearchSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchSource() { + servingConfig_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder.class); + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + /** + * + * + *
+       * The resource name of the Engine to use.
+       *
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+       * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The servingConfig. + */ + @java.lang.Override + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + 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(); + servingConfig_ = s; + return s; + } + } + /** + * + * + *
+       * The resource name of the Engine to use.
+       *
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+       * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for servingConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_RESULT_COUNT_FIELD_NUMBER = 2; + private int maxResultCount_ = 0; + /** + * + * + *
+       * Number of search results to return.
+       *
+       * The default value is 10. The maximumm allowed value is 10.
+       * 
+ * + * int32 max_result_count = 2; + * + * @return The maxResultCount. + */ + @java.lang.Override + public int getMaxResultCount() { + return maxResultCount_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+       * Filter expression to be applied to the search.
+       *
+       * The syntax is the same as
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+       * 
+ * + * string filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+       * Filter expression to be applied to the search.
+       *
+       * The syntax is the same as
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+       * 
+ * + * string filter = 3; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFE_SEARCH_FIELD_NUMBER = 5; + private boolean safeSearch_ = false; + /** + * + * + *
+       * If set, safe search is enabled in Vertex AI Search requests.
+       * 
+ * + * bool safe_search = 5; + * + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_); + } + if (maxResultCount_ != 0) { + output.writeInt32(2, maxResultCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + if (safeSearch_ != false) { + output.writeBool(5, safeSearch_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, servingConfig_); + } + if (maxResultCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResultCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + if (safeSearch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, safeSearch_); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + obj; + + if (!getServingConfig().equals(other.getServingConfig())) return false; + if (getMaxResultCount() != other.getMaxResultCount()) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getSafeSearch() != other.getSafeSearch()) 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) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + hash = (37 * hash) + MAX_RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxResultCount(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Message to be used for grounding with Vertex AI Search.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + servingConfig_ = ""; + maxResultCount_ = 0; + filter_ = ""; + safeSearch_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = servingConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResultCount_ = maxResultCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.safeSearch_ = safeSearch_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance()) return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxResultCount() != 0) { + setMaxResultCount(other.getMaxResultCount()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getSafeSearch() != false) { + setSafeSearch(other.getSafeSearch()); + } + 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: + { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxResultCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 40: + { + safeSearch_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object servingConfig_ = ""; + /** + * + * + *
+         * The resource name of the Engine to use.
+         *
+         * Format:
+         * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+         * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The resource name of the Engine to use.
+         *
+         * Format:
+         * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+         * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The resource name of the Engine to use.
+         *
+         * Format:
+         * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+         * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The resource name of the Engine to use.
+         *
+         * Format:
+         * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+         * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The resource name of the Engine to use.
+         *
+         * Format:
+         * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
+         * 
+ * + * string serving_config = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResultCount_; + /** + * + * + *
+         * Number of search results to return.
+         *
+         * The default value is 10. The maximumm allowed value is 10.
+         * 
+ * + * int32 max_result_count = 2; + * + * @return The maxResultCount. + */ + @java.lang.Override + public int getMaxResultCount() { + return maxResultCount_; + } + /** + * + * + *
+         * Number of search results to return.
+         *
+         * The default value is 10. The maximumm allowed value is 10.
+         * 
+ * + * int32 max_result_count = 2; + * + * @param value The maxResultCount to set. + * @return This builder for chaining. + */ + public Builder setMaxResultCount(int value) { + + maxResultCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Number of search results to return.
+         *
+         * The default value is 10. The maximumm allowed value is 10.
+         * 
+ * + * int32 max_result_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxResultCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResultCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+         * Filter expression to be applied to the search.
+         *
+         * The syntax is the same as
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+         * 
+ * + * string filter = 3; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Filter expression to be applied to the search.
+         *
+         * The syntax is the same as
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+         * 
+ * + * string filter = 3; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Filter expression to be applied to the search.
+         *
+         * The syntax is the same as
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+         * 
+ * + * string filter = 3; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Filter expression to be applied to the search.
+         *
+         * The syntax is the same as
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+         * 
+ * + * string filter = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+         * Filter expression to be applied to the search.
+         *
+         * The syntax is the same as
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
+         * 
+ * + * string filter = 3; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean safeSearch_; + /** + * + * + *
+         * If set, safe search is enabled in Vertex AI Search requests.
+         * 
+ * + * bool safe_search = 5; + * + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + /** + * + * + *
+         * If set, safe search is enabled in Vertex AI Search requests.
+         * 
+ * + * bool safe_search = 5; + * + * @param value The safeSearch to set. + * @return This builder for chaining. + */ + public Builder setSafeSearch(boolean value) { + + safeSearch_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * If set, safe search is enabled in Vertex AI Search requests.
+         * 
+ * + * bool safe_search = 5; + * + * @return This builder for chaining. + */ + public Builder clearSafeSearch() { + bitField0_ = (bitField0_ & ~0x00000008); + safeSearch_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSource 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GoogleSearchSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dynamicRetrievalConfig field is set. + */ + boolean hasDynamicRetrievalConfig(); + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dynamicRetrievalConfig. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDynamicRetrievalConfig(); + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder + getDynamicRetrievalConfigOrBuilder(); + } + /** + * + * + *
+     * Google Search config parameters.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource} + */ + public static final class GoogleSearchSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + GoogleSearchSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleSearchSource.newBuilder() to construct. + private GoogleSearchSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleSearchSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleSearchSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder.class); + } + + private int bitField0_; + public static final int DYNAMIC_RETRIEVAL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + dynamicRetrievalConfig_; + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dynamicRetrievalConfig field is set. + */ + @java.lang.Override + public boolean hasDynamicRetrievalConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dynamicRetrievalConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDynamicRetrievalConfig() { + return dynamicRetrievalConfig_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance() + : dynamicRetrievalConfig_; + } + /** + * + * + *
+       * Optional. Specifies the dynamic retrieval configuration for the given
+       * source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder + getDynamicRetrievalConfigOrBuilder() { + return dynamicRetrievalConfig_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance() + : dynamicRetrievalConfig_; + } + + 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, getDynamicRetrievalConfig()); + } + 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, getDynamicRetrievalConfig()); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + obj; + + if (hasDynamicRetrievalConfig() != other.hasDynamicRetrievalConfig()) return false; + if (hasDynamicRetrievalConfig()) { + if (!getDynamicRetrievalConfig().equals(other.getDynamicRetrievalConfig())) 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 (hasDynamicRetrievalConfig()) { + hash = (37 * hash) + DYNAMIC_RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDynamicRetrievalConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + 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.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Google Search config parameters.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDynamicRetrievalConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dynamicRetrievalConfig_ = null; + if (dynamicRetrievalConfigBuilder_ != null) { + dynamicRetrievalConfigBuilder_.dispose(); + dynamicRetrievalConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dynamicRetrievalConfig_ = + dynamicRetrievalConfigBuilder_ == null + ? dynamicRetrievalConfig_ + : dynamicRetrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance()) return this; + if (other.hasDynamicRetrievalConfig()) { + mergeDynamicRetrievalConfig(other.getDynamicRetrievalConfig()); + } + 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( + getDynamicRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + dynamicRetrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder> + dynamicRetrievalConfigBuilder_; + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dynamicRetrievalConfig field is set. + */ + public boolean hasDynamicRetrievalConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dynamicRetrievalConfig. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + getDynamicRetrievalConfig() { + if (dynamicRetrievalConfigBuilder_ == null) { + return dynamicRetrievalConfig_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance() + : dynamicRetrievalConfig_; + } else { + return dynamicRetrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDynamicRetrievalConfig( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + value) { + if (dynamicRetrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dynamicRetrievalConfig_ = value; + } else { + dynamicRetrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDynamicRetrievalConfig( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder + builderForValue) { + if (dynamicRetrievalConfigBuilder_ == null) { + dynamicRetrievalConfig_ = builderForValue.build(); + } else { + dynamicRetrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDynamicRetrievalConfig( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration + value) { + if (dynamicRetrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dynamicRetrievalConfig_ != null + && dynamicRetrievalConfig_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance()) { + getDynamicRetrievalConfigBuilder().mergeFrom(value); + } else { + dynamicRetrievalConfig_ = value; + } + } else { + dynamicRetrievalConfigBuilder_.mergeFrom(value); + } + if (dynamicRetrievalConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDynamicRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + dynamicRetrievalConfig_ = null; + if (dynamicRetrievalConfigBuilder_ != null) { + dynamicRetrievalConfigBuilder_.dispose(); + dynamicRetrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder + getDynamicRetrievalConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDynamicRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder + getDynamicRetrievalConfigOrBuilder() { + if (dynamicRetrievalConfigBuilder_ != null) { + return dynamicRetrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return dynamicRetrievalConfig_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.getDefaultInstance() + : dynamicRetrievalConfig_; + } + } + /** + * + * + *
+         * Optional. Specifies the dynamic retrieval configuration for the given
+         * source.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder> + getDynamicRetrievalConfigFieldBuilder() { + if (dynamicRetrievalConfigBuilder_ == null) { + dynamicRetrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfiguration.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .DynamicRetrievalConfigurationOrBuilder>( + getDynamicRetrievalConfig(), getParentForChildren(), isClean()); + dynamicRetrievalConfig_ = null; + } + return dynamicRetrievalConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSearchSource 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(1), + SEARCH_SOURCE(2), + GOOGLE_SEARCH_SOURCE(3), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return INLINE_SOURCE; + case 2: + return SEARCH_SOURCE; + case 3: + return GOOGLE_SEARCH_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 1; + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 1; + } + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + getInlineSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + /** + * + * + *
+     * If set, grounding is performed with inline content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + + public static final int SEARCH_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return Whether the searchSource field is set. + */ + @java.lang.Override + public boolean hasSearchSource() { + return sourceCase_ == 2; + } + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return The searchSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + getSearchSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + /** + * + * + *
+     * If set, grounding is performed with Vertex AI Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder + getSearchSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + + public static final int GOOGLE_SEARCH_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return Whether the googleSearchSource field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchSource() { + return sourceCase_ == 3; + } + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return The googleSearchSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getGoogleSearchSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + /** + * + * + *
+     * If set, grounding is performed with Google Search.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder + getGoogleSearchSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + source_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + source_); + } + if (sourceCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource) + source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource) + source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource) + source_); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getInlineSource().equals(other.getInlineSource())) return false; + break; + case 2: + if (!getSearchSource().equals(other.getSearchSource())) return false; + break; + case 3: + if (!getGoogleSearchSource().equals(other.getGoogleSearchSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 2: + hash = (37 * hash) + SEARCH_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSearchSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GOOGLE_SEARCH_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSearchSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Grounding source.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (searchSourceBuilder_ != null) { + searchSourceBuilder_.clear(); + } + if (googleSearchSourceBuilder_ != null) { + googleSearchSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 2 && searchSourceBuilder_ != null) { + result.source_ = searchSourceBuilder_.build(); + } + if (sourceCase_ == 3 && googleSearchSourceBuilder_ != null) { + result.source_ = googleSearchSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + break; + } + case SEARCH_SOURCE: + { + mergeSearchSource(other.getSearchSource()); + break; + } + case GOOGLE_SEARCH_SOURCE: + { + mergeGoogleSearchSource(other.getGoogleSearchSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getSearchSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getGoogleSearchSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder> + inlineSourceBuilder_; + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 1; + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.newBuilder( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder + getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 1) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with inline content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder> + searchSourceBuilder_; + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return Whether the searchSource field is set. + */ + @java.lang.Override + public boolean hasSearchSource() { + return sourceCase_ == 2; + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + * + * @return The searchSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + getSearchSource() { + if (searchSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return searchSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + public Builder setSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + value) { + if (searchSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + searchSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + public Builder setSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder + builderForValue) { + if (searchSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + searchSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + public Builder mergeSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource + value) { + if (searchSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.newBuilder( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + searchSourceBuilder_.mergeFrom(value); + } else { + searchSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + public Builder clearSearchSource() { + if (searchSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + searchSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder + getSearchSourceBuilder() { + return getSearchSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder + getSearchSourceOrBuilder() { + if ((sourceCase_ == 2) && (searchSourceBuilder_ != null)) { + return searchSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with Vertex AI Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder> + getSearchSourceFieldBuilder() { + if (searchSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + searchSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return searchSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder> + googleSearchSourceBuilder_; + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return Whether the googleSearchSource field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchSource() { + return sourceCase_ == 3; + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return The googleSearchSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getGoogleSearchSource() { + if (googleSearchSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return googleSearchSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + public Builder setGoogleSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + value) { + if (googleSearchSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + googleSearchSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + public Builder setGoogleSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder + builderForValue) { + if (googleSearchSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + googleSearchSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + public Builder mergeGoogleSearchSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + value) { + if (googleSearchSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.newBuilder( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + googleSearchSourceBuilder_.mergeFrom(value); + } else { + googleSearchSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + public Builder clearGoogleSearchSource() { + if (googleSearchSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + googleSearchSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder + getGoogleSearchSourceBuilder() { + return getGoogleSearchSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder + getGoogleSearchSourceOrBuilder() { + if ((sourceCase_ == 3) && (googleSearchSourceBuilder_ != null)) { + return googleSearchSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * If set, grounding is performed with Google Search.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder> + getGoogleSearchSourceFieldBuilder() { + if (googleSearchSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.getDefaultInstance(); + } + googleSearchSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return googleSearchSourceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSource 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GroundingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource> + getGroundingSourcesList(); + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getGroundingSources(int index); + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + int getGroundingSourcesCount(); + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder> + getGroundingSourcesOrBuilderList(); + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSourceOrBuilder + getGroundingSourcesOrBuilder(int index); + } + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec} + */ + public static final class GroundingSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + GroundingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSpec.newBuilder() to construct. + private GroundingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSpec() { + groundingSources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .Builder.class); + } + + public static final int GROUNDING_SOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource> + groundingSources_; + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource> + getGroundingSourcesList() { + return groundingSources_; + } + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder> + getGroundingSourcesOrBuilderList() { + return groundingSources_; + } + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + @java.lang.Override + public int getGroundingSourcesCount() { + return groundingSources_.size(); + } + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getGroundingSources(int index) { + return groundingSources_.get(index); + } + /** + * + * + *
+     * Grounding sources.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder + getGroundingSourcesOrBuilder(int index) { + return groundingSources_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < groundingSources_.size(); i++) { + output.writeMessage(1, groundingSources_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < groundingSources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, groundingSources_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) obj; + + if (!getGroundingSourcesList().equals(other.getGroundingSourcesList())) 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 (getGroundingSourcesCount() > 0) { + hash = (37 * hash) + GROUNDING_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (groundingSourcesBuilder_ == null) { + groundingSources_ = java.util.Collections.emptyList(); + } else { + groundingSources_ = null; + groundingSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec result) { + if (groundingSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + groundingSources_ = java.util.Collections.unmodifiableList(groundingSources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groundingSources_ = groundingSources_; + } else { + result.groundingSources_ = groundingSourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance()) return this; + if (groundingSourcesBuilder_ == null) { + if (!other.groundingSources_.isEmpty()) { + if (groundingSources_.isEmpty()) { + groundingSources_ = other.groundingSources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroundingSourcesIsMutable(); + groundingSources_.addAll(other.groundingSources_); + } + onChanged(); + } + } else { + if (!other.groundingSources_.isEmpty()) { + if (groundingSourcesBuilder_.isEmpty()) { + groundingSourcesBuilder_.dispose(); + groundingSourcesBuilder_ = null; + groundingSources_ = other.groundingSources_; + bitField0_ = (bitField0_ & ~0x00000001); + groundingSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingSourcesFieldBuilder() + : null; + } else { + groundingSourcesBuilder_.addAllMessages(other.groundingSources_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.parser(), + extensionRegistry); + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + groundingSources_.add(m); + } else { + groundingSourcesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource> + groundingSources_ = java.util.Collections.emptyList(); + + private void ensureGroundingSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + groundingSources_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource>(groundingSources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder> + groundingSourcesBuilder_; + + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource> + getGroundingSourcesList() { + if (groundingSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSources_); + } else { + return groundingSourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public int getGroundingSourcesCount() { + if (groundingSourcesBuilder_ == null) { + return groundingSources_.size(); + } else { + return groundingSourcesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + getGroundingSources(int index) { + if (groundingSourcesBuilder_ == null) { + return groundingSources_.get(index); + } else { + return groundingSourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder setGroundingSources( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + value) { + if (groundingSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSourcesIsMutable(); + groundingSources_.set(index, value); + onChanged(); + } else { + groundingSourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder setGroundingSources( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.Builder + builderForValue) { + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + groundingSources_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder addGroundingSources( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + value) { + if (groundingSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSourcesIsMutable(); + groundingSources_.add(value); + onChanged(); + } else { + groundingSourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder addGroundingSources( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + value) { + if (groundingSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSourcesIsMutable(); + groundingSources_.add(index, value); + onChanged(); + } else { + groundingSourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder addGroundingSources( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.Builder + builderForValue) { + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + groundingSources_.add(builderForValue.build()); + onChanged(); + } else { + groundingSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder addGroundingSources( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.Builder + builderForValue) { + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + groundingSources_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder addAllGroundingSources( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource> + values) { + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSources_); + onChanged(); + } else { + groundingSourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder clearGroundingSources() { + if (groundingSourcesBuilder_ == null) { + groundingSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groundingSourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public Builder removeGroundingSources(int index) { + if (groundingSourcesBuilder_ == null) { + ensureGroundingSourcesIsMutable(); + groundingSources_.remove(index); + onChanged(); + } else { + groundingSourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder + getGroundingSourcesBuilder(int index) { + return getGroundingSourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder + getGroundingSourcesOrBuilder(int index) { + if (groundingSourcesBuilder_ == null) { + return groundingSources_.get(index); + } else { + return groundingSourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder> + getGroundingSourcesOrBuilderList() { + if (groundingSourcesBuilder_ != null) { + return groundingSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSources_); + } + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder + addGroundingSourcesBuilder() { + return getGroundingSourcesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .getDefaultInstance()); + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder + addGroundingSourcesBuilder(int index) { + return getGroundingSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .getDefaultInstance()); + } + /** + * + * + *
+       * Grounding sources.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder> + getGroundingSourcesBuilderList() { + return getGroundingSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder> + getGroundingSourcesFieldBuilder() { + if (groundingSourcesBuilder_ == null) { + groundingSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSourceOrBuilder>( + groundingSources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + groundingSources_ = null; + } + return groundingSourcesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSpec 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.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
+   * Required. Location resource.
+   *
+   * Format: `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Location resource.
+   *
+   * Format: `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1.GroundedGenerationContent systemInstruction_; + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * @return The systemInstruction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getSystemInstruction() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : systemInstruction_; + } + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getSystemInstructionOrBuilder() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : systemInstruction_; + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List contents_; + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + @java.lang.Override + public java.util.List + getContentsList() { + return contents_; + } + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + getContentsOrBuilderList() { + return contents_; + } + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContents(int index) { + return contents_.get(index); + } + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int GENERATION_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + generationSpec_; + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return Whether the generationSpec field is set. + */ + @java.lang.Override + public boolean hasGenerationSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return The generationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getGenerationSpec() { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpecOrBuilder + getGenerationSpecOrBuilder() { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + + public static final int GROUNDING_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + groundingSpec_; + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return Whether the groundingSpec field is set. + */ + @java.lang.Override + public boolean hasGroundingSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return The groundingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getGroundingSpec() { + return groundingSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance() + : groundingSpec_; + } + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpecOrBuilder + getGroundingSpecOrBuilder() { + return groundingSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance() + : groundingSpec_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 6; + + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGroundingSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getSystemInstruction()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 6); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGroundingSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSystemInstruction()); + } + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, userLabels__); + } + 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.discoveryengine.v1.GenerateGroundedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } + if (!getContentsList().equals(other.getContentsList())) return false; + if (hasGenerationSpec() != other.hasGenerationSpec()) return false; + if (hasGenerationSpec()) { + if (!getGenerationSpec().equals(other.getGenerationSpec())) return false; + } + if (hasGroundingSpec() != other.hasGroundingSpec()) return false; + if (hasGroundingSpec()) { + if (!getGroundingSpec().equals(other.getGroundingSpec())) return false; + } + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (hasGenerationSpec()) { + hash = (37 * hash) + GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getGenerationSpec().hashCode(); + } + if (hasGroundingSpec()) { + hash = (37 * hash) + GROUNDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSpec().hashCode(); + } + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest 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.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest 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.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Top-level message sent by the client for the `GenerateGroundedContent`
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GenerateGroundedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSystemInstructionFieldBuilder(); + getContentsFieldBuilder(); + getGenerationSpecFieldBuilder(); + getGroundingSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + generationSpec_ = null; + if (generationSpecBuilder_ != null) { + generationSpecBuilder_.dispose(); + generationSpecBuilder_ = null; + } + groundingSpec_ = null; + if (groundingSpecBuilder_ != null) { + groundingSpecBuilder_.dispose(); + groundingSpecBuilder_ = null; + } + internalGetMutableUserLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.systemInstruction_ = + systemInstructionBuilder_ == null + ? systemInstruction_ + : systemInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationSpec_ = + generationSpecBuilder_ == null ? generationSpec_ : generationSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.groundingSpec_ = + groundingSpecBuilder_ == null ? groundingSpec_ : groundingSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSystemInstruction()) { + mergeSystemInstruction(other.getSystemInstruction()); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + contentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (other.hasGenerationSpec()) { + mergeGenerationSpec(other.getGenerationSpec()); + } + if (other.hasGroundingSpec()) { + mergeGroundingSpec(other.getGroundingSpec()); + } + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x00000020; + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.parser(), + extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(getGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(getGroundingSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getSystemInstructionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * Required. Location resource.
+     *
+     * Format: `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Location resource.
+     *
+     * Format: `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Location resource.
+     *
+     * Format: `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Location resource.
+     *
+     * Format: `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Location resource.
+     *
+     * Format: `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GroundedGenerationContent systemInstruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + systemInstructionBuilder_; + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * + * @return The systemInstruction. + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public Builder mergeSystemInstruction( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && systemInstruction_ != null + && systemInstruction_ + != com.google.cloud.discoveryengine.v1.GroundedGenerationContent + .getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000002); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder + getSystemInstructionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSystemInstructionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : systemInstruction_; + } + } + /** + * + * + *
+     * Content of the system instruction for the current API.
+     *
+     * These instructions will take priority over any other prompt instructions
+     * if the selected model is supporting them.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + getSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.util.List + contents_ = java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + contents_ = + new java.util.ArrayList( + contents_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public java.util.List + getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder setContents( + int index, com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder setContents( + int index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder addContents( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder addContents( + int index, com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder addContents( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder addContents( + int index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder addAllContents( + java.lang.Iterable + values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder getContentsBuilder( + int index) { + return getContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder + addContentsBuilder() { + return getContentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance()); + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder addContentsBuilder( + int index) { + return getContentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance()); + } + /** + * + * + *
+     * Content of the current conversation with the model.
+     *
+     * For single-turn queries, this is a single instance. For multi-turn queries,
+     * this is a repeated field that contains conversation history + latest
+     * request.
+     *
+     * Only a single-turn query is supported currently.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + * + */ + public java.util.List + getContentsBuilderList() { + return getContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder>( + contents_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + generationSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GenerationSpecOrBuilder> + generationSpecBuilder_; + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return Whether the generationSpec field is set. + */ + public boolean hasGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return The generationSpec. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getGenerationSpec() { + if (generationSpecBuilder_ == null) { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } else { + return generationSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public Builder setGenerationSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec value) { + if (generationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationSpec_ = value; + } else { + generationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public Builder setGenerationSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.Builder + builderForValue) { + if (generationSpecBuilder_ == null) { + generationSpec_ = builderForValue.build(); + } else { + generationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public Builder mergeGenerationSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec value) { + if (generationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationSpec_ != null + && generationSpec_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance()) { + getGenerationSpecBuilder().mergeFrom(value); + } else { + generationSpec_ = value; + } + } else { + generationSpecBuilder_.mergeFrom(value); + } + if (generationSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public Builder clearGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + generationSpec_ = null; + if (generationSpecBuilder_ != null) { + generationSpecBuilder_.dispose(); + generationSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.Builder + getGenerationSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGenerationSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GenerationSpecOrBuilder + getGenerationSpecOrBuilder() { + if (generationSpecBuilder_ != null) { + return generationSpecBuilder_.getMessageOrBuilder(); + } else { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + } + /** + * + * + *
+     * Content generation specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GenerationSpecOrBuilder> + getGenerationSpecFieldBuilder() { + if (generationSpecBuilder_ == null) { + generationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GenerationSpecOrBuilder>( + getGenerationSpec(), getParentForChildren(), isClean()); + generationSpec_ = null; + } + return generationSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + groundingSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSpecOrBuilder> + groundingSpecBuilder_; + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return Whether the groundingSpec field is set. + */ + public boolean hasGroundingSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return The groundingSpec. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getGroundingSpec() { + if (groundingSpecBuilder_ == null) { + return groundingSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance() + : groundingSpec_; + } else { + return groundingSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public Builder setGroundingSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec value) { + if (groundingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingSpec_ = value; + } else { + groundingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public Builder setGroundingSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec.Builder + builderForValue) { + if (groundingSpecBuilder_ == null) { + groundingSpec_ = builderForValue.build(); + } else { + groundingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public Builder mergeGroundingSpec( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec value) { + if (groundingSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && groundingSpec_ != null + && groundingSpec_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance()) { + getGroundingSpecBuilder().mergeFrom(value); + } else { + groundingSpec_ = value; + } + } else { + groundingSpecBuilder_.mergeFrom(value); + } + if (groundingSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public Builder clearGroundingSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + groundingSpec_ = null; + if (groundingSpecBuilder_ != null) { + groundingSpecBuilder_.dispose(); + groundingSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec.Builder + getGroundingSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGroundingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpecOrBuilder + getGroundingSpecOrBuilder() { + if (groundingSpecBuilder_ != null) { + return groundingSpecBuilder_.getMessageOrBuilder(); + } else { + return groundingSpec_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .getDefaultInstance() + : groundingSpec_; + } + } + /** + * + * + *
+     * Grounding specification.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSpecOrBuilder> + getGroundingSpecFieldBuilder() { + if (groundingSpecBuilder_ == null) { + groundingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSpecOrBuilder>(getGroundingSpec(), getParentForChildren(), isClean()); + groundingSpec_ = null; + } + return groundingSpecBuilder_; + } + + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableUserLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableUserLabels().getMutableMap(); + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + public Builder putUserLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + * + * + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 6; + */ + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateGroundedContentRequest 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.discoveryengine.v1.GenerateGroundedContentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequestOrBuilder.java new file mode 100644 index 000000000000..1fedd5063146 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequestOrBuilder.java @@ -0,0 +1,411 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +public interface GenerateGroundedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Location resource.
+   *
+   * Format: `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. Location resource.
+   *
+   * Format: `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + * + * @return The systemInstruction. + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContent getSystemInstruction(); + /** + * + * + *
+   * Content of the system instruction for the current API.
+   *
+   * These instructions will take priority over any other prompt instructions
+   * if the selected model is supporting them.
+   * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getSystemInstructionOrBuilder(); + + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + java.util.List getContentsList(); + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContents(int index); + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + int getContentsCount(); + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + java.util.List + getContentsOrBuilderList(); + /** + * + * + *
+   * Content of the current conversation with the model.
+   *
+   * For single-turn queries, this is a single instance. For multi-turn queries,
+   * this is a repeated field that contains conversation history + latest
+   * request.
+   *
+   * Only a single-turn query is supported currently.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder getContentsOrBuilder( + int index); + + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return Whether the generationSpec field is set. + */ + boolean hasGenerationSpec(); + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + * + * @return The generationSpec. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + getGenerationSpec(); + /** + * + * + *
+   * Content generation specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpecOrBuilder + getGenerationSpecOrBuilder(); + + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return Whether the groundingSpec field is set. + */ + boolean hasGroundingSpec(); + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + * + * @return The groundingSpec. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec + getGroundingSpec(); + /** + * + * + *
+   * Grounding specification.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpecOrBuilder + getGroundingSpecOrBuilder(); + + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + int getUserLabelsCount(); + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + boolean containsUserLabels(java.lang.String key); + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + java.util.Map getUserLabelsMap(); + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 6; + */ + java.lang.String getUserLabelsOrThrow(java.lang.String key); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java new file mode 100644 index 000000000000..8af217b722b5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java @@ -0,0 +1,11132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +/** Protobuf type {@code google.cloud.discoveryengine.v1.GenerateGroundedContentResponse} */ +public final class GenerateGroundedContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) + GenerateGroundedContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateGroundedContentResponse.newBuilder() to construct. + private GenerateGroundedContentResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateGroundedContentResponse() { + candidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateGroundedContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Builder.class); + } + + public interface CandidateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Index of the candidate.
+     * 
+ * + * int32 index = 1; + * + * @return The index. + */ + int getIndex(); + + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return The content. + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContent(); + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+     * The overall grounding score for the candidate, in the range of [0, 1].
+     * 
+ * + * optional float grounding_score = 3; + * + * @return Whether the groundingScore field is set. + */ + boolean hasGroundingScore(); + /** + * + * + *
+     * The overall grounding score for the candidate, in the range of [0, 1].
+     * 
+ * + * optional float grounding_score = 3; + * + * @return The groundingScore. + */ + float getGroundingScore(); + + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return Whether the groundingMetadata field is set. + */ + boolean hasGroundingMetadata(); + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return The groundingMetadata. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata + getGroundingMetadata(); + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder + getGroundingMetadataOrBuilder(); + } + /** + * + * + *
+   * A response candidate generated from the model.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate} + */ + public static final class Candidate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + CandidateOrBuilder { + private static final long serialVersionUID = 0L; + // Use Candidate.newBuilder() to construct. + private Candidate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Candidate() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Candidate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + .class); + } + + public interface GroundingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + getRetrievalMetadataList(); + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getRetrievalMetadata(int index); + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + int getRetrievalMetadataCount(); + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList(); + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index); + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + java.util.List getSupportChunksList(); + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index); + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + int getSupportChunksCount(); + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + java.util.List + getSupportChunksOrBuilderList(); + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder(int index); + + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. + */ + java.util.List getWebSearchQueriesList(); + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. + */ + int getWebSearchQueriesCount(); + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the element to return. + * @return The webSearchQueries at the given index. + */ + java.lang.String getWebSearchQueries(int index); + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the webSearchQueries at the given index. + */ + com.google.protobuf.ByteString getWebSearchQueriesBytes(int index); + + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return Whether the searchEntryPoint field is set. + */ + boolean hasSearchEntryPoint(); + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return The searchEntryPoint. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint(); + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder(); + + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + getGroundingSupportList(); + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getGroundingSupport(int index); + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + int getGroundingSupportCount(); + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportOrBuilderList(); + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index); + } + /** + * + * + *
+     * Citation for the generated content.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata} + */ + public static final class GroundingMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + GroundingMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingMetadata.newBuilder() to construct. + private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingMetadata() { + retrievalMetadata_ = java.util.Collections.emptyList(); + supportChunks_ = java.util.Collections.emptyList(); + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + groundingSupport_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder.class); + } + + public interface RetrievalMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Describes the source to which the metadata is referring to.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + /** + * + * + *
+         * Describes the source to which the metadata is referring to.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The source. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + getSource(); + + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return Whether the dynamicRetrievalMetadata field is set. + */ + boolean hasDynamicRetrievalMetadata(); + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return The dynamicRetrievalMetadata. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDynamicRetrievalMetadata(); + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder + getDynamicRetrievalMetadataOrBuilder(); + } + /** + * + * + *
+       * Describes the metadata associated with a retrieval step.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata} + */ + public static final class RetrievalMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata) + RetrievalMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrievalMetadata.newBuilder() to construct. + private RetrievalMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrievalMetadata() { + source_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrievalMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder.class); + } + + /** + * + * + *
+         * Describes the source to which the metadata is associated to.
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+           * Unspecified source.
+           * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
+           * Vertex AI search.
+           * 
+ * + * VERTEX_AI_SEARCH = 1; + */ + VERTEX_AI_SEARCH(1), + /** + * + * + *
+           * Google Search.
+           * 
+ * + * GOOGLE_SEARCH = 3; + */ + GOOGLE_SEARCH(3), + /** + * + * + *
+           * User inline provided content.
+           * 
+ * + * INLINE_CONTENT = 2; + */ + INLINE_CONTENT(2), + /** + * + * + *
+           * Google Maps.
+           * 
+ * + * GOOGLE_MAPS = 4; + */ + GOOGLE_MAPS(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+           * Unspecified source.
+           * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+           * Vertex AI search.
+           * 
+ * + * VERTEX_AI_SEARCH = 1; + */ + public static final int VERTEX_AI_SEARCH_VALUE = 1; + /** + * + * + *
+           * Google Search.
+           * 
+ * + * GOOGLE_SEARCH = 3; + */ + public static final int GOOGLE_SEARCH_VALUE = 3; + /** + * + * + *
+           * User inline provided content.
+           * 
+ * + * INLINE_CONTENT = 2; + */ + public static final int INLINE_CONTENT_VALUE = 2; + /** + * + * + *
+           * Google Maps.
+           * 
+ * + * GOOGLE_MAPS = 4; + */ + public static final int GOOGLE_MAPS_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Source 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 Source forNumber(int value) { + switch (value) { + case 0: + return SOURCE_UNSPECIFIED; + case 1: + return VERTEX_AI_SEARCH; + case 3: + return GOOGLE_SEARCH; + case 2: + return INLINE_CONTENT; + case 4: + return GOOGLE_MAPS; + 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 Source findValueByNumber(int number) { + return Source.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Source[] VALUES = values(); + + public static Source 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 Source(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source) + } + + private int bitField0_; + public static final int SOURCE_FIELD_NUMBER = 1; + private int source_ = 0; + /** + * + * + *
+         * Describes the source to which the metadata is referring to.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + /** + * + * + *
+         * Describes the source to which the metadata is referring to.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + getSource() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.forNumber(source_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.UNRECOGNIZED + : result; + } + + public static final int DYNAMIC_RETRIEVAL_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + dynamicRetrievalMetadata_; + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return Whether the dynamicRetrievalMetadata field is set. + */ + @java.lang.Override + public boolean hasDynamicRetrievalMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return The dynamicRetrievalMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDynamicRetrievalMetadata() { + return dynamicRetrievalMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance() + : dynamicRetrievalMetadata_; + } + /** + * + * + *
+         * Metadata for dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder + getDynamicRetrievalMetadataOrBuilder() { + return dynamicRetrievalMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance() + : dynamicRetrievalMetadata_; + } + + 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 (source_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDynamicRetrievalMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (source_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDynamicRetrievalMetadata()); + } + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata) + obj; + + if (source_ != other.source_) return false; + if (hasDynamicRetrievalMetadata() != other.hasDynamicRetrievalMetadata()) return false; + if (hasDynamicRetrievalMetadata()) { + if (!getDynamicRetrievalMetadata().equals(other.getDynamicRetrievalMetadata())) + 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + if (hasDynamicRetrievalMetadata()) { + hash = (37 * hash) + DYNAMIC_RETRIEVAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDynamicRetrievalMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Describes the metadata associated with a retrieval step.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDynamicRetrievalMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = 0; + dynamicRetrievalMetadata_ = null; + if (dynamicRetrievalMetadataBuilder_ != null) { + dynamicRetrievalMetadataBuilder_.dispose(); + dynamicRetrievalMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dynamicRetrievalMetadata_ = + dynamicRetrievalMetadataBuilder_ == null + ? dynamicRetrievalMetadata_ + : dynamicRetrievalMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()) return this; + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + if (other.hasDynamicRetrievalMetadata()) { + mergeDynamicRetrievalMetadata(other.getDynamicRetrievalMetadata()); + } + 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: + { + source_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getDynamicRetrievalMetadataFieldBuilder().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 int source_ = 0; + /** + * + * + *
+           * Describes the source to which the metadata is referring to.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + /** + * + * + *
+           * Describes the source to which the metadata is referring to.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Describes the source to which the metadata is referring to.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + getSource() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.forNumber(source_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source.UNRECOGNIZED + : result; + } + /** + * + * + *
+           * Describes the source to which the metadata is referring to.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Source + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + source_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * Describes the source to which the metadata is referring to.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000001); + source_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + dynamicRetrievalMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder> + dynamicRetrievalMetadataBuilder_; + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return Whether the dynamicRetrievalMetadata field is set. + */ + public boolean hasDynamicRetrievalMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + * + * @return The dynamicRetrievalMetadata. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDynamicRetrievalMetadata() { + if (dynamicRetrievalMetadataBuilder_ == null) { + return dynamicRetrievalMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance() + : dynamicRetrievalMetadata_; + } else { + return dynamicRetrievalMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public Builder setDynamicRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + value) { + if (dynamicRetrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dynamicRetrievalMetadata_ = value; + } else { + dynamicRetrievalMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public Builder setDynamicRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder + builderForValue) { + if (dynamicRetrievalMetadataBuilder_ == null) { + dynamicRetrievalMetadata_ = builderForValue.build(); + } else { + dynamicRetrievalMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public Builder mergeDynamicRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + value) { + if (dynamicRetrievalMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dynamicRetrievalMetadata_ != null + && dynamicRetrievalMetadata_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalMetadata + .getDefaultInstance()) { + getDynamicRetrievalMetadataBuilder().mergeFrom(value); + } else { + dynamicRetrievalMetadata_ = value; + } + } else { + dynamicRetrievalMetadataBuilder_.mergeFrom(value); + } + if (dynamicRetrievalMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public Builder clearDynamicRetrievalMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + dynamicRetrievalMetadata_ = null; + if (dynamicRetrievalMetadataBuilder_ != null) { + dynamicRetrievalMetadataBuilder_.dispose(); + dynamicRetrievalMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder + getDynamicRetrievalMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDynamicRetrievalMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder + getDynamicRetrievalMetadataOrBuilder() { + if (dynamicRetrievalMetadataBuilder_ != null) { + return dynamicRetrievalMetadataBuilder_.getMessageOrBuilder(); + } else { + return dynamicRetrievalMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance() + : dynamicRetrievalMetadata_; + } + } + /** + * + * + *
+           * Metadata for dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder> + getDynamicRetrievalMetadataFieldBuilder() { + if (dynamicRetrievalMetadataBuilder_ == null) { + dynamicRetrievalMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder>( + getDynamicRetrievalMetadata(), getParentForChildren(), isClean()); + dynamicRetrievalMetadata_ = null; + } + return dynamicRetrievalMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrievalMetadata 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DynamicRetrievalMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return Whether the predictorMetadata field is set. + */ + boolean hasPredictorMetadata(); + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return The predictorMetadata. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getPredictorMetadata(); + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder + getPredictorMetadataOrBuilder(); + } + /** + * + * + *
+       * Describes the metadata about dynamic retrieval.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata} + */ + public static final class DynamicRetrievalMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata) + DynamicRetrievalMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicRetrievalMetadata.newBuilder() to construct. + private DynamicRetrievalMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DynamicRetrievalMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DynamicRetrievalMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder.class); + } + + private int bitField0_; + public static final int PREDICTOR_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + predictorMetadata_; + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return Whether the predictorMetadata field is set. + */ + @java.lang.Override + public boolean hasPredictorMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return The predictorMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getPredictorMetadata() { + return predictorMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance() + : predictorMetadata_; + } + /** + * + * + *
+         * Metadata for the dynamic retrieval predictor.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder + getPredictorMetadataOrBuilder() { + return predictorMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance() + : predictorMetadata_; + } + + 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, getPredictorMetadata()); + } + 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, getPredictorMetadata()); + } + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata) + obj; + + if (hasPredictorMetadata() != other.hasPredictorMetadata()) return false; + if (hasPredictorMetadata()) { + if (!getPredictorMetadata().equals(other.getPredictorMetadata())) 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 (hasPredictorMetadata()) { + hash = (37 * hash) + PREDICTOR_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPredictorMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Describes the metadata about dynamic retrieval.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictorMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictorMetadata_ = null; + if (predictorMetadataBuilder_ != null) { + predictorMetadataBuilder_.dispose(); + predictorMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictorMetadata_ = + predictorMetadataBuilder_ == null + ? predictorMetadata_ + : predictorMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata.getDefaultInstance()) return this; + if (other.hasPredictorMetadata()) { + mergePredictorMetadata(other.getPredictorMetadata()); + } + 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( + getPredictorMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + predictorMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder> + predictorMetadataBuilder_; + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return Whether the predictorMetadata field is set. + */ + public boolean hasPredictorMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + * + * @return The predictorMetadata. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getPredictorMetadata() { + if (predictorMetadataBuilder_ == null) { + return predictorMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance() + : predictorMetadata_; + } else { + return predictorMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public Builder setPredictorMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + value) { + if (predictorMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictorMetadata_ = value; + } else { + predictorMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public Builder setPredictorMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder + builderForValue) { + if (predictorMetadataBuilder_ == null) { + predictorMetadata_ = builderForValue.build(); + } else { + predictorMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public Builder mergePredictorMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + value) { + if (predictorMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictorMetadata_ != null + && predictorMetadata_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata + .getDefaultInstance()) { + getPredictorMetadataBuilder().mergeFrom(value); + } else { + predictorMetadata_ = value; + } + } else { + predictorMetadataBuilder_.mergeFrom(value); + } + if (predictorMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public Builder clearPredictorMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + predictorMetadata_ = null; + if (predictorMetadataBuilder_ != null) { + predictorMetadataBuilder_.dispose(); + predictorMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder + getPredictorMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictorMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder + getPredictorMetadataOrBuilder() { + if (predictorMetadataBuilder_ != null) { + return predictorMetadataBuilder_.getMessageOrBuilder(); + } else { + return predictorMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance() + : predictorMetadata_; + } + } + /** + * + * + *
+           * Metadata for the dynamic retrieval predictor.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder> + getPredictorMetadataFieldBuilder() { + if (predictorMetadataBuilder_ == null) { + predictorMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder>( + getPredictorMetadata(), getParentForChildren(), isClean()); + predictorMetadata_ = null; + } + return predictorMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicRetrievalMetadata 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DynamicRetrievalPredictorMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * The version of the predictor which was used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + /** + * + * + *
+         * The version of the predictor which was used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The version. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + getVersion(); + + /** + * + * + *
+         * The value of the predictor. This should be between [0, 1] where
+         * a value of 0 means that the query would not benefit from grounding,
+         * while a value of 1.0 means that the query would benefit the most.
+         * In between values allow to differentiate between different usefulness
+         * scores for grounding.
+         * 
+ * + * optional float prediction = 2; + * + * @return Whether the prediction field is set. + */ + boolean hasPrediction(); + /** + * + * + *
+         * The value of the predictor. This should be between [0, 1] where
+         * a value of 0 means that the query would not benefit from grounding,
+         * while a value of 1.0 means that the query would benefit the most.
+         * In between values allow to differentiate between different usefulness
+         * scores for grounding.
+         * 
+ * + * optional float prediction = 2; + * + * @return The prediction. + */ + float getPrediction(); + } + /** + * + * + *
+       * Describes the metadata about the dynamic retrieval predictor.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata} + */ + public static final class DynamicRetrievalPredictorMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata) + DynamicRetrievalPredictorMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicRetrievalPredictorMetadata.newBuilder() to construct. + private DynamicRetrievalPredictorMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DynamicRetrievalPredictorMetadata() { + version_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DynamicRetrievalPredictorMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder.class); + } + + /** + * + * + *
+         * The version of the predictor which was used in dynamic retrieval.
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version} + */ + public enum Version implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+           * Unspecified version, should never be used.
+           * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + VERSION_UNSPECIFIED(0), + /** + * + * + *
+           * The V1 model which is evaluating each source independently.
+           * 
+ * + * V1_INDEPENDENT = 1; + */ + V1_INDEPENDENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+           * Unspecified version, should never be used.
+           * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + public static final int VERSION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+           * The V1 model which is evaluating each source independently.
+           * 
+ * + * V1_INDEPENDENT = 1; + */ + public static final int V1_INDEPENDENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Version 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 Version forNumber(int value) { + switch (value) { + case 0: + return VERSION_UNSPECIFIED; + case 1: + return V1_INDEPENDENT; + 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 Version findValueByNumber(int number) { + return Version.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Version[] VALUES = values(); + + public static Version 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 Version(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + * + * + *
+         * The version of the predictor which was used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+         * The version of the predictor which was used in dynamic retrieval.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + getVersion() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.forNumber( + version_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.UNRECOGNIZED + : result; + } + + public static final int PREDICTION_FIELD_NUMBER = 2; + private float prediction_ = 0F; + /** + * + * + *
+         * The value of the predictor. This should be between [0, 1] where
+         * a value of 0 means that the query would not benefit from grounding,
+         * while a value of 1.0 means that the query would benefit the most.
+         * In between values allow to differentiate between different usefulness
+         * scores for grounding.
+         * 
+ * + * optional float prediction = 2; + * + * @return Whether the prediction field is set. + */ + @java.lang.Override + public boolean hasPrediction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * The value of the predictor. This should be between [0, 1] where
+         * a value of 0 means that the query would not benefit from grounding,
+         * while a value of 1.0 means that the query would benefit the most.
+         * In between values allow to differentiate between different usefulness
+         * scores for grounding.
+         * 
+ * + * optional float prediction = 2; + * + * @return The prediction. + */ + @java.lang.Override + public float getPrediction() { + return prediction_; + } + + 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 (version_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.VERSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, prediction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, prediction_); + } + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata) + obj; + + if (version_ != other.version_) return false; + if (hasPrediction() != other.hasPrediction()) return false; + if (hasPrediction()) { + if (java.lang.Float.floatToIntBits(getPrediction()) + != java.lang.Float.floatToIntBits(other.getPrediction())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + if (hasPrediction()) { + hash = (37 * hash) + PREDICTION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrediction()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Describes the metadata about the dynamic retrieval predictor.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + prediction_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prediction_ = prediction_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.getDefaultInstance()) + return this; + if (other.version_ != 0) { + setVersionValue(other.getVersionValue()); + } + if (other.hasPrediction()) { + setPrediction(other.getPrediction()); + } + 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: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + prediction_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int version_ = 0; + /** + * + * + *
+           * The version of the predictor which was used in dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+           * The version of the predictor which was used in dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * The version of the predictor which was used in dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + getVersion() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.forNumber( + version_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version.UNRECOGNIZED + : result; + } + /** + * + * + *
+           * The version of the predictor which was used in dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata.Version + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * The version of the predictor which was used in dynamic retrieval.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + + private float prediction_; + /** + * + * + *
+           * The value of the predictor. This should be between [0, 1] where
+           * a value of 0 means that the query would not benefit from grounding,
+           * while a value of 1.0 means that the query would benefit the most.
+           * In between values allow to differentiate between different usefulness
+           * scores for grounding.
+           * 
+ * + * optional float prediction = 2; + * + * @return Whether the prediction field is set. + */ + @java.lang.Override + public boolean hasPrediction() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+           * The value of the predictor. This should be between [0, 1] where
+           * a value of 0 means that the query would not benefit from grounding,
+           * while a value of 1.0 means that the query would benefit the most.
+           * In between values allow to differentiate between different usefulness
+           * scores for grounding.
+           * 
+ * + * optional float prediction = 2; + * + * @return The prediction. + */ + @java.lang.Override + public float getPrediction() { + return prediction_; + } + /** + * + * + *
+           * The value of the predictor. This should be between [0, 1] where
+           * a value of 0 means that the query would not benefit from grounding,
+           * while a value of 1.0 means that the query would benefit the most.
+           * In between values allow to differentiate between different usefulness
+           * scores for grounding.
+           * 
+ * + * optional float prediction = 2; + * + * @param value The prediction to set. + * @return This builder for chaining. + */ + public Builder setPrediction(float value) { + + prediction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * The value of the predictor. This should be between [0, 1] where
+           * a value of 0 means that the query would not benefit from grounding,
+           * while a value of 1.0 means that the query would benefit the most.
+           * In between values allow to differentiate between different usefulness
+           * scores for grounding.
+           * 
+ * + * optional float prediction = 2; + * + * @return This builder for chaining. + */ + public Builder clearPrediction() { + bitField0_ = (bitField0_ & ~0x00000002); + prediction_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicRetrievalPredictorMetadata 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.DynamicRetrievalPredictorMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchEntryPointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Web content snippet that can be embedded in a web page or an app
+         * webview.
+         * 
+ * + * string rendered_content = 1; + * + * @return The renderedContent. + */ + java.lang.String getRenderedContent(); + /** + * + * + *
+         * Web content snippet that can be embedded in a web page or an app
+         * webview.
+         * 
+ * + * string rendered_content = 1; + * + * @return The bytes for renderedContent. + */ + com.google.protobuf.ByteString getRenderedContentBytes(); + + /** + * + * + *
+         * Base64 encoded JSON representing array of <search term, search url>
+         * tuple.
+         * 
+ * + * bytes sdk_blob = 2; + * + * @return The sdkBlob. + */ + com.google.protobuf.ByteString getSdkBlob(); + } + /** + * + * + *
+       * Google search entry point.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint} + */ + public static final class SearchEntryPoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint) + SearchEntryPointOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchEntryPoint.newBuilder() to construct. + private SearchEntryPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchEntryPoint() { + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchEntryPoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder.class); + } + + public static final int RENDERED_CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderedContent_ = ""; + /** + * + * + *
+         * Web content snippet that can be embedded in a web page or an app
+         * webview.
+         * 
+ * + * string rendered_content = 1; + * + * @return The renderedContent. + */ + @java.lang.Override + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + 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(); + renderedContent_ = s; + return s; + } + } + /** + * + * + *
+         * Web content snippet that can be embedded in a web page or an app
+         * webview.
+         * 
+ * + * string rendered_content = 1; + * + * @return The bytes for renderedContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SDK_BLOB_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+         * Base64 encoded JSON representing array of <search term, search url>
+         * tuple.
+         * 
+ * + * bytes sdk_blob = 2; + * + * @return The sdkBlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedContent_); + } + if (!sdkBlob_.isEmpty()) { + output.writeBytes(2, sdkBlob_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedContent_); + } + if (!sdkBlob_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sdkBlob_); + } + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint) + obj; + + if (!getRenderedContent().equals(other.getRenderedContent())) return false; + if (!getSdkBlob().equals(other.getSdkBlob())) 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) + RENDERED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRenderedContent().hashCode(); + hash = (37 * hash) + SDK_BLOB_FIELD_NUMBER; + hash = (53 * hash) + getSdkBlob().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Google search entry point.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.SearchEntryPoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.renderedContent_ = renderedContent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sdkBlob_ = sdkBlob_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance()) return this; + if (!other.getRenderedContent().isEmpty()) { + renderedContent_ = other.renderedContent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSdkBlob() != com.google.protobuf.ByteString.EMPTY) { + setSdkBlob(other.getSdkBlob()); + } + 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: + { + renderedContent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sdkBlob_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object renderedContent_ = ""; + /** + * + * + *
+           * Web content snippet that can be embedded in a web page or an app
+           * webview.
+           * 
+ * + * string rendered_content = 1; + * + * @return The renderedContent. + */ + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Web content snippet that can be embedded in a web page or an app
+           * webview.
+           * 
+ * + * string rendered_content = 1; + * + * @return The bytes for renderedContent. + */ + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Web content snippet that can be embedded in a web page or an app
+           * webview.
+           * 
+ * + * string rendered_content = 1; + * + * @param value The renderedContent to set. + * @return This builder for chaining. + */ + public Builder setRenderedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderedContent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Web content snippet that can be embedded in a web page or an app
+           * webview.
+           * 
+ * + * string rendered_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearRenderedContent() { + renderedContent_ = getDefaultInstance().getRenderedContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+           * Web content snippet that can be embedded in a web page or an app
+           * webview.
+           * 
+ * + * string rendered_content = 1; + * + * @param value The bytes for renderedContent to set. + * @return This builder for chaining. + */ + public Builder setRenderedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderedContent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+           * Base64 encoded JSON representing array of <search term, search url>
+           * tuple.
+           * 
+ * + * bytes sdk_blob = 2; + * + * @return The sdkBlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; + } + /** + * + * + *
+           * Base64 encoded JSON representing array of <search term, search url>
+           * tuple.
+           * 
+ * + * bytes sdk_blob = 2; + * + * @param value The sdkBlob to set. + * @return This builder for chaining. + */ + public Builder setSdkBlob(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + sdkBlob_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * Base64 encoded JSON representing array of <search term, search url>
+           * tuple.
+           * 
+ * + * bytes sdk_blob = 2; + * + * @return This builder for chaining. + */ + public Builder clearSdkBlob() { + bitField0_ = (bitField0_ & ~0x00000002); + sdkBlob_ = getDefaultInstance().getSdkBlob(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.SearchEntryPoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEntryPoint 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GroundingSupportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Text for the claim in the candidate. Always provided when a
+         * support is found.
+         * 
+ * + * string claim_text = 1; + * + * @return The claimText. + */ + java.lang.String getClaimText(); + /** + * + * + *
+         * Text for the claim in the candidate. Always provided when a
+         * support is found.
+         * 
+ * + * string claim_text = 1; + * + * @return The bytes for claimText. + */ + com.google.protobuf.ByteString getClaimTextBytes(); + + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return A list containing the supportChunkIndices. + */ + java.util.List getSupportChunkIndicesList(); + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return The count of supportChunkIndices. + */ + int getSupportChunkIndicesCount(); + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The supportChunkIndices at the given index. + */ + int getSupportChunkIndices(int index); + + /** + * + * + *
+         * A score in the range of [0, 1] describing how grounded is a specific
+         * claim in the support chunks indicated.
+         * Higher value means that the claim is better supported by the chunks.
+         * 
+ * + * optional float support_score = 2; + * + * @return Whether the supportScore field is set. + */ + boolean hasSupportScore(); + /** + * + * + *
+         * A score in the range of [0, 1] describing how grounded is a specific
+         * claim in the support chunks indicated.
+         * Higher value means that the claim is better supported by the chunks.
+         * 
+ * + * optional float support_score = 2; + * + * @return The supportScore. + */ + float getSupportScore(); + } + /** + * + * + *
+       * Grounding info for a claim in the candidate and its support.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport} + */ + public static final class GroundingSupport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport) + GroundingSupportOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSupport.newBuilder() to construct. + private GroundingSupport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSupport() { + claimText_ = ""; + supportChunkIndices_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSupport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder.class); + } + + private int bitField0_; + public static final int CLAIM_TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object claimText_ = ""; + /** + * + * + *
+         * Text for the claim in the candidate. Always provided when a
+         * support is found.
+         * 
+ * + * string claim_text = 1; + * + * @return The claimText. + */ + @java.lang.Override + public java.lang.String getClaimText() { + java.lang.Object ref = claimText_; + 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(); + claimText_ = s; + return s; + } + } + /** + * + * + *
+         * Text for the claim in the candidate. Always provided when a
+         * support is found.
+         * 
+ * + * string claim_text = 1; + * + * @return The bytes for claimText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClaimTextBytes() { + java.lang.Object ref = claimText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + claimText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_CHUNK_INDICES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList supportChunkIndices_ = emptyIntList(); + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return A list containing the supportChunkIndices. + */ + @java.lang.Override + public java.util.List getSupportChunkIndicesList() { + return supportChunkIndices_; + } + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return The count of supportChunkIndices. + */ + public int getSupportChunkIndicesCount() { + return supportChunkIndices_.size(); + } + /** + * + * + *
+         * A list of indices (into 'support_chunks') specifying the
+         * citations associated with the claim. For instance [1,3,4] means
+         * that support_chunks[1], support_chunks[3],
+         * support_chunks[4] are the chunks attributed to the claim.
+         * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The supportChunkIndices at the given index. + */ + public int getSupportChunkIndices(int index) { + return supportChunkIndices_.getInt(index); + } + + private int supportChunkIndicesMemoizedSerializedSize = -1; + + public static final int SUPPORT_SCORE_FIELD_NUMBER = 2; + private float supportScore_ = 0F; + /** + * + * + *
+         * A score in the range of [0, 1] describing how grounded is a specific
+         * claim in the support chunks indicated.
+         * Higher value means that the claim is better supported by the chunks.
+         * 
+ * + * optional float support_score = 2; + * + * @return Whether the supportScore field is set. + */ + @java.lang.Override + public boolean hasSupportScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * A score in the range of [0, 1] describing how grounded is a specific
+         * claim in the support chunks indicated.
+         * Higher value means that the claim is better supported by the chunks.
+         * 
+ * + * optional float support_score = 2; + * + * @return The supportScore. + */ + @java.lang.Override + public float getSupportScore() { + return supportScore_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(claimText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, claimText_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, supportScore_); + } + if (getSupportChunkIndicesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(supportChunkIndicesMemoizedSerializedSize); + } + for (int i = 0; i < supportChunkIndices_.size(); i++) { + output.writeInt32NoTag(supportChunkIndices_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(claimText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, claimText_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, supportScore_); + } + { + int dataSize = 0; + for (int i = 0; i < supportChunkIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + supportChunkIndices_.getInt(i)); + } + size += dataSize; + if (!getSupportChunkIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + supportChunkIndicesMemoizedSerializedSize = 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.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport) + obj; + + if (!getClaimText().equals(other.getClaimText())) return false; + if (!getSupportChunkIndicesList().equals(other.getSupportChunkIndicesList())) + return false; + if (hasSupportScore() != other.hasSupportScore()) return false; + if (hasSupportScore()) { + if (java.lang.Float.floatToIntBits(getSupportScore()) + != java.lang.Float.floatToIntBits(other.getSupportScore())) 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) + CLAIM_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getClaimText().hashCode(); + if (getSupportChunkIndicesCount() > 0) { + hash = (37 * hash) + SUPPORT_CHUNK_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getSupportChunkIndicesList().hashCode(); + } + if (hasSupportScore()) { + hash = (37 * hash) + SUPPORT_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSupportScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Grounding info for a claim in the candidate and its support.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + claimText_ = ""; + supportChunkIndices_ = emptyIntList(); + supportScore_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.claimText_ = claimText_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + supportChunkIndices_.makeImmutable(); + result.supportChunkIndices_ = supportChunkIndices_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.supportScore_ = supportScore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()) return this; + if (!other.getClaimText().isEmpty()) { + claimText_ = other.claimText_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.supportChunkIndices_.isEmpty()) { + if (supportChunkIndices_.isEmpty()) { + supportChunkIndices_ = other.supportChunkIndices_; + supportChunkIndices_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureSupportChunkIndicesIsMutable(); + supportChunkIndices_.addAll(other.supportChunkIndices_); + } + onChanged(); + } + if (other.hasSupportScore()) { + setSupportScore(other.getSupportScore()); + } + 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: + { + claimText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + supportScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 21 + case 24: + { + int v = input.readInt32(); + ensureSupportChunkIndicesIsMutable(); + supportChunkIndices_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSupportChunkIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + supportChunkIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object claimText_ = ""; + /** + * + * + *
+           * Text for the claim in the candidate. Always provided when a
+           * support is found.
+           * 
+ * + * string claim_text = 1; + * + * @return The claimText. + */ + public java.lang.String getClaimText() { + java.lang.Object ref = claimText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + claimText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Text for the claim in the candidate. Always provided when a
+           * support is found.
+           * 
+ * + * string claim_text = 1; + * + * @return The bytes for claimText. + */ + public com.google.protobuf.ByteString getClaimTextBytes() { + java.lang.Object ref = claimText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + claimText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Text for the claim in the candidate. Always provided when a
+           * support is found.
+           * 
+ * + * string claim_text = 1; + * + * @param value The claimText to set. + * @return This builder for chaining. + */ + public Builder setClaimText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + claimText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Text for the claim in the candidate. Always provided when a
+           * support is found.
+           * 
+ * + * string claim_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearClaimText() { + claimText_ = getDefaultInstance().getClaimText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+           * Text for the claim in the candidate. Always provided when a
+           * support is found.
+           * 
+ * + * string claim_text = 1; + * + * @param value The bytes for claimText to set. + * @return This builder for chaining. + */ + public Builder setClaimTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + claimText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList supportChunkIndices_ = emptyIntList(); + + private void ensureSupportChunkIndicesIsMutable() { + if (!supportChunkIndices_.isModifiable()) { + supportChunkIndices_ = makeMutableCopy(supportChunkIndices_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return A list containing the supportChunkIndices. + */ + public java.util.List getSupportChunkIndicesList() { + supportChunkIndices_.makeImmutable(); + return supportChunkIndices_; + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return The count of supportChunkIndices. + */ + public int getSupportChunkIndicesCount() { + return supportChunkIndices_.size(); + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The supportChunkIndices at the given index. + */ + public int getSupportChunkIndices(int index) { + return supportChunkIndices_.getInt(index); + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param index The index to set the value at. + * @param value The supportChunkIndices to set. + * @return This builder for chaining. + */ + public Builder setSupportChunkIndices(int index, int value) { + + ensureSupportChunkIndicesIsMutable(); + supportChunkIndices_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param value The supportChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addSupportChunkIndices(int value) { + + ensureSupportChunkIndicesIsMutable(); + supportChunkIndices_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @param values The supportChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addAllSupportChunkIndices( + java.lang.Iterable values) { + ensureSupportChunkIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportChunkIndices_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * A list of indices (into 'support_chunks') specifying the
+           * citations associated with the claim. For instance [1,3,4] means
+           * that support_chunks[1], support_chunks[3],
+           * support_chunks[4] are the chunks attributed to the claim.
+           * 
+ * + * repeated int32 support_chunk_indices = 3; + * + * @return This builder for chaining. + */ + public Builder clearSupportChunkIndices() { + supportChunkIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private float supportScore_; + /** + * + * + *
+           * A score in the range of [0, 1] describing how grounded is a specific
+           * claim in the support chunks indicated.
+           * Higher value means that the claim is better supported by the chunks.
+           * 
+ * + * optional float support_score = 2; + * + * @return Whether the supportScore field is set. + */ + @java.lang.Override + public boolean hasSupportScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+           * A score in the range of [0, 1] describing how grounded is a specific
+           * claim in the support chunks indicated.
+           * Higher value means that the claim is better supported by the chunks.
+           * 
+ * + * optional float support_score = 2; + * + * @return The supportScore. + */ + @java.lang.Override + public float getSupportScore() { + return supportScore_; + } + /** + * + * + *
+           * A score in the range of [0, 1] describing how grounded is a specific
+           * claim in the support chunks indicated.
+           * Higher value means that the claim is better supported by the chunks.
+           * 
+ * + * optional float support_score = 2; + * + * @param value The supportScore to set. + * @return This builder for chaining. + */ + public Builder setSupportScore(float value) { + + supportScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+           * A score in the range of [0, 1] describing how grounded is a specific
+           * claim in the support chunks indicated.
+           * Higher value means that the claim is better supported by the chunks.
+           * 
+ * + * optional float support_score = 2; + * + * @return This builder for chaining. + */ + public Builder clearSupportScore() { + bitField0_ = (bitField0_ & ~0x00000004); + supportScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSupport 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + retrievalMetadata_; + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + getRetrievalMetadataList() { + return retrievalMetadata_; + } + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList() { + return retrievalMetadata_; + } + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public int getRetrievalMetadataCount() { + return retrievalMetadata_.size(); + } + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getRetrievalMetadata(int index) { + return retrievalMetadata_.get(index); + } + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index) { + return retrievalMetadata_.get(index); + } + + public static final int SUPPORT_CHUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List supportChunks_; + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public java.util.List getSupportChunksList() { + return supportChunks_; + } + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public java.util.List + getSupportChunksOrBuilderList() { + return supportChunks_; + } + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public int getSupportChunksCount() { + return supportChunks_.size(); + } + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { + return supportChunks_.get(index); + } + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( + int index) { + return supportChunks_.get(index); + } + + public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList webSearchQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. + */ + public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { + return webSearchQueries_; + } + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. + */ + public int getWebSearchQueriesCount() { + return webSearchQueries_.size(); + } + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the element to return. + * @return The webSearchQueries at the given index. + */ + public java.lang.String getWebSearchQueries(int index) { + return webSearchQueries_.get(index); + } + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the webSearchQueries at the given index. + */ + public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { + return webSearchQueries_.getByteString(index); + } + + public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + searchEntryPoint_; + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return Whether the searchEntryPoint field is set. + */ + @java.lang.Override + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return The searchEntryPoint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint() { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } + /** + * + * + *
+       * Google search entry for the following-up web searches.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder() { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } + + public static final int GROUNDING_SUPPORT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + groundingSupport_; + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + getGroundingSupportList() { + return groundingSupport_; + } + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportOrBuilderList() { + return groundingSupport_; + } + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public int getGroundingSupportCount() { + return groundingSupport_.size(); + } + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getGroundingSupport(int index) { + return groundingSupport_.get(index); + } + /** + * + * + *
+       * GroundingSupport across all claims in the answer candidate.
+       * An support to a fact indicates that the claim is supported by
+       * the fact.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index) { + return groundingSupport_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < supportChunks_.size(); i++) { + output.writeMessage(1, supportChunks_.get(i)); + } + for (int i = 0; i < groundingSupport_.size(); i++) { + output.writeMessage(2, groundingSupport_.get(i)); + } + for (int i = 0; i < webSearchQueries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, webSearchQueries_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchEntryPoint()); + } + for (int i = 0; i < retrievalMetadata_.size(); i++) { + output.writeMessage(5, retrievalMetadata_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < supportChunks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, supportChunks_.get(i)); + } + for (int i = 0; i < groundingSupport_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, groundingSupport_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < webSearchQueries_.size(); i++) { + dataSize += computeStringSizeNoTag(webSearchQueries_.getRaw(i)); + } + size += dataSize; + size += 1 * getWebSearchQueriesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); + } + for (int i = 0; i < retrievalMetadata_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, retrievalMetadata_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) + obj; + + if (!getRetrievalMetadataList().equals(other.getRetrievalMetadataList())) return false; + if (!getSupportChunksList().equals(other.getSupportChunksList())) return false; + if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false; + if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false; + if (hasSearchEntryPoint()) { + if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false; + } + if (!getGroundingSupportList().equals(other.getGroundingSupportList())) 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 (getRetrievalMetadataCount() > 0) { + hash = (37 * hash) + RETRIEVAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRetrievalMetadataList().hashCode(); + } + if (getSupportChunksCount() > 0) { + hash = (37 * hash) + SUPPORT_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getSupportChunksList().hashCode(); + } + if (getWebSearchQueriesCount() > 0) { + hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getWebSearchQueriesList().hashCode(); + } + if (hasSearchEntryPoint()) { + hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER; + hash = (53 * hash) + getSearchEntryPoint().hashCode(); + } + if (getGroundingSupportCount() > 0) { + hash = (37 * hash) + GROUNDING_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSupportList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Citation for the generated content.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRetrievalMetadataFieldBuilder(); + getSupportChunksFieldBuilder(); + getSearchEntryPointFieldBuilder(); + getGroundingSupportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (retrievalMetadataBuilder_ == null) { + retrievalMetadata_ = java.util.Collections.emptyList(); + } else { + retrievalMetadata_ = null; + retrievalMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (supportChunksBuilder_ == null) { + supportChunks_ = java.util.Collections.emptyList(); + } else { + supportChunks_ = null; + supportChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; + } + if (groundingSupportBuilder_ == null) { + groundingSupport_ = java.util.Collections.emptyList(); + } else { + groundingSupport_ = null; + groundingSupportBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result) { + if (retrievalMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + retrievalMetadata_ = java.util.Collections.unmodifiableList(retrievalMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.retrievalMetadata_ = retrievalMetadata_; + } else { + result.retrievalMetadata_ = retrievalMetadataBuilder_.build(); + } + if (supportChunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + supportChunks_ = java.util.Collections.unmodifiableList(supportChunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.supportChunks_ = supportChunks_; + } else { + result.supportChunks_ = supportChunksBuilder_.build(); + } + if (groundingSupportBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + groundingSupport_ = java.util.Collections.unmodifiableList(groundingSupport_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.groundingSupport_ = groundingSupport_; + } else { + result.groundingSupport_ = groundingSupportBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + webSearchQueries_.makeImmutable(); + result.webSearchQueries_ = webSearchQueries_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchEntryPoint_ = + searchEntryPointBuilder_ == null + ? searchEntryPoint_ + : searchEntryPointBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance()) return this; + if (retrievalMetadataBuilder_ == null) { + if (!other.retrievalMetadata_.isEmpty()) { + if (retrievalMetadata_.isEmpty()) { + retrievalMetadata_ = other.retrievalMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.addAll(other.retrievalMetadata_); + } + onChanged(); + } + } else { + if (!other.retrievalMetadata_.isEmpty()) { + if (retrievalMetadataBuilder_.isEmpty()) { + retrievalMetadataBuilder_.dispose(); + retrievalMetadataBuilder_ = null; + retrievalMetadata_ = other.retrievalMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + retrievalMetadataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRetrievalMetadataFieldBuilder() + : null; + } else { + retrievalMetadataBuilder_.addAllMessages(other.retrievalMetadata_); + } + } + } + if (supportChunksBuilder_ == null) { + if (!other.supportChunks_.isEmpty()) { + if (supportChunks_.isEmpty()) { + supportChunks_ = other.supportChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSupportChunksIsMutable(); + supportChunks_.addAll(other.supportChunks_); + } + onChanged(); + } + } else { + if (!other.supportChunks_.isEmpty()) { + if (supportChunksBuilder_.isEmpty()) { + supportChunksBuilder_.dispose(); + supportChunksBuilder_ = null; + supportChunks_ = other.supportChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + supportChunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSupportChunksFieldBuilder() + : null; + } else { + supportChunksBuilder_.addAllMessages(other.supportChunks_); + } + } + } + if (!other.webSearchQueries_.isEmpty()) { + if (webSearchQueries_.isEmpty()) { + webSearchQueries_ = other.webSearchQueries_; + bitField0_ |= 0x00000004; + } else { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.addAll(other.webSearchQueries_); + } + onChanged(); + } + if (other.hasSearchEntryPoint()) { + mergeSearchEntryPoint(other.getSearchEntryPoint()); + } + if (groundingSupportBuilder_ == null) { + if (!other.groundingSupport_.isEmpty()) { + if (groundingSupport_.isEmpty()) { + groundingSupport_ = other.groundingSupport_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGroundingSupportIsMutable(); + groundingSupport_.addAll(other.groundingSupport_); + } + onChanged(); + } + } else { + if (!other.groundingSupport_.isEmpty()) { + if (groundingSupportBuilder_.isEmpty()) { + groundingSupportBuilder_.dispose(); + groundingSupportBuilder_ = null; + groundingSupport_ = other.groundingSupport_; + bitField0_ = (bitField0_ & ~0x00000010); + groundingSupportBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingSupportFieldBuilder() + : null; + } else { + groundingSupportBuilder_.addAllMessages(other.groundingSupport_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.FactChunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1.FactChunk.parser(), + extensionRegistry); + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(m); + } else { + supportChunksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport.parser(), + extensionRegistry); + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(m); + } else { + groundingSupportBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(s); + break; + } // case 26 + case 34: + { + input.readMessage( + getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata.parser(), + extensionRegistry); + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(m); + } else { + retrievalMetadataBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + retrievalMetadata_ = java.util.Collections.emptyList(); + + private void ensureRetrievalMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + retrievalMetadata_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata>(retrievalMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + retrievalMetadataBuilder_; + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + getRetrievalMetadataList() { + if (retrievalMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(retrievalMetadata_); + } else { + return retrievalMetadataBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public int getRetrievalMetadataCount() { + if (retrievalMetadataBuilder_ == null) { + return retrievalMetadata_.size(); + } else { + return retrievalMetadataBuilder_.getCount(); + } + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getRetrievalMetadata(int index) { + if (retrievalMetadataBuilder_ == null) { + return retrievalMetadata_.get(index); + } else { + return retrievalMetadataBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + value) { + if (retrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.set(index, value); + onChanged(); + } else { + retrievalMetadataBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.set(index, builderForValue.build()); + onChanged(); + } else { + retrievalMetadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + value) { + if (retrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(value); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + value) { + if (retrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(index, value); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(builderForValue.build()); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addAllRetrievalMetadata( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata> + values) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, retrievalMetadata_); + onChanged(); + } else { + retrievalMetadataBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder clearRetrievalMetadata() { + if (retrievalMetadataBuilder_ == null) { + retrievalMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + retrievalMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder removeRetrievalMetadata(int index) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.remove(index); + onChanged(); + } else { + retrievalMetadataBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + getRetrievalMetadataBuilder(int index) { + return getRetrievalMetadataFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index) { + if (retrievalMetadataBuilder_ == null) { + return retrievalMetadata_.get(index); + } else { + return retrievalMetadataBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList() { + if (retrievalMetadataBuilder_ != null) { + return retrievalMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(retrievalMetadata_); + } + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder() { + return getRetrievalMetadataFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder(int index) { + return getRetrievalMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + } + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder> + getRetrievalMetadataBuilderList() { + return getRetrievalMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataFieldBuilder() { + if (retrievalMetadataBuilder_ == null) { + retrievalMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder>( + retrievalMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + retrievalMetadata_ = null; + } + return retrievalMetadataBuilder_; + } + + private java.util.List supportChunks_ = + java.util.Collections.emptyList(); + + private void ensureSupportChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + supportChunks_ = + new java.util.ArrayList( + supportChunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> + supportChunksBuilder_; + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksList() { + if (supportChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(supportChunks_); + } else { + return supportChunksBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public int getSupportChunksCount() { + if (supportChunksBuilder_ == null) { + return supportChunks_.size(); + } else { + return supportChunksBuilder_.getCount(); + } + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { + if (supportChunksBuilder_ == null) { + return supportChunks_.get(index); + } else { + return supportChunksBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportChunksIsMutable(); + supportChunks_.set(index, value); + onChanged(); + } else { + supportChunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + supportChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks(com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportChunksIsMutable(); + supportChunks_.add(value); + onChanged(); + } else { + supportChunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportChunksIsMutable(); + supportChunks_.add(index, value); + onChanged(); + } else { + supportChunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(builderForValue.build()); + onChanged(); + } else { + supportChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + supportChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder addAllSupportChunks( + java.lang.Iterable values) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportChunks_); + onChanged(); + } else { + supportChunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder clearSupportChunks() { + if (supportChunksBuilder_ == null) { + supportChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + supportChunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder removeSupportChunks(int index) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.remove(index); + onChanged(); + } else { + supportChunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk.Builder getSupportChunksBuilder( + int index) { + return getSupportChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( + int index) { + if (supportChunksBuilder_ == null) { + return supportChunks_.get(index); + } else { + return supportChunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksOrBuilderList() { + if (supportChunksBuilder_ != null) { + return supportChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(supportChunks_); + } + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder() { + return getSupportChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder( + int index) { + return getSupportChunksFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); + } + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksBuilderList() { + return getSupportChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> + getSupportChunksFieldBuilder() { + if (supportChunksBuilder_ == null) { + supportChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder>( + supportChunks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + supportChunks_ = null; + } + return supportChunksBuilder_; + } + + private com.google.protobuf.LazyStringArrayList webSearchQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWebSearchQueriesIsMutable() { + if (!webSearchQueries_.isModifiable()) { + webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. + */ + public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { + webSearchQueries_.makeImmutable(); + return webSearchQueries_; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. + */ + public int getWebSearchQueriesCount() { + return webSearchQueries_.size(); + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the element to return. + * @return The webSearchQueries at the given index. + */ + public java.lang.String getWebSearchQueries(int index) { + return webSearchQueries_.get(index); + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the webSearchQueries at the given index. + */ + public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { + return webSearchQueries_.getByteString(index); + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param index The index to set the value at. + * @param value The webSearchQueries to set. + * @return This builder for chaining. + */ + public Builder setWebSearchQueries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param value The webSearchQueries to add. + * @return This builder for chaining. + */ + public Builder addWebSearchQueries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param values The webSearchQueries to add. + * @return This builder for chaining. + */ + public Builder addAllWebSearchQueries(java.lang.Iterable values) { + ensureWebSearchQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @return This builder for chaining. + */ + public Builder clearWebSearchQueries() { + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * Web search queries for the following-up web search.
+         * 
+ * + * repeated string web_search_queries = 3; + * + * @param value The bytes of the webSearchQueries to add. + * @return This builder for chaining. + */ + public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + searchEntryPoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder> + searchEntryPointBuilder_; + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return Whether the searchEntryPoint field is set. + */ + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return The searchEntryPoint. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint() { + if (searchEntryPointBuilder_ == null) { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } else { + return searchEntryPointBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchEntryPoint_ = value; + } else { + searchEntryPointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + builderForValue) { + if (searchEntryPointBuilder_ == null) { + searchEntryPoint_ = builderForValue.build(); + } else { + searchEntryPointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public Builder mergeSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && searchEntryPoint_ != null + && searchEntryPoint_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance()) { + getSearchEntryPointBuilder().mergeFrom(value); + } else { + searchEntryPoint_ = value; + } + } else { + searchEntryPointBuilder_.mergeFrom(value); + } + if (searchEntryPoint_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public Builder clearSearchEntryPoint() { + bitField0_ = (bitField0_ & ~0x00000008); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + getSearchEntryPointBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSearchEntryPointFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder() { + if (searchEntryPointBuilder_ != null) { + return searchEntryPointBuilder_.getMessageOrBuilder(); + } else { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } + } + /** + * + * + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder> + getSearchEntryPointFieldBuilder() { + if (searchEntryPointBuilder_ == null) { + searchEntryPointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder>( + getSearchEntryPoint(), getParentForChildren(), isClean()); + searchEntryPoint_ = null; + } + return searchEntryPointBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + groundingSupport_ = java.util.Collections.emptyList(); + + private void ensureGroundingSupportIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + groundingSupport_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport>(groundingSupport_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + groundingSupportBuilder_; + + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + getGroundingSupportList() { + if (groundingSupportBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupport_); + } else { + return groundingSupportBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public int getGroundingSupportCount() { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.size(); + } else { + return groundingSupportBuilder_.getCount(); + } + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); + } else { + return groundingSupportBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, value); + onChanged(); + } else { + groundingSupportBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.add(value); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, value); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder addAllGroundingSupport( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport> + values) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupport_); + onChanged(); + } else { + groundingSupportBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder clearGroundingSupport() { + if (groundingSupportBuilder_ == null) { + groundingSupport_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + groundingSupportBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public Builder removeGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.remove(index); + onChanged(); + } else { + groundingSupportBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + getGroundingSupportBuilder(int index) { + return getGroundingSupportFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); + } else { + return groundingSupportBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportOrBuilderList() { + if (groundingSupportBuilder_ != null) { + return groundingSupportBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSupport_); + } + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder() { + return getGroundingSupportFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder(int index) { + return getGroundingSupportFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder> + getGroundingSupportBuilderList() { + return getGroundingSupportFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportFieldBuilder() { + if (groundingSupportBuilder_ == null) { + groundingSupportBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder>( + groundingSupport_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + groundingSupport_ = null; + } + return groundingSupportBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingMetadata 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private int index_ = 0; + /** + * + * + *
+     * Index of the candidate.
+     * 
+ * + * int32 index = 1; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.GroundedGenerationContent content_; + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContent() { + return content_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : content_; + } + /** + * + * + *
+     * Content of the candidate.
+     * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getContentOrBuilder() { + return content_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : content_; + } + + public static final int GROUNDING_SCORE_FIELD_NUMBER = 3; + private float groundingScore_ = 0F; + /** + * + * + *
+     * The overall grounding score for the candidate, in the range of [0, 1].
+     * 
+ * + * optional float grounding_score = 3; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The overall grounding score for the candidate, in the range of [0, 1].
+     * 
+ * + * optional float grounding_score = 3; + * + * @return The groundingScore. + */ + @java.lang.Override + public float getGroundingScore() { + return groundingScore_; + } + + public static final int GROUNDING_METADATA_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + groundingMetadata_; + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return Whether the groundingMetadata field is set. + */ + @java.lang.Override + public boolean hasGroundingMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return The groundingMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getGroundingMetadata() { + return groundingMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance() + : groundingMetadata_; + } + /** + * + * + *
+     * Grounding metadata for the generated content.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder + getGroundingMetadataOrBuilder() { + return groundingMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance() + : groundingMetadata_; + } + + 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 (index_ != 0) { + output.writeInt32(1, index_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(3, groundingScore_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGroundingMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, index_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, groundingScore_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGroundingMetadata()); + } + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) obj; + + if (getIndex() != other.getIndex()) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasGroundingScore() != other.hasGroundingScore()) return false; + if (hasGroundingScore()) { + if (java.lang.Float.floatToIntBits(getGroundingScore()) + != java.lang.Float.floatToIntBits(other.getGroundingScore())) return false; + } + if (hasGroundingMetadata() != other.hasGroundingMetadata()) return false; + if (hasGroundingMetadata()) { + if (!getGroundingMetadata().equals(other.getGroundingMetadata())) 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) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasGroundingScore()) { + hash = (37 * hash) + GROUNDING_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getGroundingScore()); + } + if (hasGroundingMetadata()) { + hash = (37 * hash) + GROUNDING_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGroundingMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A response candidate generated from the model.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + getGroundingMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + index_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + groundingScore_ = 0F; + groundingMetadata_ = null; + if (groundingMetadataBuilder_ != null) { + groundingMetadataBuilder_.dispose(); + groundingMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.groundingScore_ = groundingScore_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groundingMetadata_ = + groundingMetadataBuilder_ == null + ? groundingMetadata_ + : groundingMetadataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .getDefaultInstance()) return this; + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasGroundingScore()) { + setGroundingScore(other.getGroundingScore()); + } + if (other.hasGroundingMetadata()) { + mergeGroundingMetadata(other.getGroundingMetadata()); + } + 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: + { + index_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + groundingScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 34: + { + input.readMessage( + getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int index_; + /** + * + * + *
+       * Index of the candidate.
+       * 
+ * + * int32 index = 1; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + * + * + *
+       * Index of the candidate.
+       * 
+ * + * int32 index = 1; + * + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Index of the candidate.
+       * 
+ * + * int32 index = 1; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GroundedGenerationContent content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + contentBuilder_; + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + * + * @return The content. + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public Builder setContent( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public Builder setContent( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public Builder mergeContent( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ + != com.google.cloud.discoveryengine.v1.GroundedGenerationContent + .getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder + getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder + getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance() + : content_; + } + } + /** + * + * + *
+       * Content of the candidate.
+       * 
+ * + * .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private float groundingScore_; + /** + * + * + *
+       * The overall grounding score for the candidate, in the range of [0, 1].
+       * 
+ * + * optional float grounding_score = 3; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The overall grounding score for the candidate, in the range of [0, 1].
+       * 
+ * + * optional float grounding_score = 3; + * + * @return The groundingScore. + */ + @java.lang.Override + public float getGroundingScore() { + return groundingScore_; + } + /** + * + * + *
+       * The overall grounding score for the candidate, in the range of [0, 1].
+       * 
+ * + * optional float grounding_score = 3; + * + * @param value The groundingScore to set. + * @return This builder for chaining. + */ + public Builder setGroundingScore(float value) { + + groundingScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The overall grounding score for the candidate, in the range of [0, 1].
+       * 
+ * + * optional float grounding_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearGroundingScore() { + bitField0_ = (bitField0_ & ~0x00000004); + groundingScore_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + groundingMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder> + groundingMetadataBuilder_; + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return Whether the groundingMetadata field is set. + */ + public boolean hasGroundingMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + * + * @return The groundingMetadata. + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getGroundingMetadata() { + if (groundingMetadataBuilder_ == null) { + return groundingMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance() + : groundingMetadata_; + } else { + return groundingMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public Builder setGroundingMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + value) { + if (groundingMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingMetadata_ = value; + } else { + groundingMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public Builder setGroundingMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder + builderForValue) { + if (groundingMetadataBuilder_ == null) { + groundingMetadata_ = builderForValue.build(); + } else { + groundingMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public Builder mergeGroundingMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + value) { + if (groundingMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && groundingMetadata_ != null + && groundingMetadata_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance()) { + getGroundingMetadataBuilder().mergeFrom(value); + } else { + groundingMetadata_ = value; + } + } else { + groundingMetadataBuilder_.mergeFrom(value); + } + if (groundingMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public Builder clearGroundingMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + groundingMetadata_ = null; + if (groundingMetadataBuilder_ != null) { + groundingMetadataBuilder_.dispose(); + groundingMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder + getGroundingMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGroundingMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder + getGroundingMetadataOrBuilder() { + if (groundingMetadataBuilder_ != null) { + return groundingMetadataBuilder_.getMessageOrBuilder(); + } else { + return groundingMetadata_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance() + : groundingMetadata_; + } + } + /** + * + * + *
+       * Grounding metadata for the generated content.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder> + getGroundingMetadataFieldBuilder() { + if (groundingMetadataBuilder_ == null) { + groundingMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder>( + getGroundingMetadata(), getParentForChildren(), isClean()); + groundingMetadata_ = null; + } + return groundingMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Candidate 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.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CANDIDATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate> + candidates_; + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate> + getCandidatesList() { + return candidates_; + } + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .CandidateOrBuilder> + getCandidatesOrBuilderList() { + return candidates_; + } + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + @java.lang.Override + public int getCandidatesCount() { + return candidates_.size(); + } + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + getCandidates(int index) { + return candidates_.get(index); + } + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder + getCandidatesOrBuilder(int index) { + return candidates_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < candidates_.size(); i++) { + output.writeMessage(1, candidates_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < candidates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, candidates_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) obj; + + if (!getCandidatesList().equals(other.getCandidatesList())) 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 (getCandidatesCount() > 0) { + hash = (37 * hash) + CANDIDATES_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse 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.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse 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.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GenerateGroundedContentResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code google.cloud.discoveryengine.v1.GenerateGroundedContentResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (candidatesBuilder_ == null) { + candidates_ = java.util.Collections.emptyList(); + } else { + candidates_ = null; + candidatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse result) { + if (candidatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + candidates_ = java.util.Collections.unmodifiableList(candidates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.candidates_ = candidates_; + } else { + result.candidates_ = candidatesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .getDefaultInstance()) return this; + if (candidatesBuilder_ == null) { + if (!other.candidates_.isEmpty()) { + if (candidates_.isEmpty()) { + candidates_ = other.candidates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCandidatesIsMutable(); + candidates_.addAll(other.candidates_); + } + onChanged(); + } + } else { + if (!other.candidates_.isEmpty()) { + if (candidatesBuilder_.isEmpty()) { + candidatesBuilder_.dispose(); + candidatesBuilder_ = null; + candidates_ = other.candidates_; + bitField0_ = (bitField0_ & ~0x00000001); + candidatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCandidatesFieldBuilder() + : null; + } else { + candidatesBuilder_.addAllMessages(other.candidates_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.parser(), + extensionRegistry); + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + candidates_.add(m); + } else { + candidatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate> + candidates_ = java.util.Collections.emptyList(); + + private void ensureCandidatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + candidates_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate>( + candidates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder> + candidatesBuilder_; + + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate> + getCandidatesList() { + if (candidatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(candidates_); + } else { + return candidatesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public int getCandidatesCount() { + if (candidatesBuilder_ == null) { + return candidates_.size(); + } else { + return candidatesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + getCandidates(int index) { + if (candidatesBuilder_ == null) { + return candidates_.get(index); + } else { + return candidatesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder setCandidates( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate value) { + if (candidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesIsMutable(); + candidates_.set(index, value); + onChanged(); + } else { + candidatesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder setCandidates( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + builderForValue) { + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + candidates_.set(index, builderForValue.build()); + onChanged(); + } else { + candidatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder addCandidates( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate value) { + if (candidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesIsMutable(); + candidates_.add(value); + onChanged(); + } else { + candidatesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder addCandidates( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate value) { + if (candidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesIsMutable(); + candidates_.add(index, value); + onChanged(); + } else { + candidatesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder addCandidates( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + builderForValue) { + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + candidates_.add(builderForValue.build()); + onChanged(); + } else { + candidatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder addCandidates( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + builderForValue) { + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + candidates_.add(index, builderForValue.build()); + onChanged(); + } else { + candidatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder addAllCandidates( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate> + values) { + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidates_); + onChanged(); + } else { + candidatesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder clearCandidates() { + if (candidatesBuilder_ == null) { + candidates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + candidatesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public Builder removeCandidates(int index) { + if (candidatesBuilder_ == null) { + ensureCandidatesIsMutable(); + candidates_.remove(index); + onChanged(); + } else { + candidatesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + getCandidatesBuilder(int index) { + return getCandidatesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder + getCandidatesOrBuilder(int index) { + if (candidatesBuilder_ == null) { + return candidates_.get(index); + } else { + return candidatesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .CandidateOrBuilder> + getCandidatesOrBuilderList() { + if (candidatesBuilder_ != null) { + return candidatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(candidates_); + } + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + addCandidatesBuilder() { + return getCandidatesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .getDefaultInstance()); + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder + addCandidatesBuilder(int index) { + return getCandidatesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .getDefaultInstance()); + } + /** + * + * + *
+     * Generated candidates.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder> + getCandidatesBuilderList() { + return getCandidatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder> + getCandidatesFieldBuilder() { + if (candidatesBuilder_ == null) { + candidatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .CandidateOrBuilder>( + candidates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + candidates_ = null; + } + return candidatesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateGroundedContentResponse 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.discoveryengine.v1.GenerateGroundedContentResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponseOrBuilder.java new file mode 100644 index 000000000000..fc74ea81af95 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponseOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +public interface GenerateGroundedContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + java.util.List + getCandidatesList(); + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate getCandidates( + int index); + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + int getCandidatesCount(); + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .CandidateOrBuilder> + getCandidatesOrBuilderList(); + /** + * + * + *
+   * Generated candidates.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder + getCandidatesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequest.java index f215f9694253..05980c804b00 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Answer to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Answer to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
    * 
* * @@ -468,7 +468,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Answer to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
      * 
* * @@ -493,7 +493,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Answer to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
      * 
* * @@ -518,7 +518,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Answer to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
      * 
* * @@ -542,7 +542,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Answer to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
      * 
* * @@ -562,7 +562,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Answer to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequestOrBuilder.java index bdbecd0577ae..19d80572d504 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAnswerRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetAnswerRequestOrBuilder * *
    * Required. The resource name of the Answer to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface GetAnswerRequestOrBuilder * *
    * Required. The resource name of the Answer to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequest.java index 2600a807baae..e24ff113053e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Control to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Control to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -469,7 +469,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Control to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -494,7 +494,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Control to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -519,7 +519,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Control to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -543,7 +543,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Control to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * @@ -563,7 +563,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Control to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequestOrBuilder.java index 3ca6c711a71e..d4497e67fcac 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetControlRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetControlRequestOrBuilder * *
    * Required. The resource name of the Control to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface GetControlRequestOrBuilder * *
    * Required. The resource name of the Control to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java index 2c92b0045728..343735d67844 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -469,7 +469,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -494,7 +494,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -519,7 +519,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -543,7 +543,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * @@ -563,7 +563,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Conversation to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java index 2b6b93c02ff4..1970ca5990f2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface GetConversationRequestOrBuilder * *
    * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequest.java index a542adf1ef95..23411857d794 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the Session to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Session to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -469,7 +469,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Session to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -494,7 +494,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Session to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -519,7 +519,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Session to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -543,7 +543,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Session to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * @@ -563,7 +563,7 @@ public Builder clearName() { * *
      * Required. The resource name of the Session to get. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequestOrBuilder.java index 7e2e7c06b504..bb0bfb708d1d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSessionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetSessionRequestOrBuilder * *
    * Required. The resource name of the Session to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface GetSessionRequestOrBuilder * *
    * Required. The resource name of the Session to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContent.java new file mode 100644 index 000000000000..c8bb74358fef --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContent.java @@ -0,0 +1,1995 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Base structured datatype containing multi-part content of a message.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GroundedGenerationContent} + */ +public final class GroundedGenerationContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GroundedGenerationContent) + GroundedGenerationContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundedGenerationContent.newBuilder() to construct. + private GroundedGenerationContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundedGenerationContent() { + role_ = ""; + parts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundedGenerationContent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.class, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder.class); + } + + public interface PartOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.DataCase getDataCase(); + } + /** + * + * + *
+   * Single part of content.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GroundedGenerationContent.Part} + */ + public static final class Part extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) + PartOrBuilder { + private static final long serialVersionUID = 0L; + // Use Part.newBuilder() to construct. + private Part(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Part() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Part(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.class, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder.class); + } + + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + DATA_NOT_SET(0); + private final int value; + + private DataCase(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 DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + /** + * + * + *
+     * Inline text.
+     * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = 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 (dataCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_); + } + 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.discoveryengine.v1.GroundedGenerationContent.Part)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part other = + (com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part 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.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part 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.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GroundedGenerationContent.Part 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Single part of content.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GroundedGenerationContent.Part} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.class, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part build() { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part buildPartial() { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part result = + new com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part other) { + if (other + == com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + .getDefaultInstance()) return this; + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case DATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Inline text.
+       * 
+ * + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GroundedGenerationContent.Part) + private static final com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part(); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Part 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.discoveryengine.v1.GroundedGenerationContent.Part + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + /** + * + * + *
+   * Producer of the content. Must be either `user` or `model`.
+   *
+   * Intended to be used for multi-turn conversations. Otherwise, it can be left
+   * unset.
+   * 
+ * + * string role = 1; + * + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + 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(); + role_ = s; + return s; + } + } + /** + * + * + *
+   * Producer of the content. Must be either `user` or `model`.
+   *
+   * Intended to be used for multi-turn conversations. Otherwise, it can be left
+   * unset.
+   * 
+ * + * string role = 1; + * + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parts_; + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + @java.lang.Override + public java.util.List + getPartsList() { + return parts_; + } + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder> + getPartsOrBuilderList() { + return parts_; + } + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + @java.lang.Override + public int getPartsCount() { + return parts_.size(); + } + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part getParts(int index) { + return parts_.get(index); + } + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder + getPartsOrBuilder(int index) { + return parts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); + } + for (int i = 0; i < parts_.size(); i++) { + output.writeMessage(2, parts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); + } + for (int i = 0; i < parts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GroundedGenerationContent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GroundedGenerationContent other = + (com.google.cloud.discoveryengine.v1.GroundedGenerationContent) obj; + + if (!getRole().equals(other.getRole())) return false; + if (!getPartsList().equals(other.getPartsList())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (getPartsCount() > 0) { + hash = (37 * hash) + PARTS_FIELD_NUMBER; + hash = (53 * hash) + getPartsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent 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.discoveryengine.v1.GroundedGenerationContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent 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.discoveryengine.v1.GroundedGenerationContent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.GroundedGenerationContent 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Base structured datatype containing multi-part content of a message.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GroundedGenerationContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GroundedGenerationContent) + com.google.cloud.discoveryengine.v1.GroundedGenerationContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.class, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GroundedGenerationContent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + role_ = ""; + if (partsBuilder_ == null) { + parts_ = java.util.Collections.emptyList(); + } else { + parts_ = null; + partsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent build() { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent buildPartial() { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent result = + new com.google.cloud.discoveryengine.v1.GroundedGenerationContent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent result) { + if (partsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parts_ = java.util.Collections.unmodifiableList(parts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parts_ = parts_; + } else { + result.parts_ = partsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GroundedGenerationContent) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GroundedGenerationContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GroundedGenerationContent other) { + if (other + == com.google.cloud.discoveryengine.v1.GroundedGenerationContent.getDefaultInstance()) + return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (partsBuilder_ == null) { + if (!other.parts_.isEmpty()) { + if (parts_.isEmpty()) { + parts_ = other.parts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePartsIsMutable(); + parts_.addAll(other.parts_); + } + onChanged(); + } + } else { + if (!other.parts_.isEmpty()) { + if (partsBuilder_.isEmpty()) { + partsBuilder_.dispose(); + partsBuilder_ = null; + parts_ = other.parts_; + bitField0_ = (bitField0_ & ~0x00000002); + partsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartsFieldBuilder() + : null; + } else { + partsBuilder_.addAllMessages(other.parts_); + } + } + } + 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: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.parser(), + extensionRegistry); + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + parts_.add(m); + } else { + partsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object role_ = ""; + /** + * + * + *
+     * Producer of the content. Must be either `user` or `model`.
+     *
+     * Intended to be used for multi-turn conversations. Otherwise, it can be left
+     * unset.
+     * 
+ * + * string role = 1; + * + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Producer of the content. Must be either `user` or `model`.
+     *
+     * Intended to be used for multi-turn conversations. Otherwise, it can be left
+     * unset.
+     * 
+ * + * string role = 1; + * + * @return The bytes for role. + */ + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Producer of the content. Must be either `user` or `model`.
+     *
+     * Intended to be used for multi-turn conversations. Otherwise, it can be left
+     * unset.
+     * 
+ * + * string role = 1; + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Producer of the content. Must be either `user` or `model`.
+     *
+     * Intended to be used for multi-turn conversations. Otherwise, it can be left
+     * unset.
+     * 
+ * + * string role = 1; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Producer of the content. Must be either `user` or `model`.
+     *
+     * Intended to be used for multi-turn conversations. Otherwise, it can be left
+     * unset.
+     * 
+ * + * string role = 1; + * + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + parts_ = java.util.Collections.emptyList(); + + private void ensurePartsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parts_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part>(parts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder> + partsBuilder_; + + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public java.util.List + getPartsList() { + if (partsBuilder_ == null) { + return java.util.Collections.unmodifiableList(parts_); + } else { + return partsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public int getPartsCount() { + if (partsBuilder_ == null) { + return parts_.size(); + } else { + return partsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part getParts(int index) { + if (partsBuilder_ == null) { + return parts_.get(index); + } else { + return partsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder setParts( + int index, com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part value) { + if (partsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartsIsMutable(); + parts_.set(index, value); + onChanged(); + } else { + partsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder setParts( + int index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + builderForValue) { + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + parts_.set(index, builderForValue.build()); + onChanged(); + } else { + partsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder addParts( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part value) { + if (partsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartsIsMutable(); + parts_.add(value); + onChanged(); + } else { + partsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder addParts( + int index, com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part value) { + if (partsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartsIsMutable(); + parts_.add(index, value); + onChanged(); + } else { + partsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder addParts( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + builderForValue) { + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + parts_.add(builderForValue.build()); + onChanged(); + } else { + partsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder addParts( + int index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + builderForValue) { + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + parts_.add(index, builderForValue.build()); + onChanged(); + } else { + partsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder addAllParts( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part> + values) { + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parts_); + onChanged(); + } else { + partsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder clearParts() { + if (partsBuilder_ == null) { + parts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + partsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public Builder removeParts(int index) { + if (partsBuilder_ == null) { + ensurePartsIsMutable(); + parts_.remove(index); + onChanged(); + } else { + partsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + getPartsBuilder(int index) { + return getPartsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder + getPartsOrBuilder(int index) { + if (partsBuilder_ == null) { + return parts_.get(index); + } else { + return partsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder> + getPartsOrBuilderList() { + if (partsBuilder_ != null) { + return partsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parts_); + } + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + addPartsBuilder() { + return getPartsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + .getDefaultInstance()); + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder + addPartsBuilder(int index) { + return getPartsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part + .getDefaultInstance()); + } + /** + * + * + *
+     * Ordered `Parts` that constitute a single message.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder> + getPartsBuilderList() { + return getPartsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder> + getPartsFieldBuilder() { + if (partsBuilder_ == null) { + partsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part.Builder, + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder>( + parts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parts_ = null; + } + return partsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GroundedGenerationContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GroundedGenerationContent) + private static final com.google.cloud.discoveryengine.v1.GroundedGenerationContent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GroundedGenerationContent(); + } + + public static com.google.cloud.discoveryengine.v1.GroundedGenerationContent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundedGenerationContent 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.discoveryengine.v1.GroundedGenerationContent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContentOrBuilder.java new file mode 100644 index 000000000000..60710b52c5dc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationContentOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +public interface GroundedGenerationContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GroundedGenerationContent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Producer of the content. Must be either `user` or `model`.
+   *
+   * Intended to be used for multi-turn conversations. Otherwise, it can be left
+   * unset.
+   * 
+ * + * string role = 1; + * + * @return The role. + */ + java.lang.String getRole(); + /** + * + * + *
+   * Producer of the content. Must be either `user` or `model`.
+   *
+   * Intended to be used for multi-turn conversations. Otherwise, it can be left
+   * unset.
+   * 
+ * + * string role = 1; + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + java.util.List getPartsList(); + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part getParts(int index); + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + int getPartsCount(); + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder> + getPartsOrBuilderList(); + /** + * + * + *
+   * Ordered `Parts` that constitute a single message.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; + * + */ + com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder getPartsOrBuilder( + int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java index 72feb51f6ec5..2df893c36eb1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java @@ -28,6 +28,90 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,45 +147,175 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions.proto\032\027google/api/client.proto\032\037goo" + "gle/api/field_behavior.proto\032\031google/api" + "/resource.proto\032/google/cloud/discoverye" - + "ngine/v1/grounding.proto\"L\n\022CheckGroundi" - + "ngSpec\022\037\n\022citation_threshold\030\001 \001(\001H\000\210\001\001B" - + "\025\n\023_citation_threshold\"\237\003\n\025CheckGroundin" - + "gRequest\022P\n\020grounding_config\030\001 \001(\tB6\340A\002\372" - + "A0\n.discoveryengine.googleapis.com/Groun" - + "dingConfig\022\030\n\020answer_candidate\030\002 \001(\t\022=\n\005" - + "facts\030\003 \003(\0132..google.cloud.discoveryengi" - + "ne.v1.GroundingFact\022K\n\016grounding_spec\030\004 " - + "\001(\01323.google.cloud.discoveryengine.v1.Ch" - + "eckGroundingSpec\022[\n\013user_labels\030\005 \003(\0132F." - + "google.cloud.discoveryengine.v1.CheckGro" - + "undingRequest.UserLabelsEntry\0321\n\017UserLab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"\233\003\n\026CheckGroundingResponse\022\032\n\rsupport_s" - + "core\030\001 \001(\002H\000\210\001\001\022@\n\014cited_chunks\030\003 \003(\0132*." - + "google.cloud.discoveryengine.v1.FactChun" - + "k\022M\n\006claims\030\004 \003(\0132=.google.cloud.discove" - + "ryengine.v1.CheckGroundingResponse.Claim" - + "\032\301\001\n\005Claim\022\026\n\tstart_pos\030\001 \001(\005H\000\210\001\001\022\024\n\007en" - + "d_pos\030\002 \001(\005H\001\210\001\001\022\022\n\nclaim_text\030\003 \001(\t\022\030\n\020" - + "citation_indices\030\004 \003(\005\022%\n\030grounding_chec" - + "k_required\030\006 \001(\010H\002\210\001\001B\014\n\n_start_posB\n\n\010_" - + "end_posB\033\n\031_grounding_check_requiredB\020\n\016" - + "_support_score2\306\002\n\031GroundedGenerationSer" - + "vice\022\324\001\n\016CheckGrounding\0226.google.cloud.d" - + "iscoveryengine.v1.CheckGroundingRequest\032" - + "7.google.cloud.discoveryengine.v1.CheckG" - + "roundingResponse\"Q\202\323\344\223\002K\"F/v1/{grounding" - + "_config=projects/*/locations/*/grounding" - + "Configs/*}:check:\001*\032R\312A\036discoveryengine." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\221\002\n#com.google.c" - + "loud.discoveryengine.v1B\036GroundedGenerat" - + "ionServiceProtoP\001ZMcloud.google.com/go/d" - + "iscoveryengine/apiv1/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo" - + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl" - + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::" - + "DiscoveryEngine::V1b\006proto3" + + "ngine/v1/grounding.proto\"\231\001\n\031GroundedGen" + + "erationContent\022\014\n\004role\030\001 \001(\t\022N\n\005parts\030\002 " + + "\003(\0132?.google.cloud.discoveryengine.v1.Gr" + + "oundedGenerationContent.Part\032\036\n\004Part\022\016\n\004" + + "text\030\001 \001(\tH\000B\006\n\004data\"\311\023\n\036GenerateGrounde" + + "dContentRequest\022A\n\010location\030\001 \001(\tB/\340A\002\372A" + + ")\n\'discoveryengine.googleapis.com/Locati" + + "on\022V\n\022system_instruction\030\005 \001(\0132:.google." + + "cloud.discoveryengine.v1.GroundedGenerat" + + "ionContent\022L\n\010contents\030\002 \003(\0132:.google.cl" + + "oud.discoveryengine.v1.GroundedGeneratio" + + "nContent\022g\n\017generation_spec\030\003 \001(\0132N.goog" + + "le.cloud.discoveryengine.v1.GenerateGrou" + + "ndedContentRequest.GenerationSpec\022e\n\016gro" + + "unding_spec\030\004 \001(\0132M.google.cloud.discove" + + "ryengine.v1.GenerateGroundedContentReque" + + "st.GroundingSpec\022d\n\013user_labels\030\006 \003(\0132O." + + "google.cloud.discoveryengine.v1.Generate" + + "GroundedContentRequest.UserLabelsEntry\032\277" + + "\002\n\016GenerationSpec\022\020\n\010model_id\030\003 \001(\t\022\025\n\rl" + + "anguage_code\030\002 \001(\t\022\030\n\013temperature\030\004 \001(\002H" + + "\000\210\001\001\022\022\n\005top_p\030\005 \001(\002H\001\210\001\001\022\022\n\005top_k\030\007 \001(\005H" + + "\002\210\001\001\022\036\n\021frequency_penalty\030\010 \001(\002H\003\210\001\001\022\035\n\020" + + "presence_penalty\030\t \001(\002H\004\210\001\001\022\036\n\021max_outpu" + + "t_tokens\030\n \001(\005H\005\210\001\001B\016\n\014_temperatureB\010\n\006_" + + "top_pB\010\n\006_top_kB\024\n\022_frequency_penaltyB\023\n" + + "\021_presence_penaltyB\024\n\022_max_output_tokens" + + "\032\273\003\n\035DynamicRetrievalConfiguration\022\212\001\n\tp" + + "redictor\030\001 \001(\0132w.google.cloud.discoverye" + + "ngine.v1.GenerateGroundedContentRequest." + + "DynamicRetrievalConfiguration.DynamicRet" + + "rievalPredictor\032\214\002\n\031DynamicRetrievalPred" + + "ictor\022\220\001\n\007version\030\001 \001(\0162\177.google.cloud.d" + + "iscoveryengine.v1.GenerateGroundedConten" + + "tRequest.DynamicRetrievalConfiguration.D" + + "ynamicRetrievalPredictor.Version\022\026\n\tthre" + + "shold\030\002 \001(\002H\000\210\001\001\"6\n\007Version\022\027\n\023VERSION_U" + + "NSPECIFIED\020\000\022\022\n\016V1_INDEPENDENT\020\001B\014\n\n_thr" + + "eshold\032\327\007\n\017GroundingSource\022u\n\rinline_sou" + + "rce\030\001 \001(\0132\\.google.cloud.discoveryengine" + + ".v1.GenerateGroundedContentRequest.Groun" + + "dingSource.InlineSourceH\000\022u\n\rsearch_sour" + + "ce\030\002 \001(\0132\\.google.cloud.discoveryengine." + + "v1.GenerateGroundedContentRequest.Ground" + + "ingSource.SearchSourceH\000\022\202\001\n\024google_sear" + + "ch_source\030\003 \001(\0132b.google.cloud.discovery" + + "engine.v1.GenerateGroundedContentRequest" + + ".GroundingSource.GoogleSearchSourceH\000\032\215\002" + + "\n\014InlineSource\022G\n\017grounding_facts\030\001 \003(\0132" + + "..google.cloud.discoveryengine.v1.Ground" + + "ingFact\022\200\001\n\nattributes\030\002 \003(\0132l.google.cl" + + "oud.discoveryengine.v1.GenerateGroundedC" + + "ontentRequest.GroundingSource.InlineSour" + + "ce.AttributesEntry\0321\n\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\230\001\n\014Search" + + "Source\022I\n\016serving_config\030\001 \001(\tB1\372A.\n,dis" + + "coveryengine.googleapis.com/ServingConfi" + + "g\022\030\n\020max_result_count\030\002 \001(\005\022\016\n\006filter\030\003 " + + "\001(\t\022\023\n\013safe_search\030\005 \001(\010\032\233\001\n\022GoogleSearc" + + "hSource\022\204\001\n\030dynamic_retrieval_config\030\002 \001" + + "(\0132].google.cloud.discoveryengine.v1.Gen" + + "erateGroundedContentRequest.DynamicRetri" + + "evalConfigurationB\003\340A\001B\010\n\006source\032{\n\rGrou" + + "ndingSpec\022j\n\021grounding_sources\030\001 \003(\0132O.g" + + "oogle.cloud.discoveryengine.v1.GenerateG" + + "roundedContentRequest.GroundingSource\0321\n" + + "\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\353\017\n\037GenerateGroundedContentResp" + + "onse\022^\n\ncandidates\030\001 \003(\0132J.google.cloud." + + "discoveryengine.v1.GenerateGroundedConte" + + "ntResponse.Candidate\032\347\016\n\tCandidate\022\r\n\005in" + + "dex\030\001 \001(\005\022K\n\007content\030\002 \001(\0132:.google.clou" + + "d.discoveryengine.v1.GroundedGenerationC" + + "ontent\022\034\n\017grounding_score\030\003 \001(\002H\000\210\001\001\022x\n\022" + + "grounding_metadata\030\004 \001(\0132\\.google.cloud." + + "discoveryengine.v1.GenerateGroundedConte" + + "ntResponse.Candidate.GroundingMetadata\032\321" + + "\014\n\021GroundingMetadata\022\212\001\n\022retrieval_metad" + + "ata\030\005 \003(\0132n.google.cloud.discoveryengine" + + ".v1.GenerateGroundedContentResponse.Cand" + + "idate.GroundingMetadata.RetrievalMetadat" + + "a\022B\n\016support_chunks\030\001 \003(\0132*.google.cloud" + + ".discoveryengine.v1.FactChunk\022\032\n\022web_sea" + + "rch_queries\030\003 \003(\t\022\211\001\n\022search_entry_point" + + "\030\004 \001(\0132m.google.cloud.discoveryengine.v1" + + ".GenerateGroundedContentResponse.Candida" + + "te.GroundingMetadata.SearchEntryPoint\022\210\001" + + "\n\021grounding_support\030\002 \003(\0132m.google.cloud" + + ".discoveryengine.v1.GenerateGroundedCont" + + "entResponse.Candidate.GroundingMetadata." + + "GroundingSupport\032\247\003\n\021RetrievalMetadata\022\205" + + "\001\n\006source\030\001 \001(\0162u.google.cloud.discovery" + + "engine.v1.GenerateGroundedContentRespons" + + "e.Candidate.GroundingMetadata.RetrievalM" + + "etadata.Source\022\231\001\n\032dynamic_retrieval_met" + + "adata\030\002 \001(\0132u.google.cloud.discoveryengi" + + "ne.v1.GenerateGroundedContentResponse.Ca" + + "ndidate.GroundingMetadata.DynamicRetriev" + + "alMetadata\"n\n\006Source\022\026\n\022SOURCE_UNSPECIFI" + + "ED\020\000\022\024\n\020VERTEX_AI_SEARCH\020\001\022\021\n\rGOOGLE_SEA" + + "RCH\020\003\022\022\n\016INLINE_CONTENT\020\002\022\017\n\013GOOGLE_MAPS" + + "\020\004\032\267\001\n\030DynamicRetrievalMetadata\022\232\001\n\022pred" + + "ictor_metadata\030\001 \001(\0132~.google.cloud.disc" + + "overyengine.v1.GenerateGroundedContentRe" + + "sponse.Candidate.GroundingMetadata.Dynam" + + "icRetrievalPredictorMetadata\032\236\002\n!Dynamic" + + "RetrievalPredictorMetadata\022\230\001\n\007version\030\001" + + " \001(\0162\206\001.google.cloud.discoveryengine.v1." + + "GenerateGroundedContentResponse.Candidat" + + "e.GroundingMetadata.DynamicRetrievalPred" + + "ictorMetadata.Version\022\027\n\nprediction\030\002 \001(" + + "\002H\000\210\001\001\"6\n\007Version\022\027\n\023VERSION_UNSPECIFIED" + + "\020\000\022\022\n\016V1_INDEPENDENT\020\001B\r\n\013_prediction\032>\n" + + "\020SearchEntryPoint\022\030\n\020rendered_content\030\001 " + + "\001(\t\022\020\n\010sdk_blob\030\002 \001(\014\032s\n\020GroundingSuppor" + + "t\022\022\n\nclaim_text\030\001 \001(\t\022\035\n\025support_chunk_i" + + "ndices\030\003 \003(\005\022\032\n\rsupport_score\030\002 \001(\002H\000\210\001\001" + + "B\020\n\016_support_scoreB\022\n\020_grounding_score\"L" + + "\n\022CheckGroundingSpec\022\037\n\022citation_thresho" + + "ld\030\001 \001(\001H\000\210\001\001B\025\n\023_citation_threshold\"\237\003\n" + + "\025CheckGroundingRequest\022P\n\020grounding_conf" + + "ig\030\001 \001(\tB6\340A\002\372A0\n.discoveryengine.google" + + "apis.com/GroundingConfig\022\030\n\020answer_candi" + + "date\030\002 \001(\t\022=\n\005facts\030\003 \003(\0132..google.cloud" + + ".discoveryengine.v1.GroundingFact\022K\n\016gro" + + "unding_spec\030\004 \001(\01323.google.cloud.discove" + + "ryengine.v1.CheckGroundingSpec\022[\n\013user_l" + + "abels\030\005 \003(\0132F.google.cloud.discoveryengi" + + "ne.v1.CheckGroundingRequest.UserLabelsEn" + + "try\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\233\003\n\026CheckGroundingRespons" + + "e\022\032\n\rsupport_score\030\001 \001(\002H\000\210\001\001\022@\n\014cited_c" + + "hunks\030\003 \003(\0132*.google.cloud.discoveryengi" + + "ne.v1.FactChunk\022M\n\006claims\030\004 \003(\0132=.google" + + ".cloud.discoveryengine.v1.CheckGrounding" + + "Response.Claim\032\301\001\n\005Claim\022\026\n\tstart_pos\030\001 " + + "\001(\005H\000\210\001\001\022\024\n\007end_pos\030\002 \001(\005H\001\210\001\001\022\022\n\nclaim_" + + "text\030\003 \001(\t\022\030\n\020citation_indices\030\004 \003(\005\022%\n\030" + + "grounding_check_required\030\006 \001(\010H\002\210\001\001B\014\n\n_" + + "start_posB\n\n\010_end_posB\033\n\031_grounding_chec" + + "k_requiredB\020\n\016_support_score2\250\006\n\031Grounde" + + "dGenerationService\022\366\001\n\035StreamGenerateGro" + + "undedContent\022?.google.cloud.discoveryeng" + + "ine.v1.GenerateGroundedContentRequest\032@." + + "google.cloud.discoveryengine.v1.Generate" + + "GroundedContentResponse\"N\202\323\344\223\002H\"C/v1/{lo" + + "cation=projects/*/locations/*}:streamGen" + + "erateGroundedContent:\001*(\0010\001\022\346\001\n\027Generate" + + "GroundedContent\022?.google.cloud.discovery" + + "engine.v1.GenerateGroundedContentRequest" + + "\032@.google.cloud.discoveryengine.v1.Gener" + + "ateGroundedContentResponse\"H\202\323\344\223\002B\"=/v1/" + + "{location=projects/*/locations/*}:genera" + + "teGroundedContent:\001*\022\324\001\n\016CheckGrounding\022" + + "6.google.cloud.discoveryengine.v1.CheckG" + + "roundingRequest\0327.google.cloud.discovery" + + "engine.v1.CheckGroundingResponse\"Q\202\323\344\223\002K" + + "\"F/v1/{grounding_config=projects/*/locat" + + "ions/*/groundingConfigs/*}:check:\001*\032R\312A\036" + + "discoveryengine.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\221\002\n#com.google.cloud.discoveryengine.v1B" + + "\036GroundedGenerationServiceProtoP\001ZMcloud" + + ".google.com/go/discoveryengine/apiv1/dis" + + "coveryenginepb;discoveryenginepb\242\002\017DISCO" + + "VERYENGINE\252\002\037Google.Cloud.DiscoveryEngin" + + "e.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002" + + "\"Google::Cloud::DiscoveryEngine::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -113,8 +327,228 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.GroundingProto.getDescriptor(), }); - internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor, + new java.lang.String[] { + "Role", "Parts", + }); + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor = + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_Part_descriptor, + new java.lang.String[] { + "Text", "Data", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor, + new java.lang.String[] { + "Location", + "SystemInstruction", + "Contents", + "GenerationSpec", + "GroundingSpec", + "UserLabels", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GenerationSpec_descriptor, + new java.lang.String[] { + "ModelId", + "LanguageCode", + "Temperature", + "TopP", + "TopK", + "FrequencyPenalty", + "PresencePenalty", + "MaxOutputTokens", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor, + new java.lang.String[] { + "Predictor", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_descriptor, + new java.lang.String[] { + "Version", "Threshold", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor, + new java.lang.String[] { + "InlineSource", "SearchSource", "GoogleSearchSource", "Source", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor, + new java.lang.String[] { + "GroundingFacts", "Attributes", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_InlineSource_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_SearchSource_descriptor, + new java.lang.String[] { + "ServingConfig", "MaxResultCount", "Filter", "SafeSearch", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor, + new java.lang.String[] { + "DynamicRetrievalConfig", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor, + new java.lang.String[] { + "GroundingSources", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor, + new java.lang.String[] { + "Candidates", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor, + new java.lang.String[] { + "Index", "Content", "GroundingScore", "GroundingMetadata", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor, + new java.lang.String[] { + "RetrievalMetadata", + "SupportChunks", + "WebSearchQueries", + "SearchEntryPoint", + "GroundingSupport", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor, + new java.lang.String[] { + "Source", "DynamicRetrievalMetadata", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata_descriptor, + new java.lang.String[] { + "PredictorMetadata", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_descriptor, + new java.lang.String[] { + "Version", "Prediction", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint_descriptor, + new java.lang.String[] { + "RenderedContent", "SdkBlob", + }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor, + new java.lang.String[] { + "ClaimText", "SupportChunkIndices", "SupportScore", + }); + internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor, @@ -122,7 +556,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CitationThreshold", }); internal_static_google_cloud_discoveryengine_v1_CheckGroundingRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_discoveryengine_v1_CheckGroundingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_CheckGroundingRequest_descriptor, @@ -140,7 +574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_discoveryengine_v1_CheckGroundingResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_discoveryengine_v1_CheckGroundingResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_CheckGroundingResponse_descriptor, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequest.java index 837f19a7c05b..ed7049e7c960 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequest.java @@ -74,9 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -102,9 +102,9 @@ public java.lang.String getParent() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -676,9 +676,9 @@ public Builder mergeFrom( * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -703,9 +703,9 @@ public java.lang.String getParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -730,9 +730,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -756,9 +756,9 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * @@ -778,9 +778,9 @@ public Builder clearParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
      * or
-     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequestOrBuilder.java index acb243dc5431..441487ca9d2d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListControlsRequestOrBuilder.java @@ -29,9 +29,9 @@ public interface ListControlsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * @@ -46,9 +46,9 @@ public interface ListControlsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
    * or
-   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`.
+   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java index 963ad1b29782..f3d7655e3c53 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getParent() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -769,7 +769,7 @@ public Builder mergeFrom( * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -794,7 +794,7 @@ public java.lang.String getParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -819,7 +819,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -843,7 +843,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -863,7 +863,7 @@ public Builder clearParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java index d84940c5b896..50774c35b04c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListConversationsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface ListConversationsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java index d9db86c71b3f..b8c5d6fc2c36 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getParent() { * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -766,7 +766,7 @@ public Builder mergeFrom( * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -791,7 +791,7 @@ public java.lang.String getParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -816,7 +816,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -840,7 +840,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * @@ -860,7 +860,7 @@ public Builder clearParent() { * *
      * Required. The data store resource name. Format:
-     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java index 0130ed57965e..c00f78149f70 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListSessionsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface ListSessionsRequestOrBuilder * *
    * Required. The data store resource name. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java new file mode 100644 index 000000000000..2e7a004af269 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java index 00e9ecc51053..b6b403de0ea6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java @@ -2017,7 +2017,7 @@ public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getDefaultInstan * *
    * Output only. Full resource name of the project, for example
-   * `projects/{project_number}`.
+   * `projects/{project}`.
    * Note that when making requests, project number and project id are both
    * acceptable, but the server will always respond in project number.
    * 
@@ -2043,7 +2043,7 @@ public java.lang.String getName() { * *
    * Output only. Full resource name of the project, for example
-   * `projects/{project_number}`.
+   * `projects/{project}`.
    * Note that when making requests, project number and project id are both
    * acceptable, but the server will always respond in project number.
    * 
@@ -2797,7 +2797,7 @@ public Builder mergeFrom( * *
      * Output only. Full resource name of the project, for example
-     * `projects/{project_number}`.
+     * `projects/{project}`.
      * Note that when making requests, project number and project id are both
      * acceptable, but the server will always respond in project number.
      * 
@@ -2822,7 +2822,7 @@ public java.lang.String getName() { * *
      * Output only. Full resource name of the project, for example
-     * `projects/{project_number}`.
+     * `projects/{project}`.
      * Note that when making requests, project number and project id are both
      * acceptable, but the server will always respond in project number.
      * 
@@ -2847,7 +2847,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. Full resource name of the project, for example
-     * `projects/{project_number}`.
+     * `projects/{project}`.
      * Note that when making requests, project number and project id are both
      * acceptable, but the server will always respond in project number.
      * 
@@ -2871,7 +2871,7 @@ public Builder setName(java.lang.String value) { * *
      * Output only. Full resource name of the project, for example
-     * `projects/{project_number}`.
+     * `projects/{project}`.
      * Note that when making requests, project number and project id are both
      * acceptable, but the server will always respond in project number.
      * 
@@ -2891,7 +2891,7 @@ public Builder clearName() { * *
      * Output only. Full resource name of the project, for example
-     * `projects/{project_number}`.
+     * `projects/{project}`.
      * Note that when making requests, project number and project id are both
      * acceptable, but the server will always respond in project number.
      * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java index 2ce2f8ec358b..189264253b2b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java @@ -29,7 +29,7 @@ public interface ProjectOrBuilder * *
    * Output only. Full resource name of the project, for example
-   * `projects/{project_number}`.
+   * `projects/{project}`.
    * Note that when making requests, project number and project id are both
    * acceptable, but the server will always respond in project number.
    * 
@@ -44,7 +44,7 @@ public interface ProjectOrBuilder * *
    * Output only. Full resource name of the project, for example
-   * `projects/{project_number}`.
+   * `projects/{project}`.
    * Note that when making requests, project number and project id are both
    * acceptable, but the server will always respond in project number.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequest.java index c3b8ccb4e0f7..d7d936f25f4d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the catalog under which the events are
    * created. The format is
-   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getParent() { *
    * Required. The resource name of the catalog under which the events are
    * created. The format is
-   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
    * 
* * @@ -641,7 +641,7 @@ public Builder mergeFrom( *
      * Required. The resource name of the catalog under which the events are
      * created. The format is
-     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
      * 
* * @@ -667,7 +667,7 @@ public java.lang.String getParent() { *
      * Required. The resource name of the catalog under which the events are
      * created. The format is
-     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
      * 
* * @@ -693,7 +693,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The resource name of the catalog under which the events are
      * created. The format is
-     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
      * 
* * @@ -718,7 +718,7 @@ public Builder setParent(java.lang.String value) { *
      * Required. The resource name of the catalog under which the events are
      * created. The format is
-     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
      * 
* * @@ -739,7 +739,7 @@ public Builder clearParent() { *
      * Required. The resource name of the catalog under which the events are
      * created. The format is
-     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+     * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequestOrBuilder.java index 0b085bd7d466..812fb413a1cb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeUserEventsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface PurgeUserEventsRequestOrBuilder *
    * Required. The resource name of the catalog under which the events are
    * created. The format is
-   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
    * 
* * @@ -46,7 +46,7 @@ public interface PurgeUserEventsRequestOrBuilder *
    * Required. The resource name of the catalog under which the events are
    * created. The format is
-   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`
+   * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java index a1d3cc573626..f701e2206ce4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java @@ -88,7 +88,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
    * Required. The resource name of the rank service config, such as
-   * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+   * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
    * 
* * @@ -114,7 +114,7 @@ public java.lang.String getRankingConfig() { * *
    * Required. The resource name of the rank service config, such as
-   * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+   * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
    * 
* * @@ -1108,7 +1108,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the rank service config, such as
-     * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+     * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
      * 
* * @@ -1133,7 +1133,7 @@ public java.lang.String getRankingConfig() { * *
      * Required. The resource name of the rank service config, such as
-     * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+     * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
      * 
* * @@ -1158,7 +1158,7 @@ public com.google.protobuf.ByteString getRankingConfigBytes() { * *
      * Required. The resource name of the rank service config, such as
-     * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+     * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
      * 
* * @@ -1182,7 +1182,7 @@ public Builder setRankingConfig(java.lang.String value) { * *
      * Required. The resource name of the rank service config, such as
-     * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+     * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
      * 
* * @@ -1202,7 +1202,7 @@ public Builder clearRankingConfig() { * *
      * Required. The resource name of the rank service config, such as
-     * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+     * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java index 9b2a3de55295..669a9626cff0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface RankRequestOrBuilder * *
    * Required. The resource name of the rank service config, such as
-   * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+   * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
    * 
* * @@ -44,7 +44,7 @@ public interface RankRequestOrBuilder * *
    * Required. The resource name of the rank service config, such as
-   * `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
+   * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequest.java index 9aea717493df..975f9e577ece 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequest.java @@ -43,6 +43,7 @@ private RecrawlUrisRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private RecrawlUrisRequest() { siteSearchEngine_ = ""; uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + siteCredential_ = ""; } @java.lang.Override @@ -201,6 +202,61 @@ public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } + public static final int SITE_CREDENTIAL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object siteCredential_ = ""; + /** + * + * + *
+   * Optional. Full resource name of the [SiteCredential][], such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+   * Only set to crawl private URIs.
+   * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteCredential. + */ + @java.lang.Override + public java.lang.String getSiteCredential() { + java.lang.Object ref = siteCredential_; + 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(); + siteCredential_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Full resource name of the [SiteCredential][], such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+   * Only set to crawl private URIs.
+   * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteCredential. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteCredentialBytes() { + java.lang.Object ref = siteCredential_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteCredential_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -221,6 +277,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uris_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteCredential_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, siteCredential_); + } getUnknownFields().writeTo(output); } @@ -241,6 +300,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUrisList().size(); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteCredential_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, siteCredential_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -259,6 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSiteSearchEngine().equals(other.getSiteSearchEngine())) return false; if (!getUrisList().equals(other.getUrisList())) return false; + if (!getSiteCredential().equals(other.getSiteCredential())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,6 +339,8 @@ public int hashCode() { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } + hash = (37 * hash) + SITE_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getSiteCredential().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +485,7 @@ public Builder clear() { bitField0_ = 0; siteSearchEngine_ = ""; uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + siteCredential_ = ""; return this; } @@ -463,6 +529,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.RecrawlUrisReques uris_.makeImmutable(); result.uris_ = uris_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteCredential_ = siteCredential_; + } } @java.lang.Override @@ -526,6 +595,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.RecrawlUrisRequest } onChanged(); } + if (!other.getSiteCredential().isEmpty()) { + siteCredential_ = other.siteCredential_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -565,6 +639,12 @@ public Builder mergeFrom( uris_.add(s); break; } // case 18 + case 42: + { + siteCredential_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -911,6 +991,122 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object siteCredential_ = ""; + /** + * + * + *
+     * Optional. Full resource name of the [SiteCredential][], such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+     * Only set to crawl private URIs.
+     * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteCredential. + */ + public java.lang.String getSiteCredential() { + java.lang.Object ref = siteCredential_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteCredential_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Full resource name of the [SiteCredential][], such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+     * Only set to crawl private URIs.
+     * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteCredential. + */ + public com.google.protobuf.ByteString getSiteCredentialBytes() { + java.lang.Object ref = siteCredential_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteCredential_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Full resource name of the [SiteCredential][], such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+     * Only set to crawl private URIs.
+     * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The siteCredential to set. + * @return This builder for chaining. + */ + public Builder setSiteCredential(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + siteCredential_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full resource name of the [SiteCredential][], such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+     * Only set to crawl private URIs.
+     * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSiteCredential() { + siteCredential_ = getDefaultInstance().getSiteCredential(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Full resource name of the [SiteCredential][], such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+     * Only set to crawl private URIs.
+     * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for siteCredential to set. + * @return This builder for chaining. + */ + public Builder setSiteCredentialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + siteCredential_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequestOrBuilder.java index c8fef0bc2aaf..3da79af6241d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecrawlUrisRequestOrBuilder.java @@ -119,4 +119,33 @@ public interface RecrawlUrisRequestOrBuilder * @return The bytes of the uris at the given index. */ com.google.protobuf.ByteString getUrisBytes(int index); + + /** + * + * + *
+   * Optional. Full resource name of the [SiteCredential][], such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+   * Only set to crawl private URIs.
+   * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteCredential. + */ + java.lang.String getSiteCredential(); + /** + * + * + *
+   * Optional. Full resource name of the [SiteCredential][], such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
+   * Only set to crawl private URIs.
+   * 
+ * + * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteCredential. + */ + com.google.protobuf.ByteString getSiteCredentialBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java index c76c77162828..35193a731f52 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java @@ -933,6 +933,35 @@ public interface DataStoreSpecOrBuilder * @return The bytes for dataStore. */ com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
+     * Optional. Filter specification to filter documents in the data store
+     * specified by data_store field. For more information on filtering, see
+     * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+     * Optional. Filter specification to filter documents in the data store
+     * specified by data_store field. For more information on filtering, see
+     * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } /** * @@ -957,6 +986,7 @@ private DataStoreSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) private DataStoreSpec() { dataStore_ = ""; + filter_ = ""; } @java.lang.Override @@ -1039,6 +1069,61 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } } + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. Filter specification to filter documents in the data store
+     * specified by data_store field. For more information on filtering, see
+     * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Filter specification to filter documents in the data store
+     * specified by data_store field. For more information on filtering, see
+     * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1056,6 +1141,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStore_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } getUnknownFields().writeTo(output); } @@ -1068,6 +1156,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStore_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataStore_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1085,6 +1176,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec) obj; if (!getDataStore().equals(other.getDataStore())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1098,6 +1190,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1245,6 +1339,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; dataStore_ = ""; + filter_ = ""; return this; } @@ -1286,6 +1381,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.dataStore_ = dataStore_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -1343,6 +1441,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1375,6 +1478,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1520,6 +1629,122 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + /** + * + * + *
+       * Optional. Filter specification to filter documents in the data store
+       * specified by data_store field. For more information on filtering, see
+       * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+       * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Filter specification to filter documents in the data store
+       * specified by data_store field. For more information on filtering, see
+       * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+       * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Filter specification to filter documents in the data store
+       * specified by data_store field. For more information on filtering, see
+       * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+       * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Filter specification to filter documents in the data store
+       * specified by data_store field. For more information on filtering, see
+       * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+       * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Filter specification to filter documents in the data store
+       * specified by data_store field. For more information on filtering, see
+       * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
+       * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6718,6 +6943,54 @@ public interface ConditionBoostSpecOrBuilder * @return The boost. */ float getBoost(); + + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return Whether the boostControlSpec field is set. + */ + boolean hasBoostControlSpec(); + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return The boostControlSpec. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getBoostControlSpec(); + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder(); } /** * @@ -6766,74 +7039,3239 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } - public static final int CONDITION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object condition_ = ""; - /** - * - * - *
-       * An expression which specifies a boost condition. The syntax and
-       * supported fields are the same as a filter expression. See
-       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]
-       * for detail syntax and limitations.
-       *
-       * Examples:
-       *
-       * * To boost documents with document ID "doc_1" or "doc_2", and
-       * color "Red" or "Blue":
-       * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
-       * 
- * - * string condition = 1; - * - * @return The condition. - */ - @java.lang.Override - public java.lang.String getCondition() { - java.lang.Object ref = condition_; - 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(); - condition_ = s; - return s; - } - } - /** - * - * - *
-       * An expression which specifies a boost condition. The syntax and
-       * supported fields are the same as a filter expression. See
-       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]
-       * for detail syntax and limitations.
-       *
-       * Examples:
-       *
-       * * To boost documents with document ID "doc_1" or "doc_2", and
-       * color "Red" or "Blue":
-       * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
-       * 
- * - * string condition = 1; - * - * @return The bytes for condition. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConditionBytes() { - java.lang.Object ref = condition_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - condition_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public interface BoostControlSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * The name of the field whose value will be used to determine the
+         * boost amount.
+         * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+         * The name of the field whose value will be used to determine the
+         * boost amount.
+         * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
+         * The attribute type to be used to determine the boost amount. The
+         * attribute value can be derived from the field value of the specified
+         * field_name. In the case of numerical it is straightforward i.e.
+         * attribute_value = numerical_field_value. In the case of freshness
+         * however, attribute_value = (time.now() - datetime_field_value).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + int getAttributeTypeValue(); + /** + * + * + *
+         * The attribute type to be used to determine the boost amount. The
+         * attribute value can be derived from the field value of the specified
+         * field_name. In the case of numerical it is straightforward i.e.
+         * attribute_value = numerical_field_value. In the case of freshness
+         * however, attribute_value = (time.now() - datetime_field_value).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The attributeType. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + getAttributeType(); + + /** + * + * + *
+         * The interpolation type to be applied to connect the control points
+         * listed below.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + int getInterpolationTypeValue(); + /** + * + * + *
+         * The interpolation type to be applied to connect the control points
+         * listed below.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The interpolationType. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + getInterpolationType(); + + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + getControlPointsList(); + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getControlPoints(int index); + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + int getControlPointsCount(); + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList(); + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder + getControlPointsOrBuilder(int index); + } + /** + * + * + *
+       * Specification for custom ranking based on customer specified attribute
+       * value. It provides more controls for customized ranking than the simple
+       * (condition, boost) combination above.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec} + */ + public static final class BoostControlSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec) + BoostControlSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoostControlSpec.newBuilder() to construct. + private BoostControlSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BoostControlSpec() { + fieldName_ = ""; + attributeType_ = 0; + interpolationType_ = 0; + controlPoints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BoostControlSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder.class); + } + + /** + * + * + *
+         * The attribute(or function) for which the custom ranking is to be
+         * applied.
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType} + */ + public enum AttributeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+           * Unspecified AttributeType.
+           * 
+ * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + ATTRIBUTE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+           * The value of the numerical field will be used to dynamically update
+           * the boost amount. In this case, the attribute_value (the x value)
+           * of the control point will be the actual value of the numerical
+           * field for which the boost_amount is specified.
+           * 
+ * + * NUMERICAL = 1; + */ + NUMERICAL(1), + /** + * + * + *
+           * For the freshness use case the attribute value will be the duration
+           * between the current time and the date in the datetime field
+           * specified. The value must be formatted as an XSD `dayTimeDuration`
+           * value (a restricted subset of an ISO 8601 duration value). The
+           * pattern for this is: `[nD][T[nH][nM][nS]]`.
+           * For example, `5D`, `3DT12H30M`, `T24H`.
+           * 
+ * + * FRESHNESS = 2; + */ + FRESHNESS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+           * Unspecified AttributeType.
+           * 
+ * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+           * The value of the numerical field will be used to dynamically update
+           * the boost amount. In this case, the attribute_value (the x value)
+           * of the control point will be the actual value of the numerical
+           * field for which the boost_amount is specified.
+           * 
+ * + * NUMERICAL = 1; + */ + public static final int NUMERICAL_VALUE = 1; + /** + * + * + *
+           * For the freshness use case the attribute value will be the duration
+           * between the current time and the date in the datetime field
+           * specified. The value must be formatted as an XSD `dayTimeDuration`
+           * value (a restricted subset of an ISO 8601 duration value). The
+           * pattern for this is: `[nD][T[nH][nM][nS]]`.
+           * For example, `5D`, `3DT12H30M`, `T24H`.
+           * 
+ * + * FRESHNESS = 2; + */ + public static final int FRESHNESS_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 AttributeType 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 AttributeType forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTE_TYPE_UNSPECIFIED; + case 1: + return NUMERICAL; + case 2: + return FRESHNESS; + 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 AttributeType findValueByNumber(int number) { + return AttributeType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AttributeType[] VALUES = values(); + + public static AttributeType 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 AttributeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType) + } + + /** + * + * + *
+         * The interpolation type to be applied. Default will be linear
+         * (Piecewise Linear).
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType} + */ + public enum InterpolationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+           * Interpolation type is unspecified. In this case, it defaults to
+           * Linear.
+           * 
+ * + * INTERPOLATION_TYPE_UNSPECIFIED = 0; + */ + INTERPOLATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+           * Piecewise linear interpolation will be applied.
+           * 
+ * + * LINEAR = 1; + */ + LINEAR(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+           * Interpolation type is unspecified. In this case, it defaults to
+           * Linear.
+           * 
+ * + * INTERPOLATION_TYPE_UNSPECIFIED = 0; + */ + public static final int INTERPOLATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+           * Piecewise linear interpolation will be applied.
+           * 
+ * + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterpolationType 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 InterpolationType forNumber(int value) { + switch (value) { + case 0: + return INTERPOLATION_TYPE_UNSPECIFIED; + case 1: + return LINEAR; + 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 InterpolationType findValueByNumber(int number) { + return InterpolationType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final InterpolationType[] VALUES = values(); + + public static InterpolationType 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 InterpolationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType) + } + + public interface ControlPointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * Can be one of:
+           * 1. The numerical field value.
+           * 2. The duration spec for freshness:
+           * The value must be formatted as an XSD `dayTimeDuration` value (a
+           * restricted subset of an ISO 8601 duration value). The pattern for
+           * this is: `[nD][T[nH][nM][nS]]`.
+           * 
+ * + * string attribute_value = 1; + * + * @return The attributeValue. + */ + java.lang.String getAttributeValue(); + /** + * + * + *
+           * Can be one of:
+           * 1. The numerical field value.
+           * 2. The duration spec for freshness:
+           * The value must be formatted as an XSD `dayTimeDuration` value (a
+           * restricted subset of an ISO 8601 duration value). The pattern for
+           * this is: `[nD][T[nH][nM][nS]]`.
+           * 
+ * + * string attribute_value = 1; + * + * @return The bytes for attributeValue. + */ + com.google.protobuf.ByteString getAttributeValueBytes(); + + /** + * + * + *
+           * The value between -1 to 1 by which to boost the score if the
+           * attribute_value evaluates to the value specified above.
+           * 
+ * + * float boost_amount = 2; + * + * @return The boostAmount. + */ + float getBoostAmount(); + } + /** + * + * + *
+         * The control points used to define the curve. The curve defined
+         * through these control points can only be monotonically increasing
+         * or decreasing(constant values are acceptable).
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint} + */ + public static final class ControlPoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + ControlPointOrBuilder { + private static final long serialVersionUID = 0L; + // Use ControlPoint.newBuilder() to construct. + private ControlPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlPoint() { + attributeValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlPoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.class, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder.class); + } + + public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeValue_ = ""; + /** + * + * + *
+           * Can be one of:
+           * 1. The numerical field value.
+           * 2. The duration spec for freshness:
+           * The value must be formatted as an XSD `dayTimeDuration` value (a
+           * restricted subset of an ISO 8601 duration value). The pattern for
+           * this is: `[nD][T[nH][nM][nS]]`.
+           * 
+ * + * string attribute_value = 1; + * + * @return The attributeValue. + */ + @java.lang.Override + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + 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(); + attributeValue_ = s; + return s; + } + } + /** + * + * + *
+           * Can be one of:
+           * 1. The numerical field value.
+           * 2. The duration spec for freshness:
+           * The value must be formatted as an XSD `dayTimeDuration` value (a
+           * restricted subset of an ISO 8601 duration value). The pattern for
+           * this is: `[nD][T[nH][nM][nS]]`.
+           * 
+ * + * string attribute_value = 1; + * + * @return The bytes for attributeValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_AMOUNT_FIELD_NUMBER = 2; + private float boostAmount_ = 0F; + /** + * + * + *
+           * The value between -1 to 1 by which to boost the score if the
+           * attribute_value evaluates to the value specified above.
+           * 
+ * + * float boost_amount = 2; + * + * @return The boostAmount. + */ + @java.lang.Override + public float getBoostAmount() { + return boostAmount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeValue_); + } + if (java.lang.Float.floatToRawIntBits(boostAmount_) != 0) { + output.writeFloat(2, boostAmount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeValue_); + } + if (java.lang.Float.floatToRawIntBits(boostAmount_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boostAmount_); + } + 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + other = + (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) + obj; + + if (!getAttributeValue().equals(other.getAttributeValue())) return false; + if (java.lang.Float.floatToIntBits(getBoostAmount()) + != java.lang.Float.floatToIntBits(other.getBoostAmount())) 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) + ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAttributeValue().hashCode(); + hash = (37 * hash) + BOOST_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoostAmount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + 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.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + 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.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+           * The control points used to define the curve. The curve defined
+           * through these control points can only be monotonically increasing
+           * or decreasing(constant values are acceptable).
+           * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.class, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeValue_ = ""; + boostAmount_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + build() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + result = + new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeValue_ = attributeValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.boostAmount_ = boostAmount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()) return this; + if (!other.getAttributeValue().isEmpty()) { + attributeValue_ = other.attributeValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getBoostAmount() != 0F) { + setBoostAmount(other.getBoostAmount()); + } + 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: + { + attributeValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + boostAmount_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attributeValue_ = ""; + /** + * + * + *
+             * Can be one of:
+             * 1. The numerical field value.
+             * 2. The duration spec for freshness:
+             * The value must be formatted as an XSD `dayTimeDuration` value (a
+             * restricted subset of an ISO 8601 duration value). The pattern for
+             * this is: `[nD][T[nH][nM][nS]]`.
+             * 
+ * + * string attribute_value = 1; + * + * @return The attributeValue. + */ + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * Can be one of:
+             * 1. The numerical field value.
+             * 2. The duration spec for freshness:
+             * The value must be formatted as an XSD `dayTimeDuration` value (a
+             * restricted subset of an ISO 8601 duration value). The pattern for
+             * this is: `[nD][T[nH][nM][nS]]`.
+             * 
+ * + * string attribute_value = 1; + * + * @return The bytes for attributeValue. + */ + public com.google.protobuf.ByteString getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * Can be one of:
+             * 1. The numerical field value.
+             * 2. The duration spec for freshness:
+             * The value must be formatted as an XSD `dayTimeDuration` value (a
+             * restricted subset of an ISO 8601 duration value). The pattern for
+             * this is: `[nD][T[nH][nM][nS]]`.
+             * 
+ * + * string attribute_value = 1; + * + * @param value The attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+             * Can be one of:
+             * 1. The numerical field value.
+             * 2. The duration spec for freshness:
+             * The value must be formatted as an XSD `dayTimeDuration` value (a
+             * restricted subset of an ISO 8601 duration value). The pattern for
+             * this is: `[nD][T[nH][nM][nS]]`.
+             * 
+ * + * string attribute_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeValue() { + attributeValue_ = getDefaultInstance().getAttributeValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+             * Can be one of:
+             * 1. The numerical field value.
+             * 2. The duration spec for freshness:
+             * The value must be formatted as an XSD `dayTimeDuration` value (a
+             * restricted subset of an ISO 8601 duration value). The pattern for
+             * this is: `[nD][T[nH][nM][nS]]`.
+             * 
+ * + * string attribute_value = 1; + * + * @param value The bytes for attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float boostAmount_; + /** + * + * + *
+             * The value between -1 to 1 by which to boost the score if the
+             * attribute_value evaluates to the value specified above.
+             * 
+ * + * float boost_amount = 2; + * + * @return The boostAmount. + */ + @java.lang.Override + public float getBoostAmount() { + return boostAmount_; + } + /** + * + * + *
+             * The value between -1 to 1 by which to boost the score if the
+             * attribute_value evaluates to the value specified above.
+             * 
+ * + * float boost_amount = 2; + * + * @param value The boostAmount to set. + * @return This builder for chaining. + */ + public Builder setBoostAmount(float value) { + + boostAmount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+             * The value between -1 to 1 by which to boost the score if the
+             * attribute_value evaluates to the value specified above.
+             * 
+ * + * float boost_amount = 2; + * + * @return This builder for chaining. + */ + public Builder clearBoostAmount() { + bitField0_ = (bitField0_ & ~0x00000002); + boostAmount_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint(); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlPoint 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+         * The name of the field whose value will be used to determine the
+         * boost amount.
+         * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + 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(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+         * The name of the field whose value will be used to determine the
+         * boost amount.
+         * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTE_TYPE_FIELD_NUMBER = 2; + private int attributeType_ = 0; + /** + * + * + *
+         * The attribute type to be used to determine the boost amount. The
+         * attribute value can be derived from the field value of the specified
+         * field_name. In the case of numerical it is straightforward i.e.
+         * attribute_value = numerical_field_value. In the case of freshness
+         * however, attribute_value = (time.now() - datetime_field_value).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + /** + * + * + *
+         * The attribute type to be used to determine the boost amount. The
+         * attribute value can be derived from the field value of the specified
+         * field_name. In the case of numerical it is straightforward i.e.
+         * attribute_value = numerical_field_value. In the case of freshness
+         * however, attribute_value = (time.now() - datetime_field_value).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + getAttributeType() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + result = + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.UNRECOGNIZED + : result; + } + + public static final int INTERPOLATION_TYPE_FIELD_NUMBER = 3; + private int interpolationType_ = 0; + /** + * + * + *
+         * The interpolation type to be applied to connect the control points
+         * listed below.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + /** + * + * + *
+         * The interpolation type to be applied to connect the control points
+         * listed below.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + getInterpolationType() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + result = + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.UNRECOGNIZED + : result; + } + + public static final int CONTROL_POINTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + controlPoints_; + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + getControlPointsList() { + return controlPoints_; + } + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList() { + return controlPoints_; + } + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + @java.lang.Override + public int getControlPointsCount() { + return controlPoints_.size(); + } + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getControlPoints(int index) { + return controlPoints_.get(index); + } + /** + * + * + *
+         * The control points used to define the curve. The monotonic function
+         * (defined through the interpolation_type above) passes through the
+         * control points listed here.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder + getControlPointsOrBuilder(int index) { + return controlPoints_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (attributeType_ + != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.INTERPOLATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, interpolationType_); + } + for (int i = 0; i < controlPoints_.size(); i++) { + output.writeMessage(4, controlPoints_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (attributeType_ + != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.INTERPOLATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, interpolationType_); + } + for (int i = 0; i < controlPoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, controlPoints_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + other = + (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (attributeType_ != other.attributeType_) return false; + if (interpolationType_ != other.interpolationType_) return false; + if (!getControlPointsList().equals(other.getControlPointsList())) 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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + ATTRIBUTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + attributeType_; + hash = (37 * hash) + INTERPOLATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + interpolationType_; + if (getControlPointsCount() > 0) { + hash = (37 * hash) + CONTROL_POINTS_FIELD_NUMBER; + hash = (53 * hash) + getControlPointsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Specification for custom ranking based on customer specified attribute
+         * value. It provides more controls for customized ranking than the simple
+         * (condition, boost) combination above.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec) + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + attributeType_ = 0; + interpolationType_ = 0; + if (controlPointsBuilder_ == null) { + controlPoints_ = java.util.Collections.emptyList(); + } else { + controlPoints_ = null; + controlPointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + build() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + result = + new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + result) { + if (controlPointsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + controlPoints_ = java.util.Collections.unmodifiableList(controlPoints_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.controlPoints_ = controlPoints_; + } else { + result.controlPoints_ = controlPointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributeType_ = attributeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interpolationType_ = interpolationType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.attributeType_ != 0) { + setAttributeTypeValue(other.getAttributeTypeValue()); + } + if (other.interpolationType_ != 0) { + setInterpolationTypeValue(other.getInterpolationTypeValue()); + } + if (controlPointsBuilder_ == null) { + if (!other.controlPoints_.isEmpty()) { + if (controlPoints_.isEmpty()) { + controlPoints_ = other.controlPoints_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureControlPointsIsMutable(); + controlPoints_.addAll(other.controlPoints_); + } + onChanged(); + } + } else { + if (!other.controlPoints_.isEmpty()) { + if (controlPointsBuilder_.isEmpty()) { + controlPointsBuilder_.dispose(); + controlPointsBuilder_ = null; + controlPoints_ = other.controlPoints_; + bitField0_ = (bitField0_ & ~0x00000008); + controlPointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getControlPointsFieldBuilder() + : null; + } else { + controlPointsBuilder_.addAllMessages(other.controlPoints_); + } + } + } + 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: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + attributeType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + interpolationType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint.parser(), + extensionRegistry); + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(m); + } else { + controlPointsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+           * The name of the field whose value will be used to determine the
+           * boost amount.
+           * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * The name of the field whose value will be used to determine the
+           * boost amount.
+           * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * The name of the field whose value will be used to determine the
+           * boost amount.
+           * 
+ * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * The name of the field whose value will be used to determine the
+           * boost amount.
+           * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+           * The name of the field whose value will be used to determine the
+           * boost amount.
+           * 
+ * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int attributeType_ = 0; + /** + * + * + *
+           * The attribute type to be used to determine the boost amount. The
+           * attribute value can be derived from the field value of the specified
+           * field_name. In the case of numerical it is straightforward i.e.
+           * attribute_value = numerical_field_value. In the case of freshness
+           * however, attribute_value = (time.now() - datetime_field_value).
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + /** + * + * + *
+           * The attribute type to be used to determine the boost amount. The
+           * attribute value can be derived from the field value of the specified
+           * field_name. In the case of numerical it is straightforward i.e.
+           * attribute_value = numerical_field_value. In the case of freshness
+           * however, attribute_value = (time.now() - datetime_field_value).
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @param value The enum numeric value on the wire for attributeType to set. + * @return This builder for chaining. + */ + public Builder setAttributeTypeValue(int value) { + attributeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * The attribute type to be used to determine the boost amount. The
+           * attribute value can be derived from the field value of the specified
+           * field_name. In the case of numerical it is straightforward i.e.
+           * attribute_value = numerical_field_value. In the case of freshness
+           * however, attribute_value = (time.now() - datetime_field_value).
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + getAttributeType() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + result = + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.UNRECOGNIZED + : result; + } + /** + * + * + *
+           * The attribute type to be used to determine the boost amount. The
+           * attribute value can be derived from the field value of the specified
+           * field_name. In the case of numerical it is straightforward i.e.
+           * attribute_value = numerical_field_value. In the case of freshness
+           * however, attribute_value = (time.now() - datetime_field_value).
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @param value The attributeType to set. + * @return This builder for chaining. + */ + public Builder setAttributeType( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + attributeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * The attribute type to be used to determine the boost amount. The
+           * attribute value can be derived from the field value of the specified
+           * field_name. In the case of numerical it is straightforward i.e.
+           * attribute_value = numerical_field_value. In the case of freshness
+           * however, attribute_value = (time.now() - datetime_field_value).
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributeType() { + bitField0_ = (bitField0_ & ~0x00000002); + attributeType_ = 0; + onChanged(); + return this; + } + + private int interpolationType_ = 0; + /** + * + * + *
+           * The interpolation type to be applied to connect the control points
+           * listed below.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + /** + * + * + *
+           * The interpolation type to be applied to connect the control points
+           * listed below.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @param value The enum numeric value on the wire for interpolationType to set. + * @return This builder for chaining. + */ + public Builder setInterpolationTypeValue(int value) { + interpolationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+           * The interpolation type to be applied to connect the control points
+           * listed below.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + getInterpolationType() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + result = + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+           * The interpolation type to be applied to connect the control points
+           * listed below.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @param value The interpolationType to set. + * @return This builder for chaining. + */ + public Builder setInterpolationType( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + interpolationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * The interpolation type to be applied to connect the control points
+           * listed below.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearInterpolationType() { + bitField0_ = (bitField0_ & ~0x00000004); + interpolationType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + controlPoints_ = java.util.Collections.emptyList(); + + private void ensureControlPointsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + controlPoints_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint>(controlPoints_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + controlPointsBuilder_; + + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + getControlPointsList() { + if (controlPointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(controlPoints_); + } else { + return controlPointsBuilder_.getMessageList(); + } + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public int getControlPointsCount() { + if (controlPointsBuilder_ == null) { + return controlPoints_.size(); + } else { + return controlPointsBuilder_.getCount(); + } + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getControlPoints(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessage(index); + } + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.set(index, value); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.set(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder addControlPoints( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(index, value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder addControlPoints( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder addAllControlPoints( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.ControlPoint> + values) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, controlPoints_); + onChanged(); + } else { + controlPointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder clearControlPoints() { + if (controlPointsBuilder_ == null) { + controlPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + controlPointsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public Builder removeControlPoints(int index) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.remove(index); + onChanged(); + } else { + controlPointsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + getControlPointsBuilder(int index) { + return getControlPointsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder + getControlPointsOrBuilder(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList() { + if (controlPointsBuilder_ != null) { + return controlPointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(controlPoints_); + } + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + addControlPointsBuilder() { + return getControlPointsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()); + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder + addControlPointsBuilder(int index) { + return getControlPointsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()); + } + /** + * + * + *
+           * The control points used to define the curve. The monotonic function
+           * (defined through the interpolation_type above) passes through the
+           * control points listed here.
+           * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder> + getControlPointsBuilderList() { + return getControlPointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsFieldBuilder() { + if (controlPointsBuilder_ == null) { + controlPointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder>( + controlPoints_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + controlPoints_ = null; + } + return controlPointsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec) + private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec(); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostControlSpec 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONDITION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color "Red" or "Blue":
+       * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
+       * 
+ * + * string condition = 1; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + 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(); + condition_ = s; + return s; + } + } + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color "Red" or "Blue":
+       * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
+       * 
+ * + * string condition = 1; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; @@ -6871,6 +10309,73 @@ public float getBoost() { return boost_; } + public static final int BOOST_CONTROL_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + boostControlSpec_; + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return Whether the boostControlSpec field is set. + */ + @java.lang.Override + public boolean hasBoostControlSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return The boostControlSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getBoostControlSpec() { + return boostControlSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } + /** + * + * + *
+       * Complex specification for custom ranking based on customer defined
+       * attribute value.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder() { + return boostControlSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6891,6 +10396,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Float.floatToRawIntBits(boost_) != 0) { output.writeFloat(2, boost_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBoostControlSpec()); + } getUnknownFields().writeTo(output); } @@ -6906,6 +10414,10 @@ public int getSerializedSize() { if (java.lang.Float.floatToRawIntBits(boost_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoostControlSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6927,6 +10439,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCondition().equals(other.getCondition())) return false; if (java.lang.Float.floatToIntBits(getBoost()) != java.lang.Float.floatToIntBits(other.getBoost())) return false; + if (hasBoostControlSpec() != other.hasBoostControlSpec()) return false; + if (hasBoostControlSpec()) { + if (!getBoostControlSpec().equals(other.getBoostControlSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6942,6 +10458,10 @@ public int hashCode() { hash = (53 * hash) + getCondition().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + if (hasBoostControlSpec()) { + hash = (37 * hash) + BOOST_CONTROL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostControlSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7087,10 +10607,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBoostControlSpecFieldBuilder(); + } } @java.lang.Override @@ -7099,6 +10628,11 @@ public Builder clear() { bitField0_ = 0; condition_ = ""; boost_ = 0F; + boostControlSpec_ = null; + if (boostControlSpecBuilder_ != null) { + boostControlSpecBuilder_.dispose(); + boostControlSpecBuilder_ = null; + } return this; } @@ -7148,6 +10682,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.boost_ = boost_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boostControlSpec_ = + boostControlSpecBuilder_ == null + ? boostControlSpec_ + : boostControlSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -7212,6 +10755,9 @@ public Builder mergeFrom( if (other.getBoost() != 0F) { setBoost(other.getBoost()); } + if (other.hasBoostControlSpec()) { + mergeBoostControlSpec(other.getBoostControlSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7250,6 +10796,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 21 + case 26: + { + input.readMessage( + getBoostControlSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7419,112 +10972,354 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - - private float boost_; + + private float boost_; + /** + * + * + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does
+         * not necessarily mean that the boosted document will be the top result
+         * at all times, nor that other documents will be excluded. Results
+         * could still be shown even when none of them matches the condition.
+         * And results that are significantly more relevant to the search query
+         * can still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not
+         * blocked out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored. Only one of the (condition, boost) combination or the
+         * boost_control_spec below are set. If both are set then the global boost
+         * is ignored and the more fine-grained boost_control_spec is applied.
+         * 
+ * + * float boost = 2; + * + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + /** + * + * + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does
+         * not necessarily mean that the boosted document will be the top result
+         * at all times, nor that other documents will be excluded. Results
+         * could still be shown even when none of them matches the condition.
+         * And results that are significantly more relevant to the search query
+         * can still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not
+         * blocked out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored. Only one of the (condition, boost) combination or the
+         * boost_control_spec below are set. If both are set then the global boost
+         * is ignored and the more fine-grained boost_control_spec is applied.
+         * 
+ * + * float boost = 2; + * + * @param value The boost to set. + * @return This builder for chaining. + */ + public Builder setBoost(float value) { + + boost_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does
+         * not necessarily mean that the boosted document will be the top result
+         * at all times, nor that other documents will be excluded. Results
+         * could still be shown even when none of them matches the condition.
+         * And results that are significantly more relevant to the search query
+         * can still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not
+         * blocked out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored. Only one of the (condition, boost) combination or the
+         * boost_control_spec below are set. If both are set then the global boost
+         * is ignored and the more fine-grained boost_control_spec is applied.
+         * 
+ * + * float boost = 2; + * + * @return This builder for chaining. + */ + public Builder clearBoost() { + bitField0_ = (bitField0_ & ~0x00000002); + boost_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + boostControlSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder> + boostControlSpecBuilder_; + /** + * + * + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return Whether the boostControlSpec field is set. + */ + public boolean hasBoostControlSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + * + * @return The boostControlSpec. + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getBoostControlSpec() { + if (boostControlSpecBuilder_ == null) { + return boostControlSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } else { + return boostControlSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + public Builder setBoostControlSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + value) { + if (boostControlSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostControlSpec_ = value; + } else { + boostControlSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } /** * * *
-         * Strength of the condition boost, which should be in [-1, 1]. Negative
-         * boost means demotion. Default is 0.0.
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
* - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + public Builder setBoostControlSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder + builderForValue) { + if (boostControlSpecBuilder_ == null) { + boostControlSpec_ = builderForValue.build(); + } else { + boostControlSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** * - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. * - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
          * 
* - * float boost = 2; - * - * @return The boost. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * */ - @java.lang.Override - public float getBoost() { - return boost_; + public Builder mergeBoostControlSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec + value) { + if (boostControlSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && boostControlSpec_ != null + && boostControlSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec + .ConditionBoostSpec.BoostControlSpec.getDefaultInstance()) { + getBoostControlSpecBuilder().mergeFrom(value); + } else { + boostControlSpec_ = value; + } + } else { + boostControlSpecBuilder_.mergeFrom(value); + } + if (boostControlSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; } /** * * *
-         * Strength of the condition boost, which should be in [-1, 1]. Negative
-         * boost means demotion. Default is 0.0.
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
* - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + public Builder clearBoostControlSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + boostControlSpec_ = null; + if (boostControlSpecBuilder_ != null) { + boostControlSpecBuilder_.dispose(); + boostControlSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** * - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. * - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
          * 
* - * float boost = 2; - * - * @param value The boost to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * */ - public Builder setBoost(float value) { - - boost_ = value; - bitField0_ |= 0x00000002; + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder + getBoostControlSpecBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return this; + return getBoostControlSpecFieldBuilder().getBuilder(); } /** * * *
-         * Strength of the condition boost, which should be in [-1, 1]. Negative
-         * boost means demotion. Default is 0.0.
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
+         * 
* - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder() { + if (boostControlSpecBuilder_ != null) { + return boostControlSpecBuilder_.getMessageOrBuilder(); + } else { + return boostControlSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } + } + /** * - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. * - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. + *
+         * Complex specification for custom ranking based on customer defined
+         * attribute value.
          * 
* - * float boost = 2; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; + * */ - public Builder clearBoost() { - bitField0_ = (bitField0_ & ~0x00000002); - boost_ = 0F; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder> + getBoostControlSpecFieldBuilder() { + if (boostControlSpecBuilder_ == null) { + boostControlSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder>( + getBoostControlSpec(), getParentForChildren(), isClean()); + boostControlSpec_ = null; + } + return boostControlSpecBuilder_; } @java.lang.Override @@ -10895,7 +14690,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=328 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=439 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -10913,7 +14708,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=332 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=443 * @return The referenceOnly. */ @java.lang.Deprecated @@ -10994,7 +14789,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=328 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=439 * @return The maxSnippetCount. */ @java.lang.Override @@ -11017,7 +14812,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=332 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=443 * @return The referenceOnly. */ @java.lang.Override @@ -11478,7 +15273,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=328 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=439 * @return The maxSnippetCount. */ @java.lang.Override @@ -11499,7 +15294,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=328 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=439 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -11524,7 +15319,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=328 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=439 * @return This builder for chaining. */ @java.lang.Deprecated @@ -11548,7 +15343,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=332 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=443 * @return The referenceOnly. */ @java.lang.Override @@ -11568,7 +15363,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=332 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=443 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -11592,7 +15387,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=332 + * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=443 * @return This builder for chaining. */ @java.lang.Deprecated @@ -11849,6 +15644,30 @@ public interface SummarySpecOrBuilder */ boolean getIgnoreLowRelevantContent(); + /** + * + * + *
+       * Optional. Specifies whether to filter out jail-breaking queries. The
+       * default value is `false`.
+       *
+       * Google employs search-query classification to detect jail-breaking
+       * queries. No summary is returned if the search query is classified as a
+       * jail-breaking query. A user might add instructions to the query to
+       * change the tone, style, language, content of the answer, or ask the
+       * model to act as a different entity, e.g. "Reply in the tone of a
+       * competing company's CEO". If this field is set to `true`, we skip
+       * generating summaries for jail-breaking queries and return fallback
+       * messages instead.
+       * 
+ * + * bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreJailBreakingQuery. + */ + boolean getIgnoreJailBreakingQuery(); + /** * * @@ -13715,6 +17534,35 @@ public boolean getIgnoreLowRelevantContent() { return ignoreLowRelevantContent_; } + public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 10; + private boolean ignoreJailBreakingQuery_ = false; + /** + * + * + *
+       * Optional. Specifies whether to filter out jail-breaking queries. The
+       * default value is `false`.
+       *
+       * Google employs search-query classification to detect jail-breaking
+       * queries. No summary is returned if the search query is classified as a
+       * jail-breaking query. A user might add instructions to the query to
+       * change the tone, style, language, content of the answer, or ask the
+       * model to act as a different entity, e.g. "Reply in the tone of a
+       * competing company's CEO". If this field is set to `true`, we skip
+       * generating summaries for jail-breaking queries and return fallback
+       * messages instead.
+       * 
+ * + * bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreJailBreakingQuery. + */ + @java.lang.Override + public boolean getIgnoreJailBreakingQuery() { + return ignoreJailBreakingQuery_; + } + public static final int MODEL_PROMPT_SPEC_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec .ModelPromptSpec @@ -13968,6 +17816,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ignoreLowRelevantContent_ != false) { output.writeBool(9, ignoreLowRelevantContent_); } + if (ignoreJailBreakingQuery_ != false) { + output.writeBool(10, ignoreJailBreakingQuery_); + } getUnknownFields().writeTo(output); } @@ -14007,6 +17858,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreLowRelevantContent_); } + if (ignoreJailBreakingQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, ignoreJailBreakingQuery_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -14031,6 +17886,7 @@ public boolean equals(final java.lang.Object obj) { if (getIgnoreNonSummarySeekingQuery() != other.getIgnoreNonSummarySeekingQuery()) return false; if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; + if (getIgnoreJailBreakingQuery() != other.getIgnoreJailBreakingQuery()) return false; if (hasModelPromptSpec() != other.hasModelPromptSpec()) return false; if (hasModelPromptSpec()) { if (!getModelPromptSpec().equals(other.getModelPromptSpec())) return false; @@ -14065,6 +17921,8 @@ public int hashCode() { hash = (37 * hash) + IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreLowRelevantContent()); + hash = (37 * hash) + IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreJailBreakingQuery()); if (hasModelPromptSpec()) { hash = (37 * hash) + MODEL_PROMPT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getModelPromptSpec().hashCode(); @@ -14248,6 +18106,7 @@ public Builder clear() { ignoreAdversarialQuery_ = false; ignoreNonSummarySeekingQuery_ = false; ignoreLowRelevantContent_ = false; + ignoreJailBreakingQuery_ = false; modelPromptSpec_ = null; if (modelPromptSpecBuilder_ != null) { modelPromptSpecBuilder_.dispose(); @@ -14319,22 +18178,25 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000010) != 0)) { result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { + result.ignoreJailBreakingQuery_ = ignoreJailBreakingQuery_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { result.modelPromptSpec_ = modelPromptSpecBuilder_ == null ? modelPromptSpec_ : modelPromptSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.useSemanticChunks_ = useSemanticChunks_; } result.bitField0_ |= to_bitField0_; @@ -14409,12 +18271,15 @@ public Builder mergeFrom( if (other.getIgnoreLowRelevantContent() != false) { setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); } + if (other.getIgnoreJailBreakingQuery() != false) { + setIgnoreJailBreakingQuery(other.getIgnoreJailBreakingQuery()); + } if (other.hasModelPromptSpec()) { mergeModelPromptSpec(other.getModelPromptSpec()); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasModelSpec()) { @@ -14477,25 +18342,25 @@ public Builder mergeFrom( { input.readMessage( getModelPromptSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 50: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: { input.readMessage(getModelSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 64: { useSemanticChunks_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 64 case 72: @@ -14504,6 +18369,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 72 + case 80: + { + ignoreJailBreakingQuery_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -14932,6 +18803,92 @@ public Builder clearIgnoreLowRelevantContent() { return this; } + private boolean ignoreJailBreakingQuery_; + /** + * + * + *
+         * Optional. Specifies whether to filter out jail-breaking queries. The
+         * default value is `false`.
+         *
+         * Google employs search-query classification to detect jail-breaking
+         * queries. No summary is returned if the search query is classified as a
+         * jail-breaking query. A user might add instructions to the query to
+         * change the tone, style, language, content of the answer, or ask the
+         * model to act as a different entity, e.g. "Reply in the tone of a
+         * competing company's CEO". If this field is set to `true`, we skip
+         * generating summaries for jail-breaking queries and return fallback
+         * messages instead.
+         * 
+ * + * bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreJailBreakingQuery. + */ + @java.lang.Override + public boolean getIgnoreJailBreakingQuery() { + return ignoreJailBreakingQuery_; + } + /** + * + * + *
+         * Optional. Specifies whether to filter out jail-breaking queries. The
+         * default value is `false`.
+         *
+         * Google employs search-query classification to detect jail-breaking
+         * queries. No summary is returned if the search query is classified as a
+         * jail-breaking query. A user might add instructions to the query to
+         * change the tone, style, language, content of the answer, or ask the
+         * model to act as a different entity, e.g. "Reply in the tone of a
+         * competing company's CEO". If this field is set to `true`, we skip
+         * generating summaries for jail-breaking queries and return fallback
+         * messages instead.
+         * 
+ * + * bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ignoreJailBreakingQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreJailBreakingQuery(boolean value) { + + ignoreJailBreakingQuery_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Specifies whether to filter out jail-breaking queries. The
+         * default value is `false`.
+         *
+         * Google employs search-query classification to detect jail-breaking
+         * queries. No summary is returned if the search query is classified as a
+         * jail-breaking query. A user might add instructions to the query to
+         * change the tone, style, language, content of the answer, or ask the
+         * model to act as a different entity, e.g. "Reply in the tone of a
+         * competing company's CEO". If this field is set to `true`, we skip
+         * generating summaries for jail-breaking queries and return fallback
+         * messages instead.
+         * 
+ * + * bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIgnoreJailBreakingQuery() { + bitField0_ = (bitField0_ & ~0x00000020); + ignoreJailBreakingQuery_ = false; + onChanged(); + return this; + } + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec .ModelPromptSpec modelPromptSpec_; @@ -14958,7 +18915,7 @@ public Builder clearIgnoreLowRelevantContent() { * @return Whether the modelPromptSpec field is set. */ public boolean hasModelPromptSpec() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -15010,7 +18967,7 @@ public Builder setModelPromptSpec( } else { modelPromptSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -15035,7 +18992,7 @@ public Builder setModelPromptSpec( } else { modelPromptSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -15056,7 +19013,7 @@ public Builder mergeModelPromptSpec( .ModelPromptSpec value) { if (modelPromptSpecBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && modelPromptSpec_ != null && modelPromptSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec @@ -15069,7 +19026,7 @@ public Builder mergeModelPromptSpec( modelPromptSpecBuilder_.mergeFrom(value); } if (modelPromptSpec_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -15087,7 +19044,7 @@ public Builder mergeModelPromptSpec( *
*/ public Builder clearModelPromptSpec() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); modelPromptSpec_ = null; if (modelPromptSpecBuilder_ != null) { modelPromptSpecBuilder_.dispose(); @@ -15111,7 +19068,7 @@ public Builder clearModelPromptSpec() { public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec .ModelPromptSpec.Builder getModelPromptSpecBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getModelPromptSpecFieldBuilder().getBuilder(); } @@ -15242,7 +19199,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -15261,7 +19218,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -15285,7 +19242,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -15316,7 +19273,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the modelSpec field is set. */ public boolean hasModelSpec() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -15368,7 +19325,7 @@ public Builder setModelSpec( } else { modelSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -15393,7 +19350,7 @@ public Builder setModelSpec( } else { modelSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -15414,7 +19371,7 @@ public Builder mergeModelSpec( .ModelSpec value) { if (modelSpecBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && modelSpec_ != null && modelSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec @@ -15427,7 +19384,7 @@ public Builder mergeModelSpec( modelSpecBuilder_.mergeFrom(value); } if (modelSpec_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -15445,7 +19402,7 @@ public Builder mergeModelSpec( *
*/ public Builder clearModelSpec() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); modelSpec_ = null; if (modelSpecBuilder_ != null) { modelSpecBuilder_.dispose(); @@ -15469,7 +19426,7 @@ public Builder clearModelSpec() { public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec .ModelSpec.Builder getModelSpecBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getModelSpecFieldBuilder().getBuilder(); } @@ -15572,7 +19529,7 @@ public boolean getUseSemanticChunks() { public Builder setUseSemanticChunks(boolean value) { useSemanticChunks_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -15593,7 +19550,7 @@ public Builder setUseSemanticChunks(boolean value) { * @return This builder for chaining. */ public Builder clearUseSemanticChunks() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); useSemanticChunks_ = false; onChanged(); return this; @@ -21809,6 +25766,26 @@ public int getOffset() { return offset_; } + public static final int ONE_BOX_PAGE_SIZE_FIELD_NUMBER = 47; + private int oneBoxPageSize_ = 0; + /** + * + * + *
+   * The maximum number of results to return for OneBox.
+   * This applies to each OneBox type individually.
+   * Default number is 10.
+   * 
+ * + * int32 one_box_page_size = 47; + * + * @return The oneBoxPageSize. + */ + @java.lang.Override + public int getOneBoxPageSize() { + return oneBoxPageSize_; + } + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 32; @SuppressWarnings("serial") @@ -23313,6 +27290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(42, getSessionSpec()); } + if (oneBoxPageSize_ != 0) { + output.writeInt32(47, oneBoxPageSize_); + } getUnknownFields().writeTo(output); } @@ -23413,6 +27393,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSessionSpec()); } + if (oneBoxPageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(47, oneBoxPageSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -23439,6 +27422,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getOffset() != other.getOffset()) return false; + if (getOneBoxPageSize() != other.getOneBoxPageSize()) return false; if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; @@ -23505,6 +27489,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); + hash = (37 * hash) + ONE_BOX_PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getOneBoxPageSize(); if (getDataStoreSpecsCount() > 0) { hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDataStoreSpecsList().hashCode(); @@ -23759,13 +27745,14 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; offset_ = 0; + oneBoxPageSize_ = 0; if (dataStoreSpecsBuilder_ == null) { dataStoreSpecs_ = java.util.Collections.emptyList(); } else { dataStoreSpecs_ = null; dataStoreSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -23781,7 +27768,7 @@ public Builder clear() { facetSpecs_ = null; facetSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -23855,18 +27842,18 @@ public com.google.cloud.discoveryengine.v1.SearchRequest buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1.SearchRequest result) { if (dataStoreSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.dataStoreSpecs_ = dataStoreSpecs_; } else { result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); } if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.facetSpecs_ = facetSpecs_; } else { @@ -23899,71 +27886,74 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest res if (((from_bitField0_ & 0x00000040) != 0)) { result.offset_ = offset_; } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.filter_ = filter_; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oneBoxPageSize_ = oneBoxPageSize_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.canonicalFilter_ = canonicalFilter_; + result.filter_ = filter_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.orderBy_ = orderBy_; + result.canonicalFilter_ = canonicalFilter_; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null ? queryExpansionSpec_ : queryExpansionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null ? spellCorrectionSpec_ : spellCorrectionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.userPseudoId_ = userPseudoId_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.contentSearchSpec_ = contentSearchSpecBuilder_ == null ? contentSearchSpec_ : contentSearchSpecBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.safeSearch_ = safeSearch_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.searchAsYouTypeSpec_ = searchAsYouTypeSpecBuilder_ == null ? searchAsYouTypeSpec_ : searchAsYouTypeSpecBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.session_ = session_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.sessionSpec_ = sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build(); to_bitField0_ |= 0x00000080; @@ -24046,11 +28036,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other if (other.getOffset() != 0) { setOffset(other.getOffset()); } + if (other.getOneBoxPageSize() != 0) { + setOneBoxPageSize(other.getOneBoxPageSize()); + } if (dataStoreSpecsBuilder_ == null) { if (!other.dataStoreSpecs_.isEmpty()) { if (dataStoreSpecs_.isEmpty()) { dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureDataStoreSpecsIsMutable(); dataStoreSpecs_.addAll(other.dataStoreSpecs_); @@ -24063,7 +28056,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other dataStoreSpecsBuilder_.dispose(); dataStoreSpecsBuilder_ = null; dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); dataStoreSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataStoreSpecsFieldBuilder() @@ -24075,17 +28068,17 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getCanonicalFilter().isEmpty()) { canonicalFilter_ = other.canonicalFilter_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasUserInfo()) { @@ -24093,14 +28086,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (facetSpecsBuilder_ == null) { if (!other.facetSpecs_.isEmpty()) { if (facetSpecs_.isEmpty()) { facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureFacetSpecsIsMutable(); facetSpecs_.addAll(other.facetSpecs_); @@ -24113,7 +28106,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other facetSpecsBuilder_.dispose(); facetSpecsBuilder_ = null; facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); facetSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetSpecsFieldBuilder() @@ -24127,7 +28120,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other mergeBoostSpec(other.getBoostSpec()); } internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; if (other.hasQueryExpansionSpec()) { mergeQueryExpansionSpec(other.getQueryExpansionSpec()); } @@ -24136,7 +28129,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getUserPseudoId().isEmpty()) { userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasContentSearchSpec()) { @@ -24146,13 +28139,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other setSafeSearch(other.getSafeSearch()); } internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; if (other.hasSearchAsYouTypeSpec()) { mergeSearchAsYouTypeSpec(other.getSearchAsYouTypeSpec()); } if (!other.getSession().isEmpty()) { session_ = other.session_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } if (other.hasSessionSpec()) { @@ -24223,13 +28216,13 @@ public Builder mergeFrom( case 58: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: { orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 66 case 74: @@ -24249,7 +28242,7 @@ public Builder mergeFrom( case 82: { input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: @@ -24261,27 +28254,27 @@ public Builder mergeFrom( internalGetMutableParams() .ensureBuilderMap() .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 90 case 106: { input.readMessage( getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 106 case 114: { input.readMessage( getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 114 case 122: { userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 122 case 154: @@ -24293,13 +28286,13 @@ public Builder mergeFrom( case 160: { safeSearch_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 160 case 170: { input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 170 case 178: @@ -24311,27 +28304,27 @@ public Builder mergeFrom( internalGetMutableUserLabels() .getMutableMap() .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 178 case 194: { input.readMessage( getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 194 case 234: { canonicalFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 234 case 250: { input.readMessage( getSearchAsYouTypeSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 250 case 258: @@ -24351,21 +28344,27 @@ public Builder mergeFrom( case 282: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 282 case 330: { session_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 330 case 338: { input.readMessage(getSessionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 338 + case 376: + { + oneBoxPageSize_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 376 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25242,15 +29241,74 @@ public Builder clearOffset() { return this; } + private int oneBoxPageSize_; + /** + * + * + *
+     * The maximum number of results to return for OneBox.
+     * This applies to each OneBox type individually.
+     * Default number is 10.
+     * 
+ * + * int32 one_box_page_size = 47; + * + * @return The oneBoxPageSize. + */ + @java.lang.Override + public int getOneBoxPageSize() { + return oneBoxPageSize_; + } + /** + * + * + *
+     * The maximum number of results to return for OneBox.
+     * This applies to each OneBox type individually.
+     * Default number is 10.
+     * 
+ * + * int32 one_box_page_size = 47; + * + * @param value The oneBoxPageSize to set. + * @return This builder for chaining. + */ + public Builder setOneBoxPageSize(int value) { + + oneBoxPageSize_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return for OneBox.
+     * This applies to each OneBox type individually.
+     * Default number is 10.
+     * 
+ * + * int32 one_box_page_size = 47; + * + * @return This builder for chaining. + */ + public Builder clearOneBoxPageSize() { + bitField0_ = (bitField0_ & ~0x00000080); + oneBoxPageSize_ = 0; + onChanged(); + return this; + } + private java.util.List dataStoreSpecs_ = java.util.Collections.emptyList(); private void ensureDataStoreSpecsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { dataStoreSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec>(dataStoreSpecs_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -25530,7 +29588,7 @@ public Builder addAllDataStoreSpecs( public Builder clearDataStoreSpecs() { if (dataStoreSpecsBuilder_ == null) { dataStoreSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { dataStoreSpecsBuilder_.clear(); @@ -25696,7 +29754,7 @@ public Builder removeDataStoreSpecs(int index) { com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpecOrBuilder>( dataStoreSpecs_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); dataStoreSpecs_ = null; @@ -25808,7 +29866,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -25839,7 +29897,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -25875,7 +29933,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -25975,7 +30033,7 @@ public Builder setCanonicalFilter(java.lang.String value) { throw new NullPointerException(); } canonicalFilter_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -26003,7 +30061,7 @@ public Builder setCanonicalFilter(java.lang.String value) { */ public Builder clearCanonicalFilter() { canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -26036,7 +30094,7 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); canonicalFilter_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -26136,7 +30194,7 @@ public Builder setOrderBy(java.lang.String value) { throw new NullPointerException(); } orderBy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -26164,7 +30222,7 @@ public Builder setOrderBy(java.lang.String value) { */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -26197,7 +30255,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); orderBy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -26223,7 +30281,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -26269,7 +30327,7 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { } else { userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -26292,7 +30350,7 @@ public Builder setUserInfo( } else { userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -26310,7 +30368,7 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && userInfo_ != null && userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); @@ -26321,7 +30379,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) userInfoBuilder_.mergeFrom(value); } if (userInfo_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -26339,7 +30397,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; */ public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); userInfo_ = null; if (userInfoBuilder_ != null) { userInfoBuilder_.dispose(); @@ -26361,7 +30419,7 @@ public Builder clearUserInfo() { * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; */ public com.google.cloud.discoveryengine.v1.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getUserInfoFieldBuilder().getBuilder(); } @@ -26489,7 +30547,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -26510,7 +30568,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -26536,7 +30594,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -26545,11 +30603,11 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { facetSpecs_ = java.util.Collections.emptyList(); private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { facetSpecs_ = new java.util.ArrayList( facetSpecs_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -26816,7 +30874,7 @@ public Builder addAllFacetSpecs( public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { facetSpecsBuilder_.clear(); @@ -26974,7 +31032,7 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + facetSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -27000,7 +31058,7 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -27044,7 +31102,7 @@ public Builder setBoostSpec(com.google.cloud.discoveryengine.v1.SearchRequest.Bo } else { boostSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -27066,7 +31124,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -27084,7 +31142,7 @@ public Builder setBoostSpec( public Builder mergeBoostSpec( com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && boostSpec_ != null && boostSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec @@ -27097,7 +31155,7 @@ public Builder mergeBoostSpec( boostSpecBuilder_.mergeFrom(value); } if (boostSpec_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -27114,7 +31172,7 @@ public Builder mergeBoostSpec( * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -27136,7 +31194,7 @@ public Builder clearBoostSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } @@ -27237,7 +31295,7 @@ public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return params_; } @@ -27380,7 +31438,7 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableParams().clear(); return this; } @@ -27417,7 +31475,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableParams().ensureMessageMap(); } /** @@ -27451,7 +31509,7 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value) throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -27484,7 +31542,7 @@ public Builder putAllParams(java.util.Map */ public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); queryExpansionSpec_ = null; if (queryExpansionSpecBuilder_ != null) { queryExpansionSpecBuilder_.dispose(); @@ -27693,7 +31751,7 @@ public Builder clearQueryExpansionSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } @@ -27771,7 +31829,7 @@ public Builder clearQueryExpansionSpec() { * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -27820,7 +31878,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -27844,7 +31902,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -27863,7 +31921,7 @@ public Builder setSpellCorrectionSpec( public Builder mergeSpellCorrectionSpec( com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && spellCorrectionSpec_ != null && spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec @@ -27876,7 +31934,7 @@ public Builder mergeSpellCorrectionSpec( spellCorrectionSpecBuilder_.mergeFrom(value); } if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -27894,7 +31952,7 @@ public Builder mergeSpellCorrectionSpec( * */ public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); spellCorrectionSpec_ = null; if (spellCorrectionSpecBuilder_ != null) { spellCorrectionSpecBuilder_.dispose(); @@ -27917,7 +31975,7 @@ public Builder clearSpellCorrectionSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } @@ -28074,7 +32132,7 @@ public Builder setUserPseudoId(java.lang.String value) { throw new NullPointerException(); } userPseudoId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -28104,7 +32162,7 @@ public Builder setUserPseudoId(java.lang.String value) { */ public Builder clearUserPseudoId() { userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -28139,7 +32197,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); userPseudoId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -28164,7 +32222,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -28211,7 +32269,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -28234,7 +32292,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -28252,7 +32310,7 @@ public Builder setContentSearchSpec( public Builder mergeContentSearchSpec( com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && contentSearchSpec_ != null && contentSearchSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec @@ -28265,7 +32323,7 @@ public Builder mergeContentSearchSpec( contentSearchSpecBuilder_.mergeFrom(value); } if (contentSearchSpec_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -28282,7 +32340,7 @@ public Builder mergeContentSearchSpec( * */ public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); contentSearchSpec_ = null; if (contentSearchSpecBuilder_ != null) { contentSearchSpecBuilder_.dispose(); @@ -28304,7 +32362,7 @@ public Builder clearContentSearchSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } @@ -28391,7 +32449,7 @@ public boolean getSafeSearch() { public Builder setSafeSearch(boolean value) { safeSearch_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -28408,7 +32466,7 @@ public Builder setSafeSearch(boolean value) { * @return This builder for chaining. */ public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); safeSearch_ = false; onChanged(); return this; @@ -28434,7 +32492,7 @@ public Builder clearSafeSearch() { if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return userLabels_; } @@ -28583,7 +32641,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); internalGetMutableUserLabels().getMutableMap().clear(); return this; } @@ -28622,7 +32680,7 @@ public Builder removeUserLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return internalGetMutableUserLabels().getMutableMap(); } /** @@ -28658,7 +32716,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } /** @@ -28688,7 +32746,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllUserLabels(java.util.Map values) { internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } @@ -28715,7 +32773,7 @@ public Builder putAllUserLabels(java.util.Map */ public Builder clearSearchAsYouTypeSpec() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); searchAsYouTypeSpec_ = null; if (searchAsYouTypeSpecBuilder_ != null) { searchAsYouTypeSpecBuilder_.dispose(); @@ -28867,7 +32925,7 @@ public Builder clearSearchAsYouTypeSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder getSearchAsYouTypeSpecBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getSearchAsYouTypeSpecFieldBuilder().getBuilder(); } @@ -29062,7 +33120,7 @@ public Builder setSession(java.lang.String value) { throw new NullPointerException(); } session_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -29104,7 +33162,7 @@ public Builder setSession(java.lang.String value) { */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -29151,7 +33209,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); session_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -29176,7 +33234,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the sessionSpec field is set. */ public boolean hasSessionSpec() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -29221,7 +33279,7 @@ public Builder setSessionSpec( } else { sessionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -29243,7 +33301,7 @@ public Builder setSessionSpec( } else { sessionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -29261,7 +33319,7 @@ public Builder setSessionSpec( public Builder mergeSessionSpec( com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec value) { if (sessionSpecBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x02000000) != 0) && sessionSpec_ != null && sessionSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec @@ -29274,7 +33332,7 @@ public Builder mergeSessionSpec( sessionSpecBuilder_.mergeFrom(value); } if (sessionSpec_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -29291,7 +33349,7 @@ public Builder mergeSessionSpec( * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ public Builder clearSessionSpec() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); sessionSpec_ = null; if (sessionSpecBuilder_ != null) { sessionSpecBuilder_.dispose(); @@ -29313,7 +33371,7 @@ public Builder clearSessionSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder getSessionSpecBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getSessionSpecFieldBuilder().getBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java index f93923334828..8c51d0c53a0b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java @@ -236,6 +236,21 @@ public interface SearchRequestOrBuilder */ int getOffset(); + /** + * + * + *
+   * The maximum number of results to return for OneBox.
+   * This applies to each OneBox type individually.
+   * Default number is 10.
+   * 
+ * + * int32 one_box_page_size = 47; + * + * @return The oneBoxPageSize. + */ + int getOneBoxPageSize(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java index 1904d2b18a01..aefbb51256f0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java @@ -4332,6 +4332,7 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE *
        * The non-summary seeking query ignored case.
        *
+       * Google skips the summary if the query is chit chat.
        * Only used when
        * [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query]
        * is set to `true`.
@@ -4420,6 +4421,21 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        * CUSTOMER_POLICY_VIOLATION = 8;
        */
       CUSTOMER_POLICY_VIOLATION(8),
+      /**
+       *
+       *
+       * 
+       * The non-answer seeking query ignored case.
+       *
+       * Google skips the summary if the query doesn't have clear intent.
+       * Only used when
+       * [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query]
+       * is set to `true`.
+       * 
+ * + * NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; + */ + NON_SUMMARY_SEEKING_QUERY_IGNORED_V2(9), UNRECOGNIZED(-1), ; @@ -4453,6 +4469,7 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE *
        * The non-summary seeking query ignored case.
        *
+       * Google skips the summary if the query is chit chat.
        * Only used when
        * [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query]
        * is set to `true`.
@@ -4541,6 +4558,21 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        * CUSTOMER_POLICY_VIOLATION = 8;
        */
       public static final int CUSTOMER_POLICY_VIOLATION_VALUE = 8;
+      /**
+       *
+       *
+       * 
+       * The non-answer seeking query ignored case.
+       *
+       * Google skips the summary if the query doesn't have clear intent.
+       * Only used when
+       * [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query]
+       * is set to `true`.
+       * 
+ * + * NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; + */ + public static final int NON_SUMMARY_SEEKING_QUERY_IGNORED_V2_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -4584,6 +4616,8 @@ public static SummarySkippedReason forNumber(int value) { return JAIL_BREAKING_QUERY_IGNORED; case 8: return CUSTOMER_POLICY_VIOLATION; + case 9: + return NON_SUMMARY_SEEKING_QUERY_IGNORED_V2; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java index c14076a8276c..09572012a190 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -182,203 +190,236 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "k.proto\032,google/cloud/discoveryengine/v1" + "/common.proto\032.google/cloud/discoveryeng" + "ine/v1/document.proto\032\034google/protobuf/s" - + "truct.proto\"\371\"\n\rSearchRequest\022L\n\016serving" + + "truct.proto\"\337)\n\rSearchRequest\022L\n\016serving" + "_config\030\001 \001(\tB4\340A\002\372A.\n,discoveryengine.g" + "oogleapis.com/ServingConfig\022:\n\006branch\030\002 " + "\001(\tB*\372A\'\n%discoveryengine.googleapis.com" + "/Branch\022\r\n\005query\030\003 \001(\t\022N\n\013image_query\030\023 " + "\001(\01329.google.cloud.discoveryengine.v1.Se" + "archRequest.ImageQuery\022\021\n\tpage_size\030\004 \001(" - + "\005\022\022\n\npage_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022V\n" - + "\020data_store_specs\030 \003(\0132<.google.cloud.d" - + "iscoveryengine.v1.SearchRequest.DataStor" - + "eSpec\022\016\n\006filter\030\007 \001(\t\022\030\n\020canonical_filte" - + "r\030\035 \001(\t\022\020\n\010order_by\030\010 \001(\t\022<\n\tuser_info\030\025" - + " \001(\0132).google.cloud.discoveryengine.v1.U" - + "serInfo\022\025\n\rlanguage_code\030# \001(\t\022M\n\013facet_" - + "specs\030\t \003(\01328.google.cloud.discoveryengi" - + "ne.v1.SearchRequest.FacetSpec\022L\n\nboost_s" - + "pec\030\n \001(\01328.google.cloud.discoveryengine" - + ".v1.SearchRequest.BoostSpec\022J\n\006params\030\013 " - + "\003(\0132:.google.cloud.discoveryengine.v1.Se" - + "archRequest.ParamsEntry\022_\n\024query_expansi" - + "on_spec\030\r \001(\0132A.google.cloud.discoveryen" - + "gine.v1.SearchRequest.QueryExpansionSpec" - + "\022a\n\025spell_correction_spec\030\016 \001(\0132B.google" - + ".cloud.discoveryengine.v1.SearchRequest." - + "SpellCorrectionSpec\022\026\n\016user_pseudo_id\030\017 " - + "\001(\t\022]\n\023content_search_spec\030\030 \001(\0132@.googl" - + "e.cloud.discoveryengine.v1.SearchRequest" - + ".ContentSearchSpec\022\023\n\013safe_search\030\024 \001(\010\022" - + "S\n\013user_labels\030\026 \003(\0132>.google.cloud.disc" - + "overyengine.v1.SearchRequest.UserLabelsE" - + "ntry\022c\n\027search_as_you_type_spec\030\037 \001(\0132B." - + "google.cloud.discoveryengine.v1.SearchRe" - + "quest.SearchAsYouTypeSpec\022<\n\007session\030) \001" - + "(\tB+\372A(\n&discoveryengine.googleapis.com/" - + "Session\022P\n\014session_spec\030* \001(\0132:.google.c" - + "loud.discoveryengine.v1.SearchRequest.Se" - + "ssionSpec\032,\n\nImageQuery\022\025\n\013image_bytes\030\001" - + " \001(\tH\000B\007\n\005image\032U\n\rDataStoreSpec\022D\n\ndata" - + "_store\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.go" - + "ogleapis.com/DataStore\032\374\002\n\tFacetSpec\022Y\n\t" - + "facet_key\030\001 \001(\0132A.google.cloud.discovery" - + "engine.v1.SearchRequest.FacetSpec.FacetK" - + "eyB\003\340A\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024excluded_filte" - + "r_keys\030\003 \003(\t\022\037\n\027enable_dynamic_position\030" - + "\004 \001(\010\032\305\001\n\010FacetKey\022\020\n\003key\030\001 \001(\tB\003\340A\002\022<\n\t" - + "intervals\030\002 \003(\0132).google.cloud.discovery" - + "engine.v1.Interval\022\031\n\021restricted_values\030" - + "\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(" - + "\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n\010order_by\030" - + "\007 \001(\t\032\257\001\n\tBoostSpec\022j\n\025condition_boost_s" - + "pecs\030\001 \003(\0132K.google.cloud.discoveryengin" - + "e.v1.SearchRequest.BoostSpec.ConditionBo" - + "ostSpec\0326\n\022ConditionBoostSpec\022\021\n\tconditi" - + "on\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\032\324\001\n\022QueryExpansi" - + "onSpec\022^\n\tcondition\030\001 \001(\0162K.google.cloud" - + ".discoveryengine.v1.SearchRequest.QueryE" - + "xpansionSpec.Condition\022\036\n\026pin_unexpanded" - + "_results\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION" - + "_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\251" - + "\001\n\023SpellCorrectionSpec\022U\n\004mode\030\001 \001(\0162G.g" + + "\005\022\022\n\npage_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\031\n" + + "\021one_box_page_size\030/ \001(\005\022V\n\020data_store_s" + + "pecs\030 \003(\0132<.google.cloud.discoveryengin" + + "e.v1.SearchRequest.DataStoreSpec\022\016\n\006filt" + + "er\030\007 \001(\t\022\030\n\020canonical_filter\030\035 \001(\t\022\020\n\010or" + + "der_by\030\010 \001(\t\022<\n\tuser_info\030\025 \001(\0132).google" + + ".cloud.discoveryengine.v1.UserInfo\022\025\n\rla" + + "nguage_code\030# \001(\t\022M\n\013facet_specs\030\t \003(\01328" + + ".google.cloud.discoveryengine.v1.SearchR" + + "equest.FacetSpec\022L\n\nboost_spec\030\n \001(\01328.g" + "oogle.cloud.discoveryengine.v1.SearchReq" - + "uest.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n" - + "\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001" - + "\022\010\n\004AUTO\020\002\032\371\013\n\021ContentSearchSpec\022b\n\014snip" - + "pet_spec\030\001 \001(\0132L.google.cloud.discoverye" + + "uest.BoostSpec\022J\n\006params\030\013 \003(\0132:.google." + + "cloud.discoveryengine.v1.SearchRequest.P" + + "aramsEntry\022_\n\024query_expansion_spec\030\r \001(\013" + + "2A.google.cloud.discoveryengine.v1.Searc" + + "hRequest.QueryExpansionSpec\022a\n\025spell_cor" + + "rection_spec\030\016 \001(\0132B.google.cloud.discov" + + "eryengine.v1.SearchRequest.SpellCorrecti" + + "onSpec\022\026\n\016user_pseudo_id\030\017 \001(\t\022]\n\023conten" + + "t_search_spec\030\030 \001(\0132@.google.cloud.disco" + + "veryengine.v1.SearchRequest.ContentSearc" + + "hSpec\022\023\n\013safe_search\030\024 \001(\010\022S\n\013user_label" + + "s\030\026 \003(\0132>.google.cloud.discoveryengine.v" + + "1.SearchRequest.UserLabelsEntry\022c\n\027searc" + + "h_as_you_type_spec\030\037 \001(\0132B.google.cloud." + + "discoveryengine.v1.SearchRequest.SearchA" + + "sYouTypeSpec\022<\n\007session\030) \001(\tB+\372A(\n&disc" + + "overyengine.googleapis.com/Session\022P\n\014se" + + "ssion_spec\030* \001(\0132:.google.cloud.discover" + + "yengine.v1.SearchRequest.SessionSpec\032,\n\n" + + "ImageQuery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005ima" + + "ge\032j\n\rDataStoreSpec\022D\n\ndata_store\030\001 \001(\tB" + + "0\340A\002\372A*\n(discoveryengine.googleapis.com/" + + "DataStore\022\023\n\006filter\030\005 \001(\tB\003\340A\001\032\374\002\n\tFacet" + + "Spec\022Y\n\tfacet_key\030\001 \001(\0132A.google.cloud.d" + + "iscoveryengine.v1.SearchRequest.FacetSpe" + + "c.FacetKeyB\003\340A\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024exclud" + + "ed_filter_keys\030\003 \003(\t\022\037\n\027enable_dynamic_p" + + "osition\030\004 \001(\010\032\305\001\n\010FacetKey\022\020\n\003key\030\001 \001(\tB" + + "\003\340A\002\022<\n\tintervals\030\002 \003(\0132).google.cloud.d" + + "iscoveryengine.v1.Interval\022\031\n\021restricted" + + "_values\030\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010conta" + + "ins\030\005 \003(\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n\010o" + + "rder_by\030\007 \001(\t\032\274\007\n\tBoostSpec\022j\n\025condition" + + "_boost_specs\030\001 \003(\0132K.google.cloud.discov" + + "eryengine.v1.SearchRequest.BoostSpec.Con" + + "ditionBoostSpec\032\302\006\n\022ConditionBoostSpec\022\021" + + "\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\022x\n\022boos" + + "t_control_spec\030\003 \001(\0132\\.google.cloud.disc" + + "overyengine.v1.SearchRequest.BoostSpec.C" + + "onditionBoostSpec.BoostControlSpec\032\217\005\n\020B" + + "oostControlSpec\022\022\n\nfield_name\030\001 \001(\t\022\202\001\n\016" + + "attribute_type\030\002 \001(\0162j.google.cloud.disc" + + "overyengine.v1.SearchRequest.BoostSpec.C" + + "onditionBoostSpec.BoostControlSpec.Attri" + + "buteType\022\212\001\n\022interpolation_type\030\003 \001(\0162n." + + "google.cloud.discoveryengine.v1.SearchRe" + + "quest.BoostSpec.ConditionBoostSpec.Boost" + + "ControlSpec.InterpolationType\022\201\001\n\016contro" + + "l_points\030\004 \003(\0132i.google.cloud.discoverye" + + "ngine.v1.SearchRequest.BoostSpec.Conditi" + + "onBoostSpec.BoostControlSpec.ControlPoin" + + "t\032=\n\014ControlPoint\022\027\n\017attribute_value\030\001 \001" + + "(\t\022\024\n\014boost_amount\030\002 \001(\002\"M\n\rAttributeTyp" + + "e\022\036\n\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n\tNUM" + + "ERICAL\020\001\022\r\n\tFRESHNESS\020\002\"C\n\021Interpolation" + + "Type\022\"\n\036INTERPOLATION_TYPE_UNSPECIFIED\020\000" + + "\022\n\n\006LINEAR\020\001\032\324\001\n\022QueryExpansionSpec\022^\n\tc" + + "ondition\030\001 \001(\0162K.google.cloud.discoverye" + + "ngine.v1.SearchRequest.QueryExpansionSpe" + + "c.Condition\022\036\n\026pin_unexpanded_results\030\002 " + + "\001(\010\">\n\tCondition\022\031\n\025CONDITION_UNSPECIFIE" + + "D\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\251\001\n\023SpellCor" + + "rectionSpec\022U\n\004mode\030\001 \001(\0162G.google.cloud" + + ".discoveryengine.v1.SearchRequest.SpellC" + + "orrectionSpec.Mode\";\n\004Mode\022\024\n\020MODE_UNSPE" + + "CIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022\010\n\004AUTO\020\002\032" + + "\242\014\n\021ContentSearchSpec\022b\n\014snippet_spec\030\001 " + + "\001(\0132L.google.cloud.discoveryengine.v1.Se" + + "archRequest.ContentSearchSpec.SnippetSpe" + + "c\022b\n\014summary_spec\030\002 \001(\0132L.google.cloud.d" + + "iscoveryengine.v1.SearchRequest.ContentS" + + "earchSpec.SummarySpec\022w\n\027extractive_cont" + + "ent_spec\030\003 \001(\0132V.google.cloud.discoverye" + "ngine.v1.SearchRequest.ContentSearchSpec" - + ".SnippetSpec\022b\n\014summary_spec\030\002 \001(\0132L.goo" - + "gle.cloud.discoveryengine.v1.SearchReque" - + "st.ContentSearchSpec.SummarySpec\022w\n\027extr" - + "active_content_spec\030\003 \001(\0132V.google.cloud" - + ".discoveryengine.v1.SearchRequest.Conten" - + "tSearchSpec.ExtractiveContentSpec\022m\n\022sea" - + "rch_result_mode\030\004 \001(\0162Q.google.cloud.dis" + + ".ExtractiveContentSpec\022m\n\022search_result_" + + "mode\030\004 \001(\0162Q.google.cloud.discoveryengin" + + "e.v1.SearchRequest.ContentSearchSpec.Sea" + + "rchResultMode\022^\n\nchunk_spec\030\005 \001(\0132J.goog" + + "le.cloud.discoveryengine.v1.SearchReques" + + "t.ContentSearchSpec.ChunkSpec\032`\n\013Snippet" + + "Spec\022\035\n\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n\016r" + + "eference_only\030\002 \001(\010B\002\030\001\022\026\n\016return_snippe" + + "t\030\003 \001(\010\032\274\004\n\013SummarySpec\022\034\n\024summary_resul" + + "t_count\030\001 \001(\005\022\031\n\021include_citations\030\002 \001(\010" + + "\022 \n\030ignore_adversarial_query\030\003 \001(\010\022(\n ig" + + "nore_non_summary_seeking_query\030\004 \001(\010\022#\n\033" + + "ignore_low_relevant_content\030\t \001(\010\022\'\n\032ign" + + "ore_jail_breaking_query\030\n \001(\010B\003\340A\001\022w\n\021mo" + + "del_prompt_spec\030\005 \001(\0132\\.google.cloud.dis" + "coveryengine.v1.SearchRequest.ContentSea" - + "rchSpec.SearchResultMode\022^\n\nchunk_spec\030\005" - + " \001(\0132J.google.cloud.discoveryengine.v1.S" - + "earchRequest.ContentSearchSpec.ChunkSpec" - + "\032`\n\013SnippetSpec\022\035\n\021max_snippet_count\030\001 \001" - + "(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026\n\016re" - + "turn_snippet\030\003 \001(\010\032\223\004\n\013SummarySpec\022\034\n\024su" - + "mmary_result_count\030\001 \001(\005\022\031\n\021include_cita" - + "tions\030\002 \001(\010\022 \n\030ignore_adversarial_query\030" - + "\003 \001(\010\022(\n ignore_non_summary_seeking_quer" - + "y\030\004 \001(\010\022#\n\033ignore_low_relevant_content\030\t" - + " \001(\010\022w\n\021model_prompt_spec\030\005 \001(\0132\\.google" - + ".cloud.discoveryengine.v1.SearchRequest." - + "ContentSearchSpec.SummarySpec.ModelPromp" - + "tSpec\022\025\n\rlanguage_code\030\006 \001(\t\022j\n\nmodel_sp" - + "ec\030\007 \001(\0132V.google.cloud.discoveryengine." - + "v1.SearchRequest.ContentSearchSpec.Summa" - + "rySpec.ModelSpec\022\033\n\023use_semantic_chunks\030" - + "\010 \001(\010\032#\n\017ModelPromptSpec\022\020\n\010preamble\030\001 \001" - + "(\t\032\034\n\tModelSpec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025Ext" - + "ractiveContentSpec\022#\n\033max_extractive_ans" - + "wer_count\030\001 \001(\005\022$\n\034max_extractive_segmen" - + "t_count\030\002 \001(\005\022\'\n\037return_extractive_segme" - + "nt_score\030\003 \001(\010\022\035\n\025num_previous_segments\030" - + "\004 \001(\005\022\031\n\021num_next_segments\030\005 \001(\005\032A\n\tChun" - + "kSpec\022\033\n\023num_previous_chunks\030\001 \001(\005\022\027\n\017nu" - + "m_next_chunks\030\002 \001(\005\"Q\n\020SearchResultMode\022" - + "\"\n\036SEARCH_RESULT_MODE_UNSPECIFIED\020\000\022\r\n\tD" - + "OCUMENTS\020\001\022\n\n\006CHUNKS\020\002\032\271\001\n\023SearchAsYouTy" - + "peSpec\022_\n\tcondition\030\001 \001(\0162L.google.cloud" - + ".discoveryengine.v1.SearchRequest.Search" - + "AsYouTypeSpec.Condition\"A\n\tCondition\022\031\n\025" - + "CONDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032q\n\013SessionSpec\022\020\n\010query_id\030\001 " - + "\001(\t\022,\n\037search_result_persistence_count\030\002" - + " \001(\005H\000\210\001\001B\"\n _search_result_persistence_" - + "count\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005val" - + "ue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\0321\n\017" - + "UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"\217\024\n\016SearchResponse\022M\n\007results\030\001 " - + "\003(\0132<.google.cloud.discoveryengine.v1.Se" - + "archResponse.SearchResult\022E\n\006facets\030\002 \003(" - + "\01325.google.cloud.discoveryengine.v1.Sear" - + "chResponse.Facet\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021" - + "attribution_token\030\004 \001(\t\022\024\n\014redirect_uri\030" - + "\014 \001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017correc" - + "ted_query\030\007 \001(\t\022H\n\007summary\030\t \001(\01327.googl" - + "e.cloud.discoveryengine.v1.SearchRespons" - + "e.Summary\022`\n\024query_expansion_info\030\016 \001(\0132" - + "B.google.cloud.discoveryengine.v1.Search" - + "Response.QueryExpansionInfo\022Q\n\014session_i" - + "nfo\030\023 \001(\0132;.google.cloud.discoveryengine" - + ".v1.SearchResponse.SessionInfo\032\216\001\n\014Searc" - + "hResult\022\n\n\002id\030\001 \001(\t\022;\n\010document\030\002 \001(\0132)." - + "google.cloud.discoveryengine.v1.Document" - + "\0225\n\005chunk\030\022 \001(\0132&.google.cloud.discovery" - + "engine.v1.Chunk\032\371\001\n\005Facet\022\013\n\003key\030\001 \001(\t\022P" - + "\n\006values\030\002 \003(\0132@.google.cloud.discoverye" - + "ngine.v1.SearchResponse.Facet.FacetValue" - + "\022\025\n\rdynamic_facet\030\003 \001(\010\032z\n\nFacetValue\022\017\n" - + "\005value\030\001 \001(\tH\000\022=\n\010interval\030\002 \001(\0132).googl" - + "e.cloud.discoveryengine.v1.IntervalH\000\022\r\n" - + "\005count\030\003 \001(\003B\r\n\013facet_value\032\351\013\n\007Summary\022" - + "\024\n\014summary_text\030\001 \001(\t\022m\n\027summary_skipped" - + "_reasons\030\002 \003(\0162L.google.cloud.discoverye" - + "ngine.v1.SearchResponse.Summary.SummaryS" - + "kippedReason\022c\n\021safety_attributes\030\003 \001(\0132" - + "H.google.cloud.discoveryengine.v1.Search" - + "Response.Summary.SafetyAttributes\022j\n\025sum" - + "mary_with_metadata\030\004 \001(\0132K.google.cloud." - + "discoveryengine.v1.SearchResponse.Summar" - + "y.SummaryWithMetadata\0326\n\020SafetyAttribute" - + "s\022\022\n\ncategories\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002\032g\n" - + "\020CitationMetadata\022S\n\tcitations\030\001 \003(\0132@.g" - + "oogle.cloud.discoveryengine.v1.SearchRes" - + "ponse.Summary.Citation\032\213\001\n\010Citation\022\023\n\013s" - + "tart_index\030\001 \001(\003\022\021\n\tend_index\030\002 \001(\003\022W\n\007s" - + "ources\030\003 \003(\0132F.google.cloud.discoveryeng" - + "ine.v1.SearchResponse.Summary.CitationSo" - + "urce\032)\n\016CitationSource\022\027\n\017reference_inde" - + "x\030\004 \001(\003\032\214\002\n\tReference\022\r\n\005title\030\001 \001(\t\022A\n\010" - + "document\030\002 \001(\tB/\340A\002\372A)\n\'discoveryengine." - + "googleapis.com/Document\022\013\n\003uri\030\003 \001(\t\022f\n\016" - + "chunk_contents\030\004 \003(\0132N.google.cloud.disc" - + "overyengine.v1.SearchResponse.Summary.Re" - + "ference.ChunkContent\0328\n\014ChunkContent\022\017\n\007" - + "content\030\001 \001(\t\022\027\n\017page_identifier\030\002 \001(\t\032\342" - + "\001\n\023SummaryWithMetadata\022\017\n\007summary\030\001 \001(\t\022" - + "c\n\021citation_metadata\030\002 \001(\0132H.google.clou" + + "rchSpec.SummarySpec.ModelPromptSpec\022\025\n\rl" + + "anguage_code\030\006 \001(\t\022j\n\nmodel_spec\030\007 \001(\0132V" + + ".google.cloud.discoveryengine.v1.SearchR" + + "equest.ContentSearchSpec.SummarySpec.Mod" + + "elSpec\022\033\n\023use_semantic_chunks\030\010 \001(\010\032#\n\017M" + + "odelPromptSpec\022\020\n\010preamble\030\001 \001(\t\032\034\n\tMode" + + "lSpec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025ExtractiveCon" + + "tentSpec\022#\n\033max_extractive_answer_count\030" + + "\001 \001(\005\022$\n\034max_extractive_segment_count\030\002 " + + "\001(\005\022\'\n\037return_extractive_segment_score\030\003" + + " \001(\010\022\035\n\025num_previous_segments\030\004 \001(\005\022\031\n\021n" + + "um_next_segments\030\005 \001(\005\032A\n\tChunkSpec\022\033\n\023n" + + "um_previous_chunks\030\001 \001(\005\022\027\n\017num_next_chu" + + "nks\030\002 \001(\005\"Q\n\020SearchResultMode\022\"\n\036SEARCH_" + + "RESULT_MODE_UNSPECIFIED\020\000\022\r\n\tDOCUMENTS\020\001" + + "\022\n\n\006CHUNKS\020\002\032\271\001\n\023SearchAsYouTypeSpec\022_\n\t" + + "condition\030\001 \001(\0162L.google.cloud.discovery" + + "engine.v1.SearchRequest.SearchAsYouTypeS" + + "pec.Condition\"A\n\tCondition\022\031\n\025CONDITION_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002" + + "\032q\n\013SessionSpec\022\020\n\010query_id\030\001 \001(\t\022,\n\037sea" + + "rch_result_persistence_count\030\002 \001(\005H\000\210\001\001B" + + "\"\n _search_result_persistence_count\032E\n\013P" + + "aramsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026" + + ".google.protobuf.Value:\0028\001\0321\n\017UserLabels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\271\024" + + "\n\016SearchResponse\022M\n\007results\030\001 \003(\0132<.goog" + + "le.cloud.discoveryengine.v1.SearchRespon" + + "se.SearchResult\022E\n\006facets\030\002 \003(\01325.google" + + ".cloud.discoveryengine.v1.SearchResponse" + + ".Facet\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attributio" + + "n_token\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017n" + + "ext_page_token\030\005 \001(\t\022\027\n\017corrected_query\030" + + "\007 \001(\t\022H\n\007summary\030\t \001(\01327.google.cloud.di" + + "scoveryengine.v1.SearchResponse.Summary\022" + + "`\n\024query_expansion_info\030\016 \001(\0132B.google.c" + + "loud.discoveryengine.v1.SearchResponse.Q" + + "ueryExpansionInfo\022Q\n\014session_info\030\023 \001(\0132" + + ";.google.cloud.discoveryengine.v1.Search" + + "Response.SessionInfo\032\216\001\n\014SearchResult\022\n\n" + + "\002id\030\001 \001(\t\022;\n\010document\030\002 \001(\0132).google.clo" + + "ud.discoveryengine.v1.Document\0225\n\005chunk\030" + + "\022 \001(\0132&.google.cloud.discoveryengine.v1." + + "Chunk\032\371\001\n\005Facet\022\013\n\003key\030\001 \001(\t\022P\n\006values\030\002" + + " \003(\0132@.google.cloud.discoveryengine.v1.S" + + "earchResponse.Facet.FacetValue\022\025\n\rdynami" + + "c_facet\030\003 \001(\010\032z\n\nFacetValue\022\017\n\005value\030\001 \001" + + "(\tH\000\022=\n\010interval\030\002 \001(\0132).google.cloud.di" + + "scoveryengine.v1.IntervalH\000\022\r\n\005count\030\003 \001" + + "(\003B\r\n\013facet_value\032\223\014\n\007Summary\022\024\n\014summary" + + "_text\030\001 \001(\t\022m\n\027summary_skipped_reasons\030\002" + + " \003(\0162L.google.cloud.discoveryengine.v1.S" + + "earchResponse.Summary.SummarySkippedReas" + + "on\022c\n\021safety_attributes\030\003 \001(\0132H.google.c" + + "loud.discoveryengine.v1.SearchResponse.S" + + "ummary.SafetyAttributes\022j\n\025summary_with_" + + "metadata\030\004 \001(\0132K.google.cloud.discoverye" + + "ngine.v1.SearchResponse.Summary.SummaryW" + + "ithMetadata\0326\n\020SafetyAttributes\022\022\n\ncateg" + + "ories\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002\032g\n\020CitationM" + + "etadata\022S\n\tcitations\030\001 \003(\0132@.google.clou" + "d.discoveryengine.v1.SearchResponse.Summ" - + "ary.CitationMetadata\022U\n\nreferences\030\003 \003(\013" - + "2A.google.cloud.discoveryengine.v1.Searc" - + "hResponse.Summary.Reference\"\271\002\n\024SummaryS" - + "kippedReason\022&\n\"SUMMARY_SKIPPED_REASON_U" - + "NSPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORE" - + "D\020\001\022%\n!NON_SUMMARY_SEEKING_QUERY_IGNORED" - + "\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032P" - + "OTENTIAL_POLICY_VIOLATION\020\004\022\031\n\025LLM_ADDON" - + "_NOT_ENABLED\020\005\022\027\n\023NO_RELEVANT_CONTENT\020\006\022" - + "\037\n\033JAIL_BREAKING_QUERY_IGNORED\020\007\022\035\n\031CUST" - + "OMER_POLICY_VIOLATION\020\010\032I\n\022QueryExpansio" - + "nInfo\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinned_" - + "result_count\030\002 \001(\003\032-\n\013SessionInfo\022\014\n\004nam" - + "e\030\001 \001(\t\022\020\n\010query_id\030\002 \001(\t2\365\003\n\rSearchServ" - + "ice\022\217\003\n\006Search\022..google.cloud.discoverye" - + "ngine.v1.SearchRequest\032/.google.cloud.di" - + "scoveryengine.v1.SearchResponse\"\243\002\202\323\344\223\002\234" - + "\002\"P/v1/{serving_config=projects/*/locati" - + "ons/*/dataStores/*/servingConfigs/*}:sea" - + "rch:\001*Zc\"^/v1/{serving_config=projects/*" - + "/locations/*/collections/*/dataStores/*/" - + "servingConfigs/*}:search:\001*Z`\"[/v1/{serv" - + "ing_config=projects/*/locations/*/collec" - + "tions/*/engines/*/servingConfigs/*}:sear" - + "ch:\001*\032R\312A\036discoveryengine.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\205\002\n#com.google.cloud.discovery" - + "engine.v1B\022SearchServiceProtoP\001ZMcloud.g" - + "oogle.com/go/discoveryengine/apiv1/disco" - + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" - + "RYENGINE\252\002\037Google.Cloud.DiscoveryEngine." - + "V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"G" - + "oogle::Cloud::DiscoveryEngine::V1b\006proto" - + "3" + + "ary.Citation\032\213\001\n\010Citation\022\023\n\013start_index" + + "\030\001 \001(\003\022\021\n\tend_index\030\002 \001(\003\022W\n\007sources\030\003 \003" + + "(\0132F.google.cloud.discoveryengine.v1.Sea" + + "rchResponse.Summary.CitationSource\032)\n\016Ci" + + "tationSource\022\027\n\017reference_index\030\004 \001(\003\032\214\002" + + "\n\tReference\022\r\n\005title\030\001 \001(\t\022A\n\010document\030\002" + + " \001(\tB/\340A\002\372A)\n\'discoveryengine.googleapis" + + ".com/Document\022\013\n\003uri\030\003 \001(\t\022f\n\016chunk_cont" + + "ents\030\004 \003(\0132N.google.cloud.discoveryengin" + + "e.v1.SearchResponse.Summary.Reference.Ch" + + "unkContent\0328\n\014ChunkContent\022\017\n\007content\030\001 " + + "\001(\t\022\027\n\017page_identifier\030\002 \001(\t\032\342\001\n\023Summary" + + "WithMetadata\022\017\n\007summary\030\001 \001(\t\022c\n\021citatio" + + "n_metadata\030\002 \001(\0132H.google.cloud.discover" + + "yengine.v1.SearchResponse.Summary.Citati" + + "onMetadata\022U\n\nreferences\030\003 \003(\0132A.google." + + "cloud.discoveryengine.v1.SearchResponse." + + "Summary.Reference\"\343\002\n\024SummarySkippedReas" + + "on\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIED" + + "\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NON" + + "_SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT_" + + "OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_P" + + "OLICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENABL" + + "ED\020\005\022\027\n\023NO_RELEVANT_CONTENT\020\006\022\037\n\033JAIL_BR" + + "EAKING_QUERY_IGNORED\020\007\022\035\n\031CUSTOMER_POLIC" + + "Y_VIOLATION\020\010\022(\n$NON_SUMMARY_SEEKING_QUE" + + "RY_IGNORED_V2\020\t\032I\n\022QueryExpansionInfo\022\026\n" + + "\016expanded_query\030\001 \001(\010\022\033\n\023pinned_result_c" + + "ount\030\002 \001(\003\032-\n\013SessionInfo\022\014\n\004name\030\001 \001(\t\022" + + "\020\n\010query_id\030\002 \001(\t2\227\007\n\rSearchService\022\217\003\n\006" + + "Search\022..google.cloud.discoveryengine.v1" + + ".SearchRequest\032/.google.cloud.discoverye" + + "ngine.v1.SearchResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{" + + "serving_config=projects/*/locations/*/da" + + "taStores/*/servingConfigs/*}:search:\001*Zc" + + "\"^/v1/{serving_config=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/servingC" + + "onfigs/*}:search:\001*Z`\"[/v1/{serving_conf" + + "ig=projects/*/locations/*/collections/*/" + + "engines/*/servingConfigs/*}:search:\001*\022\237\003" + + "\n\nSearchLite\022..google.cloud.discoveryeng" + + "ine.v1.SearchRequest\032/.google.cloud.disc" + + "overyengine.v1.SearchResponse\"\257\002\202\323\344\223\002\250\002\"" + + "T/v1/{serving_config=projects/*/location" + + "s/*/dataStores/*/servingConfigs/*}:searc" + + "hLite:\001*Zg\"b/v1/{serving_config=projects" + + "/*/locations/*/collections/*/dataStores/" + + "*/servingConfigs/*}:searchLite:\001*Zd\"_/v1" + + "/{serving_config=projects/*/locations/*/" + + "collections/*/engines/*/servingConfigs/*" + + "}:searchLite:\001*\032R\312A\036discoveryengine.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\205\002\n#com.google.cloud" + + ".discoveryengine.v1B\022SearchServiceProtoP" + + "\001ZMcloud.google.com/go/discoveryengine/a" + + "piv1/discoveryenginepb;discoveryenginepb" + + "\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discov" + + "eryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEng" + + "ine\\V1\352\002\"Google::Cloud::DiscoveryEngine:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -406,6 +447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", "Offset", + "OneBoxPageSize", "DataStoreSpecs", "Filter", "CanonicalFilter", @@ -443,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_DataStoreSpec_descriptor, new java.lang.String[] { - "DataStore", + "DataStore", "Filter", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor @@ -489,7 +531,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, new java.lang.String[] { - "Condition", "Boost", + "Condition", "Boost", "BoostControlSpec", + }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor, + new java.lang.String[] { + "FieldName", "AttributeType", "InterpolationType", "ControlPoints", + }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor, + new java.lang.String[] { + "AttributeValue", "BoostAmount", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor @@ -548,6 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreAdversarialQuery", "IgnoreNonSummarySeekingQuery", "IgnoreLowRelevantContent", + "IgnoreJailBreakingQuery", "ModelPromptSpec", "LanguageCode", "ModelSpec", diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java index c1d6b96a5702..bdc1d00d96cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java @@ -217,174 +217,174 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "chResponse\"\205\001\n!DisableAdvancedSiteSearch" + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" + "rotobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032" - + ".google.protobuf.Timestamp\"|\n\022RecrawlUri" - + "sRequest\022S\n\022site_search_engine\030\001 \001(\tB7\340A" - + "\002\372A1\n/discoveryengine.googleapis.com/Sit" - + "eSearchEngine\022\021\n\004uris\030\002 \003(\tB\003\340A\002\"\350\003\n\023Rec" - + "rawlUrisResponse\022Y\n\017failure_samples\030\001 \003(" - + "\0132@.google.cloud.discoveryengine.v1.Recr" - + "awlUrisResponse.FailureInfo\022\023\n\013failed_ur" - + "is\030\002 \003(\t\032\340\002\n\013FailureInfo\022\013\n\003uri\030\001 \001(\t\022g\n" - + "\017failure_reasons\030\002 \003(\0132N.google.cloud.di" - + "scoveryengine.v1.RecrawlUrisResponse.Fai" - + "lureInfo.FailureReason\032\332\001\n\rFailureReason" - + "\022n\n\013corpus_type\030\001 \001(\0162Y.google.cloud.dis" - + "coveryengine.v1.RecrawlUrisResponse.Fail" - + "ureInfo.FailureReason.CorpusType\022\025\n\rerro" - + "r_message\030\002 \001(\t\"B\n\nCorpusType\022\033\n\027CORPUS_" - + "TYPE_UNSPECIFIED\020\000\022\013\n\007DESKTOP\020\001\022\n\n\006MOBIL" - + "E\020\002\"\363\001\n\023RecrawlUrisMetadata\022/\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013" - + "update_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022\024\n\014invalid_uris\030\003 \003(\t\022\030\n\020valid_uri" - + "s_count\030\004 \001(\005\022\025\n\rsuccess_count\030\005 \001(\005\022\025\n\r" - + "pending_count\030\006 \001(\005\022\034\n\024quota_exceeded_co" - + "unt\030\007 \001(\005\"h\n\035BatchVerifyTargetSitesReque" - + "st\022G\n\006parent\030\001 \001(\tB7\340A\002\372A1\n/discoveryeng" - + "ine.googleapis.com/SiteSearchEngine\" \n\036B" - + "atchVerifyTargetSitesResponse\"\202\001\n\036BatchV" - + "erifyTargetSitesMetadata\022/\n\013create_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" - + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\"\242\001\n$FetchDomainVerificationStatusRequ" - + "est\022S\n\022site_search_engine\030\001 \001(\tB7\340A\002\372A1\n" - + "/discoveryengine.googleapis.com/SiteSear" - + "chEngine\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"\227\001\n%FetchDomainVerificationStatu" - + "sResponse\022A\n\014target_sites\030\001 \003(\0132+.google" - + ".cloud.discoveryengine.v1.TargetSite\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" - + "\0052\265&\n\027SiteSearchEngineService\022\250\002\n\023GetSit" - + "eSearchEngine\022;.google.cloud.discoveryen" - + "gine.v1.GetSiteSearchEngineRequest\0321.goo" - + "gle.cloud.discoveryengine.v1.SiteSearchE" - + "ngine\"\240\001\332A\004name\202\323\344\223\002\222\001\022?/v1/{name=projec" - + "ts/*/locations/*/dataStores/*/siteSearch" - + "Engine}ZO\022M/v1/{name=projects/*/location" - + "s/*/collections/*/dataStores/*/siteSearc" - + "hEngine}\022\273\003\n\020CreateTargetSite\0228.google.c" - + "loud.discoveryengine.v1.CreateTargetSite" - + "Request\032\035.google.longrunning.Operation\"\315" - + "\002\312Af\n*google.cloud.discoveryengine.v1.Ta" - + "rgetSite\0228google.cloud.discoveryengine.v" - + "1.CreateTargetSiteMetadata\332A\022parent,targ" - + "et_site\202\323\344\223\002\310\001\"M/v1/{parent=projects/*/l" - + "ocations/*/dataStores/*/siteSearchEngine" - + "}/targetSites:\013target_siteZj\"[/v1/{paren" - + "t=projects/*/locations/*/collections/*/d" - + "ataStores/*/siteSearchEngine}/targetSite" - + "s:\013target_site\022\317\003\n\026BatchCreateTargetSite" - + "s\022>.google.cloud.discoveryengine.v1.Batc" - + "hCreateTargetSitesRequest\032\035.google.longr" - + "unning.Operation\"\325\002\312A\177\n>google.cloud.dis" - + "coveryengine.v1.BatchCreateTargetSitesRe" - + "sponse\022=google.cloud.discoveryengine.v1." - + "BatchCreateTargetSiteMetadata\202\323\344\223\002\314\001\"Y/v" - + "1/{parent=projects/*/locations/*/dataSto" - + "res/*/siteSearchEngine}/targetSites:batc" - + "hCreate:\001*Zl\"g/v1/{parent=projects/*/loc" - + "ations/*/collections/*/dataStores/*/site" - + "SearchEngine}/targetSites:batchCreate:\001*" - + "\022\262\002\n\rGetTargetSite\0225.google.cloud.discov" - + "eryengine.v1.GetTargetSiteRequest\032+.goog" - + "le.cloud.discoveryengine.v1.TargetSite\"\274" - + "\001\332A\004name\202\323\344\223\002\256\001\022M/v1/{name=projects/*/lo" - + "cations/*/dataStores/*/siteSearchEngine/" - + "targetSites/*}Z]\022[/v1/{name=projects/*/l" - + "ocations/*/collections/*/dataStores/*/si" - + "teSearchEngine/targetSites/*}\022\314\003\n\020Update" - + "TargetSite\0228.google.cloud.discoveryengin" - + "e.v1.UpdateTargetSiteRequest\032\035.google.lo" - + "ngrunning.Operation\"\336\002\312Af\n*google.cloud." - + "discoveryengine.v1.TargetSite\0228google.cl" - + "oud.discoveryengine.v1.UpdateTargetSiteM" - + "etadata\332A\013target_site\202\323\344\223\002\340\0012Y/v1/{targe" - + "t_site.name=projects/*/locations/*/dataS" - + "tores/*/siteSearchEngine/targetSites/*}:" - + "\013target_siteZv2g/v1/{target_site.name=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*/siteSearchEngine/targetSites/*}:" - + "\013target_site\022\376\002\n\020DeleteTargetSite\0228.goog" - + "le.cloud.discoveryengine.v1.DeleteTarget" - + "SiteRequest\032\035.google.longrunning.Operati" - + "on\"\220\002\312AQ\n\025google.protobuf.Empty\0228google." - + "cloud.discoveryengine.v1.DeleteTargetSit" - + "eMetadata\332A\004name\202\323\344\223\002\256\001*M/v1/{name=proje" - + "cts/*/locations/*/dataStores/*/siteSearc" - + "hEngine/targetSites/*}Z]*[/v1/{name=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*/siteSearchEngine/targetSites/*}\022\305\002" - + "\n\017ListTargetSites\0227.google.cloud.discove" - + "ryengine.v1.ListTargetSitesRequest\0328.goo" - + "gle.cloud.discoveryengine.v1.ListTargetS" - + "itesResponse\"\276\001\332A\006parent\202\323\344\223\002\256\001\022M/v1/{pa" - + "rent=projects/*/locations/*/dataStores/*" - + "/siteSearchEngine}/targetSitesZ]\022[/v1/{p" - + "arent=projects/*/locations/*/collections" - + "/*/dataStores/*/siteSearchEngine}/target" - + "Sites\022\363\003\n\030EnableAdvancedSiteSearch\022@.goo" + + ".google.protobuf.Timestamp\"\232\001\n\022RecrawlUr" + + "isRequest\022S\n\022site_search_engine\030\001 \001(\tB7\340" + + "A\002\372A1\n/discoveryengine.googleapis.com/Si" + + "teSearchEngine\022\021\n\004uris\030\002 \003(\tB\003\340A\002\022\034\n\017sit" + + "e_credential\030\005 \001(\tB\003\340A\001\"\350\003\n\023RecrawlUrisR" + + "esponse\022Y\n\017failure_samples\030\001 \003(\0132@.googl" + + "e.cloud.discoveryengine.v1.RecrawlUrisRe" + + "sponse.FailureInfo\022\023\n\013failed_uris\030\002 \003(\t\032" + + "\340\002\n\013FailureInfo\022\013\n\003uri\030\001 \001(\t\022g\n\017failure_" + + "reasons\030\002 \003(\0132N.google.cloud.discoveryen" + + "gine.v1.RecrawlUrisResponse.FailureInfo." + + "FailureReason\032\332\001\n\rFailureReason\022n\n\013corpu" + + "s_type\030\001 \001(\0162Y.google.cloud.discoveryeng" + + "ine.v1.RecrawlUrisResponse.FailureInfo.F" + + "ailureReason.CorpusType\022\025\n\rerror_message" + + "\030\002 \001(\t\"B\n\nCorpusType\022\033\n\027CORPUS_TYPE_UNSP" + + "ECIFIED\020\000\022\013\n\007DESKTOP\020\001\022\n\n\006MOBILE\020\002\"\363\001\n\023R" + + "ecrawlUrisMetadata\022/\n\013create_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013update_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014" + + "invalid_uris\030\003 \003(\t\022\030\n\020valid_uris_count\030\004" + + " \001(\005\022\025\n\rsuccess_count\030\005 \001(\005\022\025\n\rpending_c" + + "ount\030\006 \001(\005\022\034\n\024quota_exceeded_count\030\007 \001(\005" + + "\"h\n\035BatchVerifyTargetSitesRequest\022G\n\006par" + + "ent\030\001 \001(\tB7\340A\002\372A1\n/discoveryengine.googl" + + "eapis.com/SiteSearchEngine\" \n\036BatchVerif" + + "yTargetSitesResponse\"\202\001\n\036BatchVerifyTarg" + + "etSitesMetadata\022/\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013update_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\"\242\001\n$Fe" + + "tchDomainVerificationStatusRequest\022S\n\022si" + + "te_search_engine\030\001 \001(\tB7\340A\002\372A1\n/discover" + + "yengine.googleapis.com/SiteSearchEngine\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\227" + + "\001\n%FetchDomainVerificationStatusResponse" + + "\022A\n\014target_sites\030\001 \003(\0132+.google.cloud.di" + + "scoveryengine.v1.TargetSite\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\265&\n\027Sit" + + "eSearchEngineService\022\250\002\n\023GetSiteSearchEn" + + "gine\022;.google.cloud.discoveryengine.v1.G" + + "etSiteSearchEngineRequest\0321.google.cloud" + + ".discoveryengine.v1.SiteSearchEngine\"\240\001\332" + + "A\004name\202\323\344\223\002\222\001\022?/v1/{name=projects/*/loca" + + "tions/*/dataStores/*/siteSearchEngine}ZO" + + "\022M/v1/{name=projects/*/locations/*/colle" + + "ctions/*/dataStores/*/siteSearchEngine}\022" + + "\273\003\n\020CreateTargetSite\0228.google.cloud.disc" + + "overyengine.v1.CreateTargetSiteRequest\032\035" + + ".google.longrunning.Operation\"\315\002\312Af\n*goo" + + "gle.cloud.discoveryengine.v1.TargetSite\022" + + "8google.cloud.discoveryengine.v1.CreateT" + + "argetSiteMetadata\332A\022parent,target_site\202\323" + + "\344\223\002\310\001\"M/v1/{parent=projects/*/locations/" + + "*/dataStores/*/siteSearchEngine}/targetS" + + "ites:\013target_siteZj\"[/v1/{parent=project" + + "s/*/locations/*/collections/*/dataStores" + + "/*/siteSearchEngine}/targetSites:\013target" + + "_site\022\317\003\n\026BatchCreateTargetSites\022>.googl" + + "e.cloud.discoveryengine.v1.BatchCreateTa" + + "rgetSitesRequest\032\035.google.longrunning.Op" + + "eration\"\325\002\312A\177\n>google.cloud.discoveryeng" + + "ine.v1.BatchCreateTargetSitesResponse\022=g" + + "oogle.cloud.discoveryengine.v1.BatchCrea" + + "teTargetSiteMetadata\202\323\344\223\002\314\001\"Y/v1/{parent" + + "=projects/*/locations/*/dataStores/*/sit" + + "eSearchEngine}/targetSites:batchCreate:\001" + + "*Zl\"g/v1/{parent=projects/*/locations/*/" + + "collections/*/dataStores/*/siteSearchEng" + + "ine}/targetSites:batchCreate:\001*\022\262\002\n\rGetT" + + "argetSite\0225.google.cloud.discoveryengine" + + ".v1.GetTargetSiteRequest\032+.google.cloud." + + "discoveryengine.v1.TargetSite\"\274\001\332A\004name\202" + + "\323\344\223\002\256\001\022M/v1/{name=projects/*/locations/*" + + "/dataStores/*/siteSearchEngine/targetSit" + + "es/*}Z]\022[/v1/{name=projects/*/locations/" + + "*/collections/*/dataStores/*/siteSearchE" + + "ngine/targetSites/*}\022\314\003\n\020UpdateTargetSit" + + "e\0228.google.cloud.discoveryengine.v1.Upda" + + "teTargetSiteRequest\032\035.google.longrunning" + + ".Operation\"\336\002\312Af\n*google.cloud.discovery" + + "engine.v1.TargetSite\0228google.cloud.disco" + + "veryengine.v1.UpdateTargetSiteMetadata\332A" + + "\013target_site\202\323\344\223\002\340\0012Y/v1/{target_site.na" + + "me=projects/*/locations/*/dataStores/*/s" + + "iteSearchEngine/targetSites/*}:\013target_s" + + "iteZv2g/v1/{target_site.name=projects/*/" + + "locations/*/collections/*/dataStores/*/s" + + "iteSearchEngine/targetSites/*}:\013target_s" + + "ite\022\376\002\n\020DeleteTargetSite\0228.google.cloud." + + "discoveryengine.v1.DeleteTargetSiteReque" + + "st\032\035.google.longrunning.Operation\"\220\002\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.dis" + + "coveryengine.v1.DeleteTargetSiteMetadata" + + "\332A\004name\202\323\344\223\002\256\001*M/v1/{name=projects/*/loc" + + "ations/*/dataStores/*/siteSearchEngine/t" + + "argetSites/*}Z]*[/v1/{name=projects/*/lo" + + "cations/*/collections/*/dataStores/*/sit" + + "eSearchEngine/targetSites/*}\022\305\002\n\017ListTar" + + "getSites\0227.google.cloud.discoveryengine." + + "v1.ListTargetSitesRequest\0328.google.cloud" + + ".discoveryengine.v1.ListTargetSitesRespo" + + "nse\"\276\001\332A\006parent\202\323\344\223\002\256\001\022M/v1/{parent=proj" + + "ects/*/locations/*/dataStores/*/siteSear" + + "chEngine}/targetSitesZ]\022[/v1/{parent=pro" + + "jects/*/locations/*/collections/*/dataSt" + + "ores/*/siteSearchEngine}/targetSites\022\363\003\n" + + "\030EnableAdvancedSiteSearch\022@.google.cloud" + + ".discoveryengine.v1.EnableAdvancedSiteSe" + + "archRequest\032\035.google.longrunning.Operati" + + "on\"\365\002\312A\204\001\n@google.cloud.discoveryengine." + + "v1.EnableAdvancedSiteSearchResponse\022@goo" + "gle.cloud.discoveryengine.v1.EnableAdvan" - + "cedSiteSearchRequest\032\035.google.longrunnin" - + "g.Operation\"\365\002\312A\204\001\n@google.cloud.discove" - + "ryengine.v1.EnableAdvancedSiteSearchResp" - + "onse\022@google.cloud.discoveryengine.v1.En" - + "ableAdvancedSiteSearchMetadata\202\323\344\223\002\346\001\"f/" - + "v1/{site_search_engine=projects/*/locati" - + "ons/*/dataStores/*/siteSearchEngine}:ena" - + "bleAdvancedSiteSearch:\001*Zy\"t/v1/{site_se" - + "arch_engine=projects/*/locations/*/colle" - + "ctions/*/dataStores/*/siteSearchEngine}:" - + "enableAdvancedSiteSearch:\001*\022\371\003\n\031DisableA" - + "dvancedSiteSearch\022A.google.cloud.discove" - + "ryengine.v1.DisableAdvancedSiteSearchReq" - + "uest\032\035.google.longrunning.Operation\"\371\002\312A" - + "\206\001\nAgoogle.cloud.discoveryengine.v1.Disa" - + "bleAdvancedSiteSearchResponse\022Agoogle.cl" - + "oud.discoveryengine.v1.DisableAdvancedSi" - + "teSearchMetadata\202\323\344\223\002\350\001\"g/v1/{site_searc" - + "h_engine=projects/*/locations/*/dataStor" - + "es/*/siteSearchEngine}:disableAdvancedSi" - + "teSearch:\001*Zz\"u/v1/{site_search_engine=p" - + "rojects/*/locations/*/collections/*/data" - + "Stores/*/siteSearchEngine}:disableAdvanc" - + "edSiteSearch:\001*\022\244\003\n\013RecrawlUris\0223.google" - + ".cloud.discoveryengine.v1.RecrawlUrisReq" - + "uest\032\035.google.longrunning.Operation\"\300\002\312A" - + "j\n3google.cloud.discoveryengine.v1.Recra" - + "wlUrisResponse\0223google.cloud.discoveryen" - + "gine.v1.RecrawlUrisMetadata\202\323\344\223\002\314\001\"Y/v1/" - + "{site_search_engine=projects/*/locations" - + "/*/dataStores/*/siteSearchEngine}:recraw" - + "lUris:\001*Zl\"g/v1/{site_search_engine=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*/siteSearchEngine}:recrawlUris:\001*\022\357" - + "\002\n\026BatchVerifyTargetSites\022>.google.cloud" - + ".discoveryengine.v1.BatchVerifyTargetSit" - + "esRequest\032\035.google.longrunning.Operation" - + "\"\365\001\312A\200\001\n>google.cloud.discoveryengine.v1" - + ".BatchVerifyTargetSitesResponse\022>google." - + "cloud.discoveryengine.v1.BatchVerifyTarg" - + "etSitesMetadata\202\323\344\223\002k\"f/v1/{parent=proje" - + "cts/*/locations/*/collections/*/dataStor" - + "es/*/siteSearchEngine}:batchVerifyTarget" - + "Sites:\001*\022\262\002\n\035FetchDomainVerificationStat" - + "us\022E.google.cloud.discoveryengine.v1.Fet" - + "chDomainVerificationStatusRequest\032F.goog" + + "cedSiteSearchMetadata\202\323\344\223\002\346\001\"f/v1/{site_" + + "search_engine=projects/*/locations/*/dat" + + "aStores/*/siteSearchEngine}:enableAdvanc" + + "edSiteSearch:\001*Zy\"t/v1/{site_search_engi" + + "ne=projects/*/locations/*/collections/*/" + + "dataStores/*/siteSearchEngine}:enableAdv" + + "ancedSiteSearch:\001*\022\371\003\n\031DisableAdvancedSi" + + "teSearch\022A.google.cloud.discoveryengine." + + "v1.DisableAdvancedSiteSearchRequest\032\035.go" + + "ogle.longrunning.Operation\"\371\002\312A\206\001\nAgoogl" + + "e.cloud.discoveryengine.v1.DisableAdvanc" + + "edSiteSearchResponse\022Agoogle.cloud.disco" + + "veryengine.v1.DisableAdvancedSiteSearchM" + + "etadata\202\323\344\223\002\350\001\"g/v1/{site_search_engine=" + + "projects/*/locations/*/dataStores/*/site" + + "SearchEngine}:disableAdvancedSiteSearch:" + + "\001*Zz\"u/v1/{site_search_engine=projects/*" + + "/locations/*/collections/*/dataStores/*/" + + "siteSearchEngine}:disableAdvancedSiteSea" + + "rch:\001*\022\244\003\n\013RecrawlUris\0223.google.cloud.di" + + "scoveryengine.v1.RecrawlUrisRequest\032\035.go" + + "ogle.longrunning.Operation\"\300\002\312Aj\n3google" + + ".cloud.discoveryengine.v1.RecrawlUrisRes" + + "ponse\0223google.cloud.discoveryengine.v1.R" + + "ecrawlUrisMetadata\202\323\344\223\002\314\001\"Y/v1/{site_sea" + + "rch_engine=projects/*/locations/*/dataSt" + + "ores/*/siteSearchEngine}:recrawlUris:\001*Z" + + "l\"g/v1/{site_search_engine=projects/*/lo" + + "cations/*/collections/*/dataStores/*/sit" + + "eSearchEngine}:recrawlUris:\001*\022\357\002\n\026BatchV" + + "erifyTargetSites\022>.google.cloud.discover" + + "yengine.v1.BatchVerifyTargetSitesRequest" + + "\032\035.google.longrunning.Operation\"\365\001\312A\200\001\n>" + + "google.cloud.discoveryengine.v1.BatchVer" + + "ifyTargetSitesResponse\022>google.cloud.dis" + + "coveryengine.v1.BatchVerifyTargetSitesMe" + + "tadata\202\323\344\223\002k\"f/v1/{parent=projects/*/loc" + + "ations/*/collections/*/dataStores/*/site" + + "SearchEngine}:batchVerifyTargetSites:\001*\022" + + "\262\002\n\035FetchDomainVerificationStatus\022E.goog" + "le.cloud.discoveryengine.v1.FetchDomainV" - + "erificationStatusResponse\"\201\001\202\323\344\223\002{\022y/v1/" - + "{site_search_engine=projects/*/locations" - + "/*/collections/*/dataStores/*/siteSearch" - + "Engine}:fetchDomainVerificationStatus\032R\312" - + "A\036discoveryengine.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\217\002\n#com.google.cloud.discoveryengine.v" - + "1B\034SiteSearchEngineServiceProtoP\001ZMcloud" - + ".google.com/go/discoveryengine/apiv1/dis" - + "coveryenginepb;discoveryenginepb\242\002\017DISCO" - + "VERYENGINE\252\002\037Google.Cloud.DiscoveryEngin" - + "e.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002" - + "\"Google::Cloud::DiscoveryEngine::V1b\006pro" - + "to3" + + "erificationStatusRequest\032F.google.cloud." + + "discoveryengine.v1.FetchDomainVerificati" + + "onStatusResponse\"\201\001\202\323\344\223\002{\022y/v1/{site_sea" + + "rch_engine=projects/*/locations/*/collec" + + "tions/*/dataStores/*/siteSearchEngine}:f" + + "etchDomainVerificationStatus\032R\312A\036discove" + + "ryengine.googleapis.com\322A.https://www.go" + + "ogleapis.com/auth/cloud-platformB\217\002\n#com" + + ".google.cloud.discoveryengine.v1B\034SiteSe" + + "archEngineServiceProtoP\001ZMcloud.google.c" + + "om/go/discoveryengine/apiv1/discoveryeng" + + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" + + "E\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::" + + "Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -553,7 +553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_RecrawlUrisRequest_descriptor, new java.lang.String[] { - "SiteSearchEngine", "Uris", + "SiteSearchEngine", "Uris", "SiteCredential", }); internal_static_google_cloud_discoveryengine_v1_RecrawlUrisResponse_descriptor = getDescriptor().getMessageTypes().get(20); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java new file mode 100644 index 000000000000..31b54df66492 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java @@ -0,0 +1,1446 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/data_store.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Config to store data store type configuration for workspace data
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WorkspaceConfig} + */ +public final class WorkspaceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WorkspaceConfig) + WorkspaceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkspaceConfig.newBuilder() to construct. + private WorkspaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkspaceConfig() { + type_ = 0; + dasherCustomerId_ = ""; + superAdminServiceAccount_ = ""; + superAdminEmailAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkspaceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WorkspaceConfig.class, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder.class); + } + + /** + * + * + *
+   * Specifies the type of Workspace App supported by this DataStore
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WorkspaceConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Defaults to an unspecified Workspace type.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Workspace Data Store contains Drive data
+     * 
+ * + * GOOGLE_DRIVE = 1; + */ + GOOGLE_DRIVE(1), + /** + * + * + *
+     * Workspace Data Store contains Mail data
+     * 
+ * + * GOOGLE_MAIL = 2; + */ + GOOGLE_MAIL(2), + /** + * + * + *
+     * Workspace Data Store contains Sites data
+     * 
+ * + * GOOGLE_SITES = 3; + */ + GOOGLE_SITES(3), + /** + * + * + *
+     * Workspace Data Store contains Calendar data
+     * 
+ * + * GOOGLE_CALENDAR = 4; + */ + GOOGLE_CALENDAR(4), + /** + * + * + *
+     * Workspace Data Store contains Chat data
+     * 
+ * + * GOOGLE_CHAT = 5; + */ + GOOGLE_CHAT(5), + /** + * + * + *
+     * Workspace Data Store contains Groups data
+     * 
+ * + * GOOGLE_GROUPS = 6; + */ + GOOGLE_GROUPS(6), + /** + * + * + *
+     * Workspace Data Store contains Keep data
+     * 
+ * + * GOOGLE_KEEP = 7; + */ + GOOGLE_KEEP(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Defaults to an unspecified Workspace type.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Workspace Data Store contains Drive data
+     * 
+ * + * GOOGLE_DRIVE = 1; + */ + public static final int GOOGLE_DRIVE_VALUE = 1; + /** + * + * + *
+     * Workspace Data Store contains Mail data
+     * 
+ * + * GOOGLE_MAIL = 2; + */ + public static final int GOOGLE_MAIL_VALUE = 2; + /** + * + * + *
+     * Workspace Data Store contains Sites data
+     * 
+ * + * GOOGLE_SITES = 3; + */ + public static final int GOOGLE_SITES_VALUE = 3; + /** + * + * + *
+     * Workspace Data Store contains Calendar data
+     * 
+ * + * GOOGLE_CALENDAR = 4; + */ + public static final int GOOGLE_CALENDAR_VALUE = 4; + /** + * + * + *
+     * Workspace Data Store contains Chat data
+     * 
+ * + * GOOGLE_CHAT = 5; + */ + public static final int GOOGLE_CHAT_VALUE = 5; + /** + * + * + *
+     * Workspace Data Store contains Groups data
+     * 
+ * + * GOOGLE_GROUPS = 6; + */ + public static final int GOOGLE_GROUPS_VALUE = 6; + /** + * + * + *
+     * Workspace Data Store contains Keep data
+     * 
+ * + * GOOGLE_KEEP = 7; + */ + public static final int GOOGLE_KEEP_VALUE = 7; + + 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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return GOOGLE_DRIVE; + case 2: + return GOOGLE_MAIL; + case 3: + return GOOGLE_SITES; + case 4: + return GOOGLE_CALENDAR; + case 5: + return GOOGLE_CHAT; + case 6: + return GOOGLE_GROUPS; + case 7: + return GOOGLE_KEEP; + 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 Type findValueByNumber(int number) { + return Type.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WorkspaceConfig.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + * + * + *
+   * The Google Workspace data source.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * The Google Workspace data source.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type getType() { + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type result = + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.UNRECOGNIZED + : result; + } + + public static final int DASHER_CUSTOMER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dasherCustomerId_ = ""; + /** + * + * + *
+   * Obfuscated Dasher customer ID.
+   * 
+ * + * string dasher_customer_id = 2; + * + * @return The dasherCustomerId. + */ + @java.lang.Override + public java.lang.String getDasherCustomerId() { + java.lang.Object ref = dasherCustomerId_; + 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(); + dasherCustomerId_ = s; + return s; + } + } + /** + * + * + *
+   * Obfuscated Dasher customer ID.
+   * 
+ * + * string dasher_customer_id = 2; + * + * @return The bytes for dasherCustomerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDasherCustomerIdBytes() { + java.lang.Object ref = dasherCustomerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dasherCustomerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPER_ADMIN_SERVICE_ACCOUNT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object superAdminServiceAccount_ = ""; + /** + * + * + *
+   * Optional. The super admin service account for the workspace that will be
+   * used for access token generation. For now we only use it for Native Google
+   * Drive connector data ingestion.
+   * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The superAdminServiceAccount. + */ + @java.lang.Override + public java.lang.String getSuperAdminServiceAccount() { + java.lang.Object ref = superAdminServiceAccount_; + 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(); + superAdminServiceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The super admin service account for the workspace that will be
+   * used for access token generation. For now we only use it for Native Google
+   * Drive connector data ingestion.
+   * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for superAdminServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuperAdminServiceAccountBytes() { + java.lang.Object ref = superAdminServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + superAdminServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPER_ADMIN_EMAIL_ADDRESS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object superAdminEmailAddress_ = ""; + /** + * + * + *
+   * Optional. The super admin email address for the workspace that will be used
+   * for access token generation. For now we only use it for Native Google Drive
+   * connector data ingestion.
+   * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The superAdminEmailAddress. + */ + @java.lang.Override + public java.lang.String getSuperAdminEmailAddress() { + java.lang.Object ref = superAdminEmailAddress_; + 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(); + superAdminEmailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The super admin email address for the workspace that will be used
+   * for access token generation. For now we only use it for Native Google Drive
+   * connector data ingestion.
+   * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for superAdminEmailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuperAdminEmailAddressBytes() { + java.lang.Object ref = superAdminEmailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + superAdminEmailAddress_ = 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 (type_ + != com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dasherCustomerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dasherCustomerId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(superAdminServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, superAdminServiceAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(superAdminEmailAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, superAdminEmailAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dasherCustomerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dasherCustomerId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(superAdminServiceAccount_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, superAdminServiceAccount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(superAdminEmailAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, superAdminEmailAddress_); + } + 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.discoveryengine.v1.WorkspaceConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WorkspaceConfig other = + (com.google.cloud.discoveryengine.v1.WorkspaceConfig) obj; + + if (type_ != other.type_) return false; + if (!getDasherCustomerId().equals(other.getDasherCustomerId())) return false; + if (!getSuperAdminServiceAccount().equals(other.getSuperAdminServiceAccount())) return false; + if (!getSuperAdminEmailAddress().equals(other.getSuperAdminEmailAddress())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DASHER_CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getDasherCustomerId().hashCode(); + hash = (37 * hash) + SUPER_ADMIN_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuperAdminServiceAccount().hashCode(); + hash = (37 * hash) + SUPER_ADMIN_EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getSuperAdminEmailAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig 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.discoveryengine.v1.WorkspaceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig 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.discoveryengine.v1.WorkspaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.discoveryengine.v1.WorkspaceConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config to store data store type configuration for workspace data
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WorkspaceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WorkspaceConfig) + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WorkspaceConfig.class, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WorkspaceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + dasherCustomerId_ = ""; + superAdminServiceAccount_ = ""; + superAdminEmailAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig build() { + com.google.cloud.discoveryengine.v1.WorkspaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig buildPartial() { + com.google.cloud.discoveryengine.v1.WorkspaceConfig result = + new com.google.cloud.discoveryengine.v1.WorkspaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.WorkspaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dasherCustomerId_ = dasherCustomerId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.superAdminServiceAccount_ = superAdminServiceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.superAdminEmailAddress_ = superAdminEmailAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WorkspaceConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WorkspaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WorkspaceConfig other) { + if (other == com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDasherCustomerId().isEmpty()) { + dasherCustomerId_ = other.dasherCustomerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSuperAdminServiceAccount().isEmpty()) { + superAdminServiceAccount_ = other.superAdminServiceAccount_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSuperAdminEmailAddress().isEmpty()) { + superAdminEmailAddress_ = other.superAdminEmailAddress_; + 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: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + dasherCustomerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + superAdminServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + superAdminEmailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 int type_ = 0; + /** + * + * + *
+     * The Google Workspace data source.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The Google Workspace data source.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Workspace data source.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type getType() { + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type result = + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The Google Workspace data source.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Workspace data source.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object dasherCustomerId_ = ""; + /** + * + * + *
+     * Obfuscated Dasher customer ID.
+     * 
+ * + * string dasher_customer_id = 2; + * + * @return The dasherCustomerId. + */ + public java.lang.String getDasherCustomerId() { + java.lang.Object ref = dasherCustomerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dasherCustomerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Obfuscated Dasher customer ID.
+     * 
+ * + * string dasher_customer_id = 2; + * + * @return The bytes for dasherCustomerId. + */ + public com.google.protobuf.ByteString getDasherCustomerIdBytes() { + java.lang.Object ref = dasherCustomerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dasherCustomerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Obfuscated Dasher customer ID.
+     * 
+ * + * string dasher_customer_id = 2; + * + * @param value The dasherCustomerId to set. + * @return This builder for chaining. + */ + public Builder setDasherCustomerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dasherCustomerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Obfuscated Dasher customer ID.
+     * 
+ * + * string dasher_customer_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearDasherCustomerId() { + dasherCustomerId_ = getDefaultInstance().getDasherCustomerId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Obfuscated Dasher customer ID.
+     * 
+ * + * string dasher_customer_id = 2; + * + * @param value The bytes for dasherCustomerId to set. + * @return This builder for chaining. + */ + public Builder setDasherCustomerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dasherCustomerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object superAdminServiceAccount_ = ""; + /** + * + * + *
+     * Optional. The super admin service account for the workspace that will be
+     * used for access token generation. For now we only use it for Native Google
+     * Drive connector data ingestion.
+     * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The superAdminServiceAccount. + */ + public java.lang.String getSuperAdminServiceAccount() { + java.lang.Object ref = superAdminServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + superAdminServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The super admin service account for the workspace that will be
+     * used for access token generation. For now we only use it for Native Google
+     * Drive connector data ingestion.
+     * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for superAdminServiceAccount. + */ + public com.google.protobuf.ByteString getSuperAdminServiceAccountBytes() { + java.lang.Object ref = superAdminServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + superAdminServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The super admin service account for the workspace that will be
+     * used for access token generation. For now we only use it for Native Google
+     * Drive connector data ingestion.
+     * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The superAdminServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setSuperAdminServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + superAdminServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin service account for the workspace that will be
+     * used for access token generation. For now we only use it for Native Google
+     * Drive connector data ingestion.
+     * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuperAdminServiceAccount() { + superAdminServiceAccount_ = getDefaultInstance().getSuperAdminServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin service account for the workspace that will be
+     * used for access token generation. For now we only use it for Native Google
+     * Drive connector data ingestion.
+     * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for superAdminServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setSuperAdminServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + superAdminServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object superAdminEmailAddress_ = ""; + /** + * + * + *
+     * Optional. The super admin email address for the workspace that will be used
+     * for access token generation. For now we only use it for Native Google Drive
+     * connector data ingestion.
+     * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The superAdminEmailAddress. + */ + public java.lang.String getSuperAdminEmailAddress() { + java.lang.Object ref = superAdminEmailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + superAdminEmailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The super admin email address for the workspace that will be used
+     * for access token generation. For now we only use it for Native Google Drive
+     * connector data ingestion.
+     * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for superAdminEmailAddress. + */ + public com.google.protobuf.ByteString getSuperAdminEmailAddressBytes() { + java.lang.Object ref = superAdminEmailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + superAdminEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The super admin email address for the workspace that will be used
+     * for access token generation. For now we only use it for Native Google Drive
+     * connector data ingestion.
+     * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The superAdminEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setSuperAdminEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + superAdminEmailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin email address for the workspace that will be used
+     * for access token generation. For now we only use it for Native Google Drive
+     * connector data ingestion.
+     * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSuperAdminEmailAddress() { + superAdminEmailAddress_ = getDefaultInstance().getSuperAdminEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin email address for the workspace that will be used
+     * for access token generation. For now we only use it for Native Google Drive
+     * connector data ingestion.
+     * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for superAdminEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setSuperAdminEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + superAdminEmailAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WorkspaceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WorkspaceConfig) + private static final com.google.cloud.discoveryengine.v1.WorkspaceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WorkspaceConfig(); + } + + public static com.google.cloud.discoveryengine.v1.WorkspaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceConfig 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.discoveryengine.v1.WorkspaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java new file mode 100644 index 000000000000..de9bd4f6be28 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/discoveryengine/v1/data_store.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.discoveryengine.v1; + +public interface WorkspaceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WorkspaceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Workspace data source.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * The Google Workspace data source.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; + * + * @return The type. + */ + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type getType(); + + /** + * + * + *
+   * Obfuscated Dasher customer ID.
+   * 
+ * + * string dasher_customer_id = 2; + * + * @return The dasherCustomerId. + */ + java.lang.String getDasherCustomerId(); + /** + * + * + *
+   * Obfuscated Dasher customer ID.
+   * 
+ * + * string dasher_customer_id = 2; + * + * @return The bytes for dasherCustomerId. + */ + com.google.protobuf.ByteString getDasherCustomerIdBytes(); + + /** + * + * + *
+   * Optional. The super admin service account for the workspace that will be
+   * used for access token generation. For now we only use it for Native Google
+   * Drive connector data ingestion.
+   * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The superAdminServiceAccount. + */ + java.lang.String getSuperAdminServiceAccount(); + /** + * + * + *
+   * Optional. The super admin service account for the workspace that will be
+   * used for access token generation. For now we only use it for Native Google
+   * Drive connector data ingestion.
+   * 
+ * + * string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for superAdminServiceAccount. + */ + com.google.protobuf.ByteString getSuperAdminServiceAccountBytes(); + + /** + * + * + *
+   * Optional. The super admin email address for the workspace that will be used
+   * for access token generation. For now we only use it for Native Google Drive
+   * connector data ingestion.
+   * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The superAdminEmailAddress. + */ + java.lang.String getSuperAdminEmailAddress(); + /** + * + * + *
+   * Optional. The super admin email address for the workspace that will be used
+   * for access token generation. For now we only use it for Native Google Drive
+   * connector data ingestion.
+   * 
+ * + * string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for superAdminEmailAddress. + */ + com.google.protobuf.ByteString getSuperAdminEmailAddressBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto index b504e34a9469..7309c525a5f3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto @@ -280,11 +280,14 @@ message Answer { // Adversarial query classification type. ADVERSARIAL_QUERY = 1; - // Non-answer-seeking query classification type. + // Non-answer-seeking query classification type, for chit chat. NON_ANSWER_SEEKING_QUERY = 2; // Jail-breaking query classification type. JAIL_BREAKING_QUERY = 3; + + // Non-answer-seeking query classification type, for no clear intent. + NON_ANSWER_SEEKING_QUERY_V2 = 4; } // Query classification type. @@ -321,7 +324,9 @@ message Answer { // The adversarial query ignored case. ADVERSARIAL_QUERY_IGNORED = 1; - // The non-answer seeking query ignored case. + // The non-answer seeking query ignored case + // + // Google skips the answer if the query is chit chat. NON_ANSWER_SEEKING_QUERY_IGNORED = 2; // The out-of-domain query ignored case. @@ -353,6 +358,17 @@ message Answer { // Google skips the summary if there is a customer policy violation // detected. The policy is defined by the customer. CUSTOMER_POLICY_VIOLATION = 7; + + // The non-answer seeking query ignored case. + // + // Google skips the answer if the query doesn't have clear intent. + NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8; + + // The low-grounded answer case. + // + // Google skips the answer if a well grounded answer was unable to be + // generated. + LOW_GROUNDED_ANSWER = 9; } // Immutable. Fully qualified name diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto index f4891639aa52..a37e1797584f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto @@ -57,6 +57,10 @@ option (google.api.resource_definition) = { type: "healthcare.googleapis.com/FhirStore" pattern: "projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}" }; +option (google.api.resource_definition) = { + type: "healthcare.googleapis.com/FhirResource" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}" +}; // The industry vertical associated with the // [DataStore][google.cloud.discoveryengine.v1.DataStore]. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto index a472050c291e..2292d905b3a5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto @@ -62,6 +62,9 @@ message Condition { // Search only // A list of terms to match the query on. + // Cannot be set when + // [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] + // is set. // // Maximum of 10 query terms. repeated QueryTerm query_terms = 2; @@ -70,6 +73,12 @@ message Condition { // // Maximum of 10 time ranges. repeated TimeRange active_time_range = 3; + + // Optional. Query regex to match the whole search query. + // Cannot be set when + // [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] + // is set. This is currently supporting promotion use case. + string query_regex = 4 [(google.api.field_behavior) = OPTIONAL]; } // Defines a conditioned behavior to employ during serving. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto index e7c044040693..a7d11ba2cd90 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto @@ -135,9 +135,9 @@ service ControlService { // Request for CreateControl method. message CreateControlRequest { // Required. Full resource name of parent data store. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` // or - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + // `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -176,7 +176,7 @@ message UpdateControlRequest { // Request for DeleteControl method. message DeleteControlRequest { // Required. The resource name of the Control to delete. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -188,7 +188,7 @@ message DeleteControlRequest { // Request for GetControl method. message GetControlRequest { // Required. The resource name of the Control to get. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -200,9 +200,9 @@ message GetControlRequest { // Request for ListControls method. message ListControlsRequest { // Required. The data store resource name. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` // or - // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. + // `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto index 313080a1d401..507bbfcf2e13 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto @@ -273,9 +273,9 @@ service ConversationalSearchService { // method. message ConverseConversationRequest { // Required. The resource name of the Conversation to get. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. // Use - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` // to activate auto session mode, which automatically creates a new // conversation inside a ConverseConversation session. string name = 1 [ @@ -289,7 +289,7 @@ message ConverseConversationRequest { TextInput query = 2 [(google.api.field_behavior) = REQUIRED]; // The resource name of the Serving Config to use. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` // If this is not set, the default serving config will be used. string serving_config = 3 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/ServingConfig" @@ -366,7 +366,7 @@ message ConverseConversationResponse { // Request for CreateConversation method. message CreateConversationRequest { // Required. Full resource name of parent data store. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -396,7 +396,7 @@ message UpdateConversationRequest { // Request for DeleteConversation method. message DeleteConversationRequest { // Required. The resource name of the Conversation to delete. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -408,7 +408,7 @@ message DeleteConversationRequest { // Request for GetConversation method. message GetConversationRequest { // Required. The resource name of the Conversation to get. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -420,7 +420,7 @@ message GetConversationRequest { // Request for ListConversations method. message ListConversationsRequest { // Required. The data store resource name. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -540,6 +540,20 @@ message AnswerQueryRequest { // of relevance to generate answers. If set to `true` or unset, the behavior // will be determined automatically by the service. optional bool ignore_low_relevant_content = 7; + + // Optional. Specifies whether to filter out jail-breaking queries. The + // default value is `false`. + // + // Google employs search-query classification to detect jail-breaking + // queries. No summary is returned if the search query is classified as a + // jail-breaking query. A user might add instructions to the query to + // change the tone, style, language, content of the answer, or ask the + // model to act as a different entity, e.g. "Reply in the tone of a + // competing company's CEO". If this field is set to `true`, we skip + // generating summaries for jail-breaking queries and return fallback + // messages instead. + bool ignore_jail_breaking_query = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Search specification. @@ -607,12 +621,14 @@ message AnswerQueryRequest { // Page identifier. string page_identifier = 1; - // Document content. + // Document content to be used for answer generation. string content = 2; } // Extractive segment. // [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments) + // Answer generation will only use it if document_contexts is empty. + // This is supposed to be shorter snippets. message ExtractiveSegment { // Page identifier. string page_identifier = 1; @@ -642,18 +658,33 @@ message AnswerQueryRequest { // Title. string title = 3; - // List of document contexts. + // List of document contexts. The content will be used for Answer + // Generation. This is supposed to be the main content of the document + // that can be long and comprehensive. repeated DocumentContext document_contexts = 4; // List of extractive segments. repeated ExtractiveSegment extractive_segments = 5; + // Deprecated: This field is deprecated and will have no effect on + // the Answer generation. + // Please use document_contexts and extractive_segments fields. // List of extractive answers. - repeated ExtractiveAnswer extractive_answers = 6; + repeated ExtractiveAnswer extractive_answers = 6 [deprecated = true]; } // Chunk information. message ChunkInfo { + // Document metadata contains the information of the document of the + // current chunk. + message DocumentMetadata { + // Uri of the document. + string uri = 1; + + // Title of the document. + string title = 2; + } + // Chunk resource name. string chunk = 1 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/Chunk" @@ -661,6 +692,9 @@ message AnswerQueryRequest { // Chunk textual content. string content = 2; + + // Metadata of the document from the current chunk. + DocumentMetadata document_metadata = 4; } // Search result content. @@ -700,11 +734,14 @@ message AnswerQueryRequest { // Adversarial query classification type. ADVERSARIAL_QUERY = 1; - // Non-answer-seeking query classification type. + // Non-answer-seeking query classification type, for chit chat. NON_ANSWER_SEEKING_QUERY = 2; // Jail-breaking query classification type. JAIL_BREAKING_QUERY = 3; + + // Non-answer-seeking query classification type, for no clear intent. + NON_ANSWER_SEEKING_QUERY_V2 = 4; } // Enabled query classification types. @@ -770,6 +807,9 @@ message AnswerQueryRequest { // Query understanding specification. QueryUnderstandingSpec query_understanding_spec = 9; + // Deprecated: This field is deprecated. Streaming Answer API will be + // supported. + // // Asynchronous mode control. // // If enabled, the response will be returned with answer/session resource @@ -779,7 +819,7 @@ message AnswerQueryRequest { // or // [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession] // method. - bool asynchronous_mode = 10; + bool asynchronous_mode = 10 [deprecated = true]; // A unique identifier for tracking visitors. For example, this could be // implemented with an HTTP cookie, which should be able to uniquely identify @@ -839,7 +879,7 @@ message AnswerQueryResponse { // Request for GetAnswer method. message GetAnswerRequest { // Required. The resource name of the Answer to get. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -851,7 +891,7 @@ message GetAnswerRequest { // Request for CreateSession method. message CreateSessionRequest { // Required. Full resource name of parent data store. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -881,7 +921,7 @@ message UpdateSessionRequest { // Request for DeleteSession method. message DeleteSessionRequest { // Required. The resource name of the Session to delete. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -893,7 +933,7 @@ message DeleteSessionRequest { // Request for GetSession method. message GetSessionRequest { // Required. The resource name of the Session to get. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -905,7 +945,7 @@ message GetSessionRequest { // Request for ListSessions method. message ListSessionsRequest { // Required. The data store resource name. Format: - // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto index 59f5a45881a3..ae6bc4c456f5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto @@ -67,8 +67,9 @@ message CustomTuningModel { // Required. The fully qualified resource name of the model. // // Format: - // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` - // model must be an alpha-numerical string with limit of 40 characters. + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. + // + // Model must be an alpha-numerical string with limit of 40 characters. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -85,7 +86,7 @@ message CustomTuningModel { // The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). ModelState model_state = 4; - // Deprecated: timestamp the Model was created at. + // Deprecated: Timestamp the Model was created at. google.protobuf.Timestamp create_time = 5 [deprecated = true]; // Timestamp the model training was initiated. @@ -93,4 +94,8 @@ message CustomTuningModel { // The metrics of the trained model. map metrics = 7; + + // Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + string error_message = 8; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto index ef853a80f738..32157c7e9aed 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto @@ -40,6 +40,27 @@ message DataStore { pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}" }; + // Estimation of data size per data store. + message BillingEstimation { + // Data size for structured data in terms of bytes. + int64 structured_data_size = 1; + + // Data size for unstructured data in terms of bytes. + int64 unstructured_data_size = 2; + + // Data size for websites in terms of bytes. + int64 website_data_size = 3; + + // Last updated timestamp for structured data. + google.protobuf.Timestamp structured_data_update_time = 4; + + // Last updated timestamp for unstructured data. + google.protobuf.Timestamp unstructured_data_update_time = 5; + + // Last updated timestamp for websites. + google.protobuf.Timestamp website_data_update_time = 6; + } + // Content config of the data store. enum ContentConfig { // Default value. @@ -55,6 +76,11 @@ message DataStore { // The data store is used for public website search. PUBLIC_WEBSITE = 3; + + // The data store is used for workspace search. Details of workspace + // data store are specified in the + // [WorkspaceConfig][google.cloud.discoveryengine.v1.WorkspaceConfig]. + GOOGLE_WORKSPACE = 4; } // Immutable. The full resource name of the data store. @@ -98,6 +124,17 @@ message DataStore { google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Data size estimation for billing. + BillingEstimation billing_estimation = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Config to store data store type configuration for workspace data. This + // must be set when + // [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config] + // is set as + // [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE]. + WorkspaceConfig workspace_config = 25; + // Configuration for Document understanding and enrichment. DocumentProcessingConfig document_processing_config = 27; @@ -117,3 +154,50 @@ message DataStore { // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). Schema starting_schema = 28; } + +// Config to store data store type configuration for workspace data +message WorkspaceConfig { + // Specifies the type of Workspace App supported by this DataStore + enum Type { + // Defaults to an unspecified Workspace type. + TYPE_UNSPECIFIED = 0; + + // Workspace Data Store contains Drive data + GOOGLE_DRIVE = 1; + + // Workspace Data Store contains Mail data + GOOGLE_MAIL = 2; + + // Workspace Data Store contains Sites data + GOOGLE_SITES = 3; + + // Workspace Data Store contains Calendar data + GOOGLE_CALENDAR = 4; + + // Workspace Data Store contains Chat data + GOOGLE_CHAT = 5; + + // Workspace Data Store contains Groups data + GOOGLE_GROUPS = 6; + + // Workspace Data Store contains Keep data + GOOGLE_KEEP = 7; + } + + // The Google Workspace data source. + Type type = 1; + + // Obfuscated Dasher customer ID. + string dasher_customer_id = 2; + + // Optional. The super admin service account for the workspace that will be + // used for access token generation. For now we only use it for Native Google + // Drive connector data ingestion. + string super_admin_service_account = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The super admin email address for the workspace that will be used + // for access token generation. For now we only use it for Native Google Drive + // connector data ingestion. + string super_admin_email_address = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto index 8d5e5f91e2ca..b7f3f06af432 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto @@ -29,11 +29,11 @@ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; // A singleton resource of -// [DataStore][google.cloud.discoveryengine.v1.DataStore]. It's empty when -// [DataStore][google.cloud.discoveryengine.v1.DataStore] is created, which -// defaults to digital parser. The first call to -// [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize -// the config. +// [DataStore][google.cloud.discoveryengine.v1.DataStore]. If it's empty when +// [DataStore][google.cloud.discoveryengine.v1.DataStore] is created and +// [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to +// [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED], +// the default parser will default to digital parser. message DocumentProcessingConfig { option (google.api.resource) = { type: "discoveryengine.googleapis.com/DocumentProcessingConfig" @@ -123,6 +123,8 @@ message DocumentProcessingConfig { // layout parsing are supported. // * `pptx`: Override parsing config for PPTX files, only digital parsing and // layout parsing are supported. + // * `xlsm`: Override parsing config for XLSM files, only digital parsing and + // layout parsing are supported. // * `xlsx`: Override parsing config for XLSX files, only digital parsing and // layout parsing are supported. map parsing_config_overrides = 5; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto index 9f4ae42b87fc..ebff9b6e9aa8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto @@ -345,6 +345,20 @@ message BatchGetDocumentsMetadataRequest { repeated string uris = 1; } + // Matcher for the [Document][google.cloud.discoveryengine.v1.Document]s by + // FHIR resource names. + message FhirMatcher { + // Required. The FHIR resources to match by. + // Format: + // projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} + repeated string fhir_resources = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "healthcare.googleapis.com/FhirResource" + } + ]; + } + // Matcher for the [Document][google.cloud.discoveryengine.v1.Document]s. // Currently supports matching by exact URIs. message Matcher { @@ -352,6 +366,9 @@ message BatchGetDocumentsMetadataRequest { oneof matcher { // Matcher by exact URIs. UrisMatcher uris_matcher = 1; + + // Matcher by FHIR resource names. + FhirMatcher fhir_matcher = 2; } } @@ -384,6 +401,12 @@ message BatchGetDocumentsMetadataResponse { // If match by URI, the URI of the // [Document][google.cloud.discoveryengine.v1.Document]. string uri = 1; + + // Format: + // projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} + string fhir_resource = 2 [(google.api.resource_reference) = { + type: "healthcare.googleapis.com/FhirResource" + }]; } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto index 2bb990f1e447..c96bf7584bb9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto @@ -163,7 +163,7 @@ message Engine { // characters. // // Format: - // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` // engine should be 1-63 characters, and valid characters are // /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. string name = 1 [(google.api.field_behavior) = IMMUTABLE]; @@ -212,4 +212,8 @@ message Engine { // Common config spec that specifies the metadata of the engine. CommonConfig common_config = 15; + + // Optional. Whether to disable analytics for searches performed on this + // engine. + bool disable_analytics = 26 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto index 561ddf307896..8db4efdd1564 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto @@ -37,6 +37,24 @@ service GroundedGenerationService { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Generates grounded content in a streaming fashion. + rpc StreamGenerateGroundedContent(stream GenerateGroundedContentRequest) + returns (stream GenerateGroundedContentResponse) { + option (google.api.http) = { + post: "/v1/{location=projects/*/locations/*}:streamGenerateGroundedContent" + body: "*" + }; + } + + // Generates grounded content. + rpc GenerateGroundedContent(GenerateGroundedContentRequest) + returns (GenerateGroundedContentResponse) { + option (google.api.http) = { + post: "/v1/{location=projects/*/locations/*}:generateGroundedContent" + body: "*" + }; + } + // Performs a grounding check. rpc CheckGrounding(CheckGroundingRequest) returns (CheckGroundingResponse) { option (google.api.http) = { @@ -46,6 +64,328 @@ service GroundedGenerationService { } } +// Base structured datatype containing multi-part content of a message. +message GroundedGenerationContent { + // Single part of content. + message Part { + // Holder of data. It only supports text for now. + oneof data { + // Inline text. + string text = 1; + } + } + + // Producer of the content. Must be either `user` or `model`. + // + // Intended to be used for multi-turn conversations. Otherwise, it can be left + // unset. + string role = 1; + + // Ordered `Parts` that constitute a single message. + repeated Part parts = 2; +} + +// Top-level message sent by the client for the `GenerateGroundedContent` +// method. +message GenerateGroundedContentRequest { + // Content generation specification. + message GenerationSpec { + // Specifies which Vertex model id to use for generation. + string model_id = 3; + + // Language code for content. Use language tags defined by + // [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). + string language_code = 2; + + // If specified, custom value for the temperature will be used. + optional float temperature = 4; + + // If specified, custom value for nucleus sampling will be used. + optional float top_p = 5; + + // If specified, custom value for top-k sampling will be used. + optional int32 top_k = 7; + + // If specified, custom value for frequency penalty will be used. + optional float frequency_penalty = 8; + + // If specified, custom value for presence penalty will be used. + optional float presence_penalty = 9; + + // If specified, custom value for max output tokens will be used. + optional int32 max_output_tokens = 10; + } + + // Describes the options to customize dynamic retrieval. + message DynamicRetrievalConfiguration { + // Describes the predictor settings for dynamic retrieval. + message DynamicRetrievalPredictor { + // The version of the predictor to be used in dynamic retrieval. + enum Version { + // Automatically choose the best version of the retrieval predictor. + VERSION_UNSPECIFIED = 0; + + // The V1 model which is evaluating each source independently. + V1_INDEPENDENT = 1; + } + + // The version of the predictor to be used in dynamic retrieval. + Version version = 1; + + // The value of the threshold. If the predictor will predict a + // value smaller than this, it would suppress grounding in the source. + optional float threshold = 2; + } + + // Specification for the predictor for dynamic retrieval. + DynamicRetrievalPredictor predictor = 1; + } + + // Grounding source. + message GroundingSource { + // Message to be used for grounding based on inline content. + message InlineSource { + // List of facts to be used for grounding. + repeated GroundingFact grounding_facts = 1; + + // Attributes associated with the content. + // + // Common attributes include `source` (indicating where the content was + // sourced from) and `author` (indicating the author of the content). + map attributes = 2; + } + + // Message to be used for grounding with Vertex AI Search. + message SearchSource { + // The resource name of the Engine to use. + // + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` + string serving_config = 1 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + }]; + + // Number of search results to return. + // + // The default value is 10. The maximumm allowed value is 10. + int32 max_result_count = 2; + + // Filter expression to be applied to the search. + // + // The syntax is the same as + // [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. + string filter = 3; + + // If set, safe search is enabled in Vertex AI Search requests. + bool safe_search = 5; + } + + // Google Search config parameters. + message GoogleSearchSource { + // Optional. Specifies the dynamic retrieval configuration for the given + // source. + DynamicRetrievalConfiguration dynamic_retrieval_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Sources. + oneof source { + // If set, grounding is performed with inline content. + InlineSource inline_source = 1; + + // If set, grounding is performed with Vertex AI Search. + SearchSource search_source = 2; + + // If set, grounding is performed with Google Search. + GoogleSearchSource google_search_source = 3; + } + } + + // Grounding specification. + message GroundingSpec { + // Grounding sources. + repeated GroundingSource grounding_sources = 1; + } + + // Required. Location resource. + // + // Format: `projects/{project}/locations/{location}`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Content of the system instruction for the current API. + // + // These instructions will take priority over any other prompt instructions + // if the selected model is supporting them. + GroundedGenerationContent system_instruction = 5; + + // Content of the current conversation with the model. + // + // For single-turn queries, this is a single instance. For multi-turn queries, + // this is a repeated field that contains conversation history + latest + // request. + // + // Only a single-turn query is supported currently. + repeated GroundedGenerationContent contents = 2; + + // Content generation specification. + GenerationSpec generation_spec = 3; + + // Grounding specification. + GroundingSpec grounding_spec = 4; + + // The user labels applied to a resource must meet the following requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 6; +} + +message GenerateGroundedContentResponse { + // A response candidate generated from the model. + message Candidate { + // Citation for the generated content. + message GroundingMetadata { + // Describes the metadata associated with a retrieval step. + message RetrievalMetadata { + // Describes the source to which the metadata is associated to. + enum Source { + // Unspecified source. + SOURCE_UNSPECIFIED = 0; + + // Vertex AI search. + VERTEX_AI_SEARCH = 1; + + // Google Search. + GOOGLE_SEARCH = 3; + + // User inline provided content. + INLINE_CONTENT = 2; + + // Google Maps. + GOOGLE_MAPS = 4; + } + + // Describes the source to which the metadata is referring to. + Source source = 1; + + // Metadata for dynamic retrieval. + DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; + } + + // Describes the metadata about dynamic retrieval. + message DynamicRetrievalMetadata { + // Metadata for the dynamic retrieval predictor. + DynamicRetrievalPredictorMetadata predictor_metadata = 1; + } + + // Describes the metadata about the dynamic retrieval predictor. + message DynamicRetrievalPredictorMetadata { + // The version of the predictor which was used in dynamic retrieval. + enum Version { + // Unspecified version, should never be used. + VERSION_UNSPECIFIED = 0; + + // The V1 model which is evaluating each source independently. + V1_INDEPENDENT = 1; + } + + // The version of the predictor which was used in dynamic retrieval. + Version version = 1; + + // The value of the predictor. This should be between [0, 1] where + // a value of 0 means that the query would not benefit from grounding, + // while a value of 1.0 means that the query would benefit the most. + // In between values allow to differentiate between different usefulness + // scores for grounding. + optional float prediction = 2; + } + + // Google search entry point. + message SearchEntryPoint { + // Web content snippet that can be embedded in a web page or an app + // webview. + string rendered_content = 1; + + // Base64 encoded JSON representing array of + // tuple. + bytes sdk_blob = 2; + } + + // Grounding info for a claim in the candidate and its support. + message GroundingSupport { + // Text for the claim in the candidate. Always provided when a + // support is found. + string claim_text = 1; + + // A list of indices (into 'support_chunks') specifying the + // citations associated with the claim. For instance [1,3,4] means + // that support_chunks[1], support_chunks[3], + // support_chunks[4] are the chunks attributed to the claim. + repeated int32 support_chunk_indices = 3; + + // A score in the range of [0, 1] describing how grounded is a specific + // claim in the support chunks indicated. + // Higher value means that the claim is better supported by the chunks. + optional float support_score = 2; + } + + // Retrieval metadata to provide an understanding in the + // retrieval steps performed by the model. There can be multiple such + // messages which can correspond to different parts of the retrieval. This + // is a mechanism used to ensure transparency to our users. + repeated RetrievalMetadata retrieval_metadata = 5; + + // List of chunks to be attributed across all claims in the candidate. + // These are derived from the grounding sources supplied in the request. + repeated FactChunk support_chunks = 1; + + // Web search queries for the following-up web search. + repeated string web_search_queries = 3; + + // Google search entry for the following-up web searches. + SearchEntryPoint search_entry_point = 4; + + // GroundingSupport across all claims in the answer candidate. + // An support to a fact indicates that the claim is supported by + // the fact. + repeated GroundingSupport grounding_support = 2; + } + + // Index of the candidate. + int32 index = 1; + + // Content of the candidate. + GroundedGenerationContent content = 2; + + // The overall grounding score for the candidate, in the range of [0, 1]. + optional float grounding_score = 3; + + // Grounding metadata for the generated content. + GroundingMetadata grounding_metadata = 4; + } + + // Generated candidates. + repeated Candidate candidates = 1; +} + // Specification for the grounding check. message CheckGroundingSpec { // The threshold (in [0,1]) used for determining whether a fact must be diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto index aa311bf20d84..48979b431f6a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto @@ -81,7 +81,7 @@ message Project { } // Output only. Full resource name of the project, for example - // `projects/{project_number}`. + // `projects/{project}`. // Note that when making requests, project number and project id are both // acceptable, but the server will always respond in project number. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto index e0be71f92d42..342a96abc8b2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto @@ -35,7 +35,7 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; message PurgeUserEventsRequest { // Required. The resource name of the catalog under which the events are // created. The format is - // `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}` + // `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto index e3e5142dbd43..e7630fa5e6b6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto @@ -73,7 +73,7 @@ message RankingRecord { // [RankService.Rank][google.cloud.discoveryengine.v1.RankService.Rank] method. message RankRequest { // Required. The resource name of the rank service config, such as - // `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`. + // `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`. string ranking_config = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto index 5e96e00cdac6..198a553b49cb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto @@ -55,6 +55,34 @@ service SearchService { } }; } + + // Performs a search. Similar to the + // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] + // method, but a lite version that allows API key for authentication, where + // OAuth and IAM checks are not required. + // + // Only public website search is supported by this method. If data stores and + // engines not associated with public website search are specified, a + // `FAILED_PRECONDITION` error is returned. + // + // This method can be used for easy onboarding without having to implement an + // authentication backend. However, it is strongly recommended to use + // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] + // instead with required OAuth and IAM checks to provide better data security. + rpc SearchLite(SearchRequest) returns (SearchResponse) { + option (google.api.http) = { + post: "/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite" + body: "*" + additional_bindings { + post: "/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:searchLite" + body: "*" + } + additional_bindings { + post: "/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:searchLite" + body: "*" + } + }; + } } // Request message for @@ -83,6 +111,11 @@ message SearchRequest { type: "discoveryengine.googleapis.com/DataStore" } ]; + + // Optional. Filter specification to filter documents in the data store + // specified by data_store field. For more information on filtering, see + // [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // A facet specification to perform faceted search. @@ -223,6 +256,80 @@ message SearchRequest { message BoostSpec { // Boost applies to documents which match a condition. message ConditionBoostSpec { + // Specification for custom ranking based on customer specified attribute + // value. It provides more controls for customized ranking than the simple + // (condition, boost) combination above. + message BoostControlSpec { + // The control points used to define the curve. The curve defined + // through these control points can only be monotonically increasing + // or decreasing(constant values are acceptable). + message ControlPoint { + // Can be one of: + // 1. The numerical field value. + // 2. The duration spec for freshness: + // The value must be formatted as an XSD `dayTimeDuration` value (a + // restricted subset of an ISO 8601 duration value). The pattern for + // this is: `[nD][T[nH][nM][nS]]`. + string attribute_value = 1; + + // The value between -1 to 1 by which to boost the score if the + // attribute_value evaluates to the value specified above. + float boost_amount = 2; + } + + // The attribute(or function) for which the custom ranking is to be + // applied. + enum AttributeType { + // Unspecified AttributeType. + ATTRIBUTE_TYPE_UNSPECIFIED = 0; + + // The value of the numerical field will be used to dynamically update + // the boost amount. In this case, the attribute_value (the x value) + // of the control point will be the actual value of the numerical + // field for which the boost_amount is specified. + NUMERICAL = 1; + + // For the freshness use case the attribute value will be the duration + // between the current time and the date in the datetime field + // specified. The value must be formatted as an XSD `dayTimeDuration` + // value (a restricted subset of an ISO 8601 duration value). The + // pattern for this is: `[nD][T[nH][nM][nS]]`. + // For example, `5D`, `3DT12H30M`, `T24H`. + FRESHNESS = 2; + } + + // The interpolation type to be applied. Default will be linear + // (Piecewise Linear). + enum InterpolationType { + // Interpolation type is unspecified. In this case, it defaults to + // Linear. + INTERPOLATION_TYPE_UNSPECIFIED = 0; + + // Piecewise linear interpolation will be applied. + LINEAR = 1; + } + + // The name of the field whose value will be used to determine the + // boost amount. + string field_name = 1; + + // The attribute type to be used to determine the boost amount. The + // attribute value can be derived from the field value of the specified + // field_name. In the case of numerical it is straightforward i.e. + // attribute_value = numerical_field_value. In the case of freshness + // however, attribute_value = (time.now() - datetime_field_value). + AttributeType attribute_type = 2; + + // The interpolation type to be applied to connect the control points + // listed below. + InterpolationType interpolation_type = 3; + + // The control points used to define the curve. The monotonic function + // (defined through the interpolation_type above) passes through the + // control points listed here. + repeated ControlPoint control_points = 4; + } + // An expression which specifies a boost condition. The syntax and // supported fields are the same as a filter expression. See // [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] @@ -255,6 +362,10 @@ message SearchRequest { // boost_control_spec below are set. If both are set then the global boost // is ignored and the more fine-grained boost_control_spec is applied. float boost = 2; + + // Complex specification for custom ranking based on customer defined + // attribute value. + BoostControlSpec boost_control_spec = 3; } // Condition boost specifications. If a document matches multiple conditions @@ -428,6 +539,20 @@ message SearchRequest { // high relevance search results will generate answers. bool ignore_low_relevant_content = 9; + // Optional. Specifies whether to filter out jail-breaking queries. The + // default value is `false`. + // + // Google employs search-query classification to detect jail-breaking + // queries. No summary is returned if the search query is classified as a + // jail-breaking query. A user might add instructions to the query to + // change the tone, style, language, content of the answer, or ask the + // model to act as a different entity, e.g. "Reply in the tone of a + // competing company's CEO". If this field is set to `true`, we skip + // generating summaries for jail-breaking queries and return fallback + // messages instead. + bool ignore_jail_breaking_query = 10 + [(google.api.field_behavior) = OPTIONAL]; + // If specified, the spec will be used to modify the prompt provided to // the LLM. ModelPromptSpec model_prompt_spec = 5; @@ -682,6 +807,11 @@ message SearchRequest { // If this field is negative, an `INVALID_ARGUMENT` is returned. int32 offset = 6; + // The maximum number of results to return for OneBox. + // This applies to each OneBox type individually. + // Default number is 10. + int32 one_box_page_size = 47; + // Specs defining dataStores to filter on in a search call and configurations // for those dataStores. This is only considered for engines with multiple // dataStores use case. For single dataStore within an engine, they should @@ -1013,6 +1143,7 @@ message SearchResponse { // The non-summary seeking query ignored case. // + // Google skips the summary if the query is chit chat. // Only used when // [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query] // is set to `true`. @@ -1055,6 +1186,14 @@ message SearchResponse { // Google skips the summary if there is a customer policy violation // detected. The policy is defined by the customer. CUSTOMER_POLICY_VIOLATION = 8; + + // The non-answer seeking query ignored case. + // + // Google skips the summary if the query doesn't have clear intent. + // Only used when + // [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query] + // is set to `true`. + NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; } // The summary content. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto index fa5ea8dcb26e..ba0e26e909bf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto @@ -536,6 +536,11 @@ message RecrawlUrisRequest { // [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in // `site_search_engine`. repeated string uris = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Full resource name of the [SiteCredential][], such as + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. + // Only set to crawl private URIs. + string site_credential = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto index 2692c4d42a62..f5215796c9d2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto @@ -429,7 +429,7 @@ message DocumentInfo { // The [Document][google.cloud.discoveryengine.v1.Document] resource full // name, of the form: - // `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` string name = 2 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/Document" }]; diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 683ac45edb3d..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.CompletionServiceClient; -import com.google.cloud.discoveryengine.v1.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END discoveryengine_v1_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fa518eb8a4f8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 61cd22ae664b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.ControlServiceClient; -import com.google.cloud.discoveryengine.v1.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END discoveryengine_v1_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cf88a4fe372c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.ControlServiceClient; +import com.google.cloud.discoveryengine.v1.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END discoveryengine_v1_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index aec9959ac253..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.ConversationalSearchServiceClient; -import com.google.cloud.discoveryengine.v1.ConversationalSearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationalSearchServiceSettings conversationalSearchServiceSettings = - ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); - ConversationalSearchServiceClient conversationalSearchServiceClient = - ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); - } -} -// [END discoveryengine_v1_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e7693d26b3a0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1.ConversationalSearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9ea09d63a395..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_DataStoreService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; -import com.google.cloud.discoveryengine.v1.DataStoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataStoreServiceSettings dataStoreServiceSettings = - DataStoreServiceSettings.newHttpJsonBuilder().build(); - DataStoreServiceClient dataStoreServiceClient = - DataStoreServiceClient.create(dataStoreServiceSettings); - } -} -// [END discoveryengine_v1_generated_DataStoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d50915069307 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1.DataStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataStoreServiceSettings dataStoreServiceSettings = + DataStoreServiceSettings.newHttpJsonBuilder().build(); + DataStoreServiceClient dataStoreServiceClient = + DataStoreServiceClient.create(dataStoreServiceSettings); + } +} +// [END discoveryengine_v1_generated_DataStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c521c28aab6a..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_DocumentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.DocumentServiceClient; -import com.google.cloud.discoveryengine.v1.DocumentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentServiceSettings documentServiceSettings = - DocumentServiceSettings.newHttpJsonBuilder().build(); - DocumentServiceClient documentServiceClient = - DocumentServiceClient.create(documentServiceSettings); - } -} -// [END discoveryengine_v1_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ef0386b8665a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DocumentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1.DocumentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1_generated_DocumentService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ee32d1dc7ef8..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_EngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.EngineServiceClient; -import com.google.cloud.discoveryengine.v1.EngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EngineServiceSettings engineServiceSettings = - EngineServiceSettings.newHttpJsonBuilder().build(); - EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); - } -} -// [END discoveryengine_v1_generated_EngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9ceb82492d8f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.cloud.discoveryengine.v1.EngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EngineServiceSettings engineServiceSettings = + EngineServiceSettings.newHttpJsonBuilder().build(); + EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); + } +} +// [END discoveryengine_v1_generated_EngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a8de15e3a24a..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceClient; -import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GroundedGenerationServiceSettings groundedGenerationServiceSettings = - GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); - GroundedGenerationServiceClient groundedGenerationServiceClient = - GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); - } -} -// [END discoveryengine_v1_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e39fb280195b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GroundedGenerationServiceSettings groundedGenerationServiceSettings = + GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); + GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); + } +} +// [END discoveryengine_v1_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/AsyncGenerateGroundedContent.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/AsyncGenerateGroundedContent.java new file mode 100644 index 000000000000..71424bef22ed --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/AsyncGenerateGroundedContent.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse; +import com.google.cloud.discoveryengine.v1.GroundedGenerationContent; +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncGenerateGroundedContent { + + public static void main(String[] args) throws Exception { + asyncGenerateGroundedContent(); + } + + public static void asyncGenerateGroundedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create()) { + GenerateGroundedContentRequest request = + GenerateGroundedContentRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSystemInstruction(GroundedGenerationContent.newBuilder().build()) + .addAllContents(new ArrayList()) + .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build()) + .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .build(); + ApiFuture future = + groundedGenerationServiceClient.generateGroundedContentCallable().futureCall(request); + // Do something. + GenerateGroundedContentResponse response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/SyncGenerateGroundedContent.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/SyncGenerateGroundedContent.java new file mode 100644 index 000000000000..6ca69416b0ea --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/generategroundedcontent/SyncGenerateGroundedContent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_sync] +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse; +import com.google.cloud.discoveryengine.v1.GroundedGenerationContent; +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import java.util.ArrayList; +import java.util.HashMap; + +public class SyncGenerateGroundedContent { + + public static void main(String[] args) throws Exception { + syncGenerateGroundedContent(); + } + + public static void syncGenerateGroundedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create()) { + GenerateGroundedContentRequest request = + GenerateGroundedContentRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSystemInstruction(GroundedGenerationContent.newBuilder().build()) + .addAllContents(new ArrayList()) + .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build()) + .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .build(); + GenerateGroundedContentResponse response = + groundedGenerationServiceClient.generateGroundedContent(request); + } + } +} +// [END discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/streamgenerategroundedcontent/AsyncStreamGenerateGroundedContent.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/streamgenerategroundedcontent/AsyncStreamGenerateGroundedContent.java new file mode 100644 index 000000000000..1fc9158db345 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservice/streamgenerategroundedcontent/AsyncStreamGenerateGroundedContent.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest; +import com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse; +import com.google.cloud.discoveryengine.v1.GroundedGenerationContent; +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncStreamGenerateGroundedContent { + + public static void main(String[] args) throws Exception { + asyncStreamGenerateGroundedContent(); + } + + public static void asyncStreamGenerateGroundedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create()) { + BidiStream bidiStream = + groundedGenerationServiceClient.streamGenerateGroundedContentCallable().call(); + GenerateGroundedContentRequest request = + GenerateGroundedContentRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSystemInstruction(GroundedGenerationContent.newBuilder().build()) + .addAllContents(new ArrayList()) + .setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.newBuilder().build()) + .setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .build(); + bidiStream.send(request); + for (GenerateGroundedContentResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/checkgrounding/SyncCheckGrounding.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/checkgrounding/SyncCheckGrounding.java deleted file mode 100644 index 1e6d9d4c7333..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/checkgrounding/SyncCheckGrounding.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_GroundedGenerationServiceSettings_CheckGrounding_sync] -import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceSettings; -import java.time.Duration; - -public class SyncCheckGrounding { - - public static void main(String[] args) throws Exception { - syncCheckGrounding(); - } - - public static void syncCheckGrounding() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GroundedGenerationServiceSettings.Builder groundedGenerationServiceSettingsBuilder = - GroundedGenerationServiceSettings.newBuilder(); - groundedGenerationServiceSettingsBuilder - .checkGroundingSettings() - .setRetrySettings( - groundedGenerationServiceSettingsBuilder - .checkGroundingSettings() - .getRetrySettings() - .toBuilder() - .setInitialRetryDelayDuration(Duration.ofSeconds(1)) - .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) - .setMaxAttempts(5) - .setMaxRetryDelayDuration(Duration.ofSeconds(30)) - .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) - .setRetryDelayMultiplier(1.3) - .setRpcTimeoutMultiplier(1.5) - .setTotalTimeoutDuration(Duration.ofSeconds(300)) - .build()); - GroundedGenerationServiceSettings groundedGenerationServiceSettings = - groundedGenerationServiceSettingsBuilder.build(); - } -} -// [END discoveryengine_v1_generated_GroundedGenerationServiceSettings_CheckGrounding_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/generategroundedcontent/SyncGenerateGroundedContent.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/generategroundedcontent/SyncGenerateGroundedContent.java new file mode 100644 index 000000000000..707a291616e9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/groundedgenerationservicesettings/generategroundedcontent/SyncGenerateGroundedContent.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationServiceSettings_GenerateGroundedContent_sync] +import com.google.cloud.discoveryengine.v1.GroundedGenerationServiceSettings; +import java.time.Duration; + +public class SyncGenerateGroundedContent { + + public static void main(String[] args) throws Exception { + syncGenerateGroundedContent(); + } + + public static void syncGenerateGroundedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GroundedGenerationServiceSettings.Builder groundedGenerationServiceSettingsBuilder = + GroundedGenerationServiceSettings.newBuilder(); + groundedGenerationServiceSettingsBuilder + .generateGroundedContentSettings() + .setRetrySettings( + groundedGenerationServiceSettingsBuilder + .generateGroundedContentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GroundedGenerationServiceSettings groundedGenerationServiceSettings = + groundedGenerationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_GroundedGenerationServiceSettings_GenerateGroundedContent_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5288e7401f37..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_ProjectService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.ProjectServiceClient; -import com.google.cloud.discoveryengine.v1.ProjectServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectServiceSettings projectServiceSettings = - ProjectServiceSettings.newHttpJsonBuilder().build(); - ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); - } -} -// [END discoveryengine_v1_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..43f822b55306 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ProjectService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.ProjectServiceClient; +import com.google.cloud.discoveryengine.v1.ProjectServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END discoveryengine_v1_generated_ProjectService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 81228ea320f0..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_RankService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.RankServiceClient; -import com.google.cloud.discoveryengine.v1.RankServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); - RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); - } -} -// [END discoveryengine_v1_generated_RankService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4b03f716a0b9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/rankservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_RankService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.RankServiceClient; +import com.google.cloud.discoveryengine.v1.RankServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); + RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); + } +} +// [END discoveryengine_v1_generated_RankService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a4047c45517b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_RecommendationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.RecommendationServiceClient; -import com.google.cloud.discoveryengine.v1.RecommendationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecommendationServiceSettings recommendationServiceSettings = - RecommendationServiceSettings.newHttpJsonBuilder().build(); - RecommendationServiceClient recommendationServiceClient = - RecommendationServiceClient.create(recommendationServiceSettings); - } -} -// [END discoveryengine_v1_generated_RecommendationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..852c6f96d99a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/recommendationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_RecommendationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1.RecommendationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newHttpJsonBuilder().build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1_generated_RecommendationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4bebd9251939..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_SchemaService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.SchemaServiceClient; -import com.google.cloud.discoveryengine.v1.SchemaServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SchemaServiceSettings schemaServiceSettings = - SchemaServiceSettings.newHttpJsonBuilder().build(); - SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); - } -} -// [END discoveryengine_v1_generated_SchemaService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..038fd94f90e7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SchemaService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1.SchemaServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newHttpJsonBuilder().build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1_generated_SchemaService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d1213d02f02b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.SearchServiceClient; -import com.google.cloud.discoveryengine.v1.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END discoveryengine_v1_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5efc5c9146f9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.SearchServiceClient; +import com.google.cloud.discoveryengine.v1.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java index 85a2463f8472..01e623889ef9 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java @@ -57,6 +57,7 @@ public static void asyncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java index fb358c00cd39..4017cb8b84c4 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java @@ -57,6 +57,7 @@ public static void asyncSearchPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java index f7599f7d89b9..eaaae1b7ffa4 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java @@ -56,6 +56,7 @@ public static void syncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java new file mode 100644 index 000000000000..e5cd575ee85d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SearchService_SearchLite_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.BranchName; +import com.google.cloud.discoveryengine.v1.SearchRequest; +import com.google.cloud.discoveryengine.v1.SearchResponse; +import com.google.cloud.discoveryengine.v1.SearchServiceClient; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.SessionName; +import com.google.cloud.discoveryengine.v1.UserInfo; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncSearchLite { + + public static void main(String[] args) throws Exception { + asyncSearchLite(); + } + + public static void asyncSearchLite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) + .addAllDataStoreSpecs(new ArrayList()) + .setFilter("filter-1274492040") + .setCanonicalFilter("canonicalFilter-722283124") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .build(); + ApiFuture future = + searchServiceClient.searchLitePagedCallable().futureCall(request); + // Do something. + for (SearchResponse.SearchResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_SearchService_SearchLite_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java new file mode 100644 index 000000000000..45848a0bc456 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SearchService_SearchLite_Paged_async] +import com.google.cloud.discoveryengine.v1.BranchName; +import com.google.cloud.discoveryengine.v1.SearchRequest; +import com.google.cloud.discoveryengine.v1.SearchResponse; +import com.google.cloud.discoveryengine.v1.SearchServiceClient; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.SessionName; +import com.google.cloud.discoveryengine.v1.UserInfo; +import com.google.common.base.Strings; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncSearchLitePaged { + + public static void main(String[] args) throws Exception { + asyncSearchLitePaged(); + } + + public static void asyncSearchLitePaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) + .addAllDataStoreSpecs(new ArrayList()) + .setFilter("filter-1274492040") + .setCanonicalFilter("canonicalFilter-722283124") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .build(); + while (true) { + SearchResponse response = searchServiceClient.searchLiteCallable().call(request); + for (SearchResponse.SearchResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1_generated_SearchService_SearchLite_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java new file mode 100644 index 000000000000..3cb386145cd9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SearchService_SearchLite_sync] +import com.google.cloud.discoveryengine.v1.BranchName; +import com.google.cloud.discoveryengine.v1.SearchRequest; +import com.google.cloud.discoveryengine.v1.SearchResponse; +import com.google.cloud.discoveryengine.v1.SearchServiceClient; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.SessionName; +import com.google.cloud.discoveryengine.v1.UserInfo; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class SyncSearchLite { + + public static void main(String[] args) throws Exception { + syncSearchLite(); + } + + public static void syncSearchLite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setOneBoxPageSize(1988477988) + .addAllDataStoreSpecs(new ArrayList()) + .setFilter("filter-1274492040") + .setCanonicalFilter("canonicalFilter-722283124") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .build(); + for (SearchResponse.SearchResult element : + searchServiceClient.searchLite(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_SearchService_SearchLite_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 36821062827b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.SearchTuningServiceClient; -import com.google.cloud.discoveryengine.v1.SearchTuningServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchTuningServiceSettings searchTuningServiceSettings = - SearchTuningServiceSettings.newHttpJsonBuilder().build(); - SearchTuningServiceClient searchTuningServiceClient = - SearchTuningServiceClient.create(searchTuningServiceSettings); - } -} -// [END discoveryengine_v1_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4939da07bd0b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1.SearchTuningServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newHttpJsonBuilder().build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5aca9c384acf..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient; -import com.google.cloud.discoveryengine.v1.SiteSearchEngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = - SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); - SiteSearchEngineServiceClient siteSearchEngineServiceClient = - SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); - } -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0aaef009b12b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1.SiteSearchEngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java index a06a49827c01..1b31e9838b6d 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java @@ -45,6 +45,7 @@ public static void asyncRecrawlUris() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .addAllUris(new ArrayList()) + .setSiteCredential("siteCredential-751929602") .build(); ApiFuture future = siteSearchEngineServiceClient.recrawlUrisCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java index c569e93c4659..24bb7c6ef1e6 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java @@ -46,6 +46,7 @@ public static void asyncRecrawlUrisLRO() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .addAllUris(new ArrayList()) + .setSiteCredential("siteCredential-751929602") .build(); OperationFuture future = siteSearchEngineServiceClient.recrawlUrisOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/SyncRecrawlUris.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/SyncRecrawlUris.java index 1674e58e8002..fd2bcb40d7e3 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/SyncRecrawlUris.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sitesearchengineservice/recrawluris/SyncRecrawlUris.java @@ -44,6 +44,7 @@ public static void syncRecrawlUris() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .addAllUris(new ArrayList()) + .setSiteCredential("siteCredential-751929602") .build(); RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/checkgrounding/SyncCheckGrounding.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/checkgrounding/SyncCheckGrounding.java deleted file mode 100644 index 2b18495a7411..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/checkgrounding/SyncCheckGrounding.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.stub.samples; - -// [START discoveryengine_v1_generated_GroundedGenerationServiceStubSettings_CheckGrounding_sync] -import com.google.cloud.discoveryengine.v1.stub.GroundedGenerationServiceStubSettings; -import java.time.Duration; - -public class SyncCheckGrounding { - - public static void main(String[] args) throws Exception { - syncCheckGrounding(); - } - - public static void syncCheckGrounding() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GroundedGenerationServiceStubSettings.Builder groundedGenerationServiceSettingsBuilder = - GroundedGenerationServiceStubSettings.newBuilder(); - groundedGenerationServiceSettingsBuilder - .checkGroundingSettings() - .setRetrySettings( - groundedGenerationServiceSettingsBuilder - .checkGroundingSettings() - .getRetrySettings() - .toBuilder() - .setInitialRetryDelayDuration(Duration.ofSeconds(1)) - .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) - .setMaxAttempts(5) - .setMaxRetryDelayDuration(Duration.ofSeconds(30)) - .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) - .setRetryDelayMultiplier(1.3) - .setRpcTimeoutMultiplier(1.5) - .setTotalTimeoutDuration(Duration.ofSeconds(300)) - .build()); - GroundedGenerationServiceStubSettings groundedGenerationServiceSettings = - groundedGenerationServiceSettingsBuilder.build(); - } -} -// [END discoveryengine_v1_generated_GroundedGenerationServiceStubSettings_CheckGrounding_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/generategroundedcontent/SyncGenerateGroundedContent.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/generategroundedcontent/SyncGenerateGroundedContent.java new file mode 100644 index 000000000000..9e2147fd4053 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/groundedgenerationservicestubsettings/generategroundedcontent/SyncGenerateGroundedContent.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_GroundedGenerationServiceStubSettings_GenerateGroundedContent_sync] +import com.google.cloud.discoveryengine.v1.stub.GroundedGenerationServiceStubSettings; +import java.time.Duration; + +public class SyncGenerateGroundedContent { + + public static void main(String[] args) throws Exception { + syncGenerateGroundedContent(); + } + + public static void syncGenerateGroundedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GroundedGenerationServiceStubSettings.Builder groundedGenerationServiceSettingsBuilder = + GroundedGenerationServiceStubSettings.newBuilder(); + groundedGenerationServiceSettingsBuilder + .generateGroundedContentSettings() + .setRetrySettings( + groundedGenerationServiceSettingsBuilder + .generateGroundedContentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GroundedGenerationServiceStubSettings groundedGenerationServiceSettings = + groundedGenerationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_GroundedGenerationServiceStubSettings_GenerateGroundedContent_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b2188308d713..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1.samples; - -// [START discoveryengine_v1_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1.UserEventServiceClient; -import com.google.cloud.discoveryengine.v1.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END discoveryengine_v1_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a60ffd630139 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b31731f66934..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; -import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AclConfigServiceSettings aclConfigServiceSettings = - AclConfigServiceSettings.newHttpJsonBuilder().build(); - AclConfigServiceClient aclConfigServiceClient = - AclConfigServiceClient.create(aclConfigServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..52041eb2365a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newHttpJsonBuilder().build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 846bb109f3e1..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; -import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ChunkServiceSettings chunkServiceSettings = ChunkServiceSettings.newHttpJsonBuilder().build(); - ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..292a305a056a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ChunkServiceSettings chunkServiceSettings = ChunkServiceSettings.newHttpJsonBuilder().build(); + ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 64327d94a2fc..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; -import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..434de938c96d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a6d5fbe7fd7a..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.ControlServiceClient; -import com.google.cloud.discoveryengine.v1alpha.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..23eec722506a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.ControlServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8ff6d60955b8..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; -import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationalSearchServiceSettings conversationalSearchServiceSettings = - ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); - ConversationalSearchServiceClient conversationalSearchServiceClient = - ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a4993c174066 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 449e48758f4e..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_DataStoreService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; -import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataStoreServiceSettings dataStoreServiceSettings = - DataStoreServiceSettings.newHttpJsonBuilder().build(); - DataStoreServiceClient dataStoreServiceClient = - DataStoreServiceClient.create(dataStoreServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_DataStoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..26ba0ab7d16e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataStoreServiceSettings dataStoreServiceSettings = + DataStoreServiceSettings.newHttpJsonBuilder().build(); + DataStoreServiceClient dataStoreServiceClient = + DataStoreServiceClient.create(dataStoreServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 21a9bca8380f..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; -import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentServiceSettings documentServiceSettings = - DocumentServiceSettings.newHttpJsonBuilder().build(); - DocumentServiceClient documentServiceClient = - DocumentServiceClient.create(documentServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b298b0dcd0b6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 74d5aaf3161f..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_EngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.EngineServiceClient; -import com.google.cloud.discoveryengine.v1alpha.EngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EngineServiceSettings engineServiceSettings = - EngineServiceSettings.newHttpJsonBuilder().build(); - EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_EngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..775b56f953f2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/engineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.EngineServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EngineServiceSettings engineServiceSettings = + EngineServiceSettings.newHttpJsonBuilder().build(); + EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7bf7d8b7b86d..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; -import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EstimateBillingServiceSettings estimateBillingServiceSettings = - EstimateBillingServiceSettings.newHttpJsonBuilder().build(); - EstimateBillingServiceClient estimateBillingServiceClient = - EstimateBillingServiceClient.create(estimateBillingServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d4a140d429a5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EstimateBillingServiceSettings estimateBillingServiceSettings = + EstimateBillingServiceSettings.newHttpJsonBuilder().build(); + EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create(estimateBillingServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 308c8040c005..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; -import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EvaluationServiceSettings evaluationServiceSettings = - EvaluationServiceSettings.newHttpJsonBuilder().build(); - EvaluationServiceClient evaluationServiceClient = - EvaluationServiceClient.create(evaluationServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..874055df66fe --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newHttpJsonBuilder().build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 067bc8f8f68e..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.GroundedGenerationServiceClient; -import com.google.cloud.discoveryengine.v1alpha.GroundedGenerationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GroundedGenerationServiceSettings groundedGenerationServiceSettings = - GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); - GroundedGenerationServiceClient groundedGenerationServiceClient = - GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b4fe8d33d19d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GroundedGenerationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GroundedGenerationServiceSettings groundedGenerationServiceSettings = + GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); + GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 64f83cdbfdb6..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.ProjectServiceClient; -import com.google.cloud.discoveryengine.v1alpha.ProjectServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectServiceSettings projectServiceSettings = - ProjectServiceSettings.newHttpJsonBuilder().build(); - ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6fa3ee6227f4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ProjectService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.ProjectServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ProjectServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ProjectService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 455752ce93be..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_RankService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.RankServiceClient; -import com.google.cloud.discoveryengine.v1alpha.RankServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); - RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_RankService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d6a3cf722b7c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/rankservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RankService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.RankServiceClient; +import com.google.cloud.discoveryengine.v1alpha.RankServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); + RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_RankService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ec3fb1af4c7f..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; -import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecommendationServiceSettings recommendationServiceSettings = - RecommendationServiceSettings.newHttpJsonBuilder().build(); - RecommendationServiceClient recommendationServiceClient = - RecommendationServiceClient.create(recommendationServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b77012f65527 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newHttpJsonBuilder().build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e07471aac4ab..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SampleQueryServiceSettings sampleQueryServiceSettings = - SampleQueryServiceSettings.newHttpJsonBuilder().build(); - SampleQueryServiceClient sampleQueryServiceClient = - SampleQueryServiceClient.create(sampleQueryServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9433b6a7e622 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newHttpJsonBuilder().build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2129091d6732..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SampleQuerySetServiceSettings sampleQuerySetServiceSettings = - SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); - SampleQuerySetServiceClient sampleQuerySetServiceClient = - SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..add0640999ef --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 64c2a3f9164b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SchemaServiceSettings schemaServiceSettings = - SchemaServiceSettings.newHttpJsonBuilder().build(); - SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5fd005c642b6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newHttpJsonBuilder().build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2e4370ab0863..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..383a7f9cf861 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d3eb8b0342d7..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SearchTuningServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SearchTuningServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchTuningServiceSettings searchTuningServiceSettings = - SearchTuningServiceSettings.newHttpJsonBuilder().build(); - SearchTuningServiceClient searchTuningServiceClient = - SearchTuningServiceClient.create(searchTuningServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0fcfe3810415 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SearchTuningServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newHttpJsonBuilder().build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 70a48ee74955..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; -import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServingConfigServiceSettings servingConfigServiceSettings = - ServingConfigServiceSettings.newHttpJsonBuilder().build(); - ServingConfigServiceClient servingConfigServiceClient = - ServingConfigServiceClient.create(servingConfigServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2f410dbb7c86 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 18a505bc3b4b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; -import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = - SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); - SiteSearchEngineServiceClient siteSearchEngineServiceClient = - SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2f465cb5012c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e0142ddffe1b..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1alpha.samples; - -// [START discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; -import com.google.cloud.discoveryengine.v1alpha.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f50d4e37b00a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b43dd01424d2..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; -import com.google.cloud.discoveryengine.v1beta.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2669c5f77ef1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 473c823d3425..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.ControlServiceClient; -import com.google.cloud.discoveryengine.v1beta.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b34b258b0078 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.ControlServiceClient; +import com.google.cloud.discoveryengine.v1beta.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 082602b9f37d..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient; -import com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversationalSearchServiceSettings conversationalSearchServiceSettings = - ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); - ConversationalSearchServiceClient conversationalSearchServiceClient = - ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3299ca5be117 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index aba9da7e2ca1..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_DataStoreService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.DataStoreServiceClient; -import com.google.cloud.discoveryengine.v1beta.DataStoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataStoreServiceSettings dataStoreServiceSettings = - DataStoreServiceSettings.newHttpJsonBuilder().build(); - DataStoreServiceClient dataStoreServiceClient = - DataStoreServiceClient.create(dataStoreServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_DataStoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..752a7ae33e88 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_DataStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataStoreServiceSettings dataStoreServiceSettings = + DataStoreServiceSettings.newHttpJsonBuilder().build(); + DataStoreServiceClient dataStoreServiceClient = + DataStoreServiceClient.create(dataStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_DataStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 84b97628e90c..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_DocumentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.DocumentServiceClient; -import com.google.cloud.discoveryengine.v1beta.DocumentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentServiceSettings documentServiceSettings = - DocumentServiceSettings.newHttpJsonBuilder().build(); - DocumentServiceClient documentServiceClient = - DocumentServiceClient.create(documentServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..69c475d96713 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_DocumentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1beta.DocumentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_DocumentService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5794b2ead7be..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_EngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; -import com.google.cloud.discoveryengine.v1beta.EngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EngineServiceSettings engineServiceSettings = - EngineServiceSettings.newHttpJsonBuilder().build(); - EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_EngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..95c127d67c1b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EngineServiceSettings engineServiceSettings = + EngineServiceSettings.newHttpJsonBuilder().build(); + EngineServiceClient engineServiceClient = EngineServiceClient.create(engineServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_EngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 319c40ded4dc..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; -import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EvaluationServiceSettings evaluationServiceSettings = - EvaluationServiceSettings.newHttpJsonBuilder().build(); - EvaluationServiceClient evaluationServiceClient = - EvaluationServiceClient.create(evaluationServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..705ef626b9c1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newHttpJsonBuilder().build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4d32de13be11..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceClient; -import com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GroundedGenerationServiceSettings groundedGenerationServiceSettings = - GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); - GroundedGenerationServiceClient groundedGenerationServiceClient = - GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_GroundedGenerationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4fa2913dabaa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/groundedgenerationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceClient; +import com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GroundedGenerationServiceSettings groundedGenerationServiceSettings = + GroundedGenerationServiceSettings.newHttpJsonBuilder().build(); + GroundedGenerationServiceClient groundedGenerationServiceClient = + GroundedGenerationServiceClient.create(groundedGenerationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_GroundedGenerationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7596d94c6515..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_ProjectService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; -import com.google.cloud.discoveryengine.v1beta.ProjectServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectServiceSettings projectServiceSettings = - ProjectServiceSettings.newHttpJsonBuilder().build(); - ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5ff5658917f3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ProjectService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; +import com.google.cloud.discoveryengine.v1beta.ProjectServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_ProjectService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 22bbd1f001fa..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_RankService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.RankServiceClient; -import com.google.cloud.discoveryengine.v1beta.RankServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); - RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_RankService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a4a66954135a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/rankservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_RankService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.RankServiceClient; +import com.google.cloud.discoveryengine.v1beta.RankServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RankServiceSettings rankServiceSettings = RankServiceSettings.newHttpJsonBuilder().build(); + RankServiceClient rankServiceClient = RankServiceClient.create(rankServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_RankService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 34cbfc0bbea1..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_RecommendationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.RecommendationServiceClient; -import com.google.cloud.discoveryengine.v1beta.RecommendationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecommendationServiceSettings recommendationServiceSettings = - RecommendationServiceSettings.newHttpJsonBuilder().build(); - RecommendationServiceClient recommendationServiceClient = - RecommendationServiceClient.create(recommendationServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_RecommendationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..579af8c150ed --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_RecommendationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1beta.RecommendationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newHttpJsonBuilder().build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_RecommendationService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5839b0df9739..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; -import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SampleQueryServiceSettings sampleQueryServiceSettings = - SampleQueryServiceSettings.newHttpJsonBuilder().build(); - SampleQueryServiceClient sampleQueryServiceClient = - SampleQueryServiceClient.create(sampleQueryServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..68d60b93fb32 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newHttpJsonBuilder().build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0021d963b919..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; -import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SampleQuerySetServiceSettings sampleQuerySetServiceSettings = - SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); - SampleQuerySetServiceClient sampleQuerySetServiceClient = - SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..80549994c541 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8186b6f157d1..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SchemaService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SchemaServiceClient; -import com.google.cloud.discoveryengine.v1beta.SchemaServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SchemaServiceSettings schemaServiceSettings = - SchemaServiceSettings.newHttpJsonBuilder().build(); - SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SchemaService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1ae475869ae2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SchemaService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1beta.SchemaServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newHttpJsonBuilder().build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SchemaService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 375f70e85e07..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SearchServiceClient; -import com.google.cloud.discoveryengine.v1beta.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0f93dcaf2c30 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SearchServiceClient; +import com.google.cloud.discoveryengine.v1beta.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 00b0ca9605e0..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; -import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchTuningServiceSettings searchTuningServiceSettings = - SearchTuningServiceSettings.newHttpJsonBuilder().build(); - SearchTuningServiceClient searchTuningServiceClient = - SearchTuningServiceClient.create(searchTuningServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6ddceed42917 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newHttpJsonBuilder().build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3f96039beabe..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; -import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServingConfigServiceSettings servingConfigServiceSettings = - ServingConfigServiceSettings.newHttpJsonBuilder().build(); - ServingConfigServiceClient servingConfigServiceClient = - ServingConfigServiceClient.create(servingConfigServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0697c1c4ee72 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2c9093afb040..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient; -import com.google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = - SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); - SiteSearchEngineServiceClient siteSearchEngineServiceClient = - SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5ffacc28fa24 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sitesearchengineservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SiteSearchEngineService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 004af1316154..000000000000 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.discoveryengine.v1beta.samples; - -// [START discoveryengine_v1beta_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.discoveryengine.v1beta.UserEventServiceClient; -import com.google.cloud.discoveryengine.v1beta.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END discoveryengine_v1beta_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2a4e75f5a06a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 9047219b4857..8fc367f82654 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/resources/META-INF/native-image/com.google.cloud.edgecontainer.v1/reflect-config.json b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/resources/META-INF/native-image/com.google.cloud.edgecontainer.v1/reflect-config.json index 05d8b4556ad2..81cd15948e3f 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/resources/META-INF/native-image/com.google.cloud.edgecontainer.v1/reflect-config.json +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/resources/META-INF/native-image/com.google.cloud.edgecontainer.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.edgecontainer.v1.Authorization", "queryAllDeclaredConstructors": true, diff --git a/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateSetCredentialsProvider1.java b/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 33e00f1116e3..000000000000 --- a/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.edgecontainer.v1.samples; - -// [START edgecontainer_v1_generated_EdgeContainer_Create_SetCredentialsProvider1_sync] -import com.google.cloud.edgecontainer.v1.EdgeContainerClient; -import com.google.cloud.edgecontainer.v1.EdgeContainerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EdgeContainerSettings edgeContainerSettings = - EdgeContainerSettings.newHttpJsonBuilder().build(); - EdgeContainerClient edgeContainerClient = EdgeContainerClient.create(edgeContainerSettings); - } -} -// [END edgecontainer_v1_generated_EdgeContainer_Create_SetCredentialsProvider1_sync] diff --git a/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateUseHttpJsonTransport.java b/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1078d59d0b77 --- /dev/null +++ b/java-distributedcloudedge/samples/snippets/generated/com/google/cloud/edgecontainer/v1/edgecontainer/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.edgecontainer.v1.samples; + +// [START edgecontainer_v1_generated_EdgeContainer_Create_UseHttpJsonTransport_sync] +import com.google.cloud.edgecontainer.v1.EdgeContainerClient; +import com.google.cloud.edgecontainer.v1.EdgeContainerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EdgeContainerSettings edgeContainerSettings = + EdgeContainerSettings.newHttpJsonBuilder().build(); + EdgeContainerClient edgeContainerClient = EdgeContainerClient.create(edgeContainerSettings); + } +} +// [END edgecontainer_v1_generated_EdgeContainer_Create_UseHttpJsonTransport_sync] diff --git a/java-dlp/README.md b/java-dlp/README.md index 279cae5e0a8e..ec8dc5c2f5df 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.56.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 2a0f40506010..e8586c336cca 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -138,13 +138,9 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: The Cloud Data Loss Prevention (DLP) API is a service that allows clients to - * detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data - * in user-supplied, unstructured data streams, like text blocks or images. The service also - * includes methods for sensitive data redaction and scheduling of data scans on Google Cloud - * Platform based data sets. - * - *

To learn more about concepts and find how-to guides see + * Service Description: Sensitive Data Protection provides access to a powerful sensitive data + * inspection, classification, and de-identification platform that works on text, images, and Google + * Cloud storage repositories. To learn more about concepts and find how-to guides see * https://cloud.google.com/sensitive-data-protection/docs/. * *

This class provides the ability to make remote calls to the backing service through method diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java index dec73e4688a8..6afdbfa4aab8 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java @@ -21,13 +21,9 @@ * *

======================= DlpServiceClient ======================= * - *

Service Description: The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive - * data in user-supplied, unstructured data streams, like text blocks or images. The service also - * includes methods for sensitive data redaction and scheduling of data scans on Google Cloud - * Platform based data sets. - * - *

To learn more about concepts and find how-to guides see + *

Service Description: Sensitive Data Protection provides access to a powerful sensitive data + * inspection, classification, and de-identification platform that works on text, images, and Google + * Cloud storage repositories. To learn more about concepts and find how-to guides see * https://cloud.google.com/sensitive-data-protection/docs/. * *

Sample for DlpServiceClient: diff --git a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json index 739a9d2c8ae1..69ea963ae3cc 100644 --- a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json +++ b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.Action", "queryAllDeclaredConstructors": true, diff --git a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java index 0410eeb520fa..e5422563f08a 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java @@ -21,12 +21,9 @@ * * *

- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
- * to detect the presence of Personally Identifiable Information (PII) and other
- * privacy-sensitive data in user-supplied, unstructured data streams, like text
- * blocks or images.
- * The service also includes methods for sensitive data redaction and
- * scheduling of data scans on Google Cloud Platform based data sets.
+ * Sensitive Data Protection provides access to a powerful sensitive data
+ * inspection, classification, and de-identification platform that works
+ * on text, images, and Google Cloud storage repositories.
  * To learn more about concepts and find how-to guides see
  * https://cloud.google.com/sensitive-data-protection/docs/.
  * 
@@ -2612,12 +2609,9 @@ public DlpServiceFutureStub newStub( * * *
-   * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
-   * to detect the presence of Personally Identifiable Information (PII) and other
-   * privacy-sensitive data in user-supplied, unstructured data streams, like text
-   * blocks or images.
-   * The service also includes methods for sensitive data redaction and
-   * scheduling of data scans on Google Cloud Platform based data sets.
+   * Sensitive Data Protection provides access to a powerful sensitive data
+   * inspection, classification, and de-identification platform that works
+   * on text, images, and Google Cloud storage repositories.
    * To learn more about concepts and find how-to guides see
    * https://cloud.google.com/sensitive-data-protection/docs/.
    * 
@@ -3555,12 +3549,9 @@ default void updateConnection( * Base class for the server implementation of the service DlpService. * *
-   * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
-   * to detect the presence of Personally Identifiable Information (PII) and other
-   * privacy-sensitive data in user-supplied, unstructured data streams, like text
-   * blocks or images.
-   * The service also includes methods for sensitive data redaction and
-   * scheduling of data scans on Google Cloud Platform based data sets.
+   * Sensitive Data Protection provides access to a powerful sensitive data
+   * inspection, classification, and de-identification platform that works
+   * on text, images, and Google Cloud storage repositories.
    * To learn more about concepts and find how-to guides see
    * https://cloud.google.com/sensitive-data-protection/docs/.
    * 
@@ -3577,12 +3568,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * A stub to allow clients to do asynchronous rpc calls to service DlpService. * *
-   * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
-   * to detect the presence of Personally Identifiable Information (PII) and other
-   * privacy-sensitive data in user-supplied, unstructured data streams, like text
-   * blocks or images.
-   * The service also includes methods for sensitive data redaction and
-   * scheduling of data scans on Google Cloud Platform based data sets.
+   * Sensitive Data Protection provides access to a powerful sensitive data
+   * inspection, classification, and de-identification platform that works
+   * on text, images, and Google Cloud storage repositories.
    * To learn more about concepts and find how-to guides see
    * https://cloud.google.com/sensitive-data-protection/docs/.
    * 
@@ -4637,12 +4625,9 @@ public void updateConnection( * A stub to allow clients to do synchronous rpc calls to service DlpService. * *
-   * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
-   * to detect the presence of Personally Identifiable Information (PII) and other
-   * privacy-sensitive data in user-supplied, unstructured data streams, like text
-   * blocks or images.
-   * The service also includes methods for sensitive data redaction and
-   * scheduling of data scans on Google Cloud Platform based data sets.
+   * Sensitive Data Protection provides access to a powerful sensitive data
+   * inspection, classification, and de-identification platform that works
+   * on text, images, and Google Cloud storage repositories.
    * To learn more about concepts and find how-to guides see
    * https://cloud.google.com/sensitive-data-protection/docs/.
    * 
@@ -5512,12 +5497,9 @@ public com.google.privacy.dlp.v2.Connection updateConnection( * A stub to allow clients to do ListenableFuture-style rpc calls to service DlpService. * *
-   * The Cloud Data Loss Prevention (DLP) API is a service that allows clients
-   * to detect the presence of Personally Identifiable Information (PII) and other
-   * privacy-sensitive data in user-supplied, unstructured data streams, like text
-   * blocks or images.
-   * The service also includes methods for sensitive data redaction and
-   * scheduling of data scans on Google Cloud Platform based data sets.
+   * Sensitive Data Protection provides access to a powerful sensitive data
+   * inspection, classification, and de-identification platform that works
+   * on text, images, and Google Cloud storage repositories.
    * To learn more about concepts and find how-to guides see
    * https://cloud.google.com/sensitive-data-protection/docs/.
    * 
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableType.java index ce4609a0f395..efc4b0131a0b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableType.java @@ -23,8 +23,8 @@ * * *
- * Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
- * SNAPSHOT, and non-BigLake external tables are not supported.
+ * Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and
+ * non-BigLake external tables are not supported.
  * 
* * Protobuf enum {@code google.privacy.dlp.v2.BigQueryTableType} @@ -60,6 +60,16 @@ public enum BigQueryTableType implements com.google.protobuf.ProtocolMessageEnum * BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; */ BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE(2), + /** + * + * + *
+   * A snapshot of a BigQuery table.
+   * 
+ * + * BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; + */ + BIG_QUERY_TABLE_TYPE_SNAPSHOT(3), UNRECOGNIZED(-1), ; @@ -93,6 +103,16 @@ public enum BigQueryTableType implements com.google.protobuf.ProtocolMessageEnum * BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; */ public static final int BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE_VALUE = 2; + /** + * + * + *
+   * A snapshot of a BigQuery table.
+   * 
+ * + * BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; + */ + public static final int BIG_QUERY_TABLE_TYPE_SNAPSHOT_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -124,6 +144,8 @@ public static BigQueryTableType forNumber(int value) { return BIG_QUERY_TABLE_TYPE_TABLE; case 2: return BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE; + case 3: + return BIG_QUERY_TABLE_TYPE_SNAPSHOT; default: return null; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableTypeCollection.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableTypeCollection.java index 855404ff22bc..ffccc5f524fb 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableTypeCollection.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryTableTypeCollection.java @@ -23,8 +23,8 @@ * * *
- * Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
- * and SNAPSHOT are not supported.
+ * Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and
+ * non-BigLake external tables are not supported.
  * 
* * Protobuf enum {@code google.privacy.dlp.v2.BigQueryTableTypeCollection} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java index fcb52302f7c8..eb9d83cdde8a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java @@ -1239,9 +1239,9 @@ public com.google.protobuf.ByteString getDatasetProjectIdBytes() { * * *
-   * The BigQuery location where the dataset's data is stored.
+   * If supported, the location where the dataset's data is stored.
    * See https://cloud.google.com/bigquery/docs/locations for supported
-   * locations.
+   * BigQuery locations.
    * 
* * string dataset_location = 20; @@ -1264,9 +1264,9 @@ public java.lang.String getDatasetLocation() { * * *
-   * The BigQuery location where the dataset's data is stored.
+   * If supported, the location where the dataset's data is stored.
    * See https://cloud.google.com/bigquery/docs/locations for supported
-   * locations.
+   * BigQuery locations.
    * 
* * string dataset_location = 20; @@ -1294,7 +1294,7 @@ public com.google.protobuf.ByteString getDatasetLocationBytes() { * * *
-   * The BigQuery dataset ID.
+   * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
    * 
* * string dataset_id = 21; @@ -1317,7 +1317,7 @@ public java.lang.String getDatasetId() { * * *
-   * The BigQuery dataset ID.
+   * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
    * 
* * string dataset_id = 21; @@ -1345,7 +1345,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
-   * The BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 22; @@ -1368,7 +1368,7 @@ public java.lang.String getTableId() { * * *
-   * The BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 22; @@ -3653,9 +3653,9 @@ public Builder setDatasetProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The BigQuery location where the dataset's data is stored.
+     * If supported, the location where the dataset's data is stored.
      * See https://cloud.google.com/bigquery/docs/locations for supported
-     * locations.
+     * BigQuery locations.
      * 
* * string dataset_location = 20; @@ -3677,9 +3677,9 @@ public java.lang.String getDatasetLocation() { * * *
-     * The BigQuery location where the dataset's data is stored.
+     * If supported, the location where the dataset's data is stored.
      * See https://cloud.google.com/bigquery/docs/locations for supported
-     * locations.
+     * BigQuery locations.
      * 
* * string dataset_location = 20; @@ -3701,9 +3701,9 @@ public com.google.protobuf.ByteString getDatasetLocationBytes() { * * *
-     * The BigQuery location where the dataset's data is stored.
+     * If supported, the location where the dataset's data is stored.
      * See https://cloud.google.com/bigquery/docs/locations for supported
-     * locations.
+     * BigQuery locations.
      * 
* * string dataset_location = 20; @@ -3724,9 +3724,9 @@ public Builder setDatasetLocation(java.lang.String value) { * * *
-     * The BigQuery location where the dataset's data is stored.
+     * If supported, the location where the dataset's data is stored.
      * See https://cloud.google.com/bigquery/docs/locations for supported
-     * locations.
+     * BigQuery locations.
      * 
* * string dataset_location = 20; @@ -3743,9 +3743,9 @@ public Builder clearDatasetLocation() { * * *
-     * The BigQuery location where the dataset's data is stored.
+     * If supported, the location where the dataset's data is stored.
      * See https://cloud.google.com/bigquery/docs/locations for supported
-     * locations.
+     * BigQuery locations.
      * 
* * string dataset_location = 20; @@ -3769,7 +3769,7 @@ public Builder setDatasetLocationBytes(com.google.protobuf.ByteString value) { * * *
-     * The BigQuery dataset ID.
+     * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
      * 
* * string dataset_id = 21; @@ -3791,7 +3791,7 @@ public java.lang.String getDatasetId() { * * *
-     * The BigQuery dataset ID.
+     * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
      * 
* * string dataset_id = 21; @@ -3813,7 +3813,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
-     * The BigQuery dataset ID.
+     * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
      * 
* * string dataset_id = 21; @@ -3834,7 +3834,7 @@ public Builder setDatasetId(java.lang.String value) { * * *
-     * The BigQuery dataset ID.
+     * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
      * 
* * string dataset_id = 21; @@ -3851,7 +3851,7 @@ public Builder clearDatasetId() { * * *
-     * The BigQuery dataset ID.
+     * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
      * 
* * string dataset_id = 21; @@ -3875,7 +3875,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 22; @@ -3897,7 +3897,7 @@ public java.lang.String getTableId() { * * *
-     * The BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 22; @@ -3919,7 +3919,7 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-     * The BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 22; @@ -3940,7 +3940,7 @@ public Builder setTableId(java.lang.String value) { * * *
-     * The BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 22; @@ -3957,7 +3957,7 @@ public Builder clearTableId() { * * *
-     * The BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 22; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java index 8e25da84e558..132909722673 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java @@ -226,9 +226,9 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery location where the dataset's data is stored.
+   * If supported, the location where the dataset's data is stored.
    * See https://cloud.google.com/bigquery/docs/locations for supported
-   * locations.
+   * BigQuery locations.
    * 
* * string dataset_location = 20; @@ -240,9 +240,9 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery location where the dataset's data is stored.
+   * If supported, the location where the dataset's data is stored.
    * See https://cloud.google.com/bigquery/docs/locations for supported
-   * locations.
+   * BigQuery locations.
    * 
* * string dataset_location = 20; @@ -255,7 +255,7 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery dataset ID.
+   * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
    * 
* * string dataset_id = 21; @@ -267,7 +267,7 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery dataset ID.
+   * The BigQuery dataset ID, if the resource profiled is a BigQuery table.
    * 
* * string dataset_id = 21; @@ -280,7 +280,7 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 22; @@ -292,7 +292,7 @@ public interface ColumnDataProfileOrBuilder * * *
-   * The BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 22; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java index ea4986f93542..80059a053ee5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java @@ -134,7 +134,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7251 + * google/privacy/dlp/v2/dlp.proto;l=7250 * @return Whether the dataProfileJob field is set. */ @java.lang.Override @@ -157,7 +157,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7251 + * google/privacy/dlp/v2/dlp.proto;l=7250 * @return The dataProfileJob. */ @java.lang.Override @@ -1050,7 +1050,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7251 + * See google/privacy/dlp/v2/dlp.proto;l=7250 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -1072,7 +1072,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7251 + * See google/privacy/dlp/v2/dlp.proto;l=7250 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java index 15a0ebe59db8..5a272521a6de 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java @@ -77,7 +77,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7251 + * google/privacy/dlp/v2/dlp.proto;l=7250 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -97,7 +97,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7251 + * google/privacy/dlp/v2/dlp.proto;l=7250 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 5dc47a5ab4ea..fdc0829503e2 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -2927,443 +2927,444 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ollection\022$\n BIG_QUERY_COLLECTION_UNSPEC" + "IFIED\020\000\022\"\n\036BIG_QUERY_COLLECTION_ALL_TYPE" + "S\020\001\022-\n)BIG_QUERY_COLLECTION_ONLY_SUPPORT" - + "ED_TYPES\020\002*\205\001\n\021BigQueryTableType\022$\n BIG_" + + "ED_TYPES\020\002*\250\001\n\021BigQueryTableType\022$\n BIG_" + "QUERY_TABLE_TYPE_UNSPECIFIED\020\000\022\036\n\032BIG_QU" + "ERY_TABLE_TYPE_TABLE\020\001\022*\n&BIG_QUERY_TABL" - + "E_TYPE_EXTERNAL_BIG_LAKE\020\002*\224\001\n\032DataProfi" - + "leUpdateFrequency\022 \n\034UPDATE_FREQUENCY_UN" - + "SPECIFIED\020\000\022\032\n\026UPDATE_FREQUENCY_NEVER\020\001\022" - + "\032\n\026UPDATE_FREQUENCY_DAILY\020\002\022\034\n\030UPDATE_FR" - + "EQUENCY_MONTHLY\020\004*]\n\031BigQueryTableModifi" - + "cation\022\"\n\036TABLE_MODIFICATION_UNSPECIFIED" - + "\020\000\022\034\n\030TABLE_MODIFIED_TIMESTAMP\020\001*u\n\032BigQ" - + "uerySchemaModification\022#\n\037SCHEMA_MODIFIC" - + "ATION_UNSPECIFIED\020\000\022\026\n\022SCHEMA_NEW_COLUMN" - + "S\020\001\022\032\n\026SCHEMA_REMOVED_COLUMNS\020\002*\273\001\n\022Rela" - + "tionalOperator\022#\n\037RELATIONAL_OPERATOR_UN" - + "SPECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_T" - + "O\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026" - + "GREATER_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR" - + "_EQUALS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014MatchingType\022\035" - + "\n\031MATCHING_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHIN" - + "G_TYPE_FULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PAR" - + "TIAL_MATCH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MA" - + "TCH\020\003*M\n\rContentOption\022\027\n\023CONTENT_UNSPEC" - + "IFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMA" - + "GE\020\002*B\n\014MetadataType\022\034\n\030METADATATYPE_UNS" - + "PECIFIED\020\000\022\024\n\020STORAGE_METADATA\020\002*P\n\023Info" - + "TypeSupportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED" - + "\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDl" - + "pJobType\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017" - + "\n\013INSPECT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n" - + "\n\023StoredInfoTypeState\022&\n\"STORED_INFO_TYP" - + "E_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005RE" - + "ADY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALID\020\004*\243\001\n\022Resou" - + "rceVisibility\022#\n\037RESOURCE_VISIBILITY_UNS" - + "PECIFIED\020\000\022\036\n\032RESOURCE_VISIBILITY_PUBLIC" - + "\020\n\022$\n RESOURCE_VISIBILITY_INCONCLUSIVE\020\017" - + "\022\"\n\036RESOURCE_VISIBILITY_RESTRICTED\020\024*u\n\020" - + "EncryptionStatus\022!\n\035ENCRYPTION_STATUS_UN" - + "SPECIFIED\020\000\022\035\n\031ENCRYPTION_GOOGLE_MANAGED" - + "\020\001\022\037\n\033ENCRYPTION_CUSTOMER_MANAGED\020\002*\251\001\n\023" - + "NullPercentageLevel\022%\n!NULL_PERCENTAGE_L" - + "EVEL_UNSPECIFIED\020\000\022\034\n\030NULL_PERCENTAGE_VE" - + "RY_LOW\020\001\022\027\n\023NULL_PERCENTAGE_LOW\020\002\022\032\n\026NUL" - + "L_PERCENTAGE_MEDIUM\020\003\022\030\n\024NULL_PERCENTAGE" - + "_HIGH\020\004*\220\001\n\024UniquenessScoreLevel\022&\n\"UNIQ" - + "UENESS_SCORE_LEVEL_UNSPECIFIED\020\000\022\030\n\024UNIQ" - + "UENESS_SCORE_LOW\020\001\022\033\n\027UNIQUENESS_SCORE_M" - + "EDIUM\020\002\022\031\n\025UNIQUENESS_SCORE_HIGH\020\003*f\n\017Co" - + "nnectionState\022 \n\034CONNECTION_STATE_UNSPEC" - + "IFIED\020\000\022\027\n\023MISSING_CREDENTIALS\020\001\022\r\n\tAVAI" - + "LABLE\020\002\022\t\n\005ERROR\020\0032\364u\n\nDlpService\022\333\001\n\016In" - + "spectContent\022,.google.privacy.dlp.v2.Ins" - + "pectContentRequest\032-.google.privacy.dlp." - + "v2.InspectContentResponse\"l\202\323\344\223\002f\"\'/v2/{" - + "parent=projects/*}/content:inspect:\001*Z8\"" - + "3/v2/{parent=projects/*/locations/*}/con" - + "tent:inspect:\001*\022\314\001\n\013RedactImage\022).google" - + ".privacy.dlp.v2.RedactImageRequest\032*.goo" - + "gle.privacy.dlp.v2.RedactImageResponse\"f" - + "\202\323\344\223\002`\"$/v2/{parent=projects/*}/image:re" - + "dact:\001*Z5\"0/v2/{parent=projects/*/locati" - + "ons/*}/image:redact:\001*\022\352\001\n\021DeidentifyCon" - + "tent\022/.google.privacy.dlp.v2.DeidentifyC" - + "ontentRequest\0320.google.privacy.dlp.v2.De" - + "identifyContentResponse\"r\202\323\344\223\002l\"*/v2/{pa" - + "rent=projects/*}/content:deidentify:\001*Z;" - + "\"6/v2/{parent=projects/*/locations/*}/co" - + "ntent:deidentify:\001*\022\352\001\n\021ReidentifyConten" - + "t\022/.google.privacy.dlp.v2.ReidentifyCont" - + "entRequest\0320.google.privacy.dlp.v2.Reide" - + "ntifyContentResponse\"r\202\323\344\223\002l\"*/v2/{paren" - + "t=projects/*}/content:reidentify:\001*Z;\"6/" - + "v2/{parent=projects/*/locations/*}/conte" - + "nt:reidentify:\001*\022\260\001\n\rListInfoTypes\022+.goo" - + "gle.privacy.dlp.v2.ListInfoTypesRequest\032" - + ",.google.privacy.dlp.v2.ListInfoTypesRes" - + "ponse\"D\332A\006parent\202\323\344\223\0025\022\r/v2/infoTypesZ$\022" - + "\"/v2/{parent=locations/*}/infoTypes\022\364\002\n\025" - + "CreateInspectTemplate\0223.google.privacy.d" - + "lp.v2.CreateInspectTemplateRequest\032&.goo" - + "gle.privacy.dlp.v2.InspectTemplate\"\375\001\332A\027" - + "parent,inspect_template\202\323\344\223\002\334\001\"4/v2/{par" - + "ent=projects/*/locations/*}/inspectTempl" - + "ates:\001*Z>\"9/v2/{parent=organizations/*/l" - + "ocations/*}/inspectTemplates:\001*Z-\"(/v2/{" - + "parent=projects/*}/inspectTemplates:\001*Z2" - + "\"-/v2/{parent=organizations/*}/inspectTe" - + "mplates:\001*\022\376\002\n\025UpdateInspectTemplate\0223.g" - + "oogle.privacy.dlp.v2.UpdateInspectTempla" - + "teRequest\032&.google.privacy.dlp.v2.Inspec" - + "tTemplate\"\207\002\332A!name,inspect_template,upd" - + "ate_mask\202\323\344\223\002\334\00124/v2/{name=projects/*/lo" - + "cations/*/inspectTemplates/*}:\001*Z>29/v2/" - + "{name=organizations/*/locations/*/inspec" - + "tTemplates/*}:\001*Z-2(/v2/{name=projects/*" - + "/inspectTemplates/*}:\001*Z22-/v2/{name=org" - + "anizations/*/inspectTemplates/*}:\001*\022\317\002\n\022" - + "GetInspectTemplate\0220.google.privacy.dlp." - + "v2.GetInspectTemplateRequest\032&.google.pr" - + "ivacy.dlp.v2.InspectTemplate\"\336\001\332A\004name\202\323" - + "\344\223\002\320\001\0224/v2/{name=projects/*/locations/*/" - + "inspectTemplates/*}Z;\0229/v2/{name=organiz" + + "E_TYPE_EXTERNAL_BIG_LAKE\020\002\022!\n\035BIG_QUERY_" + + "TABLE_TYPE_SNAPSHOT\020\003*\224\001\n\032DataProfileUpd" + + "ateFrequency\022 \n\034UPDATE_FREQUENCY_UNSPECI" + + "FIED\020\000\022\032\n\026UPDATE_FREQUENCY_NEVER\020\001\022\032\n\026UP" + + "DATE_FREQUENCY_DAILY\020\002\022\034\n\030UPDATE_FREQUEN" + + "CY_MONTHLY\020\004*]\n\031BigQueryTableModificatio" + + "n\022\"\n\036TABLE_MODIFICATION_UNSPECIFIED\020\000\022\034\n" + + "\030TABLE_MODIFIED_TIMESTAMP\020\001*u\n\032BigQueryS" + + "chemaModification\022#\n\037SCHEMA_MODIFICATION" + + "_UNSPECIFIED\020\000\022\026\n\022SCHEMA_NEW_COLUMNS\020\001\022\032" + + "\n\026SCHEMA_REMOVED_COLUMNS\020\002*\273\001\n\022Relationa" + + "lOperator\022#\n\037RELATIONAL_OPERATOR_UNSPECI" + + "FIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020" + + "\n\014GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREAT" + + "ER_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_EQUA" + + "LS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014MatchingType\022\035\n\031MAT" + + "CHING_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYP" + + "E_FULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_" + + "MATCH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003" + + "*M\n\rContentOption\022\027\n\023CONTENT_UNSPECIFIED" + + "\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAGE\020\002*" + + "B\n\014MetadataType\022\034\n\030METADATATYPE_UNSPECIF" + + "IED\020\000\022\024\n\020STORAGE_METADATA\020\002*P\n\023InfoTypeS" + + "upportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDlpJobT" + + "ype\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INS" + + "PECT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023Sto" + + "redInfoTypeState\022&\n\"STORED_INFO_TYPE_STA" + + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002" + + "\022\n\n\006FAILED\020\003\022\013\n\007INVALID\020\004*\243\001\n\022ResourceVi" + + "sibility\022#\n\037RESOURCE_VISIBILITY_UNSPECIF" + + "IED\020\000\022\036\n\032RESOURCE_VISIBILITY_PUBLIC\020\n\022$\n" + + " RESOURCE_VISIBILITY_INCONCLUSIVE\020\017\022\"\n\036R" + + "ESOURCE_VISIBILITY_RESTRICTED\020\024*u\n\020Encry" + + "ptionStatus\022!\n\035ENCRYPTION_STATUS_UNSPECI" + + "FIED\020\000\022\035\n\031ENCRYPTION_GOOGLE_MANAGED\020\001\022\037\n" + + "\033ENCRYPTION_CUSTOMER_MANAGED\020\002*\251\001\n\023NullP" + + "ercentageLevel\022%\n!NULL_PERCENTAGE_LEVEL_" + + "UNSPECIFIED\020\000\022\034\n\030NULL_PERCENTAGE_VERY_LO" + + "W\020\001\022\027\n\023NULL_PERCENTAGE_LOW\020\002\022\032\n\026NULL_PER" + + "CENTAGE_MEDIUM\020\003\022\030\n\024NULL_PERCENTAGE_HIGH" + + "\020\004*\220\001\n\024UniquenessScoreLevel\022&\n\"UNIQUENES" + + "S_SCORE_LEVEL_UNSPECIFIED\020\000\022\030\n\024UNIQUENES" + + "S_SCORE_LOW\020\001\022\033\n\027UNIQUENESS_SCORE_MEDIUM" + + "\020\002\022\031\n\025UNIQUENESS_SCORE_HIGH\020\003*f\n\017Connect" + + "ionState\022 \n\034CONNECTION_STATE_UNSPECIFIED" + + "\020\000\022\027\n\023MISSING_CREDENTIALS\020\001\022\r\n\tAVAILABLE" + + "\020\002\022\t\n\005ERROR\020\0032\364u\n\nDlpService\022\333\001\n\016Inspect" + + "Content\022,.google.privacy.dlp.v2.InspectC" + + "ontentRequest\032-.google.privacy.dlp.v2.In" + + "spectContentResponse\"l\202\323\344\223\002f\"\'/v2/{paren" + + "t=projects/*}/content:inspect:\001*Z8\"3/v2/" + + "{parent=projects/*/locations/*}/content:" + + "inspect:\001*\022\314\001\n\013RedactImage\022).google.priv" + + "acy.dlp.v2.RedactImageRequest\032*.google.p" + + "rivacy.dlp.v2.RedactImageResponse\"f\202\323\344\223\002" + + "`\"$/v2/{parent=projects/*}/image:redact:" + + "\001*Z5\"0/v2/{parent=projects/*/locations/*" + + "}/image:redact:\001*\022\352\001\n\021DeidentifyContent\022" + + "/.google.privacy.dlp.v2.DeidentifyConten" + + "tRequest\0320.google.privacy.dlp.v2.Deident" + + "ifyContentResponse\"r\202\323\344\223\002l\"*/v2/{parent=" + + "projects/*}/content:deidentify:\001*Z;\"6/v2" + + "/{parent=projects/*/locations/*}/content" + + ":deidentify:\001*\022\352\001\n\021ReidentifyContent\022/.g" + + "oogle.privacy.dlp.v2.ReidentifyContentRe" + + "quest\0320.google.privacy.dlp.v2.Reidentify" + + "ContentResponse\"r\202\323\344\223\002l\"*/v2/{parent=pro" + + "jects/*}/content:reidentify:\001*Z;\"6/v2/{p" + + "arent=projects/*/locations/*}/content:re" + + "identify:\001*\022\260\001\n\rListInfoTypes\022+.google.p" + + "rivacy.dlp.v2.ListInfoTypesRequest\032,.goo" + + "gle.privacy.dlp.v2.ListInfoTypesResponse" + + "\"D\332A\006parent\202\323\344\223\0025\022\r/v2/infoTypesZ$\022\"/v2/" + + "{parent=locations/*}/infoTypes\022\364\002\n\025Creat" + + "eInspectTemplate\0223.google.privacy.dlp.v2" + + ".CreateInspectTemplateRequest\032&.google.p" + + "rivacy.dlp.v2.InspectTemplate\"\375\001\332A\027paren" + + "t,inspect_template\202\323\344\223\002\334\001\"4/v2/{parent=p" + + "rojects/*/locations/*}/inspectTemplates:" + + "\001*Z>\"9/v2/{parent=organizations/*/locati" + + "ons/*}/inspectTemplates:\001*Z-\"(/v2/{paren" + + "t=projects/*}/inspectTemplates:\001*Z2\"-/v2" + + "/{parent=organizations/*}/inspectTemplat" + + "es:\001*\022\376\002\n\025UpdateInspectTemplate\0223.google" + + ".privacy.dlp.v2.UpdateInspectTemplateReq" + + "uest\032&.google.privacy.dlp.v2.InspectTemp" + + "late\"\207\002\332A!name,inspect_template,update_m" + + "ask\202\323\344\223\002\334\00124/v2/{name=projects/*/locatio" + + "ns/*/inspectTemplates/*}:\001*Z>29/v2/{name" + + "=organizations/*/locations/*/inspectTemp" + + "lates/*}:\001*Z-2(/v2/{name=projects/*/insp" + + "ectTemplates/*}:\001*Z22-/v2/{name=organiza" + + "tions/*/inspectTemplates/*}:\001*\022\317\002\n\022GetIn" + + "spectTemplate\0220.google.privacy.dlp.v2.Ge" + + "tInspectTemplateRequest\032&.google.privacy" + + ".dlp.v2.InspectTemplate\"\336\001\332A\004name\202\323\344\223\002\320\001" + + "\0224/v2/{name=projects/*/locations/*/inspe" + + "ctTemplates/*}Z;\0229/v2/{name=organization" + + "s/*/locations/*/inspectTemplates/*}Z*\022(/" + + "v2/{name=projects/*/inspectTemplates/*}Z" + + "/\022-/v2/{name=organizations/*/inspectTemp" + + "lates/*}\022\342\002\n\024ListInspectTemplates\0222.goog" + + "le.privacy.dlp.v2.ListInspectTemplatesRe" + + "quest\0323.google.privacy.dlp.v2.ListInspec" + + "tTemplatesResponse\"\340\001\332A\006parent\202\323\344\223\002\320\001\0224/" + + "v2/{parent=projects/*/locations/*}/inspe" + + "ctTemplatesZ;\0229/v2/{parent=organizations" + + "/*/locations/*}/inspectTemplatesZ*\022(/v2/" + + "{parent=projects/*}/inspectTemplatesZ/\022-" + + "/v2/{parent=organizations/*}/inspectTemp" + + "lates\022\305\002\n\025DeleteInspectTemplate\0223.google" + + ".privacy.dlp.v2.DeleteInspectTemplateReq" + + "uest\032\026.google.protobuf.Empty\"\336\001\332A\004name\202\323" + + "\344\223\002\320\001*4/v2/{name=projects/*/locations/*/" + + "inspectTemplates/*}Z;*9/v2/{name=organiz" + "ations/*/locations/*/inspectTemplates/*}" - + "Z*\022(/v2/{name=projects/*/inspectTemplate" - + "s/*}Z/\022-/v2/{name=organizations/*/inspec" - + "tTemplates/*}\022\342\002\n\024ListInspectTemplates\0222" - + ".google.privacy.dlp.v2.ListInspectTempla" - + "tesRequest\0323.google.privacy.dlp.v2.ListI" - + "nspectTemplatesResponse\"\340\001\332A\006parent\202\323\344\223\002" - + "\320\001\0224/v2/{parent=projects/*/locations/*}/" - + "inspectTemplatesZ;\0229/v2/{parent=organiza" - + "tions/*/locations/*}/inspectTemplatesZ*\022" - + "(/v2/{parent=projects/*}/inspectTemplate" - + "sZ/\022-/v2/{parent=organizations/*}/inspec" - + "tTemplates\022\305\002\n\025DeleteInspectTemplate\0223.g" - + "oogle.privacy.dlp.v2.DeleteInspectTempla" - + "teRequest\032\026.google.protobuf.Empty\"\336\001\332A\004n" - + "ame\202\323\344\223\002\320\001*4/v2/{name=projects/*/locatio" - + "ns/*/inspectTemplates/*}Z;*9/v2/{name=or" - + "ganizations/*/locations/*/inspectTemplat" - + "es/*}Z**(/v2/{name=projects/*/inspectTem" - + "plates/*}Z/*-/v2/{name=organizations/*/i" - + "nspectTemplates/*}\022\214\003\n\030CreateDeidentifyT" - + "emplate\0226.google.privacy.dlp.v2.CreateDe" - + "identifyTemplateRequest\032).google.privacy" - + ".dlp.v2.DeidentifyTemplate\"\214\002\332A\032parent,d" - + "eidentify_template\202\323\344\223\002\350\001\"0/v2/{parent=o" - + "rganizations/*}/deidentifyTemplates:\001*ZA" - + "\"\022\022*\"9/v2/{parent=organizations" - + "/*/locations/*}/discoveryConfigs:\001*\022\232\002\n\025" - + "UpdateDiscoveryConfig\0223.google.privacy.d" - + "lp.v2.UpdateDiscoveryConfigRequest\032&.goo" - + "gle.privacy.dlp.v2.DiscoveryConfig\"\243\001\332A!" - + "name,discovery_config,update_mask\202\323\344\223\002y2" - + "4/v2/{name=projects/*/locations/*/discov" - + "eryConfigs/*}:\001*Z>29/v2/{name=organizati" - + "ons/*/locations/*/discoveryConfigs/*}:\001*" - + "\022\361\001\n\022GetDiscoveryConfig\0220.google.privacy" - + ".dlp.v2.GetDiscoveryConfigRequest\032&.goog" - + "le.privacy.dlp.v2.DiscoveryConfig\"\200\001\332A\004n" - + "ame\202\323\344\223\002s\0224/v2/{name=projects/*/location" - + "s/*/discoveryConfigs/*}Z;\0229/v2/{name=org" - + "anizations/*/locations/*/discoveryConfig" - + "s/*}\022\204\002\n\024ListDiscoveryConfigs\0222.google.p" - + "rivacy.dlp.v2.ListDiscoveryConfigsReques" - + "t\0323.google.privacy.dlp.v2.ListDiscoveryC" - + "onfigsResponse\"\202\001\332A\006parent\202\323\344\223\002s\0224/v2/{p" - + "arent=projects/*/locations/*}/discoveryC" - + "onfigsZ;\0229/v2/{parent=organizations/*/lo" - + "cations/*}/discoveryConfigs\022\347\001\n\025DeleteDi" - + "scoveryConfig\0223.google.privacy.dlp.v2.De" - + "leteDiscoveryConfigRequest\032\026.google.prot" - + "obuf.Empty\"\200\001\332A\004name\202\323\344\223\002s*4/v2/{name=pr" - + "ojects/*/locations/*/discoveryConfigs/*}" - + "Z;*9/v2/{name=organizations/*/locations/" - + "*/discoveryConfigs/*}\022\337\001\n\014CreateDlpJob\022*" - + ".google.privacy.dlp.v2.CreateDlpJobReque" - + "st\032\035.google.privacy.dlp.v2.DlpJob\"\203\001\332A\022p" - + "arent,inspect_job\332A\017parent,risk_job\202\323\344\223\002" - + "V\"\037/v2/{parent=projects/*}/dlpJobs:\001*Z0\"" + + "identifyTemplates:\001*Z0\"+/v2/{parent=proj" + + "ects/*}/deidentifyTemplates:\001*Z<\"7/v2/{p" + + "arent=projects/*/locations/*}/deidentify" + + "Templates:\001*\022\226\003\n\030UpdateDeidentifyTemplat" + + "e\0226.google.privacy.dlp.v2.UpdateDeidenti" + + "fyTemplateRequest\032).google.privacy.dlp.v" + + "2.DeidentifyTemplate\"\226\002\332A$name,deidentif" + + "y_template,update_mask\202\323\344\223\002\350\00120/v2/{name" + + "=organizations/*/deidentifyTemplates/*}:" + + "\001*ZA2\022\022*\"9/v2/{parent=organizations/*/lo" + + "cations/*}/discoveryConfigs:\001*\022\232\002\n\025Updat" + + "eDiscoveryConfig\0223.google.privacy.dlp.v2" + + ".UpdateDiscoveryConfigRequest\032&.google.p" + + "rivacy.dlp.v2.DiscoveryConfig\"\243\001\332A!name," + + "discovery_config,update_mask\202\323\344\223\002y24/v2/" + + "{name=projects/*/locations/*/discoveryCo" + + "nfigs/*}:\001*Z>29/v2/{name=organizations/*" + + "/locations/*/discoveryConfigs/*}:\001*\022\361\001\n\022" + + "GetDiscoveryConfig\0220.google.privacy.dlp." + + "v2.GetDiscoveryConfigRequest\032&.google.pr" + + "ivacy.dlp.v2.DiscoveryConfig\"\200\001\332A\004name\202\323" + + "\344\223\002s\0224/v2/{name=projects/*/locations/*/d" + + "iscoveryConfigs/*}Z;\0229/v2/{name=organiza" + + "tions/*/locations/*/discoveryConfigs/*}\022" + + "\204\002\n\024ListDiscoveryConfigs\0222.google.privac" + + "y.dlp.v2.ListDiscoveryConfigsRequest\0323.g" + + "oogle.privacy.dlp.v2.ListDiscoveryConfig" + + "sResponse\"\202\001\332A\006parent\202\323\344\223\002s\0224/v2/{parent" + + "=projects/*/locations/*}/discoveryConfig" + + "sZ;\0229/v2/{parent=organizations/*/locatio" + + "ns/*}/discoveryConfigs\022\347\001\n\025DeleteDiscove" + + "ryConfig\0223.google.privacy.dlp.v2.DeleteD" + + "iscoveryConfigRequest\032\026.google.protobuf." + + "Empty\"\200\001\332A\004name\202\323\344\223\002s*4/v2/{name=project" + + "s/*/locations/*/discoveryConfigs/*}Z;*9/" + + "v2/{name=organizations/*/locations/*/dis" + + "coveryConfigs/*}\022\337\001\n\014CreateDlpJob\022*.goog" + + "le.privacy.dlp.v2.CreateDlpJobRequest\032\035." + + "google.privacy.dlp.v2.DlpJob\"\203\001\332A\022parent" + + ",inspect_job\332A\017parent,risk_job\202\323\344\223\002V\"\037/v" + + "2/{parent=projects/*}/dlpJobs:\001*Z0\"+/v2/" + + "{parent=projects/*/locations/*}/dlpJobs:" + + "\001*\022\373\001\n\013ListDlpJobs\022).google.privacy.dlp." + + "v2.ListDlpJobsRequest\032*.google.privacy.d" + + "lp.v2.ListDlpJobsResponse\"\224\001\332A\006parent\202\323\344" + + "\223\002\204\001\022\037/v2/{parent=projects/*}/dlpJobsZ-\022" + "+/v2/{parent=projects/*/locations/*}/dlp" - + "Jobs:\001*\022\373\001\n\013ListDlpJobs\022).google.privacy" - + ".dlp.v2.ListDlpJobsRequest\032*.google.priv" - + "acy.dlp.v2.ListDlpJobsResponse\"\224\001\332A\006pare" - + "nt\202\323\344\223\002\204\001\022\037/v2/{parent=projects/*}/dlpJo" - + "bsZ-\022+/v2/{parent=projects/*/locations/*" - + "}/dlpJobsZ2\0220/v2/{parent=organizations/*" - + "/locations/*}/dlpJobs\022\262\001\n\tGetDlpJob\022\'.go" - + "ogle.privacy.dlp.v2.GetDlpJobRequest\032\035.g" - + "oogle.privacy.dlp.v2.DlpJob\"]\332A\004name\202\323\344\223" - + "\002P\022\037/v2/{name=projects/*/dlpJobs/*}Z-\022+/" - + "v2/{name=projects/*/locations/*/dlpJobs/" - + "*}\022\261\001\n\014DeleteDlpJob\022*.google.privacy.dlp" - + ".v2.DeleteDlpJobRequest\032\026.google.protobu" - + "f.Empty\"]\332A\004name\202\323\344\223\002P*\037/v2/{name=projec" - + "ts/*/dlpJobs/*}Z-*+/v2/{name=projects/*/" - + "locations/*/dlpJobs/*}\022\276\001\n\014CancelDlpJob\022" - + "*.google.privacy.dlp.v2.CancelDlpJobRequ" - + "est\032\026.google.protobuf.Empty\"j\202\323\344\223\002d\"&/v2" - + "/{name=projects/*/dlpJobs/*}:cancel:\001*Z7" - + "\"2/v2/{name=projects/*/locations/*/dlpJo" - + "bs/*}:cancel:\001*\022\343\002\n\024CreateStoredInfoType" - + "\0222.google.privacy.dlp.v2.CreateStoredInf" - + "oTypeRequest\032%.google.privacy.dlp.v2.Sto" - + "redInfoType\"\357\001\332A\rparent,config\202\323\344\223\002\330\001\",/" - + "v2/{parent=organizations/*}/storedInfoTy" - + "pes:\001*Z=\"8/v2/{parent=organizations/*/lo" - + "cations/*}/storedInfoTypes:\001*Z,\"\'/v2/{pa" - + "rent=projects/*}/storedInfoTypes:\001*Z8\"3/" - + "v2/{parent=projects/*/locations/*}/store" - + "dInfoTypes:\001*\022\355\002\n\024UpdateStoredInfoType\0222" - + ".google.privacy.dlp.v2.UpdateStoredInfoT" - + "ypeRequest\032%.google.privacy.dlp.v2.Store" - + "dInfoType\"\371\001\332A\027name,config,update_mask\202\323" - + "\344\223\002\330\0012,/v2/{name=organizations/*/storedI" - + "nfoTypes/*}:\001*Z=28/v2/{name=organization" - + "s/*/locations/*/storedInfoTypes/*}:\001*Z,2" - + "\'/v2/{name=projects/*/storedInfoTypes/*}" - + ":\001*Z823/v2/{name=projects/*/locations/*/" - + "storedInfoTypes/*}:\001*\022\310\002\n\021GetStoredInfoT" - + "ype\022/.google.privacy.dlp.v2.GetStoredInf" - + "oTypeRequest\032%.google.privacy.dlp.v2.Sto" - + "redInfoType\"\332\001\332A\004name\202\323\344\223\002\314\001\022,/v2/{name=" - + "organizations/*/storedInfoTypes/*}Z:\0228/v" - + "2/{name=organizations/*/locations/*/stor" - + "edInfoTypes/*}Z)\022\'/v2/{name=projects/*/s" - + "toredInfoTypes/*}Z5\0223/v2/{name=projects/" - + "*/locations/*/storedInfoTypes/*}\022\333\002\n\023Lis" - + "tStoredInfoTypes\0221.google.privacy.dlp.v2" - + ".ListStoredInfoTypesRequest\0322.google.pri" - + "vacy.dlp.v2.ListStoredInfoTypesResponse\"" - + "\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2/{parent=organiza" - + "tions/*}/storedInfoTypesZ:\0228/v2/{parent=" - + "organizations/*/locations/*}/storedInfoT" - + "ypesZ)\022\'/v2/{parent=projects/*}/storedIn" - + "foTypesZ5\0223/v2/{parent=projects/*/locati" - + "ons/*}/storedInfoTypes\022\277\002\n\024DeleteStoredI" - + "nfoType\0222.google.privacy.dlp.v2.DeleteSt" - + "oredInfoTypeRequest\032\026.google.protobuf.Em" - + "pty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/v2/{name=organiza" - + "tions/*/storedInfoTypes/*}Z:*8/v2/{name=" - + "organizations/*/locations/*/storedInfoTy" - + "pes/*}Z)*\'/v2/{name=projects/*/storedInf" - + "oTypes/*}Z5*3/v2/{name=projects/*/locati" - + "ons/*/storedInfoTypes/*}\022\223\002\n\027ListProject" - + "DataProfiles\0225.google.privacy.dlp.v2.Lis" - + "tProjectDataProfilesRequest\0326.google.pri" - + "vacy.dlp.v2.ListProjectDataProfilesRespo" - + "nse\"\210\001\332A\006parent\202\323\344\223\002y\022/v2/{parent=o" - + "rganizations/*/locations/*}/fileStoreDat" - + "aProfilesZ;\0229/v2/{parent=projects/*/loca" - + "tions/*}/fileStoreDataProfiles\022\212\002\n\027GetFi" - + "leStoreDataProfile\0225.google.privacy.dlp." - + "v2.GetFileStoreDataProfileRequest\032+.goog" - + "le.privacy.dlp.v2.FileStoreDataProfile\"\212" - + "\001\332A\004name\202\323\344\223\002}\022>/v2/{name=organizations/" - + "*/locations/*/fileStoreDataProfiles/*}Z;" - + "\0229/v2/{name=projects/*/locations/*/fileS" - + "toreDataProfiles/*}\022\373\001\n\032DeleteFileStoreD" - + "ataProfile\0228.google.privacy.dlp.v2.Delet" - + "eFileStoreDataProfileRequest\032\026.google.pr" - + "otobuf.Empty\"\212\001\332A\004name\202\323\344\223\002}*>/v2/{name=" - + "organizations/*/locations/*/fileStoreDat" - + "aProfiles/*}Z;*9/v2/{name=projects/*/loc" - + "ations/*/fileStoreDataProfiles/*}\022\366\001\n\023Ge" - + "tTableDataProfile\0221.google.privacy.dlp.v" - + "2.GetTableDataProfileRequest\032\'.google.pr" - + "ivacy.dlp.v2.TableDataProfile\"\202\001\332A\004name\202" - + "\323\344\223\002u\022:/v2/{name=organizations/*/locatio" - + "ns/*/tableDataProfiles/*}Z7\0225/v2/{name=p" - + "rojects/*/locations/*/tableDataProfiles/" - + "*}\022\373\001\n\024GetColumnDataProfile\0222.google.pri", - "vacy.dlp.v2.GetColumnDataProfileRequest\032" - + "(.google.privacy.dlp.v2.ColumnDataProfil" - + "e\"\204\001\332A\004name\202\323\344\223\002w\022;/v2/{name=organizatio" - + "ns/*/locations/*/columnDataProfiles/*}Z8" - + "\0226/v2/{name=projects/*/locations/*/colum" - + "nDataProfiles/*}\022\353\001\n\026DeleteTableDataProf" - + "ile\0224.google.privacy.dlp.v2.DeleteTableD" - + "ataProfileRequest\032\026.google.protobuf.Empt" - + "y\"\202\001\332A\004name\202\323\344\223\002u*:/v2/{name=organizatio" - + "ns/*/locations/*/tableDataProfiles/*}Z7*" - + "5/v2/{name=projects/*/locations/*/tableD" - + "ataProfiles/*}\022\303\001\n\023HybridInspectDlpJob\0221" - + ".google.privacy.dlp.v2.HybridInspectDlpJ" - + "obRequest\032,.google.privacy.dlp.v2.Hybrid" - + "InspectResponse\"K\332A\004name\202\323\344\223\002>\"9/v2/{nam" - + "e=projects/*/locations/*/dlpJobs/*}:hybr" - + "idInspect:\001*\022\221\001\n\014FinishDlpJob\022*.google.p" - + "rivacy.dlp.v2.FinishDlpJobRequest\032\026.goog" - + "le.protobuf.Empty\"=\202\323\344\223\0027\"2/v2/{name=pro" - + "jects/*/locations/*/dlpJobs/*}:finish:\001*" - + "\022\362\001\n\020CreateConnection\022..google.privacy.d" - + "lp.v2.CreateConnectionRequest\032!.google.p" - + "rivacy.dlp.v2.Connection\"\212\001\332A\022parent, co" - + "nnection\202\323\344\223\002o\"//v2/{parent=projects/*/l" - + "ocations/*}/connections:\001*Z9\"4/v2/{paren" - + "t=organizations/*/locations/*}/connectio" - + "ns:\001*\022\327\001\n\rGetConnection\022+.google.privacy" - + ".dlp.v2.GetConnectionRequest\032!.google.pr" - + "ivacy.dlp.v2.Connection\"v\332A\004name\202\323\344\223\002i\022/" - + "/v2/{name=projects/*/locations/*/connect" - + "ions/*}Z6\0224/v2/{name=organizations/*/loc" - + "ations/*/connections/*}\022\352\001\n\017ListConnecti" - + "ons\022-.google.privacy.dlp.v2.ListConnecti" - + "onsRequest\032..google.privacy.dlp.v2.ListC" - + "onnectionsResponse\"x\332A\006parent\202\323\344\223\002i\022//v2" - + "/{parent=projects/*/locations/*}/connect" - + "ionsZ6\0224/v2/{parent=organizations/*/loca" - + "tions/*}/connections\022\377\001\n\021SearchConnectio" - + "ns\022/.google.privacy.dlp.v2.SearchConnect" - + "ionsRequest\0320.google.privacy.dlp.v2.Sear" - + "chConnectionsResponse\"\206\001\332A\006parent\202\323\344\223\002w\022" - + "6/v2/{parent=projects/*/locations/*}/con" - + "nections:searchZ=\022;/v2/{parent=organizat" - + "ions/*/locations/*}/connections:search\022\322" - + "\001\n\020DeleteConnection\022..google.privacy.dlp" - + ".v2.DeleteConnectionRequest\032\026.google.pro" - + "tobuf.Empty\"v\332A\004name\202\323\344\223\002i*//v2/{name=pr" - + "ojects/*/locations/*/connections/*}Z6*4/" - + "v2/{name=organizations/*/locations/*/con" - + "nections/*}\022\343\001\n\020UpdateConnection\022..googl" - + "e.privacy.dlp.v2.UpdateConnectionRequest" - + "\032!.google.privacy.dlp.v2.Connection\"|\332A\004" - + "name\202\323\344\223\002o2//v2/{name=projects/*/locatio" - + "ns/*/connections/*}:\001*Z924/v2/{name=orga" - + "nizations/*/locations/*/connections/*}:\001" - + "*\032F\312A\022dlp.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\353\002\n\031co" - + "m.google.privacy.dlp.v2B\010DlpProtoP\001Z)clo" - + "ud.google.com/go/dlp/apiv2/dlppb;dlppb\252\002" - + "\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\" - + "V2\352\002\026Google::Cloud::Dlp::V2\352Ar\n\035dlp.goog" - + "leapis.com/DlpContent\022\035projects/{project" - + "}/dlpContent\0222projects/{project}/locatio" - + "ns/{location}/dlpContent\352A\\\n\'dlp.googlea" - + "pis.com/OrganizationLocation\0221organizati" - + "ons/{organization}/locations/{location}b" - + "\006proto3" + + "JobsZ2\0220/v2/{parent=organizations/*/loca" + + "tions/*}/dlpJobs\022\262\001\n\tGetDlpJob\022\'.google." + + "privacy.dlp.v2.GetDlpJobRequest\032\035.google" + + ".privacy.dlp.v2.DlpJob\"]\332A\004name\202\323\344\223\002P\022\037/" + + "v2/{name=projects/*/dlpJobs/*}Z-\022+/v2/{n" + + "ame=projects/*/locations/*/dlpJobs/*}\022\261\001" + + "\n\014DeleteDlpJob\022*.google.privacy.dlp.v2.D" + + "eleteDlpJobRequest\032\026.google.protobuf.Emp" + + "ty\"]\332A\004name\202\323\344\223\002P*\037/v2/{name=projects/*/" + + "dlpJobs/*}Z-*+/v2/{name=projects/*/locat" + + "ions/*/dlpJobs/*}\022\276\001\n\014CancelDlpJob\022*.goo" + + "gle.privacy.dlp.v2.CancelDlpJobRequest\032\026" + + ".google.protobuf.Empty\"j\202\323\344\223\002d\"&/v2/{nam" + + "e=projects/*/dlpJobs/*}:cancel:\001*Z7\"2/v2" + + "/{name=projects/*/locations/*/dlpJobs/*}" + + ":cancel:\001*\022\343\002\n\024CreateStoredInfoType\0222.go" + + "ogle.privacy.dlp.v2.CreateStoredInfoType" + + "Request\032%.google.privacy.dlp.v2.StoredIn" + + "foType\"\357\001\332A\rparent,config\202\323\344\223\002\330\001\",/v2/{p" + + "arent=organizations/*}/storedInfoTypes:\001" + + "*Z=\"8/v2/{parent=organizations/*/locatio" + + "ns/*}/storedInfoTypes:\001*Z,\"\'/v2/{parent=" + + "projects/*}/storedInfoTypes:\001*Z8\"3/v2/{p" + + "arent=projects/*/locations/*}/storedInfo" + + "Types:\001*\022\355\002\n\024UpdateStoredInfoType\0222.goog" + + "le.privacy.dlp.v2.UpdateStoredInfoTypeRe" + + "quest\032%.google.privacy.dlp.v2.StoredInfo" + + "Type\"\371\001\332A\027name,config,update_mask\202\323\344\223\002\330\001" + + "2,/v2/{name=organizations/*/storedInfoTy" + + "pes/*}:\001*Z=28/v2/{name=organizations/*/l" + + "ocations/*/storedInfoTypes/*}:\001*Z,2\'/v2/" + + "{name=projects/*/storedInfoTypes/*}:\001*Z8" + + "23/v2/{name=projects/*/locations/*/store" + + "dInfoTypes/*}:\001*\022\310\002\n\021GetStoredInfoType\022/" + + ".google.privacy.dlp.v2.GetStoredInfoType" + + "Request\032%.google.privacy.dlp.v2.StoredIn" + + "foType\"\332\001\332A\004name\202\323\344\223\002\314\001\022,/v2/{name=organ" + + "izations/*/storedInfoTypes/*}Z:\0228/v2/{na" + + "me=organizations/*/locations/*/storedInf" + + "oTypes/*}Z)\022\'/v2/{name=projects/*/stored" + + "InfoTypes/*}Z5\0223/v2/{name=projects/*/loc" + + "ations/*/storedInfoTypes/*}\022\333\002\n\023ListStor" + + "edInfoTypes\0221.google.privacy.dlp.v2.List" + + "StoredInfoTypesRequest\0322.google.privacy." + + "dlp.v2.ListStoredInfoTypesResponse\"\334\001\332A\006" + + "parent\202\323\344\223\002\314\001\022,/v2/{parent=organizations" + + "/*}/storedInfoTypesZ:\0228/v2/{parent=organ" + + "izations/*/locations/*}/storedInfoTypesZ" + + ")\022\'/v2/{parent=projects/*}/storedInfoTyp" + + "esZ5\0223/v2/{parent=projects/*/locations/*" + + "}/storedInfoTypes\022\277\002\n\024DeleteStoredInfoTy" + + "pe\0222.google.privacy.dlp.v2.DeleteStoredI" + + "nfoTypeRequest\032\026.google.protobuf.Empty\"\332" + + "\001\332A\004name\202\323\344\223\002\314\001*,/v2/{name=organizations" + + "/*/storedInfoTypes/*}Z:*8/v2/{name=organ" + + "izations/*/locations/*/storedInfoTypes/*" + + "}Z)*\'/v2/{name=projects/*/storedInfoType" + + "s/*}Z5*3/v2/{name=projects/*/locations/*" + + "/storedInfoTypes/*}\022\223\002\n\027ListProjectDataP" + + "rofiles\0225.google.privacy.dlp.v2.ListProj" + + "ectDataProfilesRequest\0326.google.privacy." + + "dlp.v2.ListProjectDataProfilesResponse\"\210" + + "\001\332A\006parent\202\323\344\223\002y\022/v2/{parent=organi" + + "zations/*/locations/*}/fileStoreDataProf" + + "ilesZ;\0229/v2/{parent=projects/*/locations" + + "/*}/fileStoreDataProfiles\022\212\002\n\027GetFileSto" + + "reDataProfile\0225.google.privacy.dlp.v2.Ge" + + "tFileStoreDataProfileRequest\032+.google.pr" + + "ivacy.dlp.v2.FileStoreDataProfile\"\212\001\332A\004n" + + "ame\202\323\344\223\002}\022>/v2/{name=organizations/*/loc" + + "ations/*/fileStoreDataProfiles/*}Z;\0229/v2" + + "/{name=projects/*/locations/*/fileStoreD" + + "ataProfiles/*}\022\373\001\n\032DeleteFileStoreDataPr" + + "ofile\0228.google.privacy.dlp.v2.DeleteFile" + + "StoreDataProfileRequest\032\026.google.protobu" + + "f.Empty\"\212\001\332A\004name\202\323\344\223\002}*>/v2/{name=organ" + + "izations/*/locations/*/fileStoreDataProf" + + "iles/*}Z;*9/v2/{name=projects/*/location" + + "s/*/fileStoreDataProfiles/*}\022\366\001\n\023GetTabl" + + "eDataProfile\0221.google.privacy.dlp.v2.Get" + + "TableDataProfileRequest\032\'.google.privacy" + + ".dlp.v2.TableDataProfile\"\202\001\332A\004name\202\323\344\223\002u" + + "\022:/v2/{name=organizations/*/locations/*/" + + "tableDataProfiles/*}Z7\0225/v2/{name=projec" + + "ts/*/locations/*/tableDataProfiles/*}\022\373\001", + "\n\024GetColumnDataProfile\0222.google.privacy." + + "dlp.v2.GetColumnDataProfileRequest\032(.goo" + + "gle.privacy.dlp.v2.ColumnDataProfile\"\204\001\332" + + "A\004name\202\323\344\223\002w\022;/v2/{name=organizations/*/" + + "locations/*/columnDataProfiles/*}Z8\0226/v2" + + "/{name=projects/*/locations/*/columnData" + + "Profiles/*}\022\353\001\n\026DeleteTableDataProfile\0224" + + ".google.privacy.dlp.v2.DeleteTableDataPr" + + "ofileRequest\032\026.google.protobuf.Empty\"\202\001\332" + + "A\004name\202\323\344\223\002u*:/v2/{name=organizations/*/" + + "locations/*/tableDataProfiles/*}Z7*5/v2/" + + "{name=projects/*/locations/*/tableDataPr" + + "ofiles/*}\022\303\001\n\023HybridInspectDlpJob\0221.goog" + + "le.privacy.dlp.v2.HybridInspectDlpJobReq" + + "uest\032,.google.privacy.dlp.v2.HybridInspe" + + "ctResponse\"K\332A\004name\202\323\344\223\002>\"9/v2/{name=pro" + + "jects/*/locations/*/dlpJobs/*}:hybridIns" + + "pect:\001*\022\221\001\n\014FinishDlpJob\022*.google.privac" + + "y.dlp.v2.FinishDlpJobRequest\032\026.google.pr" + + "otobuf.Empty\"=\202\323\344\223\0027\"2/v2/{name=projects" + + "/*/locations/*/dlpJobs/*}:finish:\001*\022\362\001\n\020" + + "CreateConnection\022..google.privacy.dlp.v2" + + ".CreateConnectionRequest\032!.google.privac" + + "y.dlp.v2.Connection\"\212\001\332A\022parent, connect" + + "ion\202\323\344\223\002o\"//v2/{parent=projects/*/locati" + + "ons/*}/connections:\001*Z9\"4/v2/{parent=org" + + "anizations/*/locations/*}/connections:\001*" + + "\022\327\001\n\rGetConnection\022+.google.privacy.dlp." + + "v2.GetConnectionRequest\032!.google.privacy" + + ".dlp.v2.Connection\"v\332A\004name\202\323\344\223\002i\022//v2/{" + + "name=projects/*/locations/*/connections/" + + "*}Z6\0224/v2/{name=organizations/*/location" + + "s/*/connections/*}\022\352\001\n\017ListConnections\022-" + + ".google.privacy.dlp.v2.ListConnectionsRe" + + "quest\032..google.privacy.dlp.v2.ListConnec" + + "tionsResponse\"x\332A\006parent\202\323\344\223\002i\022//v2/{par" + + "ent=projects/*/locations/*}/connectionsZ" + + "6\0224/v2/{parent=organizations/*/locations" + + "/*}/connections\022\377\001\n\021SearchConnections\022/." + + "google.privacy.dlp.v2.SearchConnectionsR" + + "equest\0320.google.privacy.dlp.v2.SearchCon" + + "nectionsResponse\"\206\001\332A\006parent\202\323\344\223\002w\0226/v2/" + + "{parent=projects/*/locations/*}/connecti" + + "ons:searchZ=\022;/v2/{parent=organizations/" + + "*/locations/*}/connections:search\022\322\001\n\020De" + + "leteConnection\022..google.privacy.dlp.v2.D" + + "eleteConnectionRequest\032\026.google.protobuf" + + ".Empty\"v\332A\004name\202\323\344\223\002i*//v2/{name=project" + + "s/*/locations/*/connections/*}Z6*4/v2/{n" + + "ame=organizations/*/locations/*/connecti" + + "ons/*}\022\343\001\n\020UpdateConnection\022..google.pri" + + "vacy.dlp.v2.UpdateConnectionRequest\032!.go" + + "ogle.privacy.dlp.v2.Connection\"|\332A\004name\202" + + "\323\344\223\002o2//v2/{name=projects/*/locations/*/" + + "connections/*}:\001*Z924/v2/{name=organizat" + + "ions/*/locations/*/connections/*}:\001*\032F\312A" + + "\022dlp.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\353\002\n\031com.goo" + + "gle.privacy.dlp.v2B\010DlpProtoP\001Z)cloud.go" + + "ogle.com/go/dlp/apiv2/dlppb;dlppb\252\002\023Goog" + + "le.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026" + + "Google::Cloud::Dlp::V2\352Ar\n\035dlp.googleapi" + + "s.com/DlpContent\022\035projects/{project}/dlp" + + "Content\0222projects/{project}/locations/{l" + + "ocation}/dlpContent\352A\\\n\'dlp.googleapis.c" + + "om/OrganizationLocation\0221organizations/{" + + "organization}/locations/{location}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java index a290f94e3c74..607e76c828b5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java @@ -516,7 +516,7 @@ public com.google.protobuf.ByteString getDatasetLocationBytes() { * * *
-   * If the resource is BigQuery, the  dataset ID.
+   * If the resource is BigQuery, the dataset ID.
    * 
* * string dataset_id = 25; @@ -539,7 +539,7 @@ public java.lang.String getDatasetId() { * * *
-   * If the resource is BigQuery, the  dataset ID.
+   * If the resource is BigQuery, the dataset ID.
    * 
* * string dataset_id = 25; @@ -567,7 +567,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
-   * If the resource is BigQuery, the BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 26; @@ -590,7 +590,7 @@ public java.lang.String getTableId() { * * *
-   * If the resource is BigQuery, the BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 26; @@ -618,7 +618,8 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-   * The resource name of the resource profiled.
+   * The Cloud Asset Inventory resource that was profiled in order to generate
+   * this TableDataProfile.
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* @@ -642,7 +643,8 @@ public java.lang.String getFullResource() { * * *
-   * The resource name of the resource profiled.
+   * The Cloud Asset Inventory resource that was profiled in order to generate
+   * this TableDataProfile.
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* @@ -3278,7 +3280,7 @@ public Builder setDatasetLocationBytes(com.google.protobuf.ByteString value) { * * *
-     * If the resource is BigQuery, the  dataset ID.
+     * If the resource is BigQuery, the dataset ID.
      * 
* * string dataset_id = 25; @@ -3300,7 +3302,7 @@ public java.lang.String getDatasetId() { * * *
-     * If the resource is BigQuery, the  dataset ID.
+     * If the resource is BigQuery, the dataset ID.
      * 
* * string dataset_id = 25; @@ -3322,7 +3324,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
-     * If the resource is BigQuery, the  dataset ID.
+     * If the resource is BigQuery, the dataset ID.
      * 
* * string dataset_id = 25; @@ -3343,7 +3345,7 @@ public Builder setDatasetId(java.lang.String value) { * * *
-     * If the resource is BigQuery, the  dataset ID.
+     * If the resource is BigQuery, the dataset ID.
      * 
* * string dataset_id = 25; @@ -3360,7 +3362,7 @@ public Builder clearDatasetId() { * * *
-     * If the resource is BigQuery, the  dataset ID.
+     * If the resource is BigQuery, the dataset ID.
      * 
* * string dataset_id = 25; @@ -3384,7 +3386,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { * * *
-     * If the resource is BigQuery, the BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 26; @@ -3406,7 +3408,7 @@ public java.lang.String getTableId() { * * *
-     * If the resource is BigQuery, the BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 26; @@ -3428,7 +3430,7 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-     * If the resource is BigQuery, the BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 26; @@ -3449,7 +3451,7 @@ public Builder setTableId(java.lang.String value) { * * *
-     * If the resource is BigQuery, the BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 26; @@ -3466,7 +3468,7 @@ public Builder clearTableId() { * * *
-     * If the resource is BigQuery, the BigQuery table ID.
+     * The table ID.
      * 
* * string table_id = 26; @@ -3490,7 +3492,8 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The resource name of the resource profiled.
+     * The Cloud Asset Inventory resource that was profiled in order to generate
+     * this TableDataProfile.
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* @@ -3513,7 +3516,8 @@ public java.lang.String getFullResource() { * * *
-     * The resource name of the resource profiled.
+     * The Cloud Asset Inventory resource that was profiled in order to generate
+     * this TableDataProfile.
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* @@ -3536,7 +3540,8 @@ public com.google.protobuf.ByteString getFullResourceBytes() { * * *
-     * The resource name of the resource profiled.
+     * The Cloud Asset Inventory resource that was profiled in order to generate
+     * this TableDataProfile.
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* @@ -3558,7 +3563,8 @@ public Builder setFullResource(java.lang.String value) { * * *
-     * The resource name of the resource profiled.
+     * The Cloud Asset Inventory resource that was profiled in order to generate
+     * this TableDataProfile.
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* @@ -3576,7 +3582,8 @@ public Builder clearFullResource() { * * *
-     * The resource name of the resource profiled.
+     * The Cloud Asset Inventory resource that was profiled in order to generate
+     * this TableDataProfile.
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java index 8fa2b9c06d61..e8548d77840f 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java @@ -167,7 +167,7 @@ public interface TableDataProfileOrBuilder * * *
-   * If the resource is BigQuery, the  dataset ID.
+   * If the resource is BigQuery, the dataset ID.
    * 
* * string dataset_id = 25; @@ -179,7 +179,7 @@ public interface TableDataProfileOrBuilder * * *
-   * If the resource is BigQuery, the  dataset ID.
+   * If the resource is BigQuery, the dataset ID.
    * 
* * string dataset_id = 25; @@ -192,7 +192,7 @@ public interface TableDataProfileOrBuilder * * *
-   * If the resource is BigQuery, the BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 26; @@ -204,7 +204,7 @@ public interface TableDataProfileOrBuilder * * *
-   * If the resource is BigQuery, the BigQuery table ID.
+   * The table ID.
    * 
* * string table_id = 26; @@ -217,7 +217,8 @@ public interface TableDataProfileOrBuilder * * *
-   * The resource name of the resource profiled.
+   * The Cloud Asset Inventory resource that was profiled in order to generate
+   * this TableDataProfile.
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* @@ -230,7 +231,8 @@ public interface TableDataProfileOrBuilder * * *
-   * The resource name of the resource profiled.
+   * The Cloud Asset Inventory resource that was profiled in order to generate
+   * this TableDataProfile.
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index 64a69fb25468..a6e7acf3c00a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -47,13 +47,9 @@ option (google.api.resource_definition) = { pattern: "organizations/{organization}/locations/{location}" }; -// The Cloud Data Loss Prevention (DLP) API is a service that allows clients -// to detect the presence of Personally Identifiable Information (PII) and other -// privacy-sensitive data in user-supplied, unstructured data streams, like text -// blocks or images. -// The service also includes methods for sensitive data redaction and -// scheduling of data scans on Google Cloud Platform based data sets. -// +// Sensitive Data Protection provides access to a powerful sensitive data +// inspection, classification, and de-identification platform that works +// on text, images, and Google Cloud storage repositories. // To learn more about concepts and find how-to guides see // https://cloud.google.com/sensitive-data-protection/docs/. service DlpService { @@ -5051,8 +5047,8 @@ message BigQueryTableTypes { repeated BigQueryTableType types = 1; } -// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, -// and SNAPSHOT are not supported. +// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and +// non-BigLake external tables are not supported. enum BigQueryTableTypeCollection { // Unused. BIG_QUERY_COLLECTION_UNSPECIFIED = 0; @@ -5070,8 +5066,8 @@ enum BigQueryTableTypeCollection { BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; } -// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, -// SNAPSHOT, and non-BigLake external tables are not supported. +// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and +// non-BigLake external tables are not supported. enum BigQueryTableType { // Unused. BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; @@ -5081,6 +5077,9 @@ enum BigQueryTableType { // A table that references data stored in Cloud Storage. BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; + + // A snapshot of a BigQuery table. + BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; } // How frequently data profiles can be updated. New options can be added at a @@ -7301,13 +7300,14 @@ message TableDataProfile { // locations. string dataset_location = 29; - // If the resource is BigQuery, the dataset ID. + // If the resource is BigQuery, the dataset ID. string dataset_id = 25; - // If the resource is BigQuery, the BigQuery table ID. + // The table ID. string table_id = 26; - // The resource name of the resource profiled. + // The Cloud Asset Inventory resource that was profiled in order to generate + // this TableDataProfile. // https://cloud.google.com/apis/design/resource_names#full_resource_name string full_resource = 3; @@ -7566,15 +7566,15 @@ message ColumnDataProfile { // The Google Cloud project ID that owns the profiled resource. string dataset_project_id = 19; - // The BigQuery location where the dataset's data is stored. + // If supported, the location where the dataset's data is stored. // See https://cloud.google.com/bigquery/docs/locations for supported - // locations. + // BigQuery locations. string dataset_location = 20; - // The BigQuery dataset ID. + // The BigQuery dataset ID, if the resource profiled is a BigQuery table. string dataset_id = 21; - // The BigQuery table ID. + // The table ID. string table_id = 22; // The name of the column. diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateSetCredentialsProvider1.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index dfb879a96310..000000000000 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dlp.v2.samples; - -// [START dlp_v2_generated_DlpService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.dlp.v2.DlpServiceClient; -import com.google.cloud.dlp.v2.DlpServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DlpServiceSettings dlpServiceSettings = DlpServiceSettings.newHttpJsonBuilder().build(); - DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings); - } -} -// [END dlp_v2_generated_DlpService_Create_SetCredentialsProvider1_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateUseHttpJsonTransport.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ef460a1a700b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.cloud.dlp.v2.DlpServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DlpServiceSettings dlpServiceSettings = DlpServiceSettings.newHttpJsonBuilder().build(); + DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings); + } +} +// [END dlp_v2_generated_DlpService_Create_UseHttpJsonTransport_sync] diff --git a/java-dms/README.md b/java-dms/README.md index 3cfdc3241a21..b221d4cd95e7 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json b/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json index d50a38ff5b59..f095f107e7e8 100644 --- a/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json +++ b/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.clouddms.v1.AlloyDbConnectionProfile", "queryAllDeclaredConstructors": true, diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 55cfa026cb2d..4ebcb6bb9a24 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.56.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index 99bfa38d59a4..f5774d72d56a 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java @@ -1057,7 +1057,9 @@ public static class Builder "retry_policy_0_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.RESOURCE_EXHAUSTED))); definitions.put( "retry_policy_1_codes", ImmutableSet.copyOf( @@ -1074,9 +1076,9 @@ public static class Builder RetrySettings settings = null; settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(9.0) + .setMaxRetryDelay(Duration.ofMillis(90000L)) .setInitialRpcTimeout(Duration.ofMillis(300000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(300000L)) @@ -1085,8 +1087,8 @@ public static class Builder definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(120000L)) .setRpcTimeoutMultiplier(1.0) diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index 4b650a9ba59f..11929713c72a 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java @@ -1093,7 +1093,9 @@ public static class Builder "retry_policy_0_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.RESOURCE_EXHAUSTED))); definitions.put( "retry_policy_1_codes", ImmutableSet.copyOf( @@ -1110,9 +1112,9 @@ public static class Builder RetrySettings settings = null; settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(9.0) + .setMaxRetryDelay(Duration.ofMillis(90000L)) .setInitialRpcTimeout(Duration.ofMillis(300000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(300000L)) @@ -1121,8 +1123,8 @@ public static class Builder definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(120000L)) .setRpcTimeoutMultiplier(1.0) diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json index 2d6e0837b13c..7d273dca8710 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1.Barcode", "queryAllDeclaredConstructors": true, diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json index 30972fdd9a44..e1abcaf17b9d 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.Barcode", "queryAllDeclaredConstructors": true, diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java index cf126a9874f2..66ac53096b41 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java @@ -485,6 +485,8 @@ public void getDatasetSchemaTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -530,6 +532,8 @@ public void getDatasetSchemaTest2() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -577,6 +581,8 @@ public void updateDatasetSchemaTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -584,6 +590,8 @@ public void updateDatasetSchemaTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -617,6 +625,8 @@ public void updateDatasetSchemaExceptionTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDatasetSchema(datasetSchema, updateMask); diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java index 1f676dfca87f..ce42e500a811 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java @@ -440,6 +440,8 @@ public void getDatasetSchemaTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockDocumentService.addResponse(expectedResponse); @@ -479,6 +481,8 @@ public void getDatasetSchemaTest2() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockDocumentService.addResponse(expectedResponse); @@ -518,6 +522,8 @@ public void updateDatasetSchemaTest() throws Exception { DatasetSchema.newBuilder() .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) .setDocumentSchema(DocumentSchema.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockDocumentService.addResponse(expectedResponse); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfig.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfig.java index ddb2398ff931..af338f572a46 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfig.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfig.java @@ -1881,7 +1881,7 @@ public boolean getEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1/document_io.proto;l=165 + * google/cloud/documentai/v1/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Override @@ -3101,7 +3101,7 @@ public Builder clearEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1/document_io.proto;l=165 + * google/cloud/documentai/v1/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Override @@ -3122,7 +3122,7 @@ public boolean getComputeStyleInfo() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1/document_io.proto;l=165 + * google/cloud/documentai/v1/document_io.proto;l=166 * @param value The computeStyleInfo to set. * @return This builder for chaining. */ @@ -3147,7 +3147,7 @@ public Builder setComputeStyleInfo(boolean value) { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1/document_io.proto;l=165 + * google/cloud/documentai/v1/document_io.proto;l=166 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfigOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfigOrBuilder.java index a41f8a98bcd3..35ac38b88292 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfigOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OcrConfigOrBuilder.java @@ -189,7 +189,7 @@ public interface OcrConfigOrBuilder * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1/document_io.proto;l=165 + * google/cloud/documentai/v1/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto index a84bfc4fba6a..b18537f30b94 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto @@ -66,7 +66,8 @@ message GcsPrefix { // The common config to specify a set of documents used as input. message BatchDocumentsInputConfig { - // The source. + // The source. Make sure that the caller of the API has storage.objects.get + // access to the buckets. oneof source { // The set of documents that match the specified Cloud Storage `gcs_prefix`. GcsPrefix gcs_prefix = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto index a39ba6ded052..03ca47302663 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto @@ -359,8 +359,9 @@ message ProcessOptions { // If a page range is set, only the given pages are extracted and processed // from the document. In the output document, // [Document.Page.page_number][google.cloud.documentai.v1.Document.Page.page_number] - // refers to the page number in the original document. This configuration - // only applies to sync requests. + // refers to the page number in the original document. + // This configuration only applies to online processing with + // [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]. oneof page_range { // Which pages to process (1-indexed). IndividualPageSelector individual_page_selector = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java index edd5560e8e7f..99be90a5986f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java @@ -427,7 +427,7 @@ public interface IndividualProcessStatusOrBuilder * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -448,7 +448,7 @@ public interface IndividualProcessStatusOrBuilder * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -715,7 +715,7 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The humanReviewOperation. */ @java.lang.Override @@ -747,7 +747,7 @@ public java.lang.String getHumanReviewOperation() { * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -1742,7 +1742,7 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -1774,7 +1774,7 @@ public java.lang.String getHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -1806,7 +1806,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -1837,7 +1837,7 @@ public Builder setHumanReviewOperation(java.lang.String value) { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1864,7 +1864,7 @@ public Builder clearHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=636 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=637 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java index 4538a1004f17..971f28906ffe 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java @@ -1848,7 +1848,7 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -1868,7 +1868,7 @@ public boolean hasOutputConfig() { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return The outputConfig. */ @java.lang.Override @@ -3445,7 +3445,7 @@ public Builder removeInputConfigs(int index) { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -3464,7 +3464,7 @@ public boolean hasOutputConfig() { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return The outputConfig. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java index d6a72a0d1bca..b3b7f5acb061 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java @@ -147,7 +147,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -164,7 +164,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=580 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=581 * @return The outputConfig. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java index 8d0f38594399..fcf38a9ce63f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java @@ -124,28 +124,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "i.v1beta3.RevisionRef\032C\n\024GCSManagedDocum" + "entId\022\024\n\007gcs_uri\030\001 \001(\tB\003\340A\002\022\025\n\tcw_doc_id" + "\030\002 \001(\tB\002\030\001\032*\n\023UnmanagedDocumentId\022\023\n\006doc" - + "_id\030\001 \001(\tB\003\340A\002B\006\n\004type\"\361\001\n\rDatasetSchema" + + "_id\030\001 \001(\tB\003\340A\002B\006\n\004type\"\251\002\n\rDatasetSchema" + "\022\014\n\004name\030\001 \001(\t\022M\n\017document_schema\030\003 \001(\0132" + "/.google.cloud.documentai.v1beta3.Docume" - + "ntSchemaB\003\340A\001:\202\001\352A\177\n\'documentai.googleap" - + "is.com/DatasetSchema\022Tprojects/{project}" - + "/locations/{location}/processors/{proces" - + "sor}/dataset/datasetSchema\"\207\002\n\025BatchData" - + "setDocuments\022o\n\027individual_document_ids\030" - + "\001 \001(\0132L.google.cloud.documentai.v1beta3." - + "BatchDatasetDocuments.IndividualDocument" - + "IdsH\000\022\020\n\006filter\030\002 \001(\tH\000\032_\n\025IndividualDoc" - + "umentIds\022F\n\014document_ids\030\001 \003(\0132+.google." - + "cloud.documentai.v1beta3.DocumentIdB\003\340A\002" - + "B\n\n\010criteriaB\310\002\n#com.google.cloud.docume" - + "ntai.v1beta3B\014DatasetProtoP\001ZCcloud.goog" - + "le.com/go/documentai/apiv1beta3/document" - + "aipb;documentaipb\252\002\037Google.Cloud.Documen" - + "tAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1" - + "beta3\352\002\"Google::Cloud::DocumentAI::V1bet" - + "a3\352Ab\n&contentwarehouse.googleapis.com/S" - + "chema\0228projects/{project}/locations/{loc" - + "ation}/schemas/{schema}b\006proto3" + + "ntSchemaB\003\340A\001\022\032\n\rsatisfies_pzs\030\004 \001(\010B\003\340A" + + "\003\022\032\n\rsatisfies_pzi\030\005 \001(\010B\003\340A\003:\202\001\352A\177\n\'doc" + + "umentai.googleapis.com/DatasetSchema\022Tpr" + + "ojects/{project}/locations/{location}/pr" + + "ocessors/{processor}/dataset/datasetSche" + + "ma\"\207\002\n\025BatchDatasetDocuments\022o\n\027individu" + + "al_document_ids\030\001 \001(\0132L.google.cloud.doc" + + "umentai.v1beta3.BatchDatasetDocuments.In" + + "dividualDocumentIdsH\000\022\020\n\006filter\030\002 \001(\tH\000\032" + + "_\n\025IndividualDocumentIds\022F\n\014document_ids" + + "\030\001 \003(\0132+.google.cloud.documentai.v1beta3" + + ".DocumentIdB\003\340A\002B\n\n\010criteriaB\310\002\n#com.goo" + + "gle.cloud.documentai.v1beta3B\014DatasetPro" + + "toP\001ZCcloud.google.com/go/documentai/api" + + "v1beta3/documentaipb;documentaipb\252\002\037Goog" + + "le.Cloud.DocumentAI.V1Beta3\312\002\037Google\\Clo" + + "ud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::D" + + "ocumentAI::V1beta3\352Ab\n&contentwarehouse." + + "googleapis.com/Schema\0228projects/{project" + + "}/locations/{location}/schemas/{schema}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -236,7 +238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor, new java.lang.String[] { - "Name", "DocumentSchema", + "Name", "DocumentSchema", "SatisfiesPzs", "SatisfiesPzi", }); internal_static_google_cloud_documentai_v1beta3_BatchDatasetDocuments_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java index 562b2956a888..ea7ec01c7129 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java @@ -175,6 +175,42 @@ public com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder getDocumentSc : documentSchema_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 4; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 5; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -195,6 +231,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getDocumentSchema()); } + if (satisfiesPzs_ != false) { + output.writeBool(4, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(5, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -210,6 +252,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDocumentSchema()); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -231,6 +279,8 @@ public boolean equals(final java.lang.Object obj) { if (hasDocumentSchema()) { if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,6 +298,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getDocumentSchema().hashCode(); } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -402,6 +456,8 @@ public Builder clear() { documentSchemaBuilder_.dispose(); documentSchemaBuilder_ = null; } + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -447,6 +503,12 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.DatasetSchema res documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -504,6 +566,12 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.DatasetSchema other if (other.hasDocumentSchema()) { mergeDocumentSchema(other.getDocumentSchema()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -542,6 +610,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 32: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -883,6 +963,112 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Builder getDocumentSch return documentSchemaBuilder_; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000004); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000008); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java index 60b0a8c3ba49..57c163466096 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java @@ -93,4 +93,30 @@ public interface DatasetSchemaOrBuilder * */ com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java index 3fc7dd94bdec..2566b3b82224 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java @@ -1889,7 +1889,7 @@ public boolean getEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=165 + * google/cloud/documentai/v1beta3/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Override @@ -3110,7 +3110,7 @@ public Builder clearEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=165 + * google/cloud/documentai/v1beta3/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Override @@ -3131,7 +3131,7 @@ public boolean getComputeStyleInfo() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=165 + * google/cloud/documentai/v1beta3/document_io.proto;l=166 * @param value The computeStyleInfo to set. * @return This builder for chaining. */ @@ -3156,7 +3156,7 @@ public Builder setComputeStyleInfo(boolean value) { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=165 + * google/cloud/documentai/v1beta3/document_io.proto;l=166 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java index 99e438df5b46..3aba01a081bc 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java @@ -189,7 +189,7 @@ public interface OcrConfigOrBuilder * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=165 + * google/cloud/documentai/v1beta3/document_io.proto;l=166 * @return The computeStyleInfo. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java index acc95f043692..e3e6682eeafe 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java @@ -371,7 +371,7 @@ public com.google.protobuf.ByteString getNameBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return Whether the document field is set. */ @java.lang.Override @@ -392,7 +392,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return The document. */ @java.lang.Override @@ -2182,7 +2182,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -2202,7 +2202,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java index 4c0dd1e067f7..7d5a0fb85d06 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java @@ -189,7 +189,7 @@ public interface ProcessRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -207,7 +207,7 @@ public interface ProcessRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=451 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=452 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java index 27164f541615..59346d687b5a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java @@ -136,7 +136,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The humanReviewOperation. */ @java.lang.Override @@ -165,7 +165,7 @@ public java.lang.String getHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -866,7 +866,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ public java.lang.String getHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -922,7 +922,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -949,7 +949,7 @@ public Builder setHumanReviewOperation(java.lang.String value) { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return This builder for chaining. */ @java.lang.Deprecated @@ -972,7 +972,7 @@ public Builder clearHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java index 96b10f7dd298..f7b3b509782c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java @@ -75,7 +75,7 @@ public interface ProcessResponseOrBuilder * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -93,7 +93,7 @@ public interface ProcessResponseOrBuilder * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=529 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=530 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java index 99e90da6aa31..cb42320fd6df 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java @@ -374,7 +374,7 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return Whether the document field is set. */ @java.lang.Override @@ -392,7 +392,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return The document. */ @java.lang.Override @@ -1413,7 +1413,7 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -1430,7 +1430,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java index da422c76c9a5..4334fc8a24db 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java @@ -102,7 +102,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -117,7 +117,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1201 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1202 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto index 25e3d24b176b..220a3b42e432 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto @@ -174,6 +174,12 @@ message DatasetSchema { // Optional. Schema of the dataset. DocumentSchema document_schema = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Dataset documents that the batch operation will be applied to. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto index edb1364b266d..d0db0252fd64 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto @@ -66,7 +66,8 @@ message GcsPrefix { // The common config to specify a set of documents used as input. message BatchDocumentsInputConfig { - // The source. + // The source. Make sure that the caller of the API has storage.objects.get + // access to the buckets. oneof source { // The set of documents that match the specified Cloud Storage `gcs_prefix`. GcsPrefix gcs_prefix = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto index 31b5182f9c0b..b84d38643d31 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -384,8 +384,9 @@ message ProcessOptions { // If a page range is set, only the given pages are extracted and processed // from the document. In the output document, // [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number] - // refers to the page number in the original document. This configuration - // only applies to sync requests. + // refers to the page number in the original document. + // This configuration only applies to online processing with + // [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]. oneof page_range { // Which pages to process (1-indexed). IndividualPageSelector individual_page_selector = 5; diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7d93bd338618..000000000000 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.documentai.v1.samples; - -// [START documentai_v1_generated_DocumentProcessorService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.documentai.v1.DocumentProcessorServiceClient; -import com.google.cloud.documentai.v1.DocumentProcessorServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentProcessorServiceSettings documentProcessorServiceSettings = - DocumentProcessorServiceSettings.newHttpJsonBuilder().build(); - DocumentProcessorServiceClient documentProcessorServiceClient = - DocumentProcessorServiceClient.create(documentProcessorServiceSettings); - } -} -// [END documentai_v1_generated_DocumentProcessorService_Create_SetCredentialsProvider1_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3bd9e3f5842f --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.documentai.v1.samples; + +// [START documentai_v1_generated_DocumentProcessorService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.documentai.v1.DocumentProcessorServiceClient; +import com.google.cloud.documentai.v1.DocumentProcessorServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentProcessorServiceSettings documentProcessorServiceSettings = + DocumentProcessorServiceSettings.newHttpJsonBuilder().build(); + DocumentProcessorServiceClient documentProcessorServiceClient = + DocumentProcessorServiceClient.create(documentProcessorServiceSettings); + } +} +// [END documentai_v1_generated_DocumentProcessorService_Create_UseHttpJsonTransport_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0d6c35127df8..000000000000 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.documentai.v1beta3.samples; - -// [START documentai_v1beta3_generated_DocumentProcessorService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceClient; -import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentProcessorServiceSettings documentProcessorServiceSettings = - DocumentProcessorServiceSettings.newHttpJsonBuilder().build(); - DocumentProcessorServiceClient documentProcessorServiceClient = - DocumentProcessorServiceClient.create(documentProcessorServiceSettings); - } -} -// [END documentai_v1beta3_generated_DocumentProcessorService_Create_SetCredentialsProvider1_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..628f4b920352 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.documentai.v1beta3.samples; + +// [START documentai_v1beta3_generated_DocumentProcessorService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceClient; +import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentProcessorServiceSettings documentProcessorServiceSettings = + DocumentProcessorServiceSettings.newHttpJsonBuilder().build(); + DocumentProcessorServiceClient documentProcessorServiceClient = + DocumentProcessorServiceClient.create(documentProcessorServiceSettings); + } +} +// [END documentai_v1beta3_generated_DocumentProcessorService_Create_UseHttpJsonTransport_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9b5d3c6f65e2..000000000000 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.documentai.v1beta3.samples; - -// [START documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.documentai.v1beta3.DocumentServiceClient; -import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DocumentServiceSettings documentServiceSettings = - DocumentServiceSettings.newHttpJsonBuilder().build(); - DocumentServiceClient documentServiceClient = - DocumentServiceClient.create(documentServiceSettings); - } -} -// [END documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateUseHttpJsonTransport.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e8ef3887897a --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.documentai.v1beta3.samples; + +// [START documentai_v1beta3_generated_DocumentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END documentai_v1beta3_generated_DocumentService_Create_UseHttpJsonTransport_sync] diff --git a/java-domains/README.md b/java-domains/README.md index c6f514fdd49c..fd4a5d855f21 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1/reflect-config.json b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1/reflect-config.json index 909a7e21daca..40821491e274 100644 --- a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1/reflect-config.json +++ b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.domains.v1.AuthorizationCode", "queryAllDeclaredConstructors": true, diff --git a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1alpha2/reflect-config.json b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1alpha2/reflect-config.json index 48ad7a4ce9d6..894eb8dc63b5 100644 --- a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1alpha2/reflect-config.json +++ b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1alpha2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.domains.v1alpha2.AuthorizationCode", "queryAllDeclaredConstructors": true, diff --git a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1beta1/reflect-config.json b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1beta1/reflect-config.json index 1ef45d20e973..bef1430ebe85 100644 --- a/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1beta1/reflect-config.json +++ b/java-domains/google-cloud-domains/src/main/resources/META-INF/native-image/com.google.cloud.domains.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.domains.v1beta1.AuthorizationCode", "queryAllDeclaredConstructors": true, diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateSetCredentialsProvider1.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b0f83f99bb08..000000000000 --- a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1.samples; - -// [START domains_v1_generated_Domains_Create_SetCredentialsProvider1_sync] -import com.google.cloud.domains.v1.DomainsClient; -import com.google.cloud.domains.v1.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1_generated_Domains_Create_SetCredentialsProvider1_sync] diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateUseHttpJsonTransport.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a258b99cd16b --- /dev/null +++ b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1/domains/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.domains.v1.samples; + +// [START domains_v1_generated_Domains_Create_UseHttpJsonTransport_sync] +import com.google.cloud.domains.v1.DomainsClient; +import com.google.cloud.domains.v1.DomainsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); + DomainsClient domainsClient = DomainsClient.create(domainsSettings); + } +} +// [END domains_v1_generated_Domains_Create_UseHttpJsonTransport_sync] diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateSetCredentialsProvider1.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 238f966861c4..000000000000 --- a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1alpha2.samples; - -// [START domains_v1alpha2_generated_Domains_Create_SetCredentialsProvider1_sync] -import com.google.cloud.domains.v1alpha2.DomainsClient; -import com.google.cloud.domains.v1alpha2.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1alpha2_generated_Domains_Create_SetCredentialsProvider1_sync] diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateUseHttpJsonTransport.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b6c6e4788409 --- /dev/null +++ b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1alpha2/domains/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.domains.v1alpha2.samples; + +// [START domains_v1alpha2_generated_Domains_Create_UseHttpJsonTransport_sync] +import com.google.cloud.domains.v1alpha2.DomainsClient; +import com.google.cloud.domains.v1alpha2.DomainsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); + DomainsClient domainsClient = DomainsClient.create(domainsSettings); + } +} +// [END domains_v1alpha2_generated_Domains_Create_UseHttpJsonTransport_sync] diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateSetCredentialsProvider1.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0cc2b23b8157..000000000000 --- a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.domains.v1beta1.samples; - -// [START domains_v1beta1_generated_Domains_Create_SetCredentialsProvider1_sync] -import com.google.cloud.domains.v1beta1.DomainsClient; -import com.google.cloud.domains.v1beta1.DomainsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); - DomainsClient domainsClient = DomainsClient.create(domainsSettings); - } -} -// [END domains_v1beta1_generated_Domains_Create_SetCredentialsProvider1_sync] diff --git a/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateUseHttpJsonTransport.java b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1ac29561449d --- /dev/null +++ b/java-domains/samples/snippets/generated/com/google/cloud/domains/v1beta1/domains/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.domains.v1beta1.samples; + +// [START domains_v1beta1_generated_Domains_Create_UseHttpJsonTransport_sync] +import com.google.cloud.domains.v1beta1.DomainsClient; +import com.google.cloud.domains.v1beta1.DomainsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DomainsSettings domainsSettings = DomainsSettings.newHttpJsonBuilder().build(); + DomainsClient domainsClient = DomainsClient.create(domainsSettings); + } +} +// [END domains_v1beta1_generated_Domains_Create_UseHttpJsonTransport_sync] diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index d14fb6b96695..0c659a20defb 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.20.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json b/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json index afaf053e156c..8c5a714d7800 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.edgenetwork.v1.CreateInterconnectAttachmentRequest", "queryAllDeclaredConstructors": true, diff --git a/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateSetCredentialsProvider1.java b/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 365739cb3a68..000000000000 --- a/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.edgenetwork.v1.samples; - -// [START edgenetwork_v1_generated_EdgeNetwork_Create_SetCredentialsProvider1_sync] -import com.google.cloud.edgenetwork.v1.EdgeNetworkClient; -import com.google.cloud.edgenetwork.v1.EdgeNetworkSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EdgeNetworkSettings edgeNetworkSettings = EdgeNetworkSettings.newHttpJsonBuilder().build(); - EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings); - } -} -// [END edgenetwork_v1_generated_EdgeNetwork_Create_SetCredentialsProvider1_sync] diff --git a/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateUseHttpJsonTransport.java b/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d210569b69d0 --- /dev/null +++ b/java-edgenetwork/samples/snippets/generated/com/google/cloud/edgenetwork/v1/edgenetwork/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.edgenetwork.v1.samples; + +// [START edgenetwork_v1_generated_EdgeNetwork_Create_UseHttpJsonTransport_sync] +import com.google.cloud.edgenetwork.v1.EdgeNetworkClient; +import com.google.cloud.edgenetwork.v1.EdgeNetworkSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EdgeNetworkSettings edgeNetworkSettings = EdgeNetworkSettings.newHttpJsonBuilder().build(); + EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.create(edgeNetworkSettings); + } +} +// [END edgenetwork_v1_generated_EdgeNetwork_Create_UseHttpJsonTransport_sync] diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 8a37003beb26..d9b0e7f26a0b 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.48.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/resources/META-INF/native-image/com.google.cloud.enterpriseknowledgegraph.v1/reflect-config.json b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/resources/META-INF/native-image/com.google.cloud.enterpriseknowledgegraph.v1/reflect-config.json index f0a13b9849b6..e3da0fb34921 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/resources/META-INF/native-image/com.google.cloud.enterpriseknowledgegraph.v1/reflect-config.json +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/resources/META-INF/native-image/com.google.cloud.enterpriseknowledgegraph.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.enterpriseknowledgegraph.v1.AffinityClusteringConfig", "queryAllDeclaredConstructors": true, diff --git a/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateSetCredentialsProvider1.java b/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d217e4bd39e7..000000000000 --- a/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.enterpriseknowledgegraph.v1.samples; - -// [START enterpriseknowledgegraph_v1_generated_EnterpriseKnowledgeGraphService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient; -import com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnterpriseKnowledgeGraphServiceSettings enterpriseKnowledgeGraphServiceSettings = - EnterpriseKnowledgeGraphServiceSettings.newHttpJsonBuilder().build(); - EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient = - EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings); - } -} -// [END enterpriseknowledgegraph_v1_generated_EnterpriseKnowledgeGraphService_Create_SetCredentialsProvider1_sync] diff --git a/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateUseHttpJsonTransport.java b/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..63f767af833f --- /dev/null +++ b/java-enterpriseknowledgegraph/samples/snippets/generated/com/google/cloud/enterpriseknowledgegraph/v1/enterpriseknowledgegraphservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.enterpriseknowledgegraph.v1.samples; + +// [START enterpriseknowledgegraph_v1_generated_EnterpriseKnowledgeGraphService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceClient; +import com.google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnterpriseKnowledgeGraphServiceSettings enterpriseKnowledgeGraphServiceSettings = + EnterpriseKnowledgeGraphServiceSettings.newHttpJsonBuilder().build(); + EnterpriseKnowledgeGraphServiceClient enterpriseKnowledgeGraphServiceClient = + EnterpriseKnowledgeGraphServiceClient.create(enterpriseKnowledgeGraphServiceSettings); + } +} +// [END enterpriseknowledgegraph_v1_generated_EnterpriseKnowledgeGraphService_Create_UseHttpJsonTransport_sync] diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 865eee4831d8..ae5e62df4d8a 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.173.0-beta" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.172.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.173.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/resources/META-INF/native-image/com.google.devtools.clouderrorreporting.v1beta1/reflect-config.json b/java-errorreporting/google-cloud-errorreporting/src/main/resources/META-INF/native-image/com.google.devtools.clouderrorreporting.v1beta1/reflect-config.json index 9f61e3c1f2b1..f45bed2ca1c0 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/resources/META-INF/native-image/com.google.devtools.clouderrorreporting.v1beta1/reflect-config.json +++ b/java-errorreporting/google-cloud-errorreporting/src/main/resources/META-INF/native-image/com.google.devtools.clouderrorreporting.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateSetCredentialsProvider1.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 807ab11f906f..000000000000 --- a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.clouderrorreporting.v1beta1.samples; - -// [START clouderrorreporting_v1beta1_generated_ErrorGroupService_Create_SetCredentialsProvider1_sync] -import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupServiceClient; -import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ErrorGroupServiceSettings errorGroupServiceSettings = - ErrorGroupServiceSettings.newHttpJsonBuilder().build(); - ErrorGroupServiceClient errorGroupServiceClient = - ErrorGroupServiceClient.create(errorGroupServiceSettings); - } -} -// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_Create_SetCredentialsProvider1_sync] diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateUseHttpJsonTransport.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..59bfa611939e --- /dev/null +++ b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorgroupservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.clouderrorreporting.v1beta1.samples; + +// [START clouderrorreporting_v1beta1_generated_ErrorGroupService_Create_UseHttpJsonTransport_sync] +import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupServiceClient; +import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ErrorGroupServiceSettings errorGroupServiceSettings = + ErrorGroupServiceSettings.newHttpJsonBuilder().build(); + ErrorGroupServiceClient errorGroupServiceClient = + ErrorGroupServiceClient.create(errorGroupServiceSettings); + } +} +// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_Create_UseHttpJsonTransport_sync] diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateSetCredentialsProvider1.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3f8f65656e6a..000000000000 --- a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.clouderrorreporting.v1beta1.samples; - -// [START clouderrorreporting_v1beta1_generated_ErrorStatsService_Create_SetCredentialsProvider1_sync] -import com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceClient; -import com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ErrorStatsServiceSettings errorStatsServiceSettings = - ErrorStatsServiceSettings.newHttpJsonBuilder().build(); - ErrorStatsServiceClient errorStatsServiceClient = - ErrorStatsServiceClient.create(errorStatsServiceSettings); - } -} -// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_Create_SetCredentialsProvider1_sync] diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateUseHttpJsonTransport.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e12b7b6c4e42 --- /dev/null +++ b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/errorstatsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.clouderrorreporting.v1beta1.samples; + +// [START clouderrorreporting_v1beta1_generated_ErrorStatsService_Create_UseHttpJsonTransport_sync] +import com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceClient; +import com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ErrorStatsServiceSettings errorStatsServiceSettings = + ErrorStatsServiceSettings.newHttpJsonBuilder().build(); + ErrorStatsServiceClient errorStatsServiceClient = + ErrorStatsServiceClient.create(errorStatsServiceSettings); + } +} +// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_Create_UseHttpJsonTransport_sync] diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateSetCredentialsProvider1.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f343d39914db..000000000000 --- a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.clouderrorreporting.v1beta1.samples; - -// [START clouderrorreporting_v1beta1_generated_ReportErrorsService_Create_SetCredentialsProvider1_sync] -import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceClient; -import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ReportErrorsServiceSettings reportErrorsServiceSettings = - ReportErrorsServiceSettings.newHttpJsonBuilder().build(); - ReportErrorsServiceClient reportErrorsServiceClient = - ReportErrorsServiceClient.create(reportErrorsServiceSettings); - } -} -// [END clouderrorreporting_v1beta1_generated_ReportErrorsService_Create_SetCredentialsProvider1_sync] diff --git a/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateUseHttpJsonTransport.java b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a12f07cdac7f --- /dev/null +++ b/java-errorreporting/samples/snippets/generated/com/google/devtools/clouderrorreporting/v1beta1/reporterrorsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.clouderrorreporting.v1beta1.samples; + +// [START clouderrorreporting_v1beta1_generated_ReportErrorsService_Create_UseHttpJsonTransport_sync] +import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceClient; +import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReportErrorsServiceSettings reportErrorsServiceSettings = + ReportErrorsServiceSettings.newHttpJsonBuilder().build(); + ReportErrorsServiceClient reportErrorsServiceClient = + ReportErrorsServiceClient.create(reportErrorsServiceSettings); + } +} +// [END clouderrorreporting_v1beta1_generated_ReportErrorsService_Create_UseHttpJsonTransport_sync] diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index f39435834963..4f3425cee7d8 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/resources/META-INF/native-image/com.google.cloud.essentialcontacts.v1/reflect-config.json b/java-essential-contacts/google-cloud-essential-contacts/src/main/resources/META-INF/native-image/com.google.cloud.essentialcontacts.v1/reflect-config.json index f17e681213ca..3367c4c38ad5 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/resources/META-INF/native-image/com.google.cloud.essentialcontacts.v1/reflect-config.json +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/resources/META-INF/native-image/com.google.cloud.essentialcontacts.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.essentialcontacts.v1.ComputeContactsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java index d8a3c2d481dc..1d7c0106da1d 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java @@ -358,11 +358,13 @@ public com.google.protobuf.ByteString getLanguageTagBytes() { * * *
-   * The validity of the contact. A contact is considered valid if it is the
-   * correct recipient for notifications for a particular resource.
+   * Output only. The validity of the contact. A contact is considered valid if
+   * it is the correct recipient for notifications for a particular resource.
    * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for validationState. */ @@ -374,11 +376,13 @@ public int getValidationStateValue() { * * *
-   * The validity of the contact. A contact is considered valid if it is the
-   * correct recipient for notifications for a particular resource.
+   * Output only. The validity of the contact. A contact is considered valid if
+   * it is the correct recipient for notifications for a particular resource.
    * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The validationState. */ @@ -1592,11 +1596,13 @@ public Builder setLanguageTagBytes(com.google.protobuf.ByteString value) { * * *
-     * The validity of the contact. A contact is considered valid if it is the
-     * correct recipient for notifications for a particular resource.
+     * Output only. The validity of the contact. A contact is considered valid if
+     * it is the correct recipient for notifications for a particular resource.
      * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for validationState. */ @@ -1608,11 +1614,13 @@ public int getValidationStateValue() { * * *
-     * The validity of the contact. A contact is considered valid if it is the
-     * correct recipient for notifications for a particular resource.
+     * Output only. The validity of the contact. A contact is considered valid if
+     * it is the correct recipient for notifications for a particular resource.
      * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for validationState to set. * @return This builder for chaining. @@ -1627,11 +1635,13 @@ public Builder setValidationStateValue(int value) { * * *
-     * The validity of the contact. A contact is considered valid if it is the
-     * correct recipient for notifications for a particular resource.
+     * Output only. The validity of the contact. A contact is considered valid if
+     * it is the correct recipient for notifications for a particular resource.
      * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The validationState. */ @@ -1647,11 +1657,13 @@ public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState( * * *
-     * The validity of the contact. A contact is considered valid if it is the
-     * correct recipient for notifications for a particular resource.
+     * Output only. The validity of the contact. A contact is considered valid if
+     * it is the correct recipient for notifications for a particular resource.
      * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The validationState to set. * @return This builder for chaining. @@ -1669,11 +1681,13 @@ public Builder setValidationState(com.google.cloud.essentialcontacts.v1.Validati * * *
-     * The validity of the contact. A contact is considered valid if it is the
-     * correct recipient for notifications for a particular resource.
+     * Output only. The validity of the contact. A contact is considered valid if
+     * it is the correct recipient for notifications for a particular resource.
      * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java index 6e401181e0f9..b3e172f3e7c1 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java @@ -195,11 +195,13 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego * * *
-   * The validity of the contact. A contact is considered valid if it is the
-   * correct recipient for notifications for a particular resource.
+   * Output only. The validity of the contact. A contact is considered valid if
+   * it is the correct recipient for notifications for a particular resource.
    * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for validationState. */ @@ -208,11 +210,13 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego * * *
-   * The validity of the contact. A contact is considered valid if it is the
-   * correct recipient for notifications for a particular resource.
+   * Output only. The validity of the contact. A contact is considered valid if
+   * it is the correct recipient for notifications for a particular resource.
    * 
* - * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * + * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The validationState. */ diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java index d282b1f7e34d..5fd87fafddc9 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java @@ -85,109 +85,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/essentialcontacts/v1/enums" + ".proto\032\033google/protobuf/empty.proto\032 goo" + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\345\003\n\007Contact\022\021\n\004na" + + "otobuf/timestamp.proto\"\352\003\n\007Contact\022\021\n\004na" + "me\030\001 \001(\tB\003\340A\003\022\022\n\005email\030\002 \001(\tB\003\340A\002\022i\n#not" + "ification_category_subscriptions\030\003 \003(\01627" + ".google.cloud.essentialcontacts.v1.Notif" + "icationCategoryB\003\340A\002\022\031\n\014language_tag\030\004 \001" - + "(\tB\003\340A\002\022L\n\020validation_state\030\010 \001(\01622.goog" + + "(\tB\003\340A\002\022Q\n\020validation_state\030\010 \001(\01622.goog" + "le.cloud.essentialcontacts.v1.Validation" - + "State\0221\n\rvalidate_time\030\t \001(\0132\032.google.pr" - + "otobuf.Timestamp:\253\001\352A\247\001\n(essentialcontac" - + "ts.googleapis.com/Contact\022%projects/{pro" - + "ject}/contacts/{contact}\022#folders/{folde" - + "r}/contacts/{contact}\022/organizations/{or" - + "ganization}/contacts/{contact}\"\210\001\n\023ListC" - + "ontactsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(" - + "essentialcontacts.googleapis.com/Contact" - + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" - + " \001(\tB\003\340A\001\"m\n\024ListContactsResponse\022<\n\010con" - + "tacts\030\001 \003(\0132*.google.cloud.essentialcont" - + "acts.v1.Contact\022\027\n\017next_page_token\030\002 \001(\t" - + "\"S\n\021GetContactRequest\022>\n\004name\030\001 \001(\tB0\340A\002" - + "\372A*\n(essentialcontacts.googleapis.com/Co" - + "ntact\"V\n\024DeleteContactRequest\022>\n\004name\030\001 " - + "\001(\tB0\340A\002\372A*\n(essentialcontacts.googleapi" - + "s.com/Contact\"\232\001\n\024CreateContactRequest\022@" - + "\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialcontact" - + "s.googleapis.com/Contact\022@\n\007contact\030\002 \001(" - + "\0132*.google.cloud.essentialcontacts.v1.Co" - + "ntactB\003\340A\002\"\216\001\n\024UpdateContactRequest\022@\n\007c" - + "ontact\030\002 \001(\0132*.google.cloud.essentialcon" - + "tacts.v1.ContactB\003\340A\002\0224\n\013update_mask\030\003 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\345\001\n\026" - + "ComputeContactsRequest\022@\n\006parent\030\001 \001(\tB0" - + "\340A\002\372A*\022(essentialcontacts.googleapis.com" - + "/Contact\022X\n\027notification_categories\030\006 \003(" - + "\01627.google.cloud.essentialcontacts.v1.No" - + "tificationCategory\022\026\n\tpage_size\030\003 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"p\n\027ComputeCo" - + "ntactsResponse\022<\n\010contacts\030\001 \003(\0132*.googl" - + "e.cloud.essentialcontacts.v1.Contact\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\375\001\n\026SendTestMessag" - + "eRequest\022B\n\010contacts\030\001 \003(\tB0\340A\002\372A*\n(esse" - + "ntialcontacts.googleapis.com/Contact\022B\n\010" - + "resource\030\002 \001(\tB0\340A\002\372A*\022(essentialcontact" - + "s.googleapis.com/Contact\022[\n\025notification" - + "_category\030\003 \001(\01627.google.cloud.essential" - + "contacts.v1.NotificationCategoryB\003\340A\0022\313\017" - + "\n\030EssentialContactsService\022\230\002\n\rCreateCon" - + "tact\0227.google.cloud.essentialcontacts.v1" - + ".CreateContactRequest\032*.google.cloud.ess" - + "entialcontacts.v1.Contact\"\241\001\332A\016parent,co" - + "ntact\202\323\344\223\002\211\001\" /v1/{parent=projects/*}/co" - + "ntacts:\007contactZ*\"\037/v1/{parent=folders/*" - + "}/contacts:\007contactZ0\"%/v1/{parent=organ" - + "izations/*}/contacts:\007contact\022\265\002\n\rUpdate" - + "Contact\0227.google.cloud.essentialcontacts" - + ".v1.UpdateContactRequest\032*.google.cloud." - + "essentialcontacts.v1.Contact\"\276\001\332A\023contac" - + "t,update_mask\202\323\344\223\002\241\0012(/v1/{contact.name=" - + "projects/*/contacts/*}:\007contactZ22\'/v1/{" - + "contact.name=folders/*/contacts/*}:\007cont" - + "actZ82-/v1/{contact.name=organizations/*" - + "/contacts/*}:\007contact\022\376\001\n\014ListContacts\0226" - + ".google.cloud.essentialcontacts.v1.ListC" - + "ontactsRequest\0327.google.cloud.essentialc" - + "ontacts.v1.ListContactsResponse\"}\332A\006pare" - + "nt\202\323\344\223\002n\022 /v1/{parent=projects/*}/contac" - + "tsZ!\022\037/v1/{parent=folders/*}/contactsZ\'\022" - + "%/v1/{parent=organizations/*}/contacts\022\353" - + "\001\n\nGetContact\0224.google.cloud.essentialco" - + "ntacts.v1.GetContactRequest\032*.google.clo" - + "ud.essentialcontacts.v1.Contact\"{\332A\004name" - + "\202\323\344\223\002n\022 /v1/{name=projects/*/contacts/*}" - + "Z!\022\037/v1/{name=folders/*/contacts/*}Z\'\022%/" - + "v1/{name=organizations/*/contacts/*}\022\335\001\n" - + "\rDeleteContact\0227.google.cloud.essentialc" - + "ontacts.v1.DeleteContactRequest\032\026.google" - + ".protobuf.Empty\"{\332A\004name\202\323\344\223\002n* /v1/{nam" - + "e=projects/*/contacts/*}Z!*\037/v1/{name=fo" - + "lders/*/contacts/*}Z\'*%/v1/{name=organiz" - + "ations/*/contacts/*}\022\230\002\n\017ComputeContacts" - + "\0229.google.cloud.essentialcontacts.v1.Com" - + "puteContactsRequest\032:.google.cloud.essen" - + "tialcontacts.v1.ComputeContactsResponse\"" - + "\215\001\202\323\344\223\002\206\001\022(/v1/{parent=projects/*}/conta" - + "cts:computeZ)\022\'/v1/{parent=folders/*}/co" - + "ntacts:computeZ/\022-/v1/{parent=organizati" - + "ons/*}/contacts:compute\022\233\002\n\017SendTestMess" - + "age\0229.google.cloud.essentialcontacts.v1." - + "SendTestMessageRequest\032\026.google.protobuf" - + ".Empty\"\264\001\202\323\344\223\002\255\001\"2/v1/{resource=projects" - + "/*}/contacts:sendTestMessage:\001*Z6\"1/v1/{" - + "resource=folders/*}/contacts:sendTestMes" - + "sage:\001*Z<\"7/v1/{resource=organizations/*" - + "}/contacts:sendTestMessage:\001*\032T\312A essent" - + "ialcontacts.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\355\001\n%" - + "com.google.cloud.essentialcontacts.v1P\001Z" - + "Scloud.google.com/go/essentialcontacts/a" - + "piv1/essentialcontactspb;essentialcontac" - + "tspb\252\002!Google.Cloud.EssentialContacts.V1" - + "\312\002!Google\\Cloud\\EssentialContacts\\V1\352\002$G" - + "oogle::Cloud::EssentialContacts::V1b\006pro" - + "to3" + + "StateB\003\340A\003\0221\n\rvalidate_time\030\t \001(\0132\032.goog" + + "le.protobuf.Timestamp:\253\001\352A\247\001\n(essentialc" + + "ontacts.googleapis.com/Contact\022%projects" + + "/{project}/contacts/{contact}\022#folders/{" + + "folder}/contacts/{contact}\022/organization" + + "s/{organization}/contacts/{contact}\"\210\001\n\023" + + "ListContactsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + + "\372A*\022(essentialcontacts.googleapis.com/Co" + + "ntact\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"m\n\024ListContactsResponse\022<" + + "\n\010contacts\030\001 \003(\0132*.google.cloud.essentia" + + "lcontacts.v1.Contact\022\027\n\017next_page_token\030" + + "\002 \001(\t\"S\n\021GetContactRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(essentialcontacts.googleapis.c" + + "om/Contact\"V\n\024DeleteContactRequest\022>\n\004na" + + "me\030\001 \001(\tB0\340A\002\372A*\n(essentialcontacts.goog" + + "leapis.com/Contact\"\232\001\n\024CreateContactRequ" + + "est\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialco" + + "ntacts.googleapis.com/Contact\022@\n\007contact" + + "\030\002 \001(\0132*.google.cloud.essentialcontacts." + + "v1.ContactB\003\340A\002\"\216\001\n\024UpdateContactRequest" + + "\022@\n\007contact\030\002 \001(\0132*.google.cloud.essenti" + + "alcontacts.v1.ContactB\003\340A\002\0224\n\013update_mas" + + "k\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001" + + "\"\345\001\n\026ComputeContactsRequest\022@\n\006parent\030\001 " + + "\001(\tB0\340A\002\372A*\022(essentialcontacts.googleapi" + + "s.com/Contact\022X\n\027notification_categories" + + "\030\006 \003(\01627.google.cloud.essentialcontacts." + + "v1.NotificationCategory\022\026\n\tpage_size\030\003 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"p\n\027Comp" + + "uteContactsResponse\022<\n\010contacts\030\001 \003(\0132*." + + "google.cloud.essentialcontacts.v1.Contac" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"\375\001\n\026SendTestM" + + "essageRequest\022B\n\010contacts\030\001 \003(\tB0\340A\002\372A*\n" + + "(essentialcontacts.googleapis.com/Contac" + + "t\022B\n\010resource\030\002 \001(\tB0\340A\002\372A*\022(essentialco" + + "ntacts.googleapis.com/Contact\022[\n\025notific" + + "ation_category\030\003 \001(\01627.google.cloud.esse" + + "ntialcontacts.v1.NotificationCategoryB\003\340" + + "A\0022\313\017\n\030EssentialContactsService\022\230\002\n\rCrea" + + "teContact\0227.google.cloud.essentialcontac" + + "ts.v1.CreateContactRequest\032*.google.clou" + + "d.essentialcontacts.v1.Contact\"\241\001\332A\016pare" + + "nt,contact\202\323\344\223\002\211\001\" /v1/{parent=projects/" + + "*}/contacts:\007contactZ*\"\037/v1/{parent=fold" + + "ers/*}/contacts:\007contactZ0\"%/v1/{parent=" + + "organizations/*}/contacts:\007contact\022\265\002\n\rU" + + "pdateContact\0227.google.cloud.essentialcon" + + "tacts.v1.UpdateContactRequest\032*.google.c" + + "loud.essentialcontacts.v1.Contact\"\276\001\332A\023c" + + "ontact,update_mask\202\323\344\223\002\241\0012(/v1/{contact." + + "name=projects/*/contacts/*}:\007contactZ22\'" + + "/v1/{contact.name=folders/*/contacts/*}:" + + "\007contactZ82-/v1/{contact.name=organizati" + + "ons/*/contacts/*}:\007contact\022\376\001\n\014ListConta" + + "cts\0226.google.cloud.essentialcontacts.v1." + + "ListContactsRequest\0327.google.cloud.essen" + + "tialcontacts.v1.ListContactsResponse\"}\332A" + + "\006parent\202\323\344\223\002n\022 /v1/{parent=projects/*}/c" + + "ontactsZ!\022\037/v1/{parent=folders/*}/contac" + + "tsZ\'\022%/v1/{parent=organizations/*}/conta" + + "cts\022\353\001\n\nGetContact\0224.google.cloud.essent" + + "ialcontacts.v1.GetContactRequest\032*.googl" + + "e.cloud.essentialcontacts.v1.Contact\"{\332A" + + "\004name\202\323\344\223\002n\022 /v1/{name=projects/*/contac" + + "ts/*}Z!\022\037/v1/{name=folders/*/contacts/*}" + + "Z\'\022%/v1/{name=organizations/*/contacts/*" + + "}\022\335\001\n\rDeleteContact\0227.google.cloud.essen" + + "tialcontacts.v1.DeleteContactRequest\032\026.g" + + "oogle.protobuf.Empty\"{\332A\004name\202\323\344\223\002n* /v1" + + "/{name=projects/*/contacts/*}Z!*\037/v1/{na" + + "me=folders/*/contacts/*}Z\'*%/v1/{name=or" + + "ganizations/*/contacts/*}\022\230\002\n\017ComputeCon" + + "tacts\0229.google.cloud.essentialcontacts.v" + + "1.ComputeContactsRequest\032:.google.cloud." + + "essentialcontacts.v1.ComputeContactsResp" + + "onse\"\215\001\202\323\344\223\002\206\001\022(/v1/{parent=projects/*}/" + + "contacts:computeZ)\022\'/v1/{parent=folders/" + + "*}/contacts:computeZ/\022-/v1/{parent=organ" + + "izations/*}/contacts:compute\022\233\002\n\017SendTes" + + "tMessage\0229.google.cloud.essentialcontact" + + "s.v1.SendTestMessageRequest\032\026.google.pro" + + "tobuf.Empty\"\264\001\202\323\344\223\002\255\001\"2/v1/{resource=pro" + + "jects/*}/contacts:sendTestMessage:\001*Z6\"1" + + "/v1/{resource=folders/*}/contacts:sendTe" + + "stMessage:\001*Z<\"7/v1/{resource=organizati" + + "ons/*}/contacts:sendTestMessage:\001*\032T\312A e" + + "ssentialcontacts.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\355\001\n%com.google.cloud.essentialcontacts." + + "v1P\001ZScloud.google.com/go/essentialconta" + + "cts/apiv1/essentialcontactspb;essentialc" + + "ontactspb\252\002!Google.Cloud.EssentialContac" + + "ts.V1\312\002!Google\\Cloud\\EssentialContacts\\V" + + "1\352\002$Google::Cloud::EssentialContacts::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto index cba12cca798c..5cb2a3bd1fbc 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto @@ -163,9 +163,10 @@ message Contact { // for a list of supported languages. string language_tag = 4 [(google.api.field_behavior) = REQUIRED]; - // The validity of the contact. A contact is considered valid if it is the - // correct recipient for notifications for a particular resource. - ValidationState validation_state = 8; + // Output only. The validity of the contact. A contact is considered valid if + // it is the correct recipient for notifications for a particular resource. + ValidationState validation_state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The last time the validation_state was updated, either manually or // automatically. A contact is considered stale if its validation state was diff --git a/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateSetCredentialsProvider1.java b/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4fa87ec9ec7c..000000000000 --- a/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.essentialcontacts.v1.samples; - -// [START essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient; -import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EssentialContactsServiceSettings essentialContactsServiceSettings = - EssentialContactsServiceSettings.newHttpJsonBuilder().build(); - EssentialContactsServiceClient essentialContactsServiceClient = - EssentialContactsServiceClient.create(essentialContactsServiceSettings); - } -} -// [END essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider1_sync] diff --git a/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateUseHttpJsonTransport.java b/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c829f59d0fec --- /dev/null +++ b/java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.essentialcontacts.v1.samples; + +// [START essentialcontacts_v1_generated_EssentialContactsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient; +import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EssentialContactsServiceSettings essentialContactsServiceSettings = + EssentialContactsServiceSettings.newHttpJsonBuilder().build(); + EssentialContactsServiceClient essentialContactsServiceClient = + EssentialContactsServiceClient.create(essentialContactsServiceSettings); + } +} +// [END essentialcontacts_v1_generated_EssentialContactsService_Create_UseHttpJsonTransport_sync] diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 39af85a33e0a..e94a4446b86e 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.52.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.publishing.v1/reflect-config.json b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.publishing.v1/reflect-config.json index 1ec34452c9db..ef57ac66b556 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.publishing.v1/reflect-config.json +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.publishing.v1/reflect-config.json @@ -386,6 +386,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateSetCredentialsProvider1.java b/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5055b826c0f9..000000000000 --- a/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.eventarc.publishing.v1.samples; - -// [START eventarcpublishing_v1_generated_Publisher_Create_SetCredentialsProvider1_sync] -import com.google.cloud.eventarc.publishing.v1.PublisherClient; -import com.google.cloud.eventarc.publishing.v1.PublisherSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PublisherSettings publisherSettings = PublisherSettings.newHttpJsonBuilder().build(); - PublisherClient publisherClient = PublisherClient.create(publisherSettings); - } -} -// [END eventarcpublishing_v1_generated_Publisher_Create_SetCredentialsProvider1_sync] diff --git a/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateUseHttpJsonTransport.java b/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1afb6952a459 --- /dev/null +++ b/java-eventarc-publishing/samples/snippets/generated/com/google/cloud/eventarc/publishing/v1/publisher/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.eventarc.publishing.v1.samples; + +// [START eventarcpublishing_v1_generated_Publisher_Create_UseHttpJsonTransport_sync] +import com.google.cloud.eventarc.publishing.v1.PublisherClient; +import com.google.cloud.eventarc.publishing.v1.PublisherSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PublisherSettings publisherSettings = PublisherSettings.newHttpJsonBuilder().build(); + PublisherClient publisherClient = PublisherClient.create(publisherSettings); + } +} +// [END eventarcpublishing_v1_generated_Publisher_Create_UseHttpJsonTransport_sync] diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 2545cbcba187..cf67cc20f8a1 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json b/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json index 902bc2a6abe2..d2e0c3682e43 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json +++ b/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.eventarc.v1.Channel", "queryAllDeclaredConstructors": true, diff --git a/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateSetCredentialsProvider1.java b/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 58c73e0133c5..000000000000 --- a/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.eventarc.v1.samples; - -// [START eventarc_v1_generated_Eventarc_Create_SetCredentialsProvider1_sync] -import com.google.cloud.eventarc.v1.EventarcClient; -import com.google.cloud.eventarc.v1.EventarcSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EventarcSettings eventarcSettings = EventarcSettings.newHttpJsonBuilder().build(); - EventarcClient eventarcClient = EventarcClient.create(eventarcSettings); - } -} -// [END eventarc_v1_generated_Eventarc_Create_SetCredentialsProvider1_sync] diff --git a/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateUseHttpJsonTransport.java b/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a3f54e73b295 --- /dev/null +++ b/java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarc/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.eventarc.v1.samples; + +// [START eventarc_v1_generated_Eventarc_Create_UseHttpJsonTransport_sync] +import com.google.cloud.eventarc.v1.EventarcClient; +import com.google.cloud.eventarc.v1.EventarcSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EventarcSettings eventarcSettings = EventarcSettings.newHttpJsonBuilder().build(); + EventarcClient eventarcClient = EventarcClient.create(eventarcSettings); + } +} +// [END eventarc_v1_generated_Eventarc_Create_UseHttpJsonTransport_sync] diff --git a/java-filestore/README.md b/java-filestore/README.md index 00f9f4119dc7..86853fd697c5 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json index e9cce046faa7..8d30de8e1a98 100644 --- a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json +++ b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.common.OperationMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1beta1/reflect-config.json b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1beta1/reflect-config.json index e2b3b256f6ee..b4be257314e1 100644 --- a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1beta1/reflect-config.json +++ b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.common.OperationMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fc1fb28659f9..000000000000 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.filestore.v1.samples; - -// [START file_v1_generated_CloudFilestoreManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.filestore.v1.CloudFilestoreManagerClient; -import com.google.cloud.filestore.v1.CloudFilestoreManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudFilestoreManagerSettings cloudFilestoreManagerSettings = - CloudFilestoreManagerSettings.newHttpJsonBuilder().build(); - CloudFilestoreManagerClient cloudFilestoreManagerClient = - CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); - } -} -// [END file_v1_generated_CloudFilestoreManager_Create_SetCredentialsProvider1_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e4003a565b68 --- /dev/null +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.filestore.v1.samples; + +// [START file_v1_generated_CloudFilestoreManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.filestore.v1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1.CloudFilestoreManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudFilestoreManagerSettings cloudFilestoreManagerSettings = + CloudFilestoreManagerSettings.newHttpJsonBuilder().build(); + CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); + } +} +// [END file_v1_generated_CloudFilestoreManager_Create_UseHttpJsonTransport_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bbcd53e7b582..000000000000 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.filestore.v1beta1.samples; - -// [START file_v1beta1_generated_CloudFilestoreManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; -import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudFilestoreManagerSettings cloudFilestoreManagerSettings = - CloudFilestoreManagerSettings.newHttpJsonBuilder().build(); - CloudFilestoreManagerClient cloudFilestoreManagerClient = - CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); - } -} -// [END file_v1beta1_generated_CloudFilestoreManager_Create_SetCredentialsProvider1_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6ca6bccca990 --- /dev/null +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.filestore.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudFilestoreManagerSettings cloudFilestoreManagerSettings = + CloudFilestoreManagerSettings.newHttpJsonBuilder().build(); + CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_Create_UseHttpJsonTransport_sync] diff --git a/java-functions/README.md b/java-functions/README.md index 5c4639f0f36c..d50a7638232a 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v1/reflect-config.json b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v1/reflect-config.json index fccac70c2522..f8bd59d7f6be 100644 --- a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v1/reflect-config.json +++ b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.functions.v1.CallFunctionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2/reflect-config.json b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2/reflect-config.json index 30bba388be2a..350f9d078116 100644 --- a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2/reflect-config.json +++ b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.functions.v2.AutomaticUpdatePolicy", "queryAllDeclaredConstructors": true, diff --git a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2alpha/reflect-config.json b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2alpha/reflect-config.json index 7fdfba3902b6..e563015605a2 100644 --- a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2alpha/reflect-config.json +++ b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.functions.v2alpha.AutomaticUpdatePolicy", "queryAllDeclaredConstructors": true, diff --git a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2beta/reflect-config.json b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2beta/reflect-config.json index 099dc8835f15..dd98cd59ca0a 100644 --- a/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2beta/reflect-config.json +++ b/java-functions/google-cloud-functions/src/main/resources/META-INF/native-image/com.google.cloud.functions.v2beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.functions.v2beta.AutomaticUpdatePolicy", "queryAllDeclaredConstructors": true, diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateSetCredentialsProvider1.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5fd0d56ffed6..000000000000 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.functions.v1.samples; - -// [START cloudfunctions_v1_generated_CloudFunctionsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.functions.v1.CloudFunctionsServiceClient; -import com.google.cloud.functions.v1.CloudFunctionsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudFunctionsServiceSettings cloudFunctionsServiceSettings = - CloudFunctionsServiceSettings.newHttpJsonBuilder().build(); - CloudFunctionsServiceClient cloudFunctionsServiceClient = - CloudFunctionsServiceClient.create(cloudFunctionsServiceSettings); - } -} -// [END cloudfunctions_v1_generated_CloudFunctionsService_Create_SetCredentialsProvider1_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateUseHttpJsonTransport.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..896889e34251 --- /dev/null +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.functions.v1.samples; + +// [START cloudfunctions_v1_generated_CloudFunctionsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.functions.v1.CloudFunctionsServiceClient; +import com.google.cloud.functions.v1.CloudFunctionsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudFunctionsServiceSettings cloudFunctionsServiceSettings = + CloudFunctionsServiceSettings.newHttpJsonBuilder().build(); + CloudFunctionsServiceClient cloudFunctionsServiceClient = + CloudFunctionsServiceClient.create(cloudFunctionsServiceSettings); + } +} +// [END cloudfunctions_v1_generated_CloudFunctionsService_Create_UseHttpJsonTransport_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateSetCredentialsProvider1.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c38c510ca687..000000000000 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.functions.v2.samples; - -// [START cloudfunctions_v2_generated_FunctionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.functions.v2.FunctionServiceClient; -import com.google.cloud.functions.v2.FunctionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FunctionServiceSettings functionServiceSettings = - FunctionServiceSettings.newHttpJsonBuilder().build(); - FunctionServiceClient functionServiceClient = - FunctionServiceClient.create(functionServiceSettings); - } -} -// [END cloudfunctions_v2_generated_FunctionService_Create_SetCredentialsProvider1_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateUseHttpJsonTransport.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..53c9c2c1e5c1 --- /dev/null +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2/functionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.functions.v2.samples; + +// [START cloudfunctions_v2_generated_FunctionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.FunctionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newHttpJsonBuilder().build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END cloudfunctions_v2_generated_FunctionService_Create_UseHttpJsonTransport_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateSetCredentialsProvider1.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ad696596da5b..000000000000 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.functions.v2alpha.samples; - -// [START cloudfunctions_v2alpha_generated_FunctionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.functions.v2alpha.FunctionServiceClient; -import com.google.cloud.functions.v2alpha.FunctionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FunctionServiceSettings functionServiceSettings = - FunctionServiceSettings.newHttpJsonBuilder().build(); - FunctionServiceClient functionServiceClient = - FunctionServiceClient.create(functionServiceSettings); - } -} -// [END cloudfunctions_v2alpha_generated_FunctionService_Create_SetCredentialsProvider1_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateUseHttpJsonTransport.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9a830fd9c5ca --- /dev/null +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2alpha/functionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.functions.v2alpha.samples; + +// [START cloudfunctions_v2alpha_generated_FunctionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.functions.v2alpha.FunctionServiceClient; +import com.google.cloud.functions.v2alpha.FunctionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newHttpJsonBuilder().build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END cloudfunctions_v2alpha_generated_FunctionService_Create_UseHttpJsonTransport_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateSetCredentialsProvider1.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 073e391df8ab..000000000000 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.functions.v2beta.samples; - -// [START cloudfunctions_v2beta_generated_FunctionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.functions.v2beta.FunctionServiceClient; -import com.google.cloud.functions.v2beta.FunctionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FunctionServiceSettings functionServiceSettings = - FunctionServiceSettings.newHttpJsonBuilder().build(); - FunctionServiceClient functionServiceClient = - FunctionServiceClient.create(functionServiceSettings); - } -} -// [END cloudfunctions_v2beta_generated_FunctionService_Create_SetCredentialsProvider1_sync] diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateUseHttpJsonTransport.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a31e3093c0ce --- /dev/null +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.functions.v2beta.samples; + +// [START cloudfunctions_v2beta_generated_FunctionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.functions.v2beta.FunctionServiceClient; +import com.google.cloud.functions.v2beta.FunctionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newHttpJsonBuilder().build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END cloudfunctions_v2beta_generated_FunctionService_Create_UseHttpJsonTransport_sync] diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 32066f9928b4..5978d2b5607a 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.7.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java index e08f42ff094b..fbfbd6b80fff 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java @@ -271,6 +271,26 @@ * * * + *

DeleteSite + *

Deletes a site. + * + *

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

+ *
    + *
  • deleteSiteAsync(DeleteSiteRequest request) + *

+ *

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

+ *
    + *
  • deleteSiteAsync(SiteName name) + *

  • deleteSiteAsync(String name) + *

+ *

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

+ *
    + *
  • deleteSiteOperationCallable() + *

  • deleteSiteCallable() + *

+ * + * + * *

ListHardwareGroups *

Lists hardware groups in a given order. * @@ -926,6 +946,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * * @param parent Required. The project and location to list orders in. Format: * `projects/{project}/locations/{location}` + *

To list orders across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrdersPagedResponse listOrders(LocationName parent) { @@ -957,6 +979,8 @@ public final ListOrdersPagedResponse listOrders(LocationName parent) { * * @param parent Required. The project and location to list orders in. Format: * `projects/{project}/locations/{location}` + *

To list orders across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrdersPagedResponse listOrders(String parent) { @@ -1823,6 +1847,8 @@ public final UnaryCallable submitOrderCallable() * * @param parent Required. The project and location to list sites in. Format: * `projects/{project}/locations/{location}` + *

To list sites across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSitesPagedResponse listSites(LocationName parent) { @@ -1854,6 +1880,8 @@ public final ListSitesPagedResponse listSites(LocationName parent) { * * @param parent Required. The project and location to list sites in. Format: * `projects/{project}/locations/{location}` + *

To list sites across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSitesPagedResponse listSites(String parent) { @@ -2391,6 +2419,155 @@ public final UnaryCallable updateSiteCallable() { return stub.updateSiteCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a site. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
+   *     GDCHardwareManagementClient.create()) {
+   *   SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]");
+   *   gDCHardwareManagementClient.deleteSiteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the site. Format: + * `projects/{project}/locations/{location}/sites/{site}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSiteAsync(SiteName name) { + DeleteSiteRequest request = + DeleteSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteSiteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a site. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
+   *     GDCHardwareManagementClient.create()) {
+   *   String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString();
+   *   gDCHardwareManagementClient.deleteSiteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the site. Format: + * `projects/{project}/locations/{location}/sites/{site}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSiteAsync(String name) { + DeleteSiteRequest request = DeleteSiteRequest.newBuilder().setName(name).build(); + return deleteSiteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a site. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
+   *     GDCHardwareManagementClient.create()) {
+   *   DeleteSiteRequest request =
+   *       DeleteSiteRequest.newBuilder()
+   *           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       gDCHardwareManagementClient.deleteSiteCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSiteCallable() { + return stub.deleteSiteCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists hardware groups in a given order. @@ -3201,6 +3378,8 @@ public final UnaryCallable deleteHardware * * @param parent Required. The project and location to list hardware in. Format: * `projects/{project}/locations/{location}` + *

To list hardware across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHardwarePagedResponse listHardware(LocationName parent) { @@ -3234,6 +3413,8 @@ public final ListHardwarePagedResponse listHardware(LocationName parent) { * * @param parent Required. The project and location to list hardware in. Format: * `projects/{project}/locations/{location}` + *

To list hardware across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHardwarePagedResponse listHardware(String parent) { @@ -4873,6 +5054,8 @@ public final UnaryCallable getChangeLo * * @param parent Required. The project and location to list SKUs in. Format: * `projects/{project}/locations/{location}` + *

To list SKUs across all locations, substitute `-` (the hyphen or dash character) for the + * location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSkusPagedResponse listSkus(LocationName parent) { @@ -4904,6 +5087,8 @@ public final ListSkusPagedResponse listSkus(LocationName parent) { * * @param parent Required. The project and location to list SKUs in. Format: * `projects/{project}/locations/{location}` + *

To list SKUs across all locations, substitute `-` (the hyphen or dash character) for the + * location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSkusPagedResponse listSkus(String parent) { @@ -5159,6 +5344,8 @@ public final UnaryCallable getSkuCallable() { * * @param parent Required. The project and location to list zones in. Format: * `projects/{project}/locations/{location}` + *

To list zones across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZonesPagedResponse listZones(LocationName parent) { @@ -5190,6 +5377,8 @@ public final ListZonesPagedResponse listZones(LocationName parent) { * * @param parent Required. The project and location to list zones in. Format: * `projects/{project}/locations/{location}` + *

To list zones across all locations, substitute `-` (the hyphen or dash character) for + * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZonesPagedResponse listZones(String parent) { diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java index c10ecb6cc05e..4d3d815a216f 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java @@ -220,6 +220,17 @@ public UnaryCallSettings updateSiteSettings() { return ((GDCHardwareManagementStubSettings) getStubSettings()).updateSiteOperationSettings(); } + /** Returns the object with the settings used for calls to deleteSite. */ + public UnaryCallSettings deleteSiteSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteSiteSettings(); + } + + /** Returns the object with the settings used for calls to deleteSite. */ + public OperationCallSettings + deleteSiteOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteSiteOperationSettings(); + } + /** Returns the object with the settings used for calls to listHardwareGroups. */ public PagedCallSettings< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> @@ -635,6 +646,17 @@ public UnaryCallSettings.Builder updateSiteSetting return getStubSettingsBuilder().updateSiteOperationSettings(); } + /** Returns the builder for the settings used for calls to deleteSite. */ + public UnaryCallSettings.Builder deleteSiteSettings() { + return getStubSettingsBuilder().deleteSiteSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSite. */ + public OperationCallSettings.Builder + deleteSiteOperationSettings() { + return getStubSettingsBuilder().deleteSiteOperationSettings(); + } + /** Returns the builder for the settings used for calls to listHardwareGroups. */ public PagedCallSettings.Builder< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json index 86892c002085..b85a8a2ebf49 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json @@ -37,6 +37,9 @@ "DeleteOrder": { "methods": ["deleteOrderAsync", "deleteOrderAsync", "deleteOrderAsync", "deleteOrderOperationCallable", "deleteOrderCallable"] }, + "DeleteSite": { + "methods": ["deleteSiteAsync", "deleteSiteAsync", "deleteSiteAsync", "deleteSiteOperationCallable", "deleteSiteCallable"] + }, "DeleteZone": { "methods": ["deleteZoneAsync", "deleteZoneAsync", "deleteZoneAsync", "deleteZoneOperationCallable", "deleteZoneCallable"] }, diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java index 26a23ddbe058..25d68595a4ed 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java @@ -41,6 +41,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; @@ -186,6 +187,15 @@ public UnaryCallable updateSiteCallable() { throw new UnsupportedOperationException("Not implemented: updateSiteCallable()"); } + public OperationCallable + deleteSiteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSiteOperationCallable()"); + } + + public UnaryCallable deleteSiteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSiteCallable()"); + } + public UnaryCallable listHardwareGroupsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listHardwareGroupsPagedCallable()"); diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java index 9268ee6e20d8..80c53ac6fe9a 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java @@ -67,6 +67,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; @@ -232,6 +233,9 @@ public class GDCHardwareManagementStubSettings private final UnaryCallSettings updateSiteSettings; private final OperationCallSettings updateSiteOperationSettings; + private final UnaryCallSettings deleteSiteSettings; + private final OperationCallSettings + deleteSiteOperationSettings; private final PagedCallSettings< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> listHardwareGroupsSettings; @@ -864,6 +868,17 @@ public UnaryCallSettings updateSiteSettings() { return updateSiteOperationSettings; } + /** Returns the object with the settings used for calls to deleteSite. */ + public UnaryCallSettings deleteSiteSettings() { + return deleteSiteSettings; + } + + /** Returns the object with the settings used for calls to deleteSite. */ + public OperationCallSettings + deleteSiteOperationSettings() { + return deleteSiteOperationSettings; + } + /** Returns the object with the settings used for calls to listHardwareGroups. */ public PagedCallSettings< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> @@ -1198,6 +1213,8 @@ protected GDCHardwareManagementStubSettings(Builder settingsBuilder) throws IOEx createSiteOperationSettings = settingsBuilder.createSiteOperationSettings().build(); updateSiteSettings = settingsBuilder.updateSiteSettings().build(); updateSiteOperationSettings = settingsBuilder.updateSiteOperationSettings().build(); + deleteSiteSettings = settingsBuilder.deleteSiteSettings().build(); + deleteSiteOperationSettings = settingsBuilder.deleteSiteOperationSettings().build(); listHardwareGroupsSettings = settingsBuilder.listHardwareGroupsSettings().build(); getHardwareGroupSettings = settingsBuilder.getHardwareGroupSettings().build(); createHardwareGroupSettings = settingsBuilder.createHardwareGroupSettings().build(); @@ -1270,6 +1287,9 @@ public static class Builder private final UnaryCallSettings.Builder updateSiteSettings; private final OperationCallSettings.Builder updateSiteOperationSettings; + private final UnaryCallSettings.Builder deleteSiteSettings; + private final OperationCallSettings.Builder + deleteSiteOperationSettings; private final PagedCallSettings.Builder< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> listHardwareGroupsSettings; @@ -1414,6 +1434,8 @@ protected Builder(ClientContext clientContext) { createSiteOperationSettings = OperationCallSettings.newBuilder(); updateSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSiteOperationSettings = OperationCallSettings.newBuilder(); + deleteSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSiteOperationSettings = OperationCallSettings.newBuilder(); listHardwareGroupsSettings = PagedCallSettings.newBuilder(LIST_HARDWARE_GROUPS_PAGE_STR_FACT); getHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1465,6 +1487,7 @@ protected Builder(ClientContext clientContext) { getSiteSettings, createSiteSettings, updateSiteSettings, + deleteSiteSettings, listHardwareGroupsSettings, getHardwareGroupSettings, createHardwareGroupSettings, @@ -1513,6 +1536,8 @@ protected Builder(GDCHardwareManagementStubSettings settings) { createSiteOperationSettings = settings.createSiteOperationSettings.toBuilder(); updateSiteSettings = settings.updateSiteSettings.toBuilder(); updateSiteOperationSettings = settings.updateSiteOperationSettings.toBuilder(); + deleteSiteSettings = settings.deleteSiteSettings.toBuilder(); + deleteSiteOperationSettings = settings.deleteSiteOperationSettings.toBuilder(); listHardwareGroupsSettings = settings.listHardwareGroupsSettings.toBuilder(); getHardwareGroupSettings = settings.getHardwareGroupSettings.toBuilder(); createHardwareGroupSettings = settings.createHardwareGroupSettings.toBuilder(); @@ -1566,6 +1591,7 @@ protected Builder(GDCHardwareManagementStubSettings settings) { getSiteSettings, createSiteSettings, updateSiteSettings, + deleteSiteSettings, listHardwareGroupsSettings, getHardwareGroupSettings, createHardwareGroupSettings, @@ -1669,6 +1695,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .deleteSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listHardwareGroupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1935,6 +1966,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deleteSiteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .createHardwareGroupOperationSettings() .setInitialCallSettings( @@ -2299,6 +2353,17 @@ public UnaryCallSettings.Builder updateSiteSetting return updateSiteOperationSettings; } + /** Returns the builder for the settings used for calls to deleteSite. */ + public UnaryCallSettings.Builder deleteSiteSettings() { + return deleteSiteSettings; + } + + /** Returns the builder for the settings used for calls to deleteSite. */ + public OperationCallSettings.Builder + deleteSiteOperationSettings() { + return deleteSiteOperationSettings; + } + /** Returns the builder for the settings used for calls to listHardwareGroups. */ public PagedCallSettings.Builder< ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java index 3d4582d0dcc2..afa0e2d7b91a 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java @@ -46,6 +46,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; @@ -200,6 +201,15 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteSiteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteSite") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSiteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listHardwareGroupsMethodDescriptor = MethodDescriptor.newBuilder() @@ -493,6 +503,9 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { private final UnaryCallable updateSiteCallable; private final OperationCallable updateSiteOperationCallable; + private final UnaryCallable deleteSiteCallable; + private final OperationCallable + deleteSiteOperationCallable; private final UnaryCallable listHardwareGroupsCallable; private final UnaryCallable @@ -700,6 +713,16 @@ protected GrpcGDCHardwareManagementStub( return builder.build(); }) .build(); + GrpcCallSettings deleteSiteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSiteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listHardwareGroupsTransportSettings = GrpcCallSettings.newBuilder() @@ -1036,6 +1059,15 @@ protected GrpcGDCHardwareManagementStub( settings.updateSiteOperationSettings(), clientContext, operationsStub); + this.deleteSiteCallable = + callableFactory.createUnaryCallable( + deleteSiteTransportSettings, settings.deleteSiteSettings(), clientContext); + this.deleteSiteOperationCallable = + callableFactory.createOperationCallable( + deleteSiteTransportSettings, + settings.deleteSiteOperationSettings(), + clientContext, + operationsStub); this.listHardwareGroupsCallable = callableFactory.createUnaryCallable( listHardwareGroupsTransportSettings, @@ -1324,6 +1356,17 @@ public UnaryCallable updateSiteCallable() { return updateSiteOperationCallable; } + @Override + public UnaryCallable deleteSiteCallable() { + return deleteSiteCallable; + } + + @Override + public OperationCallable + deleteSiteOperationCallable() { + return deleteSiteOperationCallable; + } + @Override public UnaryCallable listHardwareGroupsCallable() { diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java index fe473bc35c41..76050f752dba 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java @@ -54,6 +54,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; @@ -530,6 +531,45 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + deleteSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteSite") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sites/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteSiteRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listHardwareGroupsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1563,6 +1603,9 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub private final UnaryCallable updateSiteCallable; private final OperationCallable updateSiteOperationCallable; + private final UnaryCallable deleteSiteCallable; + private final OperationCallable + deleteSiteOperationCallable; private final UnaryCallable listHardwareGroupsCallable; private final UnaryCallable @@ -1808,6 +1851,17 @@ protected HttpJsonGDCHardwareManagementStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listHardwareGroupsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2178,6 +2232,15 @@ protected HttpJsonGDCHardwareManagementStub( settings.updateSiteOperationSettings(), clientContext, httpJsonOperationsStub); + this.deleteSiteCallable = + callableFactory.createUnaryCallable( + deleteSiteTransportSettings, settings.deleteSiteSettings(), clientContext); + this.deleteSiteOperationCallable = + callableFactory.createOperationCallable( + deleteSiteTransportSettings, + settings.deleteSiteOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listHardwareGroupsCallable = callableFactory.createUnaryCallable( listHardwareGroupsTransportSettings, @@ -2379,6 +2442,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getSiteMethodDescriptor); methodDescriptors.add(createSiteMethodDescriptor); methodDescriptors.add(updateSiteMethodDescriptor); + methodDescriptors.add(deleteSiteMethodDescriptor); methodDescriptors.add(listHardwareGroupsMethodDescriptor); methodDescriptors.add(getHardwareGroupMethodDescriptor); methodDescriptors.add(createHardwareGroupMethodDescriptor); @@ -2508,6 +2572,17 @@ public UnaryCallable updateSiteCallable() { return updateSiteOperationCallable; } + @Override + public UnaryCallable deleteSiteCallable() { + return deleteSiteCallable; + } + + @Override + public OperationCallable + deleteSiteOperationCallable() { + return deleteSiteOperationCallable; + } + @Override public UnaryCallable listHardwareGroupsCallable() { diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json index 49450551e87a..e82270a933f8 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, @@ -656,6 +674,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest", "queryAllDeclaredConstructors": true, @@ -863,6 +899,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$DiskInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$DiskInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$MacAddress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$MacAddress$AddressType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$MacAddress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$MachineInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$MachineInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$State", "queryAllDeclaredConstructors": true, diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java index 31f260875fb9..58a9fa9e34d4 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java @@ -1173,6 +1173,96 @@ public void updateSiteExceptionTest() throws Exception { } } + @Test + public void deleteSiteTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + + client.deleteSiteAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + client.deleteSiteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSiteTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-546/locations/location-546/sites/site-546"; + + client.deleteSiteAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSiteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-546/locations/location-546/sites/site-546"; + client.deleteSiteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listHardwareGroupsTest() throws Exception { HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); @@ -1816,6 +1906,7 @@ public void getHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1877,6 +1968,7 @@ public void getHardwareTest2() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1938,6 +2030,7 @@ public void createHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2008,6 +2101,7 @@ public void createHardwareTest2() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2078,6 +2172,7 @@ public void updateHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2107,6 +2202,7 @@ public void updateHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2156,6 +2252,7 @@ public void updateHardwareExceptionTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateHardwareAsync(hardware, updateMask).get(); diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java index f39ca9fb8a8c..7fe61fad538a 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java @@ -1054,6 +1054,90 @@ public void updateSiteExceptionTest() throws Exception { } } + @Test + public void deleteSiteTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + + client.deleteSiteAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSiteRequest actualRequest = ((DeleteSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSiteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + client.deleteSiteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSiteTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSiteAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSiteRequest actualRequest = ((DeleteSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSiteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteSiteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listHardwareGroupsTest() throws Exception { HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); @@ -1621,6 +1705,7 @@ public void getHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -1676,6 +1761,7 @@ public void getHardwareTest2() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -1731,6 +1817,7 @@ public void createHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1800,6 +1887,7 @@ public void createHardwareTest2() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1869,6 +1957,7 @@ public void updateHardwareTest() throws Exception { .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) + .addAllMachineInfos(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java index 9392cb90f7e1..ab55d4649e02 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java @@ -261,6 +261,26 @@ public void updateSite(UpdateSiteRequest request, StreamObserver resp } } + @Override + public void deleteSite(DeleteSiteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSite, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listHardwareGroups( ListHardwareGroupsRequest request, diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java index 09e93e42c516..8ba38371f7ee 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java @@ -500,6 +500,52 @@ private GDCHardwareManagementGrpc() {} return getUpdateSiteMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest, + com.google.longrunning.Operation> + getDeleteSiteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSite", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest, + com.google.longrunning.Operation> + getDeleteSiteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest, + com.google.longrunning.Operation> + getDeleteSiteMethod; + if ((getDeleteSiteMethod = GDCHardwareManagementGrpc.getDeleteSiteMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getDeleteSiteMethod = GDCHardwareManagementGrpc.getDeleteSiteMethod) == null) { + GDCHardwareManagementGrpc.getDeleteSiteMethod = + getDeleteSiteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("DeleteSite")) + .build(); + } + } + } + return getDeleteSiteMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest, com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> @@ -1836,6 +1882,19 @@ default void updateSite( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSiteMethod(), responseObserver); } + /** + * + * + *

+     * Deletes a site.
+     * 
+ */ + default void deleteSite( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSiteMethod(), responseObserver); + } + /** * * @@ -2375,6 +2434,20 @@ public void updateSite( getChannel().newCall(getUpdateSiteMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Deletes a site.
+     * 
+ */ + public void deleteSite( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSiteMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2915,6 +2988,19 @@ public com.google.longrunning.Operation updateSite( getChannel(), getUpdateSiteMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes a site.
+     * 
+ */ + public com.google.longrunning.Operation deleteSite( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSiteMethod(), getCallOptions(), request); + } + /** * * @@ -3388,6 +3474,19 @@ protected GDCHardwareManagementFutureStub build( getChannel().newCall(getUpdateSiteMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes a site.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSite(com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSiteMethod(), getCallOptions()), request); + } + /** * * @@ -3739,30 +3838,31 @@ protected GDCHardwareManagementFutureStub build( private static final int METHODID_GET_SITE = 7; private static final int METHODID_CREATE_SITE = 8; private static final int METHODID_UPDATE_SITE = 9; - private static final int METHODID_LIST_HARDWARE_GROUPS = 10; - private static final int METHODID_GET_HARDWARE_GROUP = 11; - private static final int METHODID_CREATE_HARDWARE_GROUP = 12; - private static final int METHODID_UPDATE_HARDWARE_GROUP = 13; - private static final int METHODID_DELETE_HARDWARE_GROUP = 14; - private static final int METHODID_LIST_HARDWARE = 15; - private static final int METHODID_GET_HARDWARE = 16; - private static final int METHODID_CREATE_HARDWARE = 17; - private static final int METHODID_UPDATE_HARDWARE = 18; - private static final int METHODID_DELETE_HARDWARE = 19; - private static final int METHODID_LIST_COMMENTS = 20; - private static final int METHODID_GET_COMMENT = 21; - private static final int METHODID_CREATE_COMMENT = 22; - private static final int METHODID_RECORD_ACTION_ON_COMMENT = 23; - private static final int METHODID_LIST_CHANGE_LOG_ENTRIES = 24; - private static final int METHODID_GET_CHANGE_LOG_ENTRY = 25; - private static final int METHODID_LIST_SKUS = 26; - private static final int METHODID_GET_SKU = 27; - private static final int METHODID_LIST_ZONES = 28; - private static final int METHODID_GET_ZONE = 29; - private static final int METHODID_CREATE_ZONE = 30; - private static final int METHODID_UPDATE_ZONE = 31; - private static final int METHODID_DELETE_ZONE = 32; - private static final int METHODID_SIGNAL_ZONE_STATE = 33; + private static final int METHODID_DELETE_SITE = 10; + private static final int METHODID_LIST_HARDWARE_GROUPS = 11; + private static final int METHODID_GET_HARDWARE_GROUP = 12; + private static final int METHODID_CREATE_HARDWARE_GROUP = 13; + private static final int METHODID_UPDATE_HARDWARE_GROUP = 14; + private static final int METHODID_DELETE_HARDWARE_GROUP = 15; + private static final int METHODID_LIST_HARDWARE = 16; + private static final int METHODID_GET_HARDWARE = 17; + private static final int METHODID_CREATE_HARDWARE = 18; + private static final int METHODID_UPDATE_HARDWARE = 19; + private static final int METHODID_DELETE_HARDWARE = 20; + private static final int METHODID_LIST_COMMENTS = 21; + private static final int METHODID_GET_COMMENT = 22; + private static final int METHODID_CREATE_COMMENT = 23; + private static final int METHODID_RECORD_ACTION_ON_COMMENT = 24; + private static final int METHODID_LIST_CHANGE_LOG_ENTRIES = 25; + private static final int METHODID_GET_CHANGE_LOG_ENTRY = 26; + private static final int METHODID_LIST_SKUS = 27; + private static final int METHODID_GET_SKU = 28; + private static final int METHODID_LIST_ZONES = 29; + private static final int METHODID_GET_ZONE = 30; + private static final int METHODID_CREATE_ZONE = 31; + private static final int METHODID_UPDATE_ZONE = 32; + private static final int METHODID_DELETE_ZONE = 33; + private static final int METHODID_SIGNAL_ZONE_STATE = 34; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3837,6 +3937,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_SITE: + serviceImpl.deleteSite( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_HARDWARE_GROUPS: serviceImpl.listHardwareGroups( (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) request, @@ -4060,6 +4165,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_SITE))) + .addMethod( + getDeleteSiteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SITE))) .addMethod( getListHardwareGroupsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4277,6 +4388,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetSiteMethod()) .addMethod(getCreateSiteMethod()) .addMethod(getUpdateSiteMethod()) + .addMethod(getDeleteSiteMethod()) .addMethod(getListHardwareGroupsMethod()) .addMethod(getGetHardwareGroupMethod()) .addMethod(getCreateHardwareGroupMethod()) diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequest.java new file mode 100644 index 000000000000..91212ccdd96e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequest.java @@ -0,0 +1,857 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
+ * A request to delete a site.
+ * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest} + */ +public final class DeleteSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) + DeleteSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSiteRequest.newBuilder() to construct. + private DeleteSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSiteRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the site.
+   * Format: `projects/{project}/locations/{location}/sites/{site}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the site.
+   * Format: `projects/{project}/locations/{location}/sites/{site}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. An optional unique identifier for this request. See
+   * [AIP-155](https://google.aip.dev/155).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An optional unique identifier for this request. See
+   * [AIP-155](https://google.aip.dev/155).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest 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.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest 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.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.gdchardwaremanagement.v1alpha.DeleteSiteRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A request to delete a site.
+   * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the site.
+     * Format: `projects/{project}/locations/{location}/sites/{site}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the site.
+     * Format: `projects/{project}/locations/{location}/sites/{site}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the site.
+     * Format: `projects/{project}/locations/{location}/sites/{site}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the site.
+     * Format: `projects/{project}/locations/{location}/sites/{site}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the site.
+     * Format: `projects/{project}/locations/{location}/sites/{site}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. An optional unique identifier for this request. See
+     * [AIP-155](https://google.aip.dev/155).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An optional unique identifier for this request. See
+     * [AIP-155](https://google.aip.dev/155).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An optional unique identifier for this request. See
+     * [AIP-155](https://google.aip.dev/155).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional unique identifier for this request. See
+     * [AIP-155](https://google.aip.dev/155).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional unique identifier for this request. See
+     * [AIP-155](https://google.aip.dev/155).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSiteRequest 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.gdchardwaremanagement.v1alpha.DeleteSiteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequestOrBuilder.java new file mode 100644 index 000000000000..4c41056b5528 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteSiteRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DeleteSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the site.
+   * Format: `projects/{project}/locations/{location}/sites/{site}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the site.
+   * Format: `projects/{project}/locations/{location}/sites/{site}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional unique identifier for this request. See
+   * [AIP-155](https://google.aip.dev/155).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. An optional unique identifier for this request. See
+   * [AIP-155](https://google.aip.dev/155).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java index 66421128f9d0..dd653e2c3691 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java @@ -47,6 +47,7 @@ private Hardware() { state_ = 0; ciqUri_ = ""; zone_ = ""; + machineInfos_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -329,6 +330,4768 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.State) } + public interface MacAddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Address string.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + java.lang.String getAddress(); + /** + * + * + *
+     * Output only. Address string.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+     * Output only. Address type for this MAC address.
+     * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+     * Output only. Address type for this MAC address.
+     * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType getType(); + } + /** + * + * + *
+   * Message to describe the MAC address of a machine.
+   * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress} + */ + public static final class MacAddress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) + MacAddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use MacAddress.newBuilder() to construct. + private MacAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MacAddress() { + address_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MacAddress(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder.class); + } + + /** + * + * + *
+     * Enum for the different types of MAC address.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType} + */ + public enum AddressType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified address type.
+       * 
+ * + * ADDRESS_TYPE_UNSPECIFIED = 0; + */ + ADDRESS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Address of a network interface card.
+       * 
+ * + * NIC = 1; + */ + NIC(1), + /** + * + * + *
+       * Address of a baseboard management controller.
+       * 
+ * + * BMC = 2; + */ + BMC(2), + /** + * + * + *
+       * Address of a virtual interface.
+       * 
+ * + * VIRTUAL = 3; + */ + VIRTUAL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified address type.
+       * 
+ * + * ADDRESS_TYPE_UNSPECIFIED = 0; + */ + public static final int ADDRESS_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Address of a network interface card.
+       * 
+ * + * NIC = 1; + */ + public static final int NIC_VALUE = 1; + /** + * + * + *
+       * Address of a baseboard management controller.
+       * 
+ * + * BMC = 2; + */ + public static final int BMC_VALUE = 2; + /** + * + * + *
+       * Address of a virtual interface.
+       * 
+ * + * VIRTUAL = 3; + */ + public static final int VIRTUAL_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 AddressType 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 AddressType forNumber(int value) { + switch (value) { + case 0: + return ADDRESS_TYPE_UNSPECIFIED; + case 1: + return NIC; + case 2: + return BMC; + case 3: + return VIRTUAL; + 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 AddressType findValueByNumber(int number) { + return AddressType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AddressType[] VALUES = values(); + + public static AddressType 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 AddressType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType) + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + /** + * + * + *
+     * Output only. Address string.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + 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(); + address_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Address string.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+     * Output only. Address type for this MAC address.
+     * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. Address type for this MAC address.
+     * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType result = + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType.forNumber( + type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + .ADDRESS_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + .ADDRESS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + 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.gdchardwaremanagement.v1alpha.Hardware.MacAddress)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) obj; + + if (!getAddress().equals(other.getAddress())) return false; + if (type_ != other.type_) 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) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress 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.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress 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.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.gdchardwaremanagement.v1alpha.Hardware.MacAddress 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Message to describe the MAC address of a machine.
+     * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + address_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + .getDefaultInstance()) return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object address_ = ""; + /** + * + * + *
+       * Output only. Address string.
+       * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Address string.
+       * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Address string.
+       * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Address string.
+       * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Address string.
+       * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * Output only. Address type for this MAC address.
+       * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * Output only. Address type for this MAC address.
+       * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Address type for this MAC address.
+       * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType result = + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + .forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. Address type for this MAC address.
+       * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Address type for this MAC address.
+       * 
+ * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.AddressType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MacAddress 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.gdchardwaremanagement.v1alpha.Hardware.MacAddress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DiskInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Disk manufacturer.
+     * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The manufacturer. + */ + java.lang.String getManufacturer(); + /** + * + * + *
+     * Output only. Disk manufacturer.
+     * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for manufacturer. + */ + com.google.protobuf.ByteString getManufacturerBytes(); + + /** + * + * + *
+     * Output only. Disk slot number.
+     * 
+ * + * int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The slot. + */ + int getSlot(); + + /** + * + * + *
+     * Output only. Disk serial number.
+     * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serialNumber. + */ + java.lang.String getSerialNumber(); + /** + * + * + *
+     * Output only. Disk serial number.
+     * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serialNumber. + */ + com.google.protobuf.ByteString getSerialNumberBytes(); + + /** + * + * + *
+     * Output only. Disk PSID.
+     * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The psid. + */ + java.lang.String getPsid(); + /** + * + * + *
+     * Output only. Disk PSID.
+     * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for psid. + */ + com.google.protobuf.ByteString getPsidBytes(); + + /** + * + * + *
+     * Output only. Disk part number.
+     * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partNumber. + */ + java.lang.String getPartNumber(); + /** + * + * + *
+     * Output only. Disk part number.
+     * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for partNumber. + */ + com.google.protobuf.ByteString getPartNumberBytes(); + + /** + * + * + *
+     * Output only. Disk model number.
+     * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelNumber. + */ + java.lang.String getModelNumber(); + /** + * + * + *
+     * Output only. Disk model number.
+     * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelNumber. + */ + com.google.protobuf.ByteString getModelNumberBytes(); + } + /** + * + * + *
+   * Information about individual disks on a machine.
+   * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo} + */ + public static final class DiskInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) + DiskInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiskInfo.newBuilder() to construct. + private DiskInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskInfo() { + manufacturer_ = ""; + serialNumber_ = ""; + psid_ = ""; + partNumber_ = ""; + modelNumber_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder.class); + } + + public static final int MANUFACTURER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object manufacturer_ = ""; + /** + * + * + *
+     * Output only. Disk manufacturer.
+     * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The manufacturer. + */ + @java.lang.Override + public java.lang.String getManufacturer() { + java.lang.Object ref = manufacturer_; + 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(); + manufacturer_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Disk manufacturer.
+     * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for manufacturer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManufacturerBytes() { + java.lang.Object ref = manufacturer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manufacturer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SLOT_FIELD_NUMBER = 2; + private int slot_ = 0; + /** + * + * + *
+     * Output only. Disk slot number.
+     * 
+ * + * int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + + public static final int SERIAL_NUMBER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serialNumber_ = ""; + /** + * + * + *
+     * Output only. Disk serial number.
+     * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serialNumber. + */ + @java.lang.Override + public java.lang.String getSerialNumber() { + java.lang.Object ref = serialNumber_; + 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(); + serialNumber_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Disk serial number.
+     * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serialNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSerialNumberBytes() { + java.lang.Object ref = serialNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serialNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object psid_ = ""; + /** + * + * + *
+     * Output only. Disk PSID.
+     * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The psid. + */ + @java.lang.Override + public java.lang.String getPsid() { + java.lang.Object ref = psid_; + 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(); + psid_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Disk PSID.
+     * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for psid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPsidBytes() { + java.lang.Object ref = psid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + psid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PART_NUMBER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object partNumber_ = ""; + /** + * + * + *
+     * Output only. Disk part number.
+     * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partNumber. + */ + @java.lang.Override + public java.lang.String getPartNumber() { + java.lang.Object ref = partNumber_; + 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(); + partNumber_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Disk part number.
+     * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for partNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPartNumberBytes() { + java.lang.Object ref = partNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + partNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_NUMBER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelNumber_ = ""; + /** + * + * + *
+     * Output only. Disk model number.
+     * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelNumber. + */ + @java.lang.Override + public java.lang.String getModelNumber() { + java.lang.Object ref = modelNumber_; + 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(); + modelNumber_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Disk model number.
+     * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelNumberBytes() { + java.lang.Object ref = modelNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manufacturer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manufacturer_); + } + if (slot_ != 0) { + output.writeInt32(2, slot_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serialNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, psid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, modelNumber_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manufacturer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manufacturer_); + } + if (slot_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, slot_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serialNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, psid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, modelNumber_); + } + 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.gdchardwaremanagement.v1alpha.Hardware.DiskInfo)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) obj; + + if (!getManufacturer().equals(other.getManufacturer())) return false; + if (getSlot() != other.getSlot()) return false; + if (!getSerialNumber().equals(other.getSerialNumber())) return false; + if (!getPsid().equals(other.getPsid())) return false; + if (!getPartNumber().equals(other.getPartNumber())) return false; + if (!getModelNumber().equals(other.getModelNumber())) 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) + MANUFACTURER_FIELD_NUMBER; + hash = (53 * hash) + getManufacturer().hashCode(); + hash = (37 * hash) + SLOT_FIELD_NUMBER; + hash = (53 * hash) + getSlot(); + hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSerialNumber().hashCode(); + hash = (37 * hash) + PSID_FIELD_NUMBER; + hash = (53 * hash) + getPsid().hashCode(); + hash = (37 * hash) + PART_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPartNumber().hashCode(); + hash = (37 * hash) + MODEL_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getModelNumber().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo 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.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo 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.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.gdchardwaremanagement.v1alpha.Hardware.DiskInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Information about individual disks on a machine.
+     * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + manufacturer_ = ""; + slot_ = 0; + serialNumber_ = ""; + psid_ = ""; + partNumber_ = ""; + modelNumber_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.manufacturer_ = manufacturer_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.slot_ = slot_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serialNumber_ = serialNumber_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.psid_ = psid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.partNumber_ = partNumber_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelNumber_ = modelNumber_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + .getDefaultInstance()) return this; + if (!other.getManufacturer().isEmpty()) { + manufacturer_ = other.manufacturer_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSlot() != 0) { + setSlot(other.getSlot()); + } + if (!other.getSerialNumber().isEmpty()) { + serialNumber_ = other.serialNumber_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPsid().isEmpty()) { + psid_ = other.psid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPartNumber().isEmpty()) { + partNumber_ = other.partNumber_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getModelNumber().isEmpty()) { + modelNumber_ = other.modelNumber_; + bitField0_ |= 0x00000020; + 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: + { + manufacturer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + slot_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + serialNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + psid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + partNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + modelNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object manufacturer_ = ""; + /** + * + * + *
+       * Output only. Disk manufacturer.
+       * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The manufacturer. + */ + public java.lang.String getManufacturer() { + java.lang.Object ref = manufacturer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manufacturer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Disk manufacturer.
+       * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for manufacturer. + */ + public com.google.protobuf.ByteString getManufacturerBytes() { + java.lang.Object ref = manufacturer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manufacturer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Disk manufacturer.
+       * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The manufacturer to set. + * @return This builder for chaining. + */ + public Builder setManufacturer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + manufacturer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk manufacturer.
+       * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearManufacturer() { + manufacturer_ = getDefaultInstance().getManufacturer(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk manufacturer.
+       * 
+ * + * string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for manufacturer to set. + * @return This builder for chaining. + */ + public Builder setManufacturerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manufacturer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int slot_; + /** + * + * + *
+       * Output only. Disk slot number.
+       * 
+ * + * int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + /** + * + * + *
+       * Output only. Disk slot number.
+       * 
+ * + * int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The slot to set. + * @return This builder for chaining. + */ + public Builder setSlot(int value) { + + slot_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk slot number.
+       * 
+ * + * int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSlot() { + bitField0_ = (bitField0_ & ~0x00000002); + slot_ = 0; + onChanged(); + return this; + } + + private java.lang.Object serialNumber_ = ""; + /** + * + * + *
+       * Output only. Disk serial number.
+       * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serialNumber. + */ + public java.lang.String getSerialNumber() { + java.lang.Object ref = serialNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serialNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Disk serial number.
+       * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serialNumber. + */ + public com.google.protobuf.ByteString getSerialNumberBytes() { + java.lang.Object ref = serialNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serialNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Disk serial number.
+       * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serialNumber to set. + * @return This builder for chaining. + */ + public Builder setSerialNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serialNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk serial number.
+       * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSerialNumber() { + serialNumber_ = getDefaultInstance().getSerialNumber(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk serial number.
+       * 
+ * + * string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serialNumber to set. + * @return This builder for chaining. + */ + public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object psid_ = ""; + /** + * + * + *
+       * Output only. Disk PSID.
+       * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The psid. + */ + public java.lang.String getPsid() { + java.lang.Object ref = psid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + psid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Disk PSID.
+       * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for psid. + */ + public com.google.protobuf.ByteString getPsidBytes() { + java.lang.Object ref = psid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + psid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Disk PSID.
+       * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The psid to set. + * @return This builder for chaining. + */ + public Builder setPsid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + psid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk PSID.
+       * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPsid() { + psid_ = getDefaultInstance().getPsid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk PSID.
+       * 
+ * + * string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for psid to set. + * @return This builder for chaining. + */ + public Builder setPsidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + psid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object partNumber_ = ""; + /** + * + * + *
+       * Output only. Disk part number.
+       * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partNumber. + */ + public java.lang.String getPartNumber() { + java.lang.Object ref = partNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Disk part number.
+       * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for partNumber. + */ + public com.google.protobuf.ByteString getPartNumberBytes() { + java.lang.Object ref = partNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + partNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Disk part number.
+       * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The partNumber to set. + * @return This builder for chaining. + */ + public Builder setPartNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + partNumber_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk part number.
+       * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPartNumber() { + partNumber_ = getDefaultInstance().getPartNumber(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk part number.
+       * 
+ * + * string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for partNumber to set. + * @return This builder for chaining. + */ + public Builder setPartNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + partNumber_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object modelNumber_ = ""; + /** + * + * + *
+       * Output only. Disk model number.
+       * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelNumber. + */ + public java.lang.String getModelNumber() { + java.lang.Object ref = modelNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Disk model number.
+       * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelNumber. + */ + public com.google.protobuf.ByteString getModelNumberBytes() { + java.lang.Object ref = modelNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Disk model number.
+       * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelNumber to set. + * @return This builder for chaining. + */ + public Builder setModelNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelNumber_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk model number.
+       * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelNumber() { + modelNumber_ = getDefaultInstance().getModelNumber(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Disk model number.
+       * 
+ * + * string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelNumber to set. + * @return This builder for chaining. + */ + public Builder setModelNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelNumber_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskInfo 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.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MachineInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Machine service tag.
+     * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceTag. + */ + java.lang.String getServiceTag(); + /** + * + * + *
+     * Output only. Machine service tag.
+     * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceTag. + */ + com.google.protobuf.ByteString getServiceTagBytes(); + + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMacAddressesList(); + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress getMacAddresses(int index); + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMacAddressesCount(); + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder> + getMacAddressesOrBuilderList(); + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder + getMacAddressesOrBuilder(int index); + + /** + * + * + *
+     * Output only. Machine name.
+     * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Output only. Machine name.
+     * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDiskInfosList(); + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo getDiskInfos(int index); + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDiskInfosCount(); + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder> + getDiskInfosOrBuilderList(); + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder getDiskInfosOrBuilder( + int index); + } + /** + * + * + *
+   * Information about individual machines vendors will provide during turnup.
+   * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo} + */ + public static final class MachineInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) + MachineInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use MachineInfo.newBuilder() to construct. + private MachineInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MachineInfo() { + serviceTag_ = ""; + macAddresses_ = java.util.Collections.emptyList(); + name_ = ""; + diskInfos_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MachineInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder.class); + } + + public static final int SERVICE_TAG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceTag_ = ""; + /** + * + * + *
+     * Output only. Machine service tag.
+     * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceTag. + */ + @java.lang.Override + public java.lang.String getServiceTag() { + java.lang.Object ref = serviceTag_; + 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(); + serviceTag_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Machine service tag.
+     * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceTag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceTagBytes() { + java.lang.Object ref = serviceTag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceTag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAC_ADDRESSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + macAddresses_; + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMacAddressesList() { + return macAddresses_; + } + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder> + getMacAddressesOrBuilderList() { + return macAddresses_; + } + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMacAddressesCount() { + return macAddresses_.size(); + } + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress getMacAddresses( + int index) { + return macAddresses_.get(index); + } + /** + * + * + *
+     * Output only. Each associated MAC address.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder + getMacAddressesOrBuilder(int index) { + return macAddresses_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Machine name.
+     * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Machine name.
+     * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_INFOS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + diskInfos_; + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiskInfosList() { + return diskInfos_; + } + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder> + getDiskInfosOrBuilderList() { + return diskInfos_; + } + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDiskInfosCount() { + return diskInfos_.size(); + } + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo getDiskInfos( + int index) { + return diskInfos_.get(index); + } + /** + * + * + *
+     * Output only. Information for each disk installed.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder + getDiskInfosOrBuilder(int index) { + return diskInfos_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceTag_); + } + for (int i = 0; i < macAddresses_.size(); i++) { + output.writeMessage(2, macAddresses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + for (int i = 0; i < diskInfos_.size(); i++) { + output.writeMessage(4, diskInfos_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceTag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceTag_); + } + for (int i = 0; i < macAddresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, macAddresses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + for (int i = 0; i < diskInfos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, diskInfos_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) obj; + + if (!getServiceTag().equals(other.getServiceTag())) return false; + if (!getMacAddressesList().equals(other.getMacAddressesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDiskInfosList().equals(other.getDiskInfosList())) 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) + SERVICE_TAG_FIELD_NUMBER; + hash = (53 * hash) + getServiceTag().hashCode(); + if (getMacAddressesCount() > 0) { + hash = (37 * hash) + MAC_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getMacAddressesList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDiskInfosCount() > 0) { + hash = (37 * hash) + DISK_INFOS_FIELD_NUMBER; + hash = (53 * hash) + getDiskInfosList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo 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.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo 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.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.gdchardwaremanagement.v1alpha.Hardware.MachineInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Information about individual machines vendors will provide during turnup.
+     * 
+ * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceTag_ = ""; + if (macAddressesBuilder_ == null) { + macAddresses_ = java.util.Collections.emptyList(); + } else { + macAddresses_ = null; + macAddressesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + name_ = ""; + if (diskInfosBuilder_ == null) { + diskInfos_ = java.util.Collections.emptyList(); + } else { + diskInfos_ = null; + diskInfosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo result) { + if (macAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + macAddresses_ = java.util.Collections.unmodifiableList(macAddresses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.macAddresses_ = macAddresses_; + } else { + result.macAddresses_ = macAddressesBuilder_.build(); + } + if (diskInfosBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + diskInfos_ = java.util.Collections.unmodifiableList(diskInfos_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.diskInfos_ = diskInfos_; + } else { + result.diskInfos_ = diskInfosBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceTag_ = serviceTag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + .getDefaultInstance()) return this; + if (!other.getServiceTag().isEmpty()) { + serviceTag_ = other.serviceTag_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (macAddressesBuilder_ == null) { + if (!other.macAddresses_.isEmpty()) { + if (macAddresses_.isEmpty()) { + macAddresses_ = other.macAddresses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMacAddressesIsMutable(); + macAddresses_.addAll(other.macAddresses_); + } + onChanged(); + } + } else { + if (!other.macAddresses_.isEmpty()) { + if (macAddressesBuilder_.isEmpty()) { + macAddressesBuilder_.dispose(); + macAddressesBuilder_ = null; + macAddresses_ = other.macAddresses_; + bitField0_ = (bitField0_ & ~0x00000002); + macAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMacAddressesFieldBuilder() + : null; + } else { + macAddressesBuilder_.addAllMessages(other.macAddresses_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (diskInfosBuilder_ == null) { + if (!other.diskInfos_.isEmpty()) { + if (diskInfos_.isEmpty()) { + diskInfos_ = other.diskInfos_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDiskInfosIsMutable(); + diskInfos_.addAll(other.diskInfos_); + } + onChanged(); + } + } else { + if (!other.diskInfos_.isEmpty()) { + if (diskInfosBuilder_.isEmpty()) { + diskInfosBuilder_.dispose(); + diskInfosBuilder_ = null; + diskInfos_ = other.diskInfos_; + bitField0_ = (bitField0_ & ~0x00000008); + diskInfosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiskInfosFieldBuilder() + : null; + } else { + diskInfosBuilder_.addAllMessages(other.diskInfos_); + } + } + } + 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: + { + serviceTag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + .parser(), + extensionRegistry); + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + macAddresses_.add(m); + } else { + macAddressesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.parser(), + extensionRegistry); + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + diskInfos_.add(m); + } else { + diskInfosBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceTag_ = ""; + /** + * + * + *
+       * Output only. Machine service tag.
+       * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceTag. + */ + public java.lang.String getServiceTag() { + java.lang.Object ref = serviceTag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceTag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Machine service tag.
+       * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceTag. + */ + public com.google.protobuf.ByteString getServiceTagBytes() { + java.lang.Object ref = serviceTag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceTag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Machine service tag.
+       * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceTag to set. + * @return This builder for chaining. + */ + public Builder setServiceTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceTag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Machine service tag.
+       * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceTag() { + serviceTag_ = getDefaultInstance().getServiceTag(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Machine service tag.
+       * 
+ * + * string service_tag = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceTag to set. + * @return This builder for chaining. + */ + public Builder setServiceTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceTag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + macAddresses_ = java.util.Collections.emptyList(); + + private void ensureMacAddressesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + macAddresses_ = + new java.util.ArrayList< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress>( + macAddresses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder> + macAddressesBuilder_; + + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMacAddressesList() { + if (macAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(macAddresses_); + } else { + return macAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMacAddressesCount() { + if (macAddressesBuilder_ == null) { + return macAddresses_.size(); + } else { + return macAddressesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress getMacAddresses( + int index) { + if (macAddressesBuilder_ == null) { + return macAddresses_.get(index); + } else { + return macAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMacAddresses( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress value) { + if (macAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMacAddressesIsMutable(); + macAddresses_.set(index, value); + onChanged(); + } else { + macAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMacAddresses( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + builderForValue) { + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + macAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + macAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMacAddresses( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress value) { + if (macAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMacAddressesIsMutable(); + macAddresses_.add(value); + onChanged(); + } else { + macAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMacAddresses( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress value) { + if (macAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMacAddressesIsMutable(); + macAddresses_.add(index, value); + onChanged(); + } else { + macAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMacAddresses( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + builderForValue) { + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + macAddresses_.add(builderForValue.build()); + onChanged(); + } else { + macAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMacAddresses( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + builderForValue) { + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + macAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + macAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMacAddresses( + java.lang.Iterable< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress> + values) { + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddresses_); + onChanged(); + } else { + macAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMacAddresses() { + if (macAddressesBuilder_ == null) { + macAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + macAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMacAddresses(int index) { + if (macAddressesBuilder_ == null) { + ensureMacAddressesIsMutable(); + macAddresses_.remove(index); + onChanged(); + } else { + macAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + getMacAddressesBuilder(int index) { + return getMacAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder + getMacAddressesOrBuilder(int index) { + if (macAddressesBuilder_ == null) { + return macAddresses_.get(index); + } else { + return macAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder> + getMacAddressesOrBuilderList() { + if (macAddressesBuilder_ != null) { + return macAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(macAddresses_); + } + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + addMacAddressesBuilder() { + return getMacAddressesFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + .getDefaultInstance()); + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder + addMacAddressesBuilder(int index) { + return getMacAddressesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress + .getDefaultInstance()); + } + /** + * + * + *
+       * Output only. Each associated MAC address.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress mac_addresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder> + getMacAddressesBuilderList() { + return getMacAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder> + getMacAddressesFieldBuilder() { + if (macAddressesBuilder_ == null) { + macAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddress.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressOrBuilder>( + macAddresses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + macAddresses_ = null; + } + return macAddressesBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * Output only. Machine name.
+       * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Machine name.
+       * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Machine name.
+       * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Machine name.
+       * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Machine name.
+       * 
+ * + * string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List + diskInfos_ = java.util.Collections.emptyList(); + + private void ensureDiskInfosIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + diskInfos_ = + new java.util.ArrayList< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo>(diskInfos_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder> + diskInfosBuilder_; + + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiskInfosList() { + if (diskInfosBuilder_ == null) { + return java.util.Collections.unmodifiableList(diskInfos_); + } else { + return diskInfosBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDiskInfosCount() { + if (diskInfosBuilder_ == null) { + return diskInfos_.size(); + } else { + return diskInfosBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo getDiskInfos( + int index) { + if (diskInfosBuilder_ == null) { + return diskInfos_.get(index); + } else { + return diskInfosBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskInfos( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo value) { + if (diskInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskInfosIsMutable(); + diskInfos_.set(index, value); + onChanged(); + } else { + diskInfosBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskInfos( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + builderForValue) { + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + diskInfos_.set(index, builderForValue.build()); + onChanged(); + } else { + diskInfosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskInfos( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo value) { + if (diskInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskInfosIsMutable(); + diskInfos_.add(value); + onChanged(); + } else { + diskInfosBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskInfos( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo value) { + if (diskInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskInfosIsMutable(); + diskInfos_.add(index, value); + onChanged(); + } else { + diskInfosBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskInfos( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + builderForValue) { + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + diskInfos_.add(builderForValue.build()); + onChanged(); + } else { + diskInfosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskInfos( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + builderForValue) { + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + diskInfos_.add(index, builderForValue.build()); + onChanged(); + } else { + diskInfosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDiskInfos( + java.lang.Iterable< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo> + values) { + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diskInfos_); + onChanged(); + } else { + diskInfosBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDiskInfos() { + if (diskInfosBuilder_ == null) { + diskInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + diskInfosBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDiskInfos(int index) { + if (diskInfosBuilder_ == null) { + ensureDiskInfosIsMutable(); + diskInfos_.remove(index); + onChanged(); + } else { + diskInfosBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + getDiskInfosBuilder(int index) { + return getDiskInfosFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder + getDiskInfosOrBuilder(int index) { + if (diskInfosBuilder_ == null) { + return diskInfos_.get(index); + } else { + return diskInfosBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder> + getDiskInfosOrBuilderList() { + if (diskInfosBuilder_ != null) { + return diskInfosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(diskInfos_); + } + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + addDiskInfosBuilder() { + return getDiskInfosFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + .getDefaultInstance()); + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder + addDiskInfosBuilder(int index) { + return getDiskInfosFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo + .getDefaultInstance()); + } + /** + * + * + *
+       * Output only. Information for each disk installed.
+       * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo disk_infos = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder> + getDiskInfosBuilderList() { + return getDiskInfosFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder> + getDiskInfosFieldBuilder() { + if (diskInfosBuilder_ == null) { + diskInfosBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfoOrBuilder>( + diskInfos_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + diskInfos_ = null; + } + return diskInfosBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MachineInfo 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.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -1202,9 +5965,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -1221,9 +5984,9 @@ public boolean hasRequestedInstallationDate() { * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -1242,9 +6005,9 @@ public com.google.type.Date getRequestedInstallationDate() { * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -1317,6 +6080,92 @@ public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { : actualInstallationDate_; } + public static final int MACHINE_INFOS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private java.util.List + machineInfos_; + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMachineInfosList() { + return machineInfos_; + } + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder> + getMachineInfosOrBuilderList() { + return machineInfos_; + } + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMachineInfosCount() { + return machineInfos_.size(); + } + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo getMachineInfos( + int index) { + return machineInfos_.get(index); + } + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder + getMachineInfosOrBuilder(int index) { + return machineInfos_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1383,6 +6232,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(17, getActualInstallationDate()); } + for (int i = 0; i < machineInfos_.size(); i++) { + output.writeMessage(20, machineInfos_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1457,6 +6309,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getActualInstallationDate()); } + for (int i = 0; i < machineInfos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, machineInfos_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1516,6 +6371,7 @@ public boolean equals(final java.lang.Object obj) { if (hasActualInstallationDate()) { if (!getActualInstallationDate().equals(other.getActualInstallationDate())) return false; } + if (!getMachineInfosList().equals(other.getMachineInfosList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1579,6 +6435,10 @@ public int hashCode() { hash = (37 * hash) + ACTUAL_INSTALLATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getActualInstallationDate().hashCode(); } + if (getMachineInfosCount() > 0) { + hash = (37 * hash) + MACHINE_INFOS_FIELD_NUMBER; + hash = (53 * hash) + getMachineInfosList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1750,6 +6610,7 @@ private void maybeForceBuilderInitialization() { getInstallationInfoFieldBuilder(); getRequestedInstallationDateFieldBuilder(); getActualInstallationDateFieldBuilder(); + getMachineInfosFieldBuilder(); } } @@ -1806,6 +6667,13 @@ public Builder clear() { actualInstallationDateBuilder_.dispose(); actualInstallationDateBuilder_ = null; } + if (machineInfosBuilder_ == null) { + machineInfos_ = java.util.Collections.emptyList(); + } else { + machineInfos_ = null; + machineInfosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); return this; } @@ -1833,6 +6701,7 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware build() { public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware buildPartial() { com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result = new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1840,6 +6709,19 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result) { + if (machineInfosBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + machineInfos_ = java.util.Collections.unmodifiableList(machineInfos_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.machineInfos_ = machineInfos_; + } else { + result.machineInfos_ = machineInfosBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -2027,6 +6909,33 @@ public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware if (other.hasActualInstallationDate()) { mergeActualInstallationDate(other.getActualInstallationDate()); } + if (machineInfosBuilder_ == null) { + if (!other.machineInfos_.isEmpty()) { + if (machineInfos_.isEmpty()) { + machineInfos_ = other.machineInfos_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureMachineInfosIsMutable(); + machineInfos_.addAll(other.machineInfos_); + } + onChanged(); + } + } else { + if (!other.machineInfos_.isEmpty()) { + if (machineInfosBuilder_.isEmpty()) { + machineInfosBuilder_.dispose(); + machineInfosBuilder_ = null; + machineInfos_ = other.machineInfos_; + bitField0_ = (bitField0_ & ~0x00020000); + machineInfosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMachineInfosFieldBuilder() + : null; + } else { + machineInfosBuilder_.addAllMessages(other.machineInfos_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2165,6 +7074,21 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 138 + case 162: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + .parser(), + extensionRegistry); + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + machineInfos_.add(m); + } else { + machineInfosBuilder_.addMessage(m); + } + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4528,9 +9452,9 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4546,9 +9470,9 @@ public boolean hasRequestedInstallationDate() { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4570,9 +9494,9 @@ public com.google.type.Date getRequestedInstallationDate() { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4596,9 +9520,9 @@ public Builder setRequestedInstallationDate(com.google.type.Date value) { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4619,9 +9543,9 @@ public Builder setRequestedInstallationDate(com.google.type.Date.Builder builder * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4650,9 +9574,9 @@ public Builder mergeRequestedInstallationDate(com.google.type.Date value) { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4673,9 +9597,9 @@ public Builder clearRequestedInstallationDate() { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4691,9 +9615,9 @@ public com.google.type.Date.Builder getRequestedInstallationDateBuilder() { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4713,9 +9637,9 @@ public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { * * *
-     * Optional. Requested installation date for this hardware. This is
-     * auto-populated when the order is accepted, if the hardware's HardwareGroup
-     * specifies this. It can also be filled in by the customer.
+     * Optional. Requested installation date for this hardware. If not specified,
+     * this is auto-populated from the order's fulfillment_time upon submission or
+     * from the HardwareGroup's requested_installation_date upon order acceptance.
      * 
* * @@ -4941,6 +9865,417 @@ public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { return actualInstallationDateBuilder_; } + private java.util.List + machineInfos_ = java.util.Collections.emptyList(); + + private void ensureMachineInfosIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + machineInfos_ = + new java.util.ArrayList< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo>(machineInfos_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder> + machineInfosBuilder_; + + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMachineInfosList() { + if (machineInfosBuilder_ == null) { + return java.util.Collections.unmodifiableList(machineInfos_); + } else { + return machineInfosBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMachineInfosCount() { + if (machineInfosBuilder_ == null) { + return machineInfos_.size(); + } else { + return machineInfosBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo getMachineInfos( + int index) { + if (machineInfosBuilder_ == null) { + return machineInfos_.get(index); + } else { + return machineInfosBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMachineInfos( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo value) { + if (machineInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMachineInfosIsMutable(); + machineInfos_.set(index, value); + onChanged(); + } else { + machineInfosBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMachineInfos( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + builderForValue) { + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + machineInfos_.set(index, builderForValue.build()); + onChanged(); + } else { + machineInfosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMachineInfos( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo value) { + if (machineInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMachineInfosIsMutable(); + machineInfos_.add(value); + onChanged(); + } else { + machineInfosBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMachineInfos( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo value) { + if (machineInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMachineInfosIsMutable(); + machineInfos_.add(index, value); + onChanged(); + } else { + machineInfosBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMachineInfos( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + builderForValue) { + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + machineInfos_.add(builderForValue.build()); + onChanged(); + } else { + machineInfosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMachineInfos( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + builderForValue) { + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + machineInfos_.add(index, builderForValue.build()); + onChanged(); + } else { + machineInfosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMachineInfos( + java.lang.Iterable< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo> + values) { + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, machineInfos_); + onChanged(); + } else { + machineInfosBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMachineInfos() { + if (machineInfosBuilder_ == null) { + machineInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + machineInfosBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMachineInfos(int index) { + if (machineInfosBuilder_ == null) { + ensureMachineInfosIsMutable(); + machineInfos_.remove(index); + onChanged(); + } else { + machineInfosBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + getMachineInfosBuilder(int index) { + return getMachineInfosFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder + getMachineInfosOrBuilder(int index) { + if (machineInfosBuilder_ == null) { + return machineInfos_.get(index); + } else { + return machineInfosBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder> + getMachineInfosOrBuilderList() { + if (machineInfosBuilder_ != null) { + return machineInfosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(machineInfos_); + } + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + addMachineInfosBuilder() { + return getMachineInfosFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder + addMachineInfosBuilder(int index) { + return getMachineInfosFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Per machine asset information needed for turnup.
+     * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder> + getMachineInfosBuilderList() { + return getMachineInfosFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder> + getMachineInfosFieldBuilder() { + if (machineInfosBuilder_ == null) { + machineInfosBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder>( + machineInfos_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + machineInfos_ = null; + } + return machineInfosBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java index 55a20ee7f7b6..6d1f089b5e28 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java @@ -233,11 +233,11 @@ private RackType(int value) { * * *
-   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
    * Rack 3.
    * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rackLocation. */ @@ -257,11 +257,11 @@ public java.lang.String getRackLocation() { * * *
-   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
    * Rack 3.
    * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rackLocation. */ @@ -982,11 +982,11 @@ public Builder mergeFrom( * * *
-     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
      * Rack 3.
      * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rackLocation. */ @@ -1005,11 +1005,11 @@ public java.lang.String getRackLocation() { * * *
-     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
      * Rack 3.
      * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rackLocation. */ @@ -1028,11 +1028,11 @@ public com.google.protobuf.ByteString getRackLocationBytes() { * * *
-     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
      * Rack 3.
      * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The rackLocation to set. * @return This builder for chaining. @@ -1050,11 +1050,11 @@ public Builder setRackLocation(java.lang.String value) { * * *
-     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
      * Rack 3.
      * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1068,11 +1068,11 @@ public Builder clearRackLocation() { * * *
-     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
      * Rack 3.
      * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for rackLocation to set. * @return This builder for chaining. diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java index 01db3b9a84a8..5f4f0a87f2d8 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java @@ -28,11 +28,11 @@ public interface HardwareInstallationInfoOrBuilder * * *
-   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
    * Rack 3.
    * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rackLocation. */ @@ -41,11 +41,11 @@ public interface HardwareInstallationInfoOrBuilder * * *
-   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
+   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
    * Rack 3.
    * 
* - * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string rack_location = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rackLocation. */ diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java index 673157629071..641162cb15ec 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java @@ -572,9 +572,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -588,9 +588,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -604,9 +604,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Requested installation date for this hardware. This is
-   * auto-populated when the order is accepted, if the hardware's HardwareGroup
-   * specifies this. It can also be filled in by the customer.
+   * Optional. Requested installation date for this hardware. If not specified,
+   * this is auto-populated from the order's fulfillment_time upon submission or
+   * from the HardwareGroup's requested_installation_date upon order acceptance.
    * 
* * @@ -658,4 +658,69 @@ java.lang.String getLabelsOrDefault( * */ com.google.type.DateOrBuilder getActualInstallationDateOrBuilder(); + + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMachineInfosList(); + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo getMachineInfos(int index); + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMachineInfosCount(); + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder> + getMachineInfosOrBuilderList(); + /** + * + * + *
+   * Output only. Per machine asset information needed for turnup.
+   * 
+ * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo machine_infos = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder + getMachineInfosOrBuilder(int index); } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java index a77f692ff3d9..1089d67a01eb 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java @@ -76,6 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The project and location to list hardware in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list hardware across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -102,6 +106,10 @@ public java.lang.String getParent() { *
    * Required. The project and location to list hardware in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list hardware across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -747,6 +755,10 @@ public Builder mergeFrom( *
      * Required. The project and location to list hardware in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list hardware across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -772,6 +784,10 @@ public java.lang.String getParent() { *
      * Required. The project and location to list hardware in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list hardware across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -797,6 +813,10 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The project and location to list hardware in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list hardware across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -821,6 +841,10 @@ public Builder setParent(java.lang.String value) { *
      * Required. The project and location to list hardware in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list hardware across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -841,6 +865,10 @@ public Builder clearParent() { *
      * Required. The project and location to list hardware in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list hardware across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java index 8fb5627fadb0..abac91c6398e 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface ListHardwareRequestOrBuilder *
    * Required. The project and location to list hardware in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list hardware across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -45,6 +49,10 @@ public interface ListHardwareRequestOrBuilder *
    * Required. The project and location to list hardware in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list hardware across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java index f951cc2a852c..59af38d13150 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java @@ -197,7 +197,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -211,7 +212,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -225,7 +227,8 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -240,7 +243,8 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -1196,7 +1200,8 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1211,7 +1216,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1225,7 +1231,8 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1240,7 +1247,8 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1255,7 +1263,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1278,7 +1287,8 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1300,7 +1310,8 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1319,7 +1330,8 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1337,7 +1349,8 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java index d315c560fe21..dc7a9ea03d3b 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java @@ -105,7 +105,8 @@ public interface ListHardwareResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -117,7 +118,8 @@ public interface ListHardwareResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -129,7 +131,8 @@ public interface ListHardwareResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -142,7 +145,8 @@ public interface ListHardwareResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java index d7cf6ad6fe57..7f35f4b0e9d2 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java @@ -76,6 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The project and location to list orders in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list orders across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -102,6 +106,10 @@ public java.lang.String getParent() { *
    * Required. The project and location to list orders in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list orders across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -743,6 +751,10 @@ public Builder mergeFrom( *
      * Required. The project and location to list orders in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list orders across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -768,6 +780,10 @@ public java.lang.String getParent() { *
      * Required. The project and location to list orders in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list orders across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -793,6 +809,10 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The project and location to list orders in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list orders across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -817,6 +837,10 @@ public Builder setParent(java.lang.String value) { *
      * Required. The project and location to list orders in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list orders across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -837,6 +861,10 @@ public Builder clearParent() { *
      * Required. The project and location to list orders in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list orders across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java index a547f35bbba5..9ef7b217248d 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface ListOrdersRequestOrBuilder *
    * Required. The project and location to list orders in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list orders across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -45,6 +49,10 @@ public interface ListOrdersRequestOrBuilder *
    * Required. The project and location to list orders in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list orders across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java index 96a4bb02f050..18412cc76cab 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java @@ -197,7 +197,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -211,7 +212,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -225,7 +227,8 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -240,7 +243,8 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -1188,7 +1192,8 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1203,7 +1208,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1217,7 +1223,8 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1232,7 +1239,8 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1247,7 +1255,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1270,7 +1279,8 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1292,7 +1302,8 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1311,7 +1322,8 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1329,7 +1341,8 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java index a3af70bacf82..1a435f0832e0 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java @@ -105,7 +105,8 @@ public interface ListOrdersResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -117,7 +118,8 @@ public interface ListOrdersResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -129,7 +131,8 @@ public interface ListOrdersResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -142,7 +145,8 @@ public interface ListOrdersResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java index bc78658ddc2e..3690dbdfbc61 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java @@ -76,6 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The project and location to list sites in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list sites across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -102,6 +106,10 @@ public java.lang.String getParent() { *
    * Required. The project and location to list sites in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list sites across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -743,6 +751,10 @@ public Builder mergeFrom( *
      * Required. The project and location to list sites in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list sites across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -768,6 +780,10 @@ public java.lang.String getParent() { *
      * Required. The project and location to list sites in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list sites across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -793,6 +809,10 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The project and location to list sites in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list sites across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -817,6 +837,10 @@ public Builder setParent(java.lang.String value) { *
      * Required. The project and location to list sites in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list sites across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -837,6 +861,10 @@ public Builder clearParent() { *
      * Required. The project and location to list sites in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list sites across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java index a0ee38655108..40ab0b0f0a07 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface ListSitesRequestOrBuilder *
    * Required. The project and location to list sites in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list sites across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -45,6 +49,10 @@ public interface ListSitesRequestOrBuilder *
    * Required. The project and location to list sites in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list sites across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java index d5d1db35e640..2ef043bea5c9 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java @@ -196,7 +196,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -210,7 +211,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -224,7 +226,8 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -239,7 +242,8 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -1181,7 +1185,8 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1196,7 +1201,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1210,7 +1216,8 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1225,7 +1232,8 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1240,7 +1248,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1263,7 +1272,8 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1285,7 +1295,8 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1304,7 +1315,8 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1322,7 +1334,8 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java index 3974aa3ba49e..0c7277851351 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java @@ -105,7 +105,8 @@ public interface ListSitesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -117,7 +118,8 @@ public interface ListSitesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -129,7 +131,8 @@ public interface ListSitesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -142,7 +145,8 @@ public interface ListSitesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java index 84288271a0e3..0d2bf2c54d45 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java @@ -76,6 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The project and location to list SKUs in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list SKUs across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -102,6 +106,10 @@ public java.lang.String getParent() { *
    * Required. The project and location to list SKUs in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list SKUs across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -742,6 +750,10 @@ public Builder mergeFrom( *
      * Required. The project and location to list SKUs in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list SKUs across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -767,6 +779,10 @@ public java.lang.String getParent() { *
      * Required. The project and location to list SKUs in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list SKUs across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -792,6 +808,10 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The project and location to list SKUs in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list SKUs across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -816,6 +836,10 @@ public Builder setParent(java.lang.String value) { *
      * Required. The project and location to list SKUs in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list SKUs across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -836,6 +860,10 @@ public Builder clearParent() { *
      * Required. The project and location to list SKUs in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list SKUs across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java index 37517ac2e0f8..0d8f20adcd5d 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface ListSkusRequestOrBuilder *
    * Required. The project and location to list SKUs in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list SKUs across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -45,6 +49,10 @@ public interface ListSkusRequestOrBuilder *
    * Required. The project and location to list SKUs in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list SKUs across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java index d2e3fb4c780d..1b877b037682 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java @@ -196,7 +196,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -210,7 +211,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -224,7 +226,8 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -239,7 +242,8 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -1179,7 +1183,8 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1194,7 +1199,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1208,7 +1214,8 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1223,7 +1230,8 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1238,7 +1246,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1261,7 +1270,8 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1283,7 +1293,8 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1302,7 +1313,8 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1320,7 +1332,8 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java index d2cc90c101c1..197965faf300 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java @@ -105,7 +105,8 @@ public interface ListSkusResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -117,7 +118,8 @@ public interface ListSkusResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -129,7 +131,8 @@ public interface ListSkusResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -142,7 +145,8 @@ public interface ListSkusResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java index 37061be6dbed..352ebf5c26d5 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java @@ -76,6 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The project and location to list zones in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list zones across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -102,6 +106,10 @@ public java.lang.String getParent() { *
    * Required. The project and location to list zones in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list zones across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -743,6 +751,10 @@ public Builder mergeFrom( *
      * Required. The project and location to list zones in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list zones across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -768,6 +780,10 @@ public java.lang.String getParent() { *
      * Required. The project and location to list zones in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list zones across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -793,6 +809,10 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The project and location to list zones in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list zones across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -817,6 +837,10 @@ public Builder setParent(java.lang.String value) { *
      * Required. The project and location to list zones in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list zones across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * @@ -837,6 +861,10 @@ public Builder clearParent() { *
      * Required. The project and location to list zones in.
      * Format: `projects/{project}/locations/{location}`
+     *
+     * To list zones across all locations, substitute `-` (the hyphen or
+     * dash character) for the location and check the unreachable field in
+     * the response message.
      * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java index 90c17528dbea..e241546d22c2 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface ListZonesRequestOrBuilder *
    * Required. The project and location to list zones in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list zones across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * @@ -45,6 +49,10 @@ public interface ListZonesRequestOrBuilder *
    * Required. The project and location to list zones in.
    * Format: `projects/{project}/locations/{location}`
+   *
+   * To list zones across all locations, substitute `-` (the hyphen or
+   * dash character) for the location and check the unreachable field in
+   * the response message.
    * 
* * diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java index 211641d1d3aa..c70a21fa5b98 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java @@ -196,7 +196,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -210,7 +211,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -224,7 +226,8 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -239,7 +242,8 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -1181,7 +1185,8 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1196,7 +1201,8 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1210,7 +1216,8 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1225,7 +1232,8 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1240,7 +1248,8 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1263,7 +1272,8 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1285,7 +1295,8 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1304,7 +1315,8 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; @@ -1322,7 +1334,8 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Locations that could not be reached. Only used for queries to the wildcard
+     * location `-`. If non-empty, it indicates that the results are incomplete.
      * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java index 67feeafd9f18..008ff0e79853 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java @@ -105,7 +105,8 @@ public interface ListZonesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -117,7 +118,8 @@ public interface ListZonesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -129,7 +131,8 @@ public interface ListZonesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; @@ -142,7 +145,8 @@ public interface ListZonesResponseOrBuilder * * *
-   * Locations that could not be reached.
+   * Locations that could not be reached. Only used for queries to the wildcard
+   * location `-`. If non-empty, it indicates that the results are incomplete.
    * 
* * repeated string unreachable = 3; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java index 9c5bbedd3e33..53efa312caa1 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java @@ -56,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -204,7 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Site.LabelsEntryB\003\340A\001\022b\n\024organization_co" + "ntact\030\005 \001(\0132?.google.cloud.gdchardwarema" + "nagement.v1alpha.OrganizationContactB\003\340A" - + "\002\022 \n\023google_maps_pin_uri\030\006 \001(\tB\003\340A\002\022Q\n\014a" + + "\002\022 \n\023google_maps_pin_uri\030\006 \001(\tB\003\340A\001\022Q\n\014a" + "ccess_times\030\032 \003(\01326.google.cloud.gdchard" + "waremanagement.v1alpha.TimePeriodB\003\340A\001\022\022" + "\n\005notes\030\033 \001(\tB\003\340A\001\022\035\n\020customer_site_id\030\034" @@ -237,7 +249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "com/HardwareGroup\022Vprojects/{project}/lo" + "cations/{location}/orders/{order}/hardwa" + "reGroups/{hardware_group}*\016hardwareGroup" - + "s2\rhardwareGroup\"\375\n\n\010Hardware\022\021\n\004name\030\001 " + + "s2\rhardwareGroup\"\275\020\n\010Hardware\022\021\n\004name\030\001 " + "\001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\0224\n\013c" + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" + "tampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google." @@ -264,179 +276,196 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "emanagement.googleapis.com/Zone\022;\n\033reque" + "sted_installation_date\030\020 \001(\0132\021.google.ty" + "pe.DateB\003\340A\001\0228\n\030actual_installation_date" - + "\030\021 \001(\0132\021.google.type.DateB\003\340A\003\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\001" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\032\n\026ADDITI" - + "ONAL_INFO_NEEDED\020\001\022\014\n\010BUILDING\020\002\022\014\n\010SHIP" - + "PING\020\003\022\016\n\nINSTALLING\020\004\022\r\n\tINSTALLED\020\005\022\n\n" - + "\006FAILED\020\006:\204\001\352A\200\001\n-gdchardwaremanagement." - + "googleapis.com/Hardware\022;projects/{proje" - + "ct}/locations/{location}/hardware/{hardw" - + "are}*\010hardware2\010hardware\"\241\004\n\007Comment\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022T\n\006labels\030" - + "\003 \003(\0132?.google.cloud.gdchardwaremanageme" - + "nt.v1alpha.Comment.LabelsEntryB\003\340A\001\022\023\n\006a" - + "uthor\030\004 \001(\tB\003\340A\003\022\021\n\004text\030\005 \001(\tB\003\340A\002\022=\n\024c" - + "ustomer_viewed_time\030\006 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022N\n\rauthor_entity\030\007 \001(" - + "\01622.google.cloud.gdchardwaremanagement.v" - + "1alpha.EntityB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\220\001\352A\214\001\n,gdchar" - + "dwaremanagement.googleapis.com/Comment\022I" - + "projects/{project}/locations/{location}/" - + "orders/{order}/comments/{comment}*\010comme" - + "nts2\007comment\"\261\003\n\016ChangeLogEntry\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022[\n\006labels\030\003 \003(\013" - + "2F.google.cloud.gdchardwaremanagement.v1" - + "alpha.ChangeLogEntry.LabelsEntryB\003\340A\001\022\020\n" - + "\003log\030\004 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\267\001\352A\263\001\n3gdchardwa" - + "remanagement.googleapis.com/ChangeLogEnt" - + "ry\022Zprojects/{project}/locations/{locati" - + "on}/orders/{order}/changeLogEntries/{cha" - + "nge_log_entry}*\020changeLogEntries2\016change" - + "LogEntry\"\214\005\n\003Sku\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014d" - + "isplay_name\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022J\n\006config\030\006 \001(\01325.google.clou" - + "d.gdchardwaremanagement.v1alpha.SkuConfi" - + "gB\003\340A\003\022O\n\tinstances\030\007 \003(\01327.google.cloud" - + ".gdchardwaremanagement.v1alpha.SkuInstan" - + "ceB\003\340A\003\022\030\n\013description\030\010 \001(\tB\003\340A\003\022\030\n\013rev" - + "ision_id\030\t \001(\tB\003\340A\003\022\026\n\tis_active\030\n \001(\010B\003" - + "\340A\003\022G\n\004type\030\013 \001(\01624.google.cloud.gdchard" - + "waremanagement.v1alpha.Sku.TypeB\003\340A\003\022\027\n\n" - + "vcpu_count\030\014 \001(\005B\003\340A\003\"2\n\004Type\022\024\n\020TYPE_UN" - + "SPECIFIED\020\000\022\010\n\004RACK\020\001\022\n\n\006SERVER\020\002:l\352Ai\n(" - + "gdchardwaremanagement.googleapis.com/Sku" - + "\0222projects/{project}/locations/{location" - + "}/skus/{sku}*\004skus2\003sku\"\376\007\n\004Zone\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "Q\n\006labels\030\004 \003(\0132<.google.cloud.gdchardwa" - + "remanagement.v1alpha.Zone.LabelsEntryB\003\340" - + "A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\005state\030\010" - + " \001(\01626.google.cloud.gdchardwaremanagemen" - + "t.v1alpha.Zone.StateB\003\340A\003\022J\n\010contacts\030\t " - + "\003(\01323.google.cloud.gdchardwaremanagement" - + ".v1alpha.ContactB\003\340A\002\022\024\n\007ciq_uri\030\n \001(\tB\003" - + "\340A\003\022Z\n\016network_config\030\013 \001(\0132=.google.clo" - + "ud.gdchardwaremanagement.v1alpha.ZoneNet" - + "workConfigB\003\340A\001\022\037\n\022globally_unique_id\030\014 " - + "\001(\tB\003\340A\003\022a\n\024subscription_configs\030\r \003(\0132>" - + ".google.cloud.gdchardwaremanagement.v1al" - + "pha.SubscriptionConfigB\003\340A\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\032\n\026ADDITIONA" - + "L_INFO_NEEDED\020\001\022\r\n\tPREPARING\020\002\022,\n(READY_" - + "FOR_CUSTOMER_FACTORY_TURNUP_CHECKS\020\005\022\031\n\025" - + "READY_FOR_SITE_TURNUP\020\006\022)\n%CUSTOMER_FACT" - + "ORY_TURNUP_CHECKS_FAILED\020\007\022\n\n\006ACTIVE\020\003\022\r" - + "\n\tCANCELLED\020\004:q\352An\n)gdchardwaremanagemen" - + "t.googleapis.com/Zone\0224projects/{project" - + "}/locations/{location}/zones/{zone}*\005zon" - + "es2\004zone\"\273\001\n\023OrganizationContact\0220\n\007addr" - + "ess\030\001 \001(\0132\032.google.type.PostalAddressB\003\340" - + "A\002\022\022\n\005email\030\002 \001(\tB\003\340A\001\022\022\n\005phone\030\003 \001(\tB\003\340" - + "A\001\022J\n\010contacts\030\004 \003(\01323.google.cloud.gdch" - + "ardwaremanagement.v1alpha.ContactB\003\340A\002\"\351" - + "\001\n\007Contact\022\027\n\ngiven_name\030\001 \001(\tB\003\340A\002\022\030\n\013f" - + "amily_name\030\002 \001(\tB\003\340A\001\022\022\n\005email\030\003 \001(\tB\003\340A" - + "\002\022\022\n\005phone\030\004 \001(\tB\003\340A\002\022-\n\ttime_zone\030\005 \001(\013" - + "2\025.google.type.TimeZoneB\003\340A\001\022T\n\017reachabl" - + "e_times\030\006 \003(\01326.google.cloud.gdchardware" - + "management.v1alpha.TimePeriodB\003\340A\001\"\316\001\n\016H" - + "ardwareConfig\022=\n\003sku\030\001 \001(\tB0\340A\002\372A*\n(gdch" - + "ardwaremanagement.googleapis.com/Sku\022R\n\014" - + "power_supply\030\002 \001(\01627.google.cloud.gdchar" - + "dwaremanagement.v1alpha.PowerSupplyB\003\340A\002" - + "\022)\n\034subscription_duration_months\030\003 \001(\005B\003" - + "\340A\001\"C\n\tSkuConfig\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001" - + "(\t\022\013\n\003ram\030\003 \001(\t\022\017\n\007storage\030\004 \001(\t\"\312\001\n\013Sku" - + "Instance\022\023\n\013region_code\030\001 \001(\t\022M\n\014power_s" - + "upply\030\002 \001(\01627.google.cloud.gdchardwarema" - + "nagement.v1alpha.PowerSupply\022\023\n\013billing_" - + "sku\030\003 \001(\t\022\034\n\024billing_sku_per_vcpu\030\004 \001(\t\022" - + "$\n\034subscription_duration_months\030\005 \001(\005\"\343\005" - + "\n\024HardwarePhysicalInfo\022s\n\020power_receptac" - + "le\030\001 \001(\0162T.google.cloud.gdchardwaremanag" - + "ement.v1alpha.HardwarePhysicalInfo.Power" - + "ReceptacleTypeB\003\340A\002\022o\n\016network_uplink\030\002 " - + "\001(\0162R.google.cloud.gdchardwaremanagement" - + ".v1alpha.HardwarePhysicalInfo.NetworkUpl" - + "inkTypeB\003\340A\002\022^\n\007voltage\030\003 \001(\0162H.google.c" + + "\030\021 \001(\0132\021.google.type.DateB\003\340A\003\022\\\n\rmachin" + + "e_infos\030\024 \003(\0132@.google.cloud.gdchardware" + + "management.v1alpha.Hardware.MachineInfoB" + + "\003\340A\003\032\316\001\n\nMacAddress\022\024\n\007address\030\001 \001(\tB\003\340A" + + "\003\022^\n\004type\030\002 \001(\0162K.google.cloud.gdchardwa" + + "remanagement.v1alpha.Hardware.MacAddress" + + ".AddressTypeB\003\340A\003\"J\n\013AddressType\022\034\n\030ADDR" + + "ESS_TYPE_UNSPECIFIED\020\000\022\007\n\003NIC\020\001\022\007\n\003BMC\020\002" + + "\022\013\n\007VIRTUAL\020\003\032\234\001\n\010DiskInfo\022\031\n\014manufactur" + + "er\030\001 \001(\tB\003\340A\003\022\021\n\004slot\030\002 \001(\005B\003\340A\003\022\032\n\rseri" + + "al_number\030\003 \001(\tB\003\340A\003\022\021\n\004psid\030\004 \001(\tB\003\340A\003\022" + + "\030\n\013part_number\030\005 \001(\tB\003\340A\003\022\031\n\014model_numbe" + + "r\030\006 \001(\tB\003\340A\003\032\357\001\n\013MachineInfo\022\030\n\013service_" + + "tag\030\001 \001(\tB\003\340A\003\022[\n\rmac_addresses\030\002 \003(\0132?." + + "google.cloud.gdchardwaremanagement.v1alp" + + "ha.Hardware.MacAddressB\003\340A\003\022\021\n\004name\030\003 \001(" + + "\tB\003\340A\003\022V\n\ndisk_infos\030\004 \003(\0132=.google.clou" + + "d.gdchardwaremanagement.v1alpha.Hardware" + + ".DiskInfoB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\001\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\032\n\026ADDITIONAL_INFO_NEEDED" + + "\020\001\022\014\n\010BUILDING\020\002\022\014\n\010SHIPPING\020\003\022\016\n\nINSTAL" + + "LING\020\004\022\r\n\tINSTALLED\020\005\022\n\n\006FAILED\020\006:\204\001\352A\200\001" + + "\n-gdchardwaremanagement.googleapis.com/H" + + "ardware\022;projects/{project}/locations/{l" + + "ocation}/hardware/{hardware}*\010hardware2\010" + + "hardware\"\241\004\n\007Comment\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022T\n\006labels\030\003 \003(\0132?.google.c" + + "loud.gdchardwaremanagement.v1alpha.Comme" + + "nt.LabelsEntryB\003\340A\001\022\023\n\006author\030\004 \001(\tB\003\340A\003" + + "\022\021\n\004text\030\005 \001(\tB\003\340A\002\022=\n\024customer_viewed_t" + + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022N\n\rauthor_entity\030\007 \001(\01622.google.cloud" + + ".gdchardwaremanagement.v1alpha.EntityB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001:\220\001\352A\214\001\n,gdchardwaremanagement." + + "googleapis.com/Comment\022Iprojects/{projec" + + "t}/locations/{location}/orders/{order}/c" + + "omments/{comment}*\010comments2\007comment\"\261\003\n" + + "\016ChangeLogEntry\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022[\n\006labels\030\003 \003(\0132F.google.cloud." + + "gdchardwaremanagement.v1alpha.ChangeLogE" + + "ntry.LabelsEntryB\003\340A\001\022\020\n\003log\030\004 \001(\tB\003\340A\003\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:\267\001\352A\263\001\n3gdchardwaremanagement.goo" + + "gleapis.com/ChangeLogEntry\022Zprojects/{pr" + + "oject}/locations/{location}/orders/{orde" + + "r}/changeLogEntries/{change_log_entry}*\020" + + "changeLogEntries2\016changeLogEntry\"\214\005\n\003Sku" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n\006co" + + "nfig\030\006 \001(\01325.google.cloud.gdchardwareman" + + "agement.v1alpha.SkuConfigB\003\340A\003\022O\n\tinstan" + + "ces\030\007 \003(\01327.google.cloud.gdchardwaremana" + + "gement.v1alpha.SkuInstanceB\003\340A\003\022\030\n\013descr" + + "iption\030\010 \001(\tB\003\340A\003\022\030\n\013revision_id\030\t \001(\tB\003" + + "\340A\003\022\026\n\tis_active\030\n \001(\010B\003\340A\003\022G\n\004type\030\013 \001(" + + "\01624.google.cloud.gdchardwaremanagement.v" + + "1alpha.Sku.TypeB\003\340A\003\022\027\n\nvcpu_count\030\014 \001(\005" + + "B\003\340A\003\"2\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\010\n\004R" + + "ACK\020\001\022\n\n\006SERVER\020\002:l\352Ai\n(gdchardwaremanag" + + "ement.googleapis.com/Sku\0222projects/{proj" + + "ect}/locations/{location}/skus/{sku}*\004sk" + + "us2\003sku\"\376\007\n\004Zone\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022Q\n\006labels\030\004 \003(\0132" + + "<.google.cloud.gdchardwaremanagement.v1a" + + "lpha.Zone.LabelsEntryB\003\340A\001\022\031\n\014display_na" + + "me\030\005 \001(\tB\003\340A\001\022J\n\005state\030\010 \001(\01626.google.cl" + + "oud.gdchardwaremanagement.v1alpha.Zone.S" + + "tateB\003\340A\003\022J\n\010contacts\030\t \003(\01323.google.clo" + + "ud.gdchardwaremanagement.v1alpha.Contact" + + "B\003\340A\002\022\024\n\007ciq_uri\030\n \001(\tB\003\340A\003\022Z\n\016network_c" + + "onfig\030\013 \001(\0132=.google.cloud.gdchardwarema" + + "nagement.v1alpha.ZoneNetworkConfigB\003\340A\001\022" + + "\037\n\022globally_unique_id\030\014 \001(\tB\003\340A\003\022a\n\024subs" + + "cription_configs\030\r \003(\0132>.google.cloud.gd" + + "chardwaremanagement.v1alpha.Subscription" + + "ConfigB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\032\n\026ADDITIONAL_INFO_NEEDED\020\001\022" + + "\r\n\tPREPARING\020\002\022,\n(READY_FOR_CUSTOMER_FAC" + + "TORY_TURNUP_CHECKS\020\005\022\031\n\025READY_FOR_SITE_T" + + "URNUP\020\006\022)\n%CUSTOMER_FACTORY_TURNUP_CHECK" + + "S_FAILED\020\007\022\n\n\006ACTIVE\020\003\022\r\n\tCANCELLED\020\004:q\352" + + "An\n)gdchardwaremanagement.googleapis.com" + + "/Zone\0224projects/{project}/locations/{loc" + + "ation}/zones/{zone}*\005zones2\004zone\"\273\001\n\023Org" + + "anizationContact\0220\n\007address\030\001 \001(\0132\032.goog" + + "le.type.PostalAddressB\003\340A\002\022\022\n\005email\030\002 \001(" + + "\tB\003\340A\001\022\022\n\005phone\030\003 \001(\tB\003\340A\001\022J\n\010contacts\030\004" + + " \003(\01323.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.ContactB\003\340A\002\"\351\001\n\007Contact\022\027\n\ngi" + + "ven_name\030\001 \001(\tB\003\340A\002\022\030\n\013family_name\030\002 \001(\t" + + "B\003\340A\001\022\022\n\005email\030\003 \001(\tB\003\340A\002\022\022\n\005phone\030\004 \001(\t" + + "B\003\340A\002\022-\n\ttime_zone\030\005 \001(\0132\025.google.type.T" + + "imeZoneB\003\340A\001\022T\n\017reachable_times\030\006 \003(\01326." + + "google.cloud.gdchardwaremanagement.v1alp" + + "ha.TimePeriodB\003\340A\001\"\316\001\n\016HardwareConfig\022=\n" + + "\003sku\030\001 \001(\tB0\340A\002\372A*\n(gdchardwaremanagemen" + + "t.googleapis.com/Sku\022R\n\014power_supply\030\002 \001" + + "(\01627.google.cloud.gdchardwaremanagement." + + "v1alpha.PowerSupplyB\003\340A\002\022)\n\034subscription" + + "_duration_months\030\003 \001(\005B\003\340A\001\"C\n\tSkuConfig" + + "\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\013\n\003ram\030\003 \001(\t\022" + + "\017\n\007storage\030\004 \001(\t\"\312\001\n\013SkuInstance\022\023\n\013regi" + + "on_code\030\001 \001(\t\022M\n\014power_supply\030\002 \001(\01627.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha" + + ".PowerSupply\022\023\n\013billing_sku\030\003 \001(\t\022\034\n\024bil" + + "ling_sku_per_vcpu\030\004 \001(\t\022$\n\034subscription_" + + "duration_months\030\005 \001(\005\"\343\005\n\024HardwarePhysic" + + "alInfo\022s\n\020power_receptacle\030\001 \001(\0162T.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Ha" + + "rdwarePhysicalInfo.PowerReceptacleTypeB\003" + + "\340A\002\022o\n\016network_uplink\030\002 \001(\0162R.google.clo" + + "ud.gdchardwaremanagement.v1alpha.Hardwar" + + "ePhysicalInfo.NetworkUplinkTypeB\003\340A\002\022^\n\007" + + "voltage\030\003 \001(\0162H.google.cloud.gdchardware" + + "management.v1alpha.HardwarePhysicalInfo." + + "VoltageB\003\340A\002\022^\n\007amperes\030\004 \001(\0162H.google.c" + "loud.gdchardwaremanagement.v1alpha.Hardw" - + "arePhysicalInfo.VoltageB\003\340A\002\022^\n\007amperes\030" - + "\004 \001(\0162H.google.cloud.gdchardwaremanageme" - + "nt.v1alpha.HardwarePhysicalInfo.AmperesB" - + "\003\340A\002\"f\n\023PowerReceptacleType\022%\n!POWER_REC" - + "EPTACLE_TYPE_UNSPECIFIED\020\000\022\r\n\tNEMA_5_15\020" - + "\001\022\010\n\004C_13\020\002\022\017\n\013STANDARD_EU\020\003\"C\n\021NetworkU" - + "plinkType\022#\n\037NETWORK_UPLINK_TYPE_UNSPECI" - + "FIED\020\000\022\t\n\005RJ_45\020\001\"D\n\007Voltage\022\027\n\023VOLTAGE_" - + "UNSPECIFIED\020\000\022\017\n\013VOLTAGE_110\020\001\022\017\n\013VOLTAG" - + "E_220\020\003\"2\n\007Amperes\022\027\n\023AMPERES_UNSPECIFIE" - + "D\020\000\022\016\n\nAMPERES_15\020\001\"\325\003\n\030HardwareInstalla" - + "tionInfo\022\032\n\rrack_location\030\001 \001(\tB\003\340A\001\022\"\n\025" - + "power_distance_meters\030\002 \001(\005B\003\340A\002\022#\n\026swit" - + "ch_distance_meters\030\003 \001(\005B\003\340A\002\022Y\n\024rack_un" - + "it_dimensions\030\004 \001(\01326.google.cloud.gdcha" - + "rdwaremanagement.v1alpha.DimensionsB\003\340A\002" - + "\022N\n\nrack_space\030\005 \001(\01325.google.cloud.gdch" - + "ardwaremanagement.v1alpha.RackSpaceB\003\340A\002" - + "\022e\n\track_type\030\006 \001(\0162M.google.cloud.gdcha" - + "rdwaremanagement.v1alpha.HardwareInstall" - + "ationInfo.RackTypeB\003\340A\002\"B\n\010RackType\022\031\n\025R" - + "ACK_TYPE_UNSPECIFIED\020\000\022\014\n\010TWO_POST\020\001\022\r\n\t" - + "FOUR_POST\020\002\"\336\002\n\021ZoneNetworkConfig\022,\n\027mac" - + "hine_mgmt_ipv4_range\030\001 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022" - + "/\n\032kubernetes_node_ipv4_range\030\002 \001(\tB\013\340A\002" - + "\342\214\317\327\010\002\010\002\0228\n#kubernetes_control_plane_ipv" - + "4_range\030\003 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022W\n\026management" - + "_ipv4_subnet\030\004 \001(\01322.google.cloud.gdchar" - + "dwaremanagement.v1alpha.SubnetB\003\340A\002\022W\n\026k" - + "ubernetes_ipv4_subnet\030\005 \001(\01322.google.clo" - + "ud.gdchardwaremanagement.v1alpha.SubnetB" - + "\003\340A\001\"]\n\006Subnet\022\"\n\raddress_range\030\001 \001(\tB\013\340" - + "A\002\342\214\317\327\010\002\010\002\022/\n\032default_gateway_ip_address" - + "\030\002 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\"\227\001\n\nTimePeriod\022/\n\nst" - + "art_time\030\001 \001(\0132\026.google.type.TimeOfDayB\003" - + "\340A\002\022-\n\010end_time\030\002 \001(\0132\026.google.type.Time" - + "OfDayB\003\340A\002\022)\n\004days\030\003 \003(\0162\026.google.type.D" - + "ayOfWeekB\003\340A\002\"^\n\nDimensions\022\031\n\014width_inc" - + "hes\030\001 \001(\002B\003\340A\002\022\032\n\rheight_inches\030\002 \001(\002B\003\340" - + "A\002\022\031\n\014depth_inches\030\003 \001(\002B\003\340A\002\"E\n\tRackSpa" - + "ce\022\034\n\017start_rack_unit\030\001 \001(\005B\003\340A\002\022\032\n\rend_" - + "rack_unit\030\002 \001(\005B\003\340A\002\"\277\001\n\020HardwareLocatio" - + "n\022?\n\004site\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremana" - + "gement.googleapis.com/Site\022\032\n\rrack_locat" - + "ion\030\002 \001(\tB\003\340A\002\022N\n\nrack_space\030\003 \003(\01325.goo" - + "gle.cloud.gdchardwaremanagement.v1alpha." - + "RackSpaceB\003\340A\001\"\267\002\n\022SubscriptionConfig\022\034\n" - + "\017subscription_id\030\001 \001(\tB\003\340A\003\022\027\n\nbilling_i" - + "d\030\002 \001(\tB\003\340A\003\022d\n\005state\030\003 \001(\0162P.google.clo" - + "ud.gdchardwaremanagement.v1alpha.Subscri" - + "ptionConfig.SubscriptionStateB\003\340A\003\"\203\001\n\021S" - + "ubscriptionState\022\"\n\036SUBSCRIPTION_STATE_U" - + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022\t" - + "\n\005ERROR\020\003\022\026\n\022FAILED_TO_RETRIEVE\020\004\022\r\n\tCOM" - + "PLETED\020\005*U\n\013PowerSupply\022\034\n\030POWER_SUPPLY_" - + "UNSPECIFIED\020\000\022\023\n\017POWER_SUPPLY_AC\020\001\022\023\n\017PO" - + "WER_SUPPLY_DC\020\002*F\n\006Entity\022\026\n\022ENTITY_UNSP" - + "ECIFIED\020\000\022\n\n\006GOOGLE\020\001\022\014\n\010CUSTOMER\020\002\022\n\n\006V" - + "ENDOR\020\003B\262\002\n.com.google.cloud.gdchardware" - + "management.v1alphaB\016ResourcesProtoP\001Zdcl" - + "oud.google.com/go/gdchardwaremanagement/" - + "apiv1alpha/gdchardwaremanagementpb;gdcha" - + "rdwaremanagementpb\252\002*Google.Cloud.GdcHar" - + "dwareManagement.V1Alpha\312\002*Google\\Cloud\\G" - + "dcHardwareManagement\\V1alpha\352\002-Google::C" - + "loud::GDCHardwareManagement::V1alphab\006pr" - + "oto3" + + "arePhysicalInfo.AmperesB\003\340A\002\"f\n\023PowerRec" + + "eptacleType\022%\n!POWER_RECEPTACLE_TYPE_UNS" + + "PECIFIED\020\000\022\r\n\tNEMA_5_15\020\001\022\010\n\004C_13\020\002\022\017\n\013S" + + "TANDARD_EU\020\003\"C\n\021NetworkUplinkType\022#\n\037NET" + + "WORK_UPLINK_TYPE_UNSPECIFIED\020\000\022\t\n\005RJ_45\020" + + "\001\"D\n\007Voltage\022\027\n\023VOLTAGE_UNSPECIFIED\020\000\022\017\n" + + "\013VOLTAGE_110\020\001\022\017\n\013VOLTAGE_220\020\003\"2\n\007Amper" + + "es\022\027\n\023AMPERES_UNSPECIFIED\020\000\022\016\n\nAMPERES_1" + + "5\020\001\"\325\003\n\030HardwareInstallationInfo\022\032\n\rrack" + + "_location\030\001 \001(\tB\003\340A\002\022\"\n\025power_distance_m" + + "eters\030\002 \001(\005B\003\340A\002\022#\n\026switch_distance_mete" + + "rs\030\003 \001(\005B\003\340A\002\022Y\n\024rack_unit_dimensions\030\004 " + + "\001(\01326.google.cloud.gdchardwaremanagement" + + ".v1alpha.DimensionsB\003\340A\002\022N\n\nrack_space\030\005" + + " \001(\01325.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.RackSpaceB\003\340A\002\022e\n\track_type\030\006 " + + "\001(\0162M.google.cloud.gdchardwaremanagement" + + ".v1alpha.HardwareInstallationInfo.RackTy" + + "peB\003\340A\002\"B\n\010RackType\022\031\n\025RACK_TYPE_UNSPECI" + + "FIED\020\000\022\014\n\010TWO_POST\020\001\022\r\n\tFOUR_POST\020\002\"\336\002\n\021" + + "ZoneNetworkConfig\022,\n\027machine_mgmt_ipv4_r" + + "ange\030\001 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022/\n\032kubernetes_no" + + "de_ipv4_range\030\002 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\0228\n#kube" + + "rnetes_control_plane_ipv4_range\030\003 \001(\tB\013\340" + + "A\002\342\214\317\327\010\002\010\002\022W\n\026management_ipv4_subnet\030\004 \001" + + "(\01322.google.cloud.gdchardwaremanagement." + + "v1alpha.SubnetB\003\340A\002\022W\n\026kubernetes_ipv4_s" + + "ubnet\030\005 \001(\01322.google.cloud.gdchardwarema" + + "nagement.v1alpha.SubnetB\003\340A\001\"]\n\006Subnet\022\"" + + "\n\raddress_range\030\001 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022/\n\032de" + + "fault_gateway_ip_address\030\002 \001(\tB\013\340A\002\342\214\317\327\010" + + "\002\010\002\"\227\001\n\nTimePeriod\022/\n\nstart_time\030\001 \001(\0132\026" + + ".google.type.TimeOfDayB\003\340A\002\022-\n\010end_time\030" + + "\002 \001(\0132\026.google.type.TimeOfDayB\003\340A\002\022)\n\004da" + + "ys\030\003 \003(\0162\026.google.type.DayOfWeekB\003\340A\002\"^\n" + + "\nDimensions\022\031\n\014width_inches\030\001 \001(\002B\003\340A\002\022\032" + + "\n\rheight_inches\030\002 \001(\002B\003\340A\002\022\031\n\014depth_inch" + + "es\030\003 \001(\002B\003\340A\002\"E\n\tRackSpace\022\034\n\017start_rack" + + "_unit\030\001 \001(\005B\003\340A\002\022\032\n\rend_rack_unit\030\002 \001(\005B" + + "\003\340A\002\"\277\001\n\020HardwareLocation\022?\n\004site\030\001 \001(\tB" + + "1\340A\002\372A+\n)gdchardwaremanagement.googleapi" + + "s.com/Site\022\032\n\rrack_location\030\002 \001(\tB\003\340A\002\022N" + + "\n\nrack_space\030\003 \003(\01325.google.cloud.gdchar" + + "dwaremanagement.v1alpha.RackSpaceB\003\340A\001\"\267" + + "\002\n\022SubscriptionConfig\022\034\n\017subscription_id" + + "\030\001 \001(\tB\003\340A\003\022\027\n\nbilling_id\030\002 \001(\tB\003\340A\003\022d\n\005" + + "state\030\003 \001(\0162P.google.cloud.gdchardwarema" + + "nagement.v1alpha.SubscriptionConfig.Subs" + + "criptionStateB\003\340A\003\"\203\001\n\021SubscriptionState" + + "\022\"\n\036SUBSCRIPTION_STATE_UNSPECIFIED\020\000\022\n\n\006" + + "ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022\t\n\005ERROR\020\003\022\026\n\022FAI" + + "LED_TO_RETRIEVE\020\004\022\r\n\tCOMPLETED\020\005*U\n\013Powe" + + "rSupply\022\034\n\030POWER_SUPPLY_UNSPECIFIED\020\000\022\023\n" + + "\017POWER_SUPPLY_AC\020\001\022\023\n\017POWER_SUPPLY_DC\020\002*" + + "F\n\006Entity\022\026\n\022ENTITY_UNSPECIFIED\020\000\022\n\n\006GOO" + + "GLE\020\001\022\014\n\010CUSTOMER\020\002\022\n\n\006VENDOR\020\003B\262\002\n.com." + + "google.cloud.gdchardwaremanagement.v1alp" + + "haB\016ResourcesProtoP\001Zdcloud.google.com/g" + + "o/gdchardwaremanagement/apiv1alpha/gdcha" + + "rdwaremanagementpb;gdchardwaremanagement" + + "pb\252\002*Google.Cloud.GdcHardwareManagement." + + "V1Alpha\312\002*Google\\Cloud\\GdcHardwareManage" + + "ment\\V1alpha\352\002-Google::Cloud::GDCHardwar" + + "eManagement::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -563,11 +592,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", "RequestedInstallationDate", "ActualInstallationDate", + "MachineInfos", }); - internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor = internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor, + new java.lang.String[] { + "Address", "Type", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_DiskInfo_descriptor, + new java.lang.String[] { + "Manufacturer", "Slot", "SerialNumber", "Psid", "PartNumber", "ModelNumber", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MachineInfo_descriptor, + new java.lang.String[] { + "ServiceTag", "MacAddresses", "Name", "DiskInfos", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor, diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java index 5054986fa93f..657dad905516 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -269,342 +273,350 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.protobuf.FieldMaskB\003\340A\002\022C\n\004site\030\002 \001(" + "\01320.google.cloud.gdchardwaremanagement.v" + "1alpha.SiteB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" - + "\001\"\304\001\n\031ListHardwareGroupsRequest\022J\n\006paren" - + "t\030\001 \001(\tB:\340A\002\372A4\0222gdchardwaremanagement.g" - + "oogleapis.com/HardwareGroup\022\026\n\tpage_size" - + "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006" - + "filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001" - + "\"\236\001\n\032ListHardwareGroupsResponse\022R\n\017hardw" - + "are_groups\030\001 \003(\01329.google.cloud.gdchardw" - + "aremanagement.v1alpha.HardwareGroup\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"c\n\027GetHardwareGroupRequest\022H\n\004name\030\001 \001" - + "(\tB:\340A\002\372A4\n2gdchardwaremanagement.google" - + "apis.com/HardwareGroup\"\371\001\n\032CreateHardwar" - + "eGroupRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222g" - + "dchardwaremanagement.googleapis.com/Hard" - + "wareGroup\022\036\n\021hardware_group_id\030\002 \001(\tB\003\340A" - + "\001\022V\n\016hardware_group\030\003 \001(\01329.google.cloud" - + ".gdchardwaremanagement.v1alpha.HardwareG" - + "roupB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\303\001\n\032U" - + "pdateHardwareGroupRequest\0224\n\013update_mask" - + "\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022" - + "V\n\016hardware_group\030\002 \001(\01329.google.cloud.g" - + "dchardwaremanagement.v1alpha.HardwareGro" - + "upB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\177\n\032Dele" - + "teHardwareGroupRequest\022H\n\004name\030\001 \001(\tB:\340A" - + "\002\372A4\n2gdchardwaremanagement.googleapis.c" - + "om/HardwareGroup\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" - + "\001\"\271\001\n\023ListHardwareRequest\022E\n\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-gdchardwaremanagement.googlea" - + "pis.com/Hardware\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_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\"\214\001\n\024ListHa" - + "rdwareResponse\022F\n\010hardware\030\001 \003(\01324.googl" - + "e.cloud.gdchardwaremanagement.v1alpha.Ha" - + "rdware\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"Y\n\022GetHardwareRequest\022C\n\004na" - + "me\030\001 \001(\tB5\340A\002\372A/\n-gdchardwaremanagement." - + "googleapis.com/Hardware\"\305\001\n\025CreateHardwa" - + "reRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-gdcha" - + "rdwaremanagement.googleapis.com/Hardware" - + "\022\030\n\013hardware_id\030\002 \001(\tB\003\340A\001\022K\n\010hardware\030\003" - + " \001(\01324.google.cloud.gdchardwaremanagemen" - + "t.v1alpha.HardwareB\003\340A\002\"\263\001\n\025UpdateHardwa" - + "reRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\022K\n\010hardware\030\002 \001(" - + "\01324.google.cloud.gdchardwaremanagement.v" - + "1alpha.HardwareB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" - + "B\003\340A\001\"}\n\025DeleteHardwareRequest\022C\n\004name\030\001" - + " \001(\tB5\340A\002\372A/\n-gdchardwaremanagement.goog" - + "leapis.com/Hardware\022\037\n\nrequest_id\030\002 \001(\tB" - + "\013\340A\001\342\214\317\327\010\002\010\001\"\270\001\n\023ListCommentsRequest\022D\n\006" - + "parent\030\001 \001(\tB4\340A\002\372A.\022,gdchardwaremanagem" - + "ent.googleapis.com/Comment\022\026\n\tpage_size\030" + + "\001\"u\n\021DeleteSiteRequest\022?\n\004name\030\001 \001(\tB1\340A" + + "\002\372A+\n)gdchardwaremanagement.googleapis.c" + + "om/Site\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001" + + "\"\304\001\n\031ListHardwareGroupsRequest\022J\n\006parent" + + "\030\001 \001(\tB:\340A\002\372A4\0222gdchardwaremanagement.go" + + "ogleapis.com/HardwareGroup\022\026\n\tpage_size\030" + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006f" + "ilter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"" - + "\213\001\n\024ListCommentsResponse\022E\n\010comments\030\001 \003" - + "(\01323.google.cloud.gdchardwaremanagement." - + "v1alpha.Comment\022\027\n\017next_page_token\030\002 \001(\t" - + "\022\023\n\013unreachable\030\003 \003(\t\"W\n\021GetCommentReque" - + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gdchardwareman" - + "agement.googleapis.com/Comment\"\331\001\n\024Creat" - + "eCommentRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022" - + ",gdchardwaremanagement.googleapis.com/Co" - + "mment\022\027\n\ncomment_id\030\002 \001(\tB\003\340A\001\022I\n\007commen" - + "t\030\003 \001(\01323.google.cloud.gdchardwaremanage" - + "ment.v1alpha.CommentB\003\340A\002\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\"\222\002\n\034RecordActionOnCommentRequ" - + "est\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gdchardwarema" - + "nagement.googleapis.com/Comment\022m\n\013actio" - + "n_type\030\002 \001(\0162S.google.cloud.gdchardwarem" - + "anagement.v1alpha.RecordActionOnCommentR" - + "equest.ActionTypeB\003\340A\002\"?\n\nActionType\022\033\n\027" - + "ACTION_TYPE_UNSPECIFIED\020\000\022\010\n\004READ\020\001\022\n\n\006U" - + "NREAD\020\002\"\307\001\n\033ListChangeLogEntriesRequest\022" - + "K\n\006parent\030\001 \001(\tB;\340A\002\372A5\0223gdchardwaremana" - + "gement.googleapis.com/ChangeLogEntry\022\026\n\t" - + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" - + "B\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\"\244\001\n\034ListChangeLogEntriesRespon" - + "se\022V\n\022change_log_entries\030\001 \003(\0132:.google." - + "cloud.gdchardwaremanagement.v1alpha.Chan" - + "geLogEntry\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" - + "nreachable\030\003 \003(\t\"e\n\030GetChangeLogEntryReq" - + "uest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3gdchardwarem" - + "anagement.googleapis.com/ChangeLogEntry\"" - + "\260\001\n\017ListSkusRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" - + "\372A*\022(gdchardwaremanagement.googleapis.co" - + "m/Sku\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" - + "rder_by\030\005 \001(\tB\003\340A\001\"\177\n\020ListSkusResponse\022=" - + "\n\004skus\030\001 \003(\0132/.google.cloud.gdchardwarem" - + "anagement.v1alpha.Sku\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\rGetSkuReq" - + "uest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(gdchardwarem" - + "anagement.googleapis.com/Sku\"\262\001\n\020ListZon" - + "esRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)gdcha" - + "rdwaremanagement.googleapis.com/Zone\022\026\n\t" - + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" - + "B\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\"\202\001\n\021ListZonesResponse\022?\n\005zones" - + "\030\001 \003(\01320.google.cloud.gdchardwaremanagem" - + "ent.v1alpha.Zone\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\016GetZoneRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremanag" - + "ement.googleapis.com/Zone\"\322\001\n\021CreateZone" - + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)gdchard" - + "waremanagement.googleapis.com/Zone\022\024\n\007zo" - + "ne_id\030\002 \001(\tB\003\340A\001\022C\n\004zone\030\003 \001(\01320.google." - + "cloud.gdchardwaremanagement.v1alpha.Zone" - + "B\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\257" - + "\001\n\021UpdateZoneRequest\0224\n\013update_mask\030\001 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\022C\n\004zo" - + "ne\030\002 \001(\01320.google.cloud.gdchardwaremanag" - + "ement.v1alpha.ZoneB\003\340A\002\022\037\n\nrequest_id\030\003 " - + "\001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"u\n\021DeleteZoneRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremanageme" - + "nt.googleapis.com/Zone\022\037\n\nrequest_id\030\002 \001" - + "(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\372\002\n\026SignalZoneStateReque" - + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwareman" - + "agement.googleapis.com/Zone\022\037\n\nrequest_i" - + "d\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n\014state_signal\030\003 \001" - + "(\0162N.google.cloud.gdchardwaremanagement." - + "v1alpha.SignalZoneStateRequest.StateSign" - + "alB\003\340A\002\"\222\001\n\013StateSignal\022\034\n\030STATE_SIGNAL_" - + "UNSPECIFIED\020\000\022 \n\034FACTORY_TURNUP_CHECKS_P" - + "ASSED\020\001\022\035\n\025READY_FOR_SITE_TURNUP\020\001\032\002\010\001\022 " - + "\n\034FACTORY_TURNUP_CHECKS_FAILED\020\002\032\002\020\001\"\200\002\n" - + "\021OperationMetadata\0224\n\013create_time\030\001 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003" - + "\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requ" - + "ested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ver" - + "sion\030\007 \001(\tB\003\340A\0032\372<\n\025GDCHardwareManagemen" - + "t\022\315\001\n\nListOrders\022=.google.cloud.gdchardw" - + "aremanagement.v1alpha.ListOrdersRequest\032" - + ">.google.cloud.gdchardwaremanagement.v1a" - + "lpha.ListOrdersResponse\"@\332A\006parent\202\323\344\223\0021" - + "\022//v1alpha/{parent=projects/*/locations/" - + "*}/orders\022\272\001\n\010GetOrder\022;.google.cloud.gd" - + "chardwaremanagement.v1alpha.GetOrderRequ" - + "est\0321.google.cloud.gdchardwaremanagement" - + ".v1alpha.Order\">\332A\004name\202\323\344\223\0021\022//v1alpha/" - + "{name=projects/*/locations/*/orders/*}\022\341" - + "\001\n\013CreateOrder\022>.google.cloud.gdchardwar" - + "emanagement.v1alpha.CreateOrderRequest\032\035" - + ".google.longrunning.Operation\"s\312A\032\n\005Orde" - + "r\022\021OperationMetadata\332A\025parent,order,orde" - + "r_id\202\323\344\223\0028\"//v1alpha/{parent=projects/*/" - + "locations/*}/orders:\005order\022\343\001\n\013UpdateOrd" - + "er\022>.google.cloud.gdchardwaremanagement." - + "v1alpha.UpdateOrderRequest\032\035.google.long" - + "running.Operation\"u\312A\032\n\005Order\022\021Operation" - + "Metadata\332A\021order,update_mask\202\323\344\223\002>25/v1a" - + "lpha/{order.name=projects/*/locations/*/" - + "orders/*}:\005order\022\331\001\n\013DeleteOrder\022>.googl" - + "e.cloud.gdchardwaremanagement.v1alpha.De" - + "leteOrderRequest\032\035.google.longrunning.Op" - + "eration\"k\312A*\n\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0021*//v1alpha/{n" - + "ame=projects/*/locations/*/orders/*}\022\323\001\n" - + "\013SubmitOrder\022>.google.cloud.gdchardwarem" - + "anagement.v1alpha.SubmitOrderRequest\032\035.g" - + "oogle.longrunning.Operation\"e\312A\032\n\005Order\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1alph" - + "a/{name=projects/*/locations/*/orders/*}" - + ":submit:\001*\022\311\001\n\tListSites\022<.google.cloud." - + "gdchardwaremanagement.v1alpha.ListSitesR" - + "equest\032=.google.cloud.gdchardwaremanagem" - + "ent.v1alpha.ListSitesResponse\"?\332A\006parent" - + "\202\323\344\223\0020\022./v1alpha/{parent=projects/*/loca" - + "tions/*}/sites\022\266\001\n\007GetSite\022:.google.clou" - + "d.gdchardwaremanagement.v1alpha.GetSiteR" - + "equest\0320.google.cloud.gdchardwaremanagem" - + "ent.v1alpha.Site\"=\332A\004name\202\323\344\223\0020\022./v1alph" - + "a/{name=projects/*/locations/*/sites/*}\022" - + "\332\001\n\nCreateSite\022=.google.cloud.gdchardwar" - + "emanagement.v1alpha.CreateSiteRequest\032\035." - + "google.longrunning.Operation\"n\312A\031\n\004Site\022" - + "\021OperationMetadata\332A\023parent,site,site_id" - + "\202\323\344\223\0026\"./v1alpha/{parent=projects/*/loca" - + "tions/*}/sites:\004site\022\334\001\n\nUpdateSite\022=.go" - + "ogle.cloud.gdchardwaremanagement.v1alpha" - + ".UpdateSiteRequest\032\035.google.longrunning." - + "Operation\"p\312A\031\n\004Site\022\021OperationMetadata\332" - + "A\020site,update_mask\202\323\344\223\002;23/v1alpha/{site" - + ".name=projects/*/locations/*/sites/*}:\004s" - + "ite\022\366\001\n\022ListHardwareGroups\022E.google.clou" - + "d.gdchardwaremanagement.v1alpha.ListHard" - + "wareGroupsRequest\032F.google.cloud.gdchard" - + "waremanagement.v1alpha.ListHardwareGroup" - + "sResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1alpha/{pa" - + "rent=projects/*/locations/*/orders/*}/ha" - + "rdwareGroups\022\343\001\n\020GetHardwareGroup\022C.goog" - + "le.cloud.gdchardwaremanagement.v1alpha.G" - + "etHardwareGroupRequest\0329.google.cloud.gd" + + "\236\001\n\032ListHardwareGroupsResponse\022R\n\017hardwa" + + "re_groups\030\001 \003(\01329.google.cloud.gdchardwa" + + "remanagement.v1alpha.HardwareGroup\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"c\n\027GetHardwareGroupRequest\022H\n\004name\030\001 \001(" + + "\tB:\340A\002\372A4\n2gdchardwaremanagement.googlea" + + "pis.com/HardwareGroup\"\371\001\n\032CreateHardware" + + "GroupRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222gd" + + "chardwaremanagement.googleapis.com/Hardw" + + "areGroup\022\036\n\021hardware_group_id\030\002 \001(\tB\003\340A\001" + + "\022V\n\016hardware_group\030\003 \001(\01329.google.cloud." + + "gdchardwaremanagement.v1alpha.HardwareGr" + + "oupB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\303\001\n\032Up" + + "dateHardwareGroupRequest\0224\n\013update_mask\030" + + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022V" + + "\n\016hardware_group\030\002 \001(\01329.google.cloud.gd" + "chardwaremanagement.v1alpha.HardwareGrou" - + "p\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=project" - + "s/*/locations/*/orders/*/hardwareGroups/" - + "*}\022\246\002\n\023CreateHardwareGroup\022F.google.clou" - + "d.gdchardwaremanagement.v1alpha.CreateHa" - + "rdwareGroupRequest\032\035.google.longrunning." - + "Operation\"\247\001\312A\"\n\rHardwareGroup\022\021Operatio" - + "nMetadata\332A\'parent,hardware_group,hardwa" - + "re_group_id\202\323\344\223\002R\"@/v1alpha/{parent=proj" - + "ects/*/locations/*/orders/*}/hardwareGro" - + "ups:\016hardware_group\022\250\002\n\023UpdateHardwareGr" - + "oup\022F.google.cloud.gdchardwaremanagement" - + ".v1alpha.UpdateHardwareGroupRequest\032\035.go" - + "ogle.longrunning.Operation\"\251\001\312A\"\n\rHardwa" - + "reGroup\022\021OperationMetadata\332A\032hardware_gr" - + "oup,update_mask\202\323\344\223\002a2O/v1alpha/{hardwar" - + "e_group.name=projects/*/locations/*/orde" - + "rs/*/hardwareGroups/*}:\016hardware_group\022\372" - + "\001\n\023DeleteHardwareGroup\022F.google.cloud.gd" - + "chardwaremanagement.v1alpha.DeleteHardwa" - + "reGroupRequest\032\035.google.longrunning.Oper" - + "ation\"|\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\002B*@/v1alpha/{nam" - + "e=projects/*/locations/*/orders/*/hardwa" - + "reGroups/*}\022\325\001\n\014ListHardware\022?.google.cl" - + "oud.gdchardwaremanagement.v1alpha.ListHa" - + "rdwareRequest\032@.google.cloud.gdchardware" - + "management.v1alpha.ListHardwareResponse\"" - + "B\332A\006parent\202\323\344\223\0023\0221/v1alpha/{parent=proje" - + "cts/*/locations/*}/hardware\022\305\001\n\013GetHardw" - + "are\022>.google.cloud.gdchardwaremanagement" - + ".v1alpha.GetHardwareRequest\0324.google.clo" - + "ud.gdchardwaremanagement.v1alpha.Hardwar" - + "e\"@\332A\004name\202\323\344\223\0023\0221/v1alpha/{name=project" - + "s/*/locations/*/hardware/*}\022\366\001\n\016CreateHa" - + "rdware\022A.google.cloud.gdchardwaremanagem" - + "ent.v1alpha.CreateHardwareRequest\032\035.goog" - + "le.longrunning.Operation\"\201\001\312A\035\n\010Hardware" - + "\022\021OperationMetadata\332A\033parent,hardware,ha" - + "rdware_id\202\323\344\223\002=\"1/v1alpha/{parent=projec" - + "ts/*/locations/*}/hardware:\010hardware\022\370\001\n" - + "\016UpdateHardware\022A.google.cloud.gdchardwa" - + "remanagement.v1alpha.UpdateHardwareReque" - + "st\032\035.google.longrunning.Operation\"\203\001\312A\035\n" - + "\010Hardware\022\021OperationMetadata\332A\024hardware," - + "update_mask\202\323\344\223\002F2:/v1alpha/{hardware.na" - + "me=projects/*/locations/*/hardware/*}:\010h" - + "ardware\022\341\001\n\016DeleteHardware\022A.google.clou" - + "d.gdchardwaremanagement.v1alpha.DeleteHa" - + "rdwareRequest\032\035.google.longrunning.Opera" - + "tion\"m\312A*\n\025google.protobuf.Empty\022\021Operat" - + "ionMetadata\332A\004name\202\323\344\223\0023*1/v1alpha/{name" - + "=projects/*/locations/*/hardware/*}\022\336\001\n\014" - + "ListComments\022?.google.cloud.gdchardwarem" - + "anagement.v1alpha.ListCommentsRequest\032@." - + "google.cloud.gdchardwaremanagement.v1alp" - + "ha.ListCommentsResponse\"K\332A\006parent\202\323\344\223\002<" - + "\022:/v1alpha/{parent=projects/*/locations/" - + "*/orders/*}/comments\022\313\001\n\nGetComment\022=.go" - + "ogle.cloud.gdchardwaremanagement.v1alpha" - + ".GetCommentRequest\0323.google.cloud.gdchar" - + "dwaremanagement.v1alpha.Comment\"I\332A\004name" - + "\202\323\344\223\002<\022:/v1alpha/{name=projects/*/locati" - + "ons/*/orders/*/comments/*}\022\371\001\n\rCreateCom" - + "ment\022@.google.cloud.gdchardwaremanagemen" - + "t.v1alpha.CreateCommentRequest\032\035.google." - + "longrunning.Operation\"\206\001\312A\034\n\007Comment\022\021Op" - + "erationMetadata\332A\031parent,comment,comment" - + "_id\202\323\344\223\002E\":/v1alpha/{parent=projects/*/l" - + "ocations/*/orders/*}/comments:\007comment\022\375" - + "\001\n\025RecordActionOnComment\022H.google.cloud." - + "gdchardwaremanagement.v1alpha.RecordActi" - + "onOnCommentRequest\0323.google.cloud.gdchar" - + "dwaremanagement.v1alpha.Comment\"e\332A\020name" - + ",action_type\202\323\344\223\002L\"G/v1alpha/{name=proje" - + "cts/*/locations/*/orders/*/comments/*}:r" - + "ecordAction:\001*\022\376\001\n\024ListChangeLogEntries\022" - + "G.google.cloud.gdchardwaremanagement.v1a" - + "lpha.ListChangeLogEntriesRequest\032H.googl" - + "e.cloud.gdchardwaremanagement.v1alpha.Li" - + "stChangeLogEntriesResponse\"S\332A\006parent\202\323\344" - + "\223\002D\022B/v1alpha/{parent=projects/*/locatio" - + "ns/*/orders/*}/changeLogEntries\022\350\001\n\021GetC" - + "hangeLogEntry\022D.google.cloud.gdchardware" - + "management.v1alpha.GetChangeLogEntryRequ" - + "est\032:.google.cloud.gdchardwaremanagement" - + ".v1alpha.ChangeLogEntry\"Q\332A\004name\202\323\344\223\002D\022B" - + "/v1alpha/{name=projects/*/locations/*/or" - + "ders/*/changeLogEntries/*}\022\305\001\n\010ListSkus\022" - + ";.google.cloud.gdchardwaremanagement.v1a" - + "lpha.ListSkusRequest\032<.google.cloud.gdch" - + "ardwaremanagement.v1alpha.ListSkusRespon" - + "se\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=pr" - + "ojects/*/locations/*}/skus\022\262\001\n\006GetSku\0229." - + "google.cloud.gdchardwaremanagement.v1alp" - + "ha.GetSkuRequest\032/.google.cloud.gdchardw" - + "aremanagement.v1alpha.Sku\"<\332A\004name\202\323\344\223\002/" - + "\022-/v1alpha/{name=projects/*/locations/*/" - + "skus/*}\022\311\001\n\tListZones\022<.google.cloud.gdc" - + "hardwaremanagement.v1alpha.ListZonesRequ" - + "est\032=.google.cloud.gdchardwaremanagement" - + ".v1alpha.ListZonesResponse\"?\332A\006parent\202\323\344" - + "\223\0020\022./v1alpha/{parent=projects/*/locatio" - + "ns/*}/zones\022\266\001\n\007GetZone\022:.google.cloud.g" - + "dchardwaremanagement.v1alpha.GetZoneRequ" - + "est\0320.google.cloud.gdchardwaremanagement" - + ".v1alpha.Zone\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{" - + "name=projects/*/locations/*/zones/*}\022\332\001\n" - + "\nCreateZone\022=.google.cloud.gdchardwarema" - + "nagement.v1alpha.CreateZoneRequest\032\035.goo" - + "gle.longrunning.Operation\"n\312A\031\n\004Zone\022\021Op" - + "erationMetadata\332A\023parent,zone,zone_id\202\323\344" - + "\223\0026\"./v1alpha/{parent=projects/*/locatio" - + "ns/*}/zones:\004zone\022\334\001\n\nUpdateZone\022=.googl" - + "e.cloud.gdchardwaremanagement.v1alpha.Up" - + "dateZoneRequest\032\035.google.longrunning.Ope" - + "ration\"p\312A\031\n\004Zone\022\021OperationMetadata\332A\020z" - + "one,update_mask\202\323\344\223\002;23/v1alpha/{zone.na" - + "me=projects/*/locations/*/zones/*}:\004zone" - + "\022\326\001\n\nDeleteZone\022=.google.cloud.gdchardwa" - + "remanagement.v1alpha.DeleteZoneRequest\032\035" - + ".google.longrunning.Operation\"j\312A*\n\025goog" - + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\0020*./v1alpha/{name=projects/*/loc" - + "ations/*/zones/*}\022\346\001\n\017SignalZoneState\022B." + + "pB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\177\n\032Delet" + + "eHardwareGroupRequest\022H\n\004name\030\001 \001(\tB:\340A\002" + + "\372A4\n2gdchardwaremanagement.googleapis.co" + + "m/HardwareGroup\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001" + + "\"\271\001\n\023ListHardwareRequest\022E\n\006parent\030\001 \001(\t" + + "B5\340A\002\372A/\022-gdchardwaremanagement.googleap" + + "is.com/Hardware\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\t" + + "B\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\214\001\n\024ListHar" + + "dwareResponse\022F\n\010hardware\030\001 \003(\01324.google" + + ".cloud.gdchardwaremanagement.v1alpha.Har" + + "dware\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"Y\n\022GetHardwareRequest\022C\n\004nam" + + "e\030\001 \001(\tB5\340A\002\372A/\n-gdchardwaremanagement.g" + + "oogleapis.com/Hardware\"\305\001\n\025CreateHardwar" + + "eRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-gdchar" + + "dwaremanagement.googleapis.com/Hardware\022" + + "\030\n\013hardware_id\030\002 \001(\tB\003\340A\001\022K\n\010hardware\030\003 " + + "\001(\01324.google.cloud.gdchardwaremanagement" + + ".v1alpha.HardwareB\003\340A\002\"\263\001\n\025UpdateHardwar" + + "eRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\022K\n\010hardware\030\002 \001(\013" + + "24.google.cloud.gdchardwaremanagement.v1" + + "alpha.HardwareB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"}\n\025DeleteHardwareRequest\022C\n\004name\030\001 " + + "\001(\tB5\340A\002\372A/\n-gdchardwaremanagement.googl" + + "eapis.com/Hardware\022\037\n\nrequest_id\030\002 \001(\tB\013" + + "\340A\001\342\214\317\327\010\002\010\001\"\270\001\n\023ListCommentsRequest\022D\n\006p" + + "arent\030\001 \001(\tB4\340A\002\372A.\022,gdchardwaremanageme" + + "nt.googleapis.com/Comment\022\026\n\tpage_size\030\002" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fi" + + "lter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\213" + + "\001\n\024ListCommentsResponse\022E\n\010comments\030\001 \003(" + + "\01323.google.cloud.gdchardwaremanagement.v" + + "1alpha.Comment\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"W\n\021GetCommentReques" + + "t\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gdchardwaremana" + + "gement.googleapis.com/Comment\"\331\001\n\024Create" + + "CommentRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022," + + "gdchardwaremanagement.googleapis.com/Com" + + "ment\022\027\n\ncomment_id\030\002 \001(\tB\003\340A\001\022I\n\007comment" + + "\030\003 \001(\01323.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.CommentB\003\340A\002\022\027\n\nrequest_id\030\004" + + " \001(\tB\003\340A\001\"\222\002\n\034RecordActionOnCommentReque" + + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gdchardwareman" + + "agement.googleapis.com/Comment\022m\n\013action" + + "_type\030\002 \001(\0162S.google.cloud.gdchardwarema" + + "nagement.v1alpha.RecordActionOnCommentRe" + + "quest.ActionTypeB\003\340A\002\"?\n\nActionType\022\033\n\027A" + + "CTION_TYPE_UNSPECIFIED\020\000\022\010\n\004READ\020\001\022\n\n\006UN" + + "READ\020\002\"\307\001\n\033ListChangeLogEntriesRequest\022K" + + "\n\006parent\030\001 \001(\tB;\340A\002\372A5\0223gdchardwaremanag" + + "ement.googleapis.com/ChangeLogEntry\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\"\244\001\n\034ListChangeLogEntriesRespons" + + "e\022V\n\022change_log_entries\030\001 \003(\0132:.google.c" + + "loud.gdchardwaremanagement.v1alpha.Chang" + + "eLogEntry\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"e\n\030GetChangeLogEntryRequ" + + "est\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3gdchardwarema" + + "nagement.googleapis.com/ChangeLogEntry\"\260" + + "\001\n\017ListSkusRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(gdchardwaremanagement.googleapis.com" + + "/Sku\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010or" + + "der_by\030\005 \001(\tB\003\340A\001\"\177\n\020ListSkusResponse\022=\n" + + "\004skus\030\001 \003(\0132/.google.cloud.gdchardwarema" + + "nagement.v1alpha.Sku\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\rGetSkuRequ" + + "est\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(gdchardwarema" + + "nagement.googleapis.com/Sku\"\262\001\n\020ListZone" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)gdchar" + + "dwaremanagement.googleapis.com/Zone\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\"\202\001\n\021ListZonesResponse\022?\n\005zones\030" + + "\001 \003(\01320.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.Zone\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"Q\n\016GetZoneRequest\022" + + "?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremanage" + + "ment.googleapis.com/Zone\"\322\001\n\021CreateZoneR" + + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)gdchardw" + + "aremanagement.googleapis.com/Zone\022\024\n\007zon" + + "e_id\030\002 \001(\tB\003\340A\001\022C\n\004zone\030\003 \001(\01320.google.c" + + "loud.gdchardwaremanagement.v1alpha.ZoneB" + + "\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\257\001" + + "\n\021UpdateZoneRequest\0224\n\013update_mask\030\001 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\022C\n\004zon" + + "e\030\002 \001(\01320.google.cloud.gdchardwaremanage" + + "ment.v1alpha.ZoneB\003\340A\002\022\037\n\nrequest_id\030\003 \001" + + "(\tB\013\340A\001\342\214\317\327\010\002\010\001\"u\n\021DeleteZoneRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremanagemen" + + "t.googleapis.com/Zone\022\037\n\nrequest_id\030\002 \001(" + + "\tB\013\340A\001\342\214\317\327\010\002\010\001\"\372\002\n\026SignalZoneStateReques" + + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwaremana" + + "gement.googleapis.com/Zone\022\037\n\nrequest_id" + + "\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n\014state_signal\030\003 \001(" + + "\0162N.google.cloud.gdchardwaremanagement.v" + + "1alpha.SignalZoneStateRequest.StateSigna" + + "lB\003\340A\002\"\222\001\n\013StateSignal\022\034\n\030STATE_SIGNAL_U" + + "NSPECIFIED\020\000\022 \n\034FACTORY_TURNUP_CHECKS_PA" + + "SSED\020\001\022\035\n\025READY_FOR_SITE_TURNUP\020\001\032\002\010\001\022 \n" + + "\034FACTORY_TURNUP_CHECKS_FAILED\020\002\032\002\020\001\"\200\002\n\021" + + "OperationMetadata\0224\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" + + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340" + + "A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026reque" + + "sted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_vers" + + "ion\030\007 \001(\tB\003\340A\0032\323>\n\025GDCHardwareManagement" + + "\022\315\001\n\nListOrders\022=.google.cloud.gdchardwa" + + "remanagement.v1alpha.ListOrdersRequest\032>" + + ".google.cloud.gdchardwaremanagement.v1al" + + "pha.ListOrdersResponse\"@\332A\006parent\202\323\344\223\0021\022" + + "//v1alpha/{parent=projects/*/locations/*" + + "}/orders\022\272\001\n\010GetOrder\022;.google.cloud.gdc" + + "hardwaremanagement.v1alpha.GetOrderReque" + + "st\0321.google.cloud.gdchardwaremanagement." + + "v1alpha.Order\">\332A\004name\202\323\344\223\0021\022//v1alpha/{" + + "name=projects/*/locations/*/orders/*}\022\341\001" + + "\n\013CreateOrder\022>.google.cloud.gdchardware" + + "management.v1alpha.CreateOrderRequest\032\035." + + "google.longrunning.Operation\"s\312A\032\n\005Order" + + "\022\021OperationMetadata\332A\025parent,order,order" + + "_id\202\323\344\223\0028\"//v1alpha/{parent=projects/*/l" + + "ocations/*}/orders:\005order\022\343\001\n\013UpdateOrde" + + "r\022>.google.cloud.gdchardwaremanagement.v" + + "1alpha.UpdateOrderRequest\032\035.google.longr" + + "unning.Operation\"u\312A\032\n\005Order\022\021OperationM" + + "etadata\332A\021order,update_mask\202\323\344\223\002>25/v1al" + + "pha/{order.name=projects/*/locations/*/o" + + "rders/*}:\005order\022\331\001\n\013DeleteOrder\022>.google" + + ".cloud.gdchardwaremanagement.v1alpha.Del" + + "eteOrderRequest\032\035.google.longrunning.Ope" + + "ration\"k\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0021*//v1alpha/{na" + + "me=projects/*/locations/*/orders/*}\022\323\001\n\013" + + "SubmitOrder\022>.google.cloud.gdchardwarema" + + "nagement.v1alpha.SubmitOrderRequest\032\035.go" + + "ogle.longrunning.Operation\"e\312A\032\n\005Order\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1alpha" + + "/{name=projects/*/locations/*/orders/*}:" + + "submit:\001*\022\311\001\n\tListSites\022<.google.cloud.g" + + "dchardwaremanagement.v1alpha.ListSitesRe" + + "quest\032=.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.ListSitesResponse\"?\332A\006parent\202" + + "\323\344\223\0020\022./v1alpha/{parent=projects/*/locat" + + "ions/*}/sites\022\266\001\n\007GetSite\022:.google.cloud" + + ".gdchardwaremanagement.v1alpha.GetSiteRe" + + "quest\0320.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.Site\"=\332A\004name\202\323\344\223\0020\022./v1alpha" + + "/{name=projects/*/locations/*/sites/*}\022\332" + + "\001\n\nCreateSite\022=.google.cloud.gdchardware" + + "management.v1alpha.CreateSiteRequest\032\035.g" + + "oogle.longrunning.Operation\"n\312A\031\n\004Site\022\021" + + "OperationMetadata\332A\023parent,site,site_id\202" + + "\323\344\223\0026\"./v1alpha/{parent=projects/*/locat" + + "ions/*}/sites:\004site\022\334\001\n\nUpdateSite\022=.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha." + + "UpdateSiteRequest\032\035.google.longrunning.O" + + "peration\"p\312A\031\n\004Site\022\021OperationMetadata\332A" + + "\020site,update_mask\202\323\344\223\002;23/v1alpha/{site." + + "name=projects/*/locations/*/sites/*}:\004si" + + "te\022\326\001\n\nDeleteSite\022=.google.cloud.gdchard" + + "waremanagement.v1alpha.DeleteSiteRequest" + + "\032\035.google.longrunning.Operation\"j\312A*\n\025go" + + "ogle.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0020*./v1alpha/{name=projects/*/l" + + "ocations/*/sites/*}\022\366\001\n\022ListHardwareGrou" + + "ps\022E.google.cloud.gdchardwaremanagement." + + "v1alpha.ListHardwareGroupsRequest\032F.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.L" + + "istHardwareGroupsResponse\"Q\332A\006parent\202\323\344\223" + + "\002B\022@/v1alpha/{parent=projects/*/location" + + "s/*/orders/*}/hardwareGroups\022\343\001\n\020GetHard" + + "wareGroup\022C.google.cloud.gdchardwaremana" + + "gement.v1alpha.GetHardwareGroupRequest\0329" + + ".google.cloud.gdchardwaremanagement.v1al" + + "pha.HardwareGroup\"O\332A\004name\202\323\344\223\002B\022@/v1alp" + + "ha/{name=projects/*/locations/*/orders/*" + + "/hardwareGroups/*}\022\246\002\n\023CreateHardwareGro" + + "up\022F.google.cloud.gdchardwaremanagement." + + "v1alpha.CreateHardwareGroupRequest\032\035.goo" + + "gle.longrunning.Operation\"\247\001\312A\"\n\rHardwar" + + "eGroup\022\021OperationMetadata\332A\'parent,hardw" + + "are_group,hardware_group_id\202\323\344\223\002R\"@/v1al" + + "pha/{parent=projects/*/locations/*/order" + + "s/*}/hardwareGroups:\016hardware_group\022\250\002\n\023" + + "UpdateHardwareGroup\022F.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.UpdateHardwareG" + + "roupRequest\032\035.google.longrunning.Operati" + + "on\"\251\001\312A\"\n\rHardwareGroup\022\021OperationMetada" + + "ta\332A\032hardware_group,update_mask\202\323\344\223\002a2O/" + + "v1alpha/{hardware_group.name=projects/*/" + + "locations/*/orders/*/hardwareGroups/*}:\016" + + "hardware_group\022\372\001\n\023DeleteHardwareGroup\022F" + + ".google.cloud.gdchardwaremanagement.v1al" + + "pha.DeleteHardwareGroupRequest\032\035.google." + + "longrunning.Operation\"|\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "B*@/v1alpha/{name=projects/*/locations/*" + + "/orders/*/hardwareGroups/*}\022\325\001\n\014ListHard" + + "ware\022?.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.ListHardwareRequest\032@.google.c" + + "loud.gdchardwaremanagement.v1alpha.ListH" + + "ardwareResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1alp" + + "ha/{parent=projects/*/locations/*}/hardw" + + "are\022\305\001\n\013GetHardware\022>.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.GetHardwareRequ" + + "est\0324.google.cloud.gdchardwaremanagement" + + ".v1alpha.Hardware\"@\332A\004name\202\323\344\223\0023\0221/v1alp" + + "ha/{name=projects/*/locations/*/hardware" + + "/*}\022\366\001\n\016CreateHardware\022A.google.cloud.gd" + + "chardwaremanagement.v1alpha.CreateHardwa" + + "reRequest\032\035.google.longrunning.Operation" + + "\"\201\001\312A\035\n\010Hardware\022\021OperationMetadata\332A\033pa" + + "rent,hardware,hardware_id\202\323\344\223\002=\"1/v1alph" + + "a/{parent=projects/*/locations/*}/hardwa" + + "re:\010hardware\022\370\001\n\016UpdateHardware\022A.google" + + ".cloud.gdchardwaremanagement.v1alpha.Upd" + + "ateHardwareRequest\032\035.google.longrunning." + + "Operation\"\203\001\312A\035\n\010Hardware\022\021OperationMeta" + + "data\332A\024hardware,update_mask\202\323\344\223\002F2:/v1al" + + "pha/{hardware.name=projects/*/locations/" + + "*/hardware/*}:\010hardware\022\341\001\n\016DeleteHardwa" + + "re\022A.google.cloud.gdchardwaremanagement." + + "v1alpha.DeleteHardwareRequest\032\035.google.l" + + "ongrunning.Operation\"m\312A*\n\025google.protob" + + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0023" + + "*1/v1alpha/{name=projects/*/locations/*/" + + "hardware/*}\022\336\001\n\014ListComments\022?.google.cl" + + "oud.gdchardwaremanagement.v1alpha.ListCo" + + "mmentsRequest\032@.google.cloud.gdchardware" + + "management.v1alpha.ListCommentsResponse\"" + + "K\332A\006parent\202\323\344\223\002<\022:/v1alpha/{parent=proje" + + "cts/*/locations/*/orders/*}/comments\022\313\001\n" + + "\nGetComment\022=.google.cloud.gdchardwarema" + + "nagement.v1alpha.GetCommentRequest\0323.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha." + + "Comment\"I\332A\004name\202\323\344\223\002<\022:/v1alpha/{name=p" + + "rojects/*/locations/*/orders/*/comments/" + + "*}\022\371\001\n\rCreateComment\022@.google.cloud.gdch" + + "ardwaremanagement.v1alpha.CreateCommentR" + + "equest\032\035.google.longrunning.Operation\"\206\001" + + "\312A\034\n\007Comment\022\021OperationMetadata\332A\031parent" + + ",comment,comment_id\202\323\344\223\002E\":/v1alpha/{par" + + "ent=projects/*/locations/*/orders/*}/com" + + "ments:\007comment\022\375\001\n\025RecordActionOnComment" + + "\022H.google.cloud.gdchardwaremanagement.v1" + + "alpha.RecordActionOnCommentRequest\0323.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha." + + "Comment\"e\332A\020name,action_type\202\323\344\223\002L\"G/v1a" + + "lpha/{name=projects/*/locations/*/orders" + + "/*/comments/*}:recordAction:\001*\022\376\001\n\024ListC" + + "hangeLogEntries\022G.google.cloud.gdchardwa" + + "remanagement.v1alpha.ListChangeLogEntrie" + + "sRequest\032H.google.cloud.gdchardwaremanag" + + "ement.v1alpha.ListChangeLogEntriesRespon" + + "se\"S\332A\006parent\202\323\344\223\002D\022B/v1alpha/{parent=pr" + + "ojects/*/locations/*/orders/*}/changeLog" + + "Entries\022\350\001\n\021GetChangeLogEntry\022D.google.c" + + "loud.gdchardwaremanagement.v1alpha.GetCh" + + "angeLogEntryRequest\032:.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.ChangeLogEntry\"" + + "Q\332A\004name\202\323\344\223\002D\022B/v1alpha/{name=projects/" + + "*/locations/*/orders/*/changeLogEntries/" + + "*}\022\305\001\n\010ListSkus\022;.google.cloud.gdchardwa" + + "remanagement.v1alpha.ListSkusRequest\032<.g" + + "oogle.cloud.gdchardwaremanagement.v1alph" + + "a.ListSkusResponse\">\332A\006parent\202\323\344\223\002/\022-/v1" + + "alpha/{parent=projects/*/locations/*}/sk" + + "us\022\262\001\n\006GetSku\0229.google.cloud.gdchardware" + + "management.v1alpha.GetSkuRequest\032/.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Sk" + + "u\"<\332A\004name\202\323\344\223\002/\022-/v1alpha/{name=project" + + "s/*/locations/*/skus/*}\022\311\001\n\tListZones\022<." + "google.cloud.gdchardwaremanagement.v1alp" - + "ha.SignalZoneStateRequest\032\035.google.longr" - + "unning.Operation\"p\312A\031\n\004Zone\022\021OperationMe" - + "tadata\332A\021name,state_signal\202\323\344\223\002:\"5/v1alp" - + "ha/{name=projects/*/locations/*/zones/*}" - + ":signal:\001*\032X\312A$gdchardwaremanagement.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformB\260\002\n.com.google.clou" - + "d.gdchardwaremanagement.v1alphaB\014Service" - + "ProtoP\001Zdcloud.google.com/go/gdchardware" - + "management/apiv1alpha/gdchardwaremanagem" - + "entpb;gdchardwaremanagementpb\252\002*Google.C" - + "loud.GdcHardwareManagement.V1Alpha\312\002*Goo" - + "gle\\Cloud\\GdcHardwareManagement\\V1alpha\352" - + "\002-Google::Cloud::GDCHardwareManagement::" - + "V1alphab\006proto3" + + "ha.ListZonesRequest\032=.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.ListZonesRespon" + + "se\"?\332A\006parent\202\323\344\223\0020\022./v1alpha/{parent=pr" + + "ojects/*/locations/*}/zones\022\266\001\n\007GetZone\022" + + ":.google.cloud.gdchardwaremanagement.v1a" + + "lpha.GetZoneRequest\0320.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.Zone\"=\332A\004name\202\323" + + "\344\223\0020\022./v1alpha/{name=projects/*/location" + + "s/*/zones/*}\022\332\001\n\nCreateZone\022=.google.clo" + + "ud.gdchardwaremanagement.v1alpha.CreateZ" + + "oneRequest\032\035.google.longrunning.Operatio" + + "n\"n\312A\031\n\004Zone\022\021OperationMetadata\332A\023parent" + + ",zone,zone_id\202\323\344\223\0026\"./v1alpha/{parent=pr" + + "ojects/*/locations/*}/zones:\004zone\022\334\001\n\nUp" + + "dateZone\022=.google.cloud.gdchardwaremanag" + + "ement.v1alpha.UpdateZoneRequest\032\035.google" + + ".longrunning.Operation\"p\312A\031\n\004Zone\022\021Opera" + + "tionMetadata\332A\020zone,update_mask\202\323\344\223\002;23/" + + "v1alpha/{zone.name=projects/*/locations/" + + "*/zones/*}:\004zone\022\326\001\n\nDeleteZone\022=.google" + + ".cloud.gdchardwaremanagement.v1alpha.Del" + + "eteZoneRequest\032\035.google.longrunning.Oper" + + "ation\"j\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\0020*./v1alpha/{nam" + + "e=projects/*/locations/*/zones/*}\022\346\001\n\017Si" + + "gnalZoneState\022B.google.cloud.gdchardware" + + "management.v1alpha.SignalZoneStateReques" + + "t\032\035.google.longrunning.Operation\"p\312A\031\n\004Z" + + "one\022\021OperationMetadata\332A\021name,state_sign" + + "al\202\323\344\223\002:\"5/v1alpha/{name=projects/*/loca" + + "tions/*/zones/*}:signal:\001*\032X\312A$gdchardwa" + + "remanagement.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\260\002\n" + + ".com.google.cloud.gdchardwaremanagement." + + "v1alphaB\014ServiceProtoP\001Zdcloud.google.co" + + "m/go/gdchardwaremanagement/apiv1alpha/gd" + + "chardwaremanagementpb;gdchardwaremanagem", + "entpb\252\002*Google.Cloud.GdcHardwareManageme" + + "nt.V1Alpha\312\002*Google\\Cloud\\GdcHardwareMan" + + "agement\\V1alpha\352\002-Google::Cloud::GDCHard" + + "wareManagement::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -717,8 +729,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UpdateMask", "Site", "RequestId", }); - internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor, @@ -726,7 +746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor, @@ -734,7 +754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HardwareGroups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor, @@ -742,7 +762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor, @@ -750,7 +770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "HardwareGroupId", "HardwareGroup", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor, @@ -758,7 +778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "HardwareGroup", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor, @@ -766,7 +786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor, @@ -774,7 +794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor, @@ -782,7 +802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hardware", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor, @@ -790,7 +810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor, @@ -798,7 +818,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "HardwareId", "Hardware", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor, @@ -806,7 +826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Hardware", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor, @@ -814,7 +834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor, @@ -822,7 +842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor, @@ -830,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Comments", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor, @@ -838,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor, @@ -846,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CommentId", "Comment", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_descriptor, @@ -854,7 +874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ActionType", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor, @@ -862,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor, @@ -870,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeLogEntries", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor, @@ -878,7 +898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor, @@ -886,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor, @@ -894,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Skus", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor, @@ -902,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor, @@ -910,7 +930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor, @@ -918,7 +938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zones", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor, @@ -926,7 +946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor, @@ -934,7 +954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ZoneId", "Zone", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor, @@ -942,7 +962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Zone", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor, @@ -950,7 +970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor, @@ -958,7 +978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "StateSignal", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor, diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java index 1eb055609eb7..f680eaa45b52 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java @@ -511,11 +511,11 @@ public boolean hasOrganizationContact() { * * *
-   * Required. A URL to the Google Maps address location of the site.
+   * Optional. A URL to the Google Maps address location of the site.
    * An example value is `https://goo.gl/maps/xxxxxxxxx`.
    * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The googleMapsPinUri. */ @@ -535,11 +535,11 @@ public java.lang.String getGoogleMapsPinUri() { * * *
-   * Required. A URL to the Google Maps address location of the site.
+   * Optional. A URL to the Google Maps address location of the site.
    * An example value is `https://goo.gl/maps/xxxxxxxxx`.
    * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for googleMapsPinUri. */ @@ -2621,11 +2621,11 @@ public Builder clearOrganizationContact() { * * *
-     * Required. A URL to the Google Maps address location of the site.
+     * Optional. A URL to the Google Maps address location of the site.
      * An example value is `https://goo.gl/maps/xxxxxxxxx`.
      * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The googleMapsPinUri. */ @@ -2644,11 +2644,11 @@ public java.lang.String getGoogleMapsPinUri() { * * *
-     * Required. A URL to the Google Maps address location of the site.
+     * Optional. A URL to the Google Maps address location of the site.
      * An example value is `https://goo.gl/maps/xxxxxxxxx`.
      * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for googleMapsPinUri. */ @@ -2667,11 +2667,11 @@ public com.google.protobuf.ByteString getGoogleMapsPinUriBytes() { * * *
-     * Required. A URL to the Google Maps address location of the site.
+     * Optional. A URL to the Google Maps address location of the site.
      * An example value is `https://goo.gl/maps/xxxxxxxxx`.
      * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The googleMapsPinUri to set. * @return This builder for chaining. @@ -2689,11 +2689,11 @@ public Builder setGoogleMapsPinUri(java.lang.String value) { * * *
-     * Required. A URL to the Google Maps address location of the site.
+     * Optional. A URL to the Google Maps address location of the site.
      * An example value is `https://goo.gl/maps/xxxxxxxxx`.
      * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2707,11 +2707,11 @@ public Builder clearGoogleMapsPinUri() { * * *
-     * Required. A URL to the Google Maps address location of the site.
+     * Optional. A URL to the Google Maps address location of the site.
      * An example value is `https://goo.gl/maps/xxxxxxxxx`.
      * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for googleMapsPinUri to set. * @return This builder for chaining. diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java index d2f03f3affdf..18d552456043 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java @@ -291,11 +291,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. A URL to the Google Maps address location of the site.
+   * Optional. A URL to the Google Maps address location of the site.
    * An example value is `https://goo.gl/maps/xxxxxxxxx`.
    * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The googleMapsPinUri. */ @@ -304,11 +304,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. A URL to the Google Maps address location of the site.
+   * Optional. A URL to the Google Maps address location of the site.
    * An example value is `https://goo.gl/maps/xxxxxxxxx`.
    * 
* - * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for googleMapsPinUri. */ diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto index ba8163c6e65a..9110689a02a3 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto @@ -231,9 +231,9 @@ message Site { OrganizationContact organization_contact = 5 [(google.api.field_behavior) = REQUIRED]; - // Required. A URL to the Google Maps address location of the site. + // Optional. A URL to the Google Maps address location of the site. // An example value is `https://goo.gl/maps/xxxxxxxxx`. - string google_maps_pin_uri = 6 [(google.api.field_behavior) = REQUIRED]; + string google_maps_pin_uri = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. The time periods when the site is accessible. // If this field is empty, the site is accessible at all times. @@ -357,6 +357,68 @@ message Hardware { singular: "hardware" }; + // Message to describe the MAC address of a machine. + message MacAddress { + // Enum for the different types of MAC address. + enum AddressType { + // Unspecified address type. + ADDRESS_TYPE_UNSPECIFIED = 0; + + // Address of a network interface card. + NIC = 1; + + // Address of a baseboard management controller. + BMC = 2; + + // Address of a virtual interface. + VIRTUAL = 3; + } + + // Output only. Address string. + string address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Address type for this MAC address. + AddressType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Information about individual disks on a machine. + message DiskInfo { + // Output only. Disk manufacturer. + string manufacturer = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Disk slot number. + int32 slot = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Disk serial number. + string serial_number = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Disk PSID. + string psid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Disk part number. + string part_number = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Disk model number. + string model_number = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Information about individual machines vendors will provide during turnup. + message MachineInfo { + // Output only. Machine service tag. + string service_tag = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Each associated MAC address. + repeated MacAddress mac_addresses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Machine name. + string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information for each disk installed. + repeated DiskInfo disk_infos = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Valid states for hardware. enum State { // State of the Hardware is unspecified. @@ -460,9 +522,9 @@ message Hardware { } ]; - // Optional. Requested installation date for this hardware. This is - // auto-populated when the order is accepted, if the hardware's HardwareGroup - // specifies this. It can also be filled in by the customer. + // Optional. Requested installation date for this hardware. If not specified, + // this is auto-populated from the order's fulfillment_time upon submission or + // from the HardwareGroup's requested_installation_date upon order acceptance. google.type.Date requested_installation_date = 16 [(google.api.field_behavior) = OPTIONAL]; @@ -470,6 +532,10 @@ message Hardware { // Google. google.type.Date actual_installation_date = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Per machine asset information needed for turnup. + repeated MachineInfo machine_infos = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A comment on an order. @@ -854,9 +920,9 @@ message HardwareInstallationInfo { FOUR_POST = 2; } - // Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7, + // Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7, // Rack 3. - string rack_location = 1 [(google.api.field_behavior) = OPTIONAL]; + string rack_location = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Distance from the power outlet in meters. int32 power_distance_meters = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto index 59cafb99b308..6a2cd9d79c8e 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto @@ -150,6 +150,18 @@ service GDCHardwareManagement { }; } + // Deletes a site. + rpc DeleteSite(DeleteSiteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/sites/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists hardware groups in a given order. rpc ListHardwareGroups(ListHardwareGroupsRequest) returns (ListHardwareGroupsResponse) { @@ -414,6 +426,10 @@ service GDCHardwareManagement { message ListOrdersRequest { // Required. The project and location to list orders in. // Format: `projects/{project}/locations/{location}` + // + // To list orders across all locations, substitute `-` (the hyphen or + // dash character) for the location and check the unreachable field in + // the response message. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -443,7 +459,8 @@ message ListOrdersResponse { // A token identifying a page of results the server should return. string next_page_token = 2; - // Locations that could not be reached. + // Locations that could not be reached. Only used for queries to the wildcard + // location `-`. If non-empty, it indicates that the results are incomplete. repeated string unreachable = 3; } @@ -574,6 +591,10 @@ message SubmitOrderRequest { message ListSitesRequest { // Required. The project and location to list sites in. // Format: `projects/{project}/locations/{location}` + // + // To list sites across all locations, substitute `-` (the hyphen or + // dash character) for the location and check the unreachable field in + // the response message. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -603,7 +624,8 @@ message ListSitesResponse { // A token identifying a page of results the server should return. string next_page_token = 2; - // Locations that could not be reached. + // Locations that could not be reached. Only used for queries to the wildcard + // location `-`. If non-empty, it indicates that the results are incomplete. repeated string unreachable = 3; } @@ -665,6 +687,25 @@ message UpdateSiteRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } +// A request to delete a site. +message DeleteSiteRequest { + // Required. The name of the site. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // A request to list hardware groups. message ListHardwareGroupsRequest { // Required. The order to list hardware groups in. @@ -783,6 +824,10 @@ message DeleteHardwareGroupRequest { message ListHardwareRequest { // Required. The project and location to list hardware in. // Format: `projects/{project}/locations/{location}` + // + // To list hardware across all locations, substitute `-` (the hyphen or + // dash character) for the location and check the unreachable field in + // the response message. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -812,7 +857,8 @@ message ListHardwareResponse { // A token identifying a page of results the server should return. string next_page_token = 2; - // Locations that could not be reached. + // Locations that could not be reached. Only used for queries to the wildcard + // location `-`. If non-empty, it indicates that the results are incomplete. repeated string unreachable = 3; } @@ -1050,6 +1096,10 @@ message GetChangeLogEntryRequest { message ListSkusRequest { // Required. The project and location to list SKUs in. // Format: `projects/{project}/locations/{location}` + // + // To list SKUs across all locations, substitute `-` (the hyphen or + // dash character) for the location and check the unreachable field in + // the response message. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1079,7 +1129,8 @@ message ListSkusResponse { // A token identifying a page of results the server should return. string next_page_token = 2; - // Locations that could not be reached. + // Locations that could not be reached. Only used for queries to the wildcard + // location `-`. If non-empty, it indicates that the results are incomplete. repeated string unreachable = 3; } @@ -1099,6 +1150,10 @@ message GetSkuRequest { message ListZonesRequest { // Required. The project and location to list zones in. // Format: `projects/{project}/locations/{location}` + // + // To list zones across all locations, substitute `-` (the hyphen or + // dash character) for the location and check the unreachable field in + // the response message. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1128,7 +1183,8 @@ message ListZonesResponse { // A token identifying a page of results the server should return. string next_page_token = 2; - // Locations that could not be reached. + // Locations that could not be reached. Only used for queries to the wildcard + // location `-`. If non-empty, it indicates that the results are incomplete. repeated string unreachable = 3; } diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0fe0ceea12ac..000000000000 --- a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gdchardwaremanagement.v1alpha.samples; - -// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; -import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GDCHardwareManagementSettings gDCHardwareManagementSettings = - GDCHardwareManagementSettings.newHttpJsonBuilder().build(); - GDCHardwareManagementClient gDCHardwareManagementClient = - GDCHardwareManagementClient.create(gDCHardwareManagementSettings); - } -} -// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider1_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateUseHttpJsonTransport.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..83c948e71b14 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementSettings gDCHardwareManagementSettings = + GDCHardwareManagementSettings.newHttpJsonBuilder().build(); + GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create(gDCHardwareManagementSettings); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_UseHttpJsonTransport_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSite.java new file mode 100644 index 000000000000..25a6bd2a5380 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSite.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSite { + + public static void main(String[] args) throws Exception { + asyncDeleteSite(); + } + + public static void asyncDeleteSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteSiteRequest request = + DeleteSiteRequest.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.deleteSiteCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSiteLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSiteLRO.java new file mode 100644 index 000000000000..8ffb58f2f540 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/AsyncDeleteSiteLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSiteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSiteLRO(); + } + + public static void asyncDeleteSiteLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteSiteRequest request = + DeleteSiteRequest.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.deleteSiteOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSite.java new file mode 100644 index 000000000000..d94de5144f0d --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSite.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; +import com.google.protobuf.Empty; + +public class SyncDeleteSite { + + public static void main(String[] args) throws Exception { + syncDeleteSite(); + } + + public static void syncDeleteSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteSiteRequest request = + DeleteSiteRequest.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setRequestId("requestId693933066") + .build(); + gDCHardwareManagementClient.deleteSiteAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteSitename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteSitename.java new file mode 100644 index 000000000000..a52d6531c85c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteSitename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_Sitename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; +import com.google.protobuf.Empty; + +public class SyncDeleteSiteSitename { + + public static void main(String[] args) throws Exception { + syncDeleteSiteSitename(); + } + + public static void syncDeleteSiteSitename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + gDCHardwareManagementClient.deleteSiteAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_Sitename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteString.java new file mode 100644 index 000000000000..106af441a906 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletesite/SyncDeleteSiteString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; +import com.google.protobuf.Empty; + +public class SyncDeleteSiteString { + + public static void main(String[] args) throws Exception { + syncDeleteSiteString(); + } + + public static void syncDeleteSiteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString(); + gDCHardwareManagementClient.deleteSiteAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_String_sync] diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 9d45ad6ce78e..727ade542110 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.51.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json b/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json index 3f8f0ca32068..1b7adbbc7be3 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json +++ b/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.Backup", "queryAllDeclaredConstructors": true, diff --git a/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateSetCredentialsProvider1.java b/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ec0222a2968c..000000000000 --- a/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkebackup.v1.samples; - -// [START gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkebackup.v1.BackupForGKEClient; -import com.google.cloud.gkebackup.v1.BackupForGKESettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BackupForGKESettings backupForGKESettings = BackupForGKESettings.newHttpJsonBuilder().build(); - BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings); - } -} -// [END gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider1_sync] diff --git a/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateUseHttpJsonTransport.java b/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3ff939915a57 --- /dev/null +++ b/java-gke-backup/samples/snippets/generated/com/google/cloud/gkebackup/v1/backupforgke/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkebackup.v1.samples; + +// [START gkebackup_v1_generated_BackupForGKE_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkebackup.v1.BackupForGKEClient; +import com.google.cloud.gkebackup.v1.BackupForGKESettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BackupForGKESettings backupForGKESettings = BackupForGKESettings.newHttpJsonBuilder().build(); + BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings); + } +} +// [END gkebackup_v1_generated_BackupForGKE_Create_UseHttpJsonTransport_sync] diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 4f933bb8d997..d487c54baf50 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1beta1/reflect-config.json b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1beta1/reflect-config.json index 188883c59490..cea72ca14342 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1beta1/reflect-config.json +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/resources/META-INF/native-image/com.google.cloud.gkeconnect.gateway.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 90ef394183d8..e963894ee904 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.51.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json index 9d6ff8726776..5f51aa0c1da9 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkemulticloud.v1.AttachedCluster", "queryAllDeclaredConstructors": true, diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f8f68c1c07d5..000000000000 --- a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkemulticloud.v1.samples; - -// [START gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; -import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AttachedClustersSettings attachedClustersSettings = - AttachedClustersSettings.newHttpJsonBuilder().build(); - AttachedClustersClient attachedClustersClient = - AttachedClustersClient.create(attachedClustersSettings); - } -} -// [END gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider1_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateUseHttpJsonTransport.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c76bb01c2f3b --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AttachedClustersSettings attachedClustersSettings = + AttachedClustersSettings.newHttpJsonBuilder().build(); + AttachedClustersClient attachedClustersClient = + AttachedClustersClient.create(attachedClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_Create_UseHttpJsonTransport_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateSetCredentialsProvider1.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6f9cf49801ec..000000000000 --- a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkemulticloud.v1.samples; - -// [START gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkemulticloud.v1.AwsClustersClient; -import com.google.cloud.gkemulticloud.v1.AwsClustersSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AwsClustersSettings awsClustersSettings = AwsClustersSettings.newHttpJsonBuilder().build(); - AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings); - } -} -// [END gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider1_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateUseHttpJsonTransport.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..99217896cef6 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/awsclusters/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AwsClusters_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkemulticloud.v1.AwsClustersClient; +import com.google.cloud.gkemulticloud.v1.AwsClustersSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AwsClustersSettings awsClustersSettings = AwsClustersSettings.newHttpJsonBuilder().build(); + AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AwsClusters_Create_UseHttpJsonTransport_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateSetCredentialsProvider1.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f5344cd912ea..000000000000 --- a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkemulticloud.v1.samples; - -// [START gkemulticloud_v1_generated_AzureClusters_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkemulticloud.v1.AzureClustersClient; -import com.google.cloud.gkemulticloud.v1.AzureClustersSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AzureClustersSettings azureClustersSettings = - AzureClustersSettings.newHttpJsonBuilder().build(); - AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings); - } -} -// [END gkemulticloud_v1_generated_AzureClusters_Create_SetCredentialsProvider1_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateUseHttpJsonTransport.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d9a84b2301a9 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/azureclusters/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AzureClusters_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkemulticloud.v1.AzureClustersClient; +import com.google.cloud.gkemulticloud.v1.AzureClustersSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AzureClustersSettings azureClustersSettings = + AzureClustersSettings.newHttpJsonBuilder().build(); + AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AzureClusters_Create_UseHttpJsonTransport_sync] diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 818097bd980c..8e07cc0208aa 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json index 6e292aeb7bcd..6ec732f65c07 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSync", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1alpha/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1alpha/reflect-config.json index 2a34d391f0c5..4de3c31456a1 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1alpha/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json index 724857048630..8121401d05da 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta1/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta1/reflect-config.json index 2b622839c8bd..3b1a5fab31da 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta1/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1beta1.ApplianceCluster", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateSetCredentialsProvider1.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c6f29e39f1a4..000000000000 --- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gkehub.v1beta1.samples; - -// [START gkehub_v1beta1_generated_GkeHubMembershipService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient; -import com.google.cloud.gkehub.v1beta1.GkeHubMembershipServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings = - GkeHubMembershipServiceSettings.newHttpJsonBuilder().build(); - GkeHubMembershipServiceClient gkeHubMembershipServiceClient = - GkeHubMembershipServiceClient.create(gkeHubMembershipServiceSettings); - } -} -// [END gkehub_v1beta1_generated_GkeHubMembershipService_Create_SetCredentialsProvider1_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateUseHttpJsonTransport.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c148ab47603a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1beta1.samples; + +// [START gkehub_v1beta1_generated_GkeHubMembershipService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient; +import com.google.cloud.gkehub.v1beta1.GkeHubMembershipServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings = + GkeHubMembershipServiceSettings.newHttpJsonBuilder().build(); + GkeHubMembershipServiceClient gkeHubMembershipServiceClient = + GkeHubMembershipServiceClient.create(gkeHubMembershipServiceSettings); + } +} +// [END gkehub_v1beta1_generated_GkeHubMembershipService_Create_UseHttpJsonTransport_sync] diff --git a/java-grafeas/README.md b/java-grafeas/README.md index c87f3065c8d0..e308e6e77788 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "io.grafeas" % "grafeas" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json b/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json index a4c3c3b9a6eb..37914289da61 100644 --- a/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json +++ b/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 6505e620730c..ca30e851102a 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json index 8807486da4c7..e3d0e4682180 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.script.type.AddOnWidgetSet", "queryAllDeclaredConstructors": true, diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateSetCredentialsProvider1.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f9f4922ac3da..000000000000 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gsuiteaddons.v1.samples; - -// [START gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider1_sync] -import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; -import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newHttpJsonBuilder().build(); - GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings); - } -} -// [END gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider1_sync] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateUseHttpJsonTransport.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..78b89af1118d --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newHttpJsonBuilder().build(); + GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings); + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_Create_UseHttpJsonTransport_sync] diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 9b1124f1a393..568e23d172a2 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.47.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json b/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json index 9291737284a1..072511d51847 100644 --- a/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json +++ b/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.admin.v1.AuditData", "queryAllDeclaredConstructors": true, diff --git a/java-iam/README.md b/java-iam/README.md index c039ccd8258e..3b44b4b22334 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2/reflect-config.json b/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2/reflect-config.json index 54b72aa36efe..8c1a86a063b2 100644 --- a/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2/reflect-config.json +++ b/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v2.CreatePolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2beta/reflect-config.json b/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2beta/reflect-config.json index 8db3d3c1ffe5..579a5b8d29c6 100644 --- a/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2beta/reflect-config.json +++ b/java-iam/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v2beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v2beta.CreatePolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 3045e18c1f3b..72217bd5a159 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/resources/META-INF/native-image/com.google.cloud.iam.credentials.v1/reflect-config.json b/java-iamcredentials/google-cloud-iamcredentials/src/main/resources/META-INF/native-image/com.google.cloud.iam.credentials.v1/reflect-config.json index cb5cdaa16ffc..379bda32eb67 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/resources/META-INF/native-image/com.google.cloud.iam.credentials.v1/reflect-config.json +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/resources/META-INF/native-image/com.google.cloud.iam.credentials.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java b/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3d84450f03c0..000000000000 --- a/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.credentials.v1.samples; - -// [START iamcredentials_v1_generated_IAMCredentials_Create_SetCredentialsProvider1_sync] -import com.google.cloud.iam.credentials.v1.IamCredentialsClient; -import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IamCredentialsSettings iamCredentialsSettings = - IamCredentialsSettings.newHttpJsonBuilder().build(); - IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); - } -} -// [END iamcredentials_v1_generated_IAMCredentials_Create_SetCredentialsProvider1_sync] diff --git a/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateUseHttpJsonTransport.java b/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6157086fce22 --- /dev/null +++ b/java-iamcredentials/samples/snippets/generated/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.iam.credentials.v1.samples; + +// [START iamcredentials_v1_generated_IAMCredentials_Create_UseHttpJsonTransport_sync] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IamCredentialsSettings iamCredentialsSettings = + IamCredentialsSettings.newHttpJsonBuilder().build(); + IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); + } +} +// [END iamcredentials_v1_generated_IAMCredentials_Create_UseHttpJsonTransport_sync] diff --git a/java-iap/README.md b/java-iap/README.md index d84c87b37030..bfeff5718520 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.8.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/google-cloud-iap/src/main/resources/META-INF/native-image/com.google.cloud.iap.v1/reflect-config.json b/java-iap/google-cloud-iap/src/main/resources/META-INF/native-image/com.google.cloud.iap.v1/reflect-config.json index e5f07093a1b3..4af11fa52773 100644 --- a/java-iap/google-cloud-iap/src/main/resources/META-INF/native-image/com.google.cloud.iap.v1/reflect-config.json +++ b/java-iap/google-cloud-iap/src/main/resources/META-INF/native-image/com.google.cloud.iap.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.iap.v1.AccessDeniedPageSettings", "queryAllDeclaredConstructors": true, diff --git a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fcecad08b282..000000000000 --- a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iap.v1.samples; - -// [START iap_v1_generated_IdentityAwareProxyAdminService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient; -import com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IdentityAwareProxyAdminServiceSettings identityAwareProxyAdminServiceSettings = - IdentityAwareProxyAdminServiceSettings.newHttpJsonBuilder().build(); - IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient = - IdentityAwareProxyAdminServiceClient.create(identityAwareProxyAdminServiceSettings); - } -} -// [END iap_v1_generated_IdentityAwareProxyAdminService_Create_SetCredentialsProvider1_sync] diff --git a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateUseHttpJsonTransport.java b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..49757891dd98 --- /dev/null +++ b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyadminservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.iap.v1.samples; + +// [START iap_v1_generated_IdentityAwareProxyAdminService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient; +import com.google.cloud.iap.v1.IdentityAwareProxyAdminServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityAwareProxyAdminServiceSettings identityAwareProxyAdminServiceSettings = + IdentityAwareProxyAdminServiceSettings.newHttpJsonBuilder().build(); + IdentityAwareProxyAdminServiceClient identityAwareProxyAdminServiceClient = + IdentityAwareProxyAdminServiceClient.create(identityAwareProxyAdminServiceSettings); + } +} +// [END iap_v1_generated_IdentityAwareProxyAdminService_Create_UseHttpJsonTransport_sync] diff --git a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateSetCredentialsProvider1.java b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bd041831148b..000000000000 --- a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iap.v1.samples; - -// [START iap_v1_generated_IdentityAwareProxyOAuthService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient; -import com.google.cloud.iap.v1.IdentityAwareProxyOAuthServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IdentityAwareProxyOAuthServiceSettings identityAwareProxyOAuthServiceSettings = - IdentityAwareProxyOAuthServiceSettings.newHttpJsonBuilder().build(); - IdentityAwareProxyOAuthServiceClient identityAwareProxyOAuthServiceClient = - IdentityAwareProxyOAuthServiceClient.create(identityAwareProxyOAuthServiceSettings); - } -} -// [END iap_v1_generated_IdentityAwareProxyOAuthService_Create_SetCredentialsProvider1_sync] diff --git a/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateUseHttpJsonTransport.java b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6c39bd7485a1 --- /dev/null +++ b/java-iap/samples/snippets/generated/com/google/cloud/iap/v1/identityawareproxyoauthservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.iap.v1.samples; + +// [START iap_v1_generated_IdentityAwareProxyOAuthService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient; +import com.google.cloud.iap.v1.IdentityAwareProxyOAuthServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityAwareProxyOAuthServiceSettings identityAwareProxyOAuthServiceSettings = + IdentityAwareProxyOAuthServiceSettings.newHttpJsonBuilder().build(); + IdentityAwareProxyOAuthServiceClient identityAwareProxyOAuthServiceClient = + IdentityAwareProxyOAuthServiceClient.create(identityAwareProxyOAuthServiceSettings); + } +} +// [END iap_v1_generated_IdentityAwareProxyOAuthService_Create_UseHttpJsonTransport_sync] diff --git a/java-ids/README.md b/java-ids/README.md index 35316b78c206..43e7f7087e00 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/google-cloud-ids/src/main/resources/META-INF/native-image/com.google.cloud.ids.v1/reflect-config.json b/java-ids/google-cloud-ids/src/main/resources/META-INF/native-image/com.google.cloud.ids.v1/reflect-config.json index f4b2356a6042..d75cc9c5a9bc 100644 --- a/java-ids/google-cloud-ids/src/main/resources/META-INF/native-image/com.google.cloud.ids.v1/reflect-config.json +++ b/java-ids/google-cloud-ids/src/main/resources/META-INF/native-image/com.google.cloud.ids.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ids.v1.CreateEndpointRequest", "queryAllDeclaredConstructors": true, diff --git a/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateSetCredentialsProvider1.java b/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 007ae8a667ca..000000000000 --- a/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.ids.v1.samples; - -// [START ids_v1_generated_IDS_Create_SetCredentialsProvider1_sync] -import com.google.cloud.ids.v1.IDSClient; -import com.google.cloud.ids.v1.IDSSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IDSSettings iDSSettings = IDSSettings.newHttpJsonBuilder().build(); - IDSClient iDSClient = IDSClient.create(iDSSettings); - } -} -// [END ids_v1_generated_IDS_Create_SetCredentialsProvider1_sync] diff --git a/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateUseHttpJsonTransport.java b/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c5c74d3e1572 --- /dev/null +++ b/java-ids/samples/snippets/generated/com/google/cloud/ids/v1/ids/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ids.v1.samples; + +// [START ids_v1_generated_IDS_Create_UseHttpJsonTransport_sync] +import com.google.cloud.ids.v1.IDSClient; +import com.google.cloud.ids.v1.IDSSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IDSSettings iDSSettings = IDSSettings.newHttpJsonBuilder().build(); + IDSClient iDSClient = IDSClient.create(iDSSettings); + } +} +// [END ids_v1_generated_IDS_Create_UseHttpJsonTransport_sync] diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 31a8092d6722..dff8b6bc63b5 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.29.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json index cfff301344b9..b1851c7e37b8 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json +++ b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateSetCredentialsProvider1.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0555bdb08481..000000000000 --- a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.config.v1.samples; - -// [START config_v1_generated_Config_Create_SetCredentialsProvider1_sync] -import com.google.cloud.config.v1.ConfigClient; -import com.google.cloud.config.v1.ConfigSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConfigSettings configSettings = ConfigSettings.newHttpJsonBuilder().build(); - ConfigClient configClient = ConfigClient.create(configSettings); - } -} -// [END config_v1_generated_Config_Create_SetCredentialsProvider1_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateUseHttpJsonTransport.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d0b0edb9ea9c --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.config.v1.samples; + +// [START config_v1_generated_Config_Create_UseHttpJsonTransport_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ConfigSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConfigSettings configSettings = ConfigSettings.newHttpJsonBuilder().build(); + ConfigClient configClient = ConfigClient.create(configSettings); + } +} +// [END config_v1_generated_Config_Create_UseHttpJsonTransport_sync] diff --git a/java-iot/README.md b/java-iot/README.md index 5f5364ab674e..898aa8feac6a 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/google-cloud-iot/src/main/resources/META-INF/native-image/com.google.cloud.iot.v1/reflect-config.json b/java-iot/google-cloud-iot/src/main/resources/META-INF/native-image/com.google.cloud.iot.v1/reflect-config.json index 8bd030f5b46c..f6bba9d995fb 100644 --- a/java-iot/google-cloud-iot/src/main/resources/META-INF/native-image/com.google.cloud.iot.v1/reflect-config.json +++ b/java-iot/google-cloud-iot/src/main/resources/META-INF/native-image/com.google.cloud.iot.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.iot.v1.BindDeviceToGatewayRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateSetCredentialsProvider1.java b/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bd6749922300..000000000000 --- a/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iot.v1.samples; - -// [START cloudiot_v1_generated_DeviceManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.iot.v1.DeviceManagerClient; -import com.google.cloud.iot.v1.DeviceManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DeviceManagerSettings deviceManagerSettings = - DeviceManagerSettings.newHttpJsonBuilder().build(); - DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); - } -} -// [END cloudiot_v1_generated_DeviceManager_Create_SetCredentialsProvider1_sync] diff --git a/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateUseHttpJsonTransport.java b/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..03ca7ebc3a1c --- /dev/null +++ b/java-iot/samples/snippets/generated/com/google/cloud/iot/v1/devicemanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.iot.v1.samples; + +// [START cloudiot_v1_generated_DeviceManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DeviceManagerSettings deviceManagerSettings = + DeviceManagerSettings.newHttpJsonBuilder().build(); + DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); + } +} +// [END cloudiot_v1_generated_DeviceManager_Create_UseHttpJsonTransport_sync] diff --git a/java-kms/README.md b/java-kms/README.md index a3f0f1eaca3f..7e7443a7f42c 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.55.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json index 8d2992263123..a5480a887cd4 100644 --- a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json +++ b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.AccessReason", "queryAllDeclaredConstructors": true, diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateSetCredentialsProvider1.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 99933c1497c2..000000000000 --- a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.v1.samples; - -// [START cloudkms_v1_generated_Autokey_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.v1.AutokeyClient; -import com.google.cloud.kms.v1.AutokeySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutokeySettings autokeySettings = AutokeySettings.newHttpJsonBuilder().build(); - AutokeyClient autokeyClient = AutokeyClient.create(autokeySettings); - } -} -// [END cloudkms_v1_generated_Autokey_Create_SetCredentialsProvider1_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateUseHttpJsonTransport.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ddd00c253941 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokey/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_Autokey_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.v1.AutokeyClient; +import com.google.cloud.kms.v1.AutokeySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutokeySettings autokeySettings = AutokeySettings.newHttpJsonBuilder().build(); + AutokeyClient autokeyClient = AutokeyClient.create(autokeySettings); + } +} +// [END cloudkms_v1_generated_Autokey_Create_UseHttpJsonTransport_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateSetCredentialsProvider1.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cba789c2d21c..000000000000 --- a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.v1.samples; - -// [START cloudkms_v1_generated_AutokeyAdmin_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.v1.AutokeyAdminClient; -import com.google.cloud.kms.v1.AutokeyAdminSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutokeyAdminSettings autokeyAdminSettings = AutokeyAdminSettings.newHttpJsonBuilder().build(); - AutokeyAdminClient autokeyAdminClient = AutokeyAdminClient.create(autokeyAdminSettings); - } -} -// [END cloudkms_v1_generated_AutokeyAdmin_Create_SetCredentialsProvider1_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateUseHttpJsonTransport.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cc3d7c57872e --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/autokeyadmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_AutokeyAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.v1.AutokeyAdminClient; +import com.google.cloud.kms.v1.AutokeyAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutokeyAdminSettings autokeyAdminSettings = AutokeyAdminSettings.newHttpJsonBuilder().build(); + AutokeyAdminClient autokeyAdminClient = AutokeyAdminClient.create(autokeyAdminSettings); + } +} +// [END cloudkms_v1_generated_AutokeyAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1285e55eb3f8..000000000000 --- a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.v1.samples; - -// [START cloudkms_v1_generated_EkmService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.v1.EkmServiceClient; -import com.google.cloud.kms.v1.EkmServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EkmServiceSettings ekmServiceSettings = EkmServiceSettings.newHttpJsonBuilder().build(); - EkmServiceClient ekmServiceClient = EkmServiceClient.create(ekmServiceSettings); - } -} -// [END cloudkms_v1_generated_EkmService_Create_SetCredentialsProvider1_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateUseHttpJsonTransport.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..226c54f7fa67 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_EkmService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.v1.EkmServiceClient; +import com.google.cloud.kms.v1.EkmServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EkmServiceSettings ekmServiceSettings = EkmServiceSettings.newHttpJsonBuilder().build(); + EkmServiceClient ekmServiceClient = EkmServiceClient.create(ekmServiceSettings); + } +} +// [END cloudkms_v1_generated_EkmService_Create_UseHttpJsonTransport_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5f48288913d5..000000000000 --- a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.v1.samples; - -// [START cloudkms_v1_generated_KeyManagementService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.v1.KeyManagementServiceClient; -import com.google.cloud.kms.v1.KeyManagementServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - KeyManagementServiceSettings keyManagementServiceSettings = - KeyManagementServiceSettings.newHttpJsonBuilder().build(); - KeyManagementServiceClient keyManagementServiceClient = - KeyManagementServiceClient.create(keyManagementServiceSettings); - } -} -// [END cloudkms_v1_generated_KeyManagementService_Create_SetCredentialsProvider1_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateUseHttpJsonTransport.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..73b35980c88f --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyManagementServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + KeyManagementServiceSettings keyManagementServiceSettings = + KeyManagementServiceSettings.newHttpJsonBuilder().build(); + KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create(keyManagementServiceSettings); + } +} +// [END cloudkms_v1_generated_KeyManagementService_Create_UseHttpJsonTransport_sync] diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index e7cd7dcc1b14..a4c9b19f780e 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.41.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json b/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json index e0c2079e158e..b5a130492099 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest", "queryAllDeclaredConstructors": true, diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5ad6fd6e9374..000000000000 --- a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.inventory.v1.samples; - -// [START kmsinventory_v1_generated_KeyDashboardService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.inventory.v1.KeyDashboardServiceClient; -import com.google.cloud.kms.inventory.v1.KeyDashboardServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - KeyDashboardServiceSettings keyDashboardServiceSettings = - KeyDashboardServiceSettings.newHttpJsonBuilder().build(); - KeyDashboardServiceClient keyDashboardServiceClient = - KeyDashboardServiceClient.create(keyDashboardServiceSettings); - } -} -// [END kmsinventory_v1_generated_KeyDashboardService_Create_SetCredentialsProvider1_sync] diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateUseHttpJsonTransport.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3a4ed0267f4d --- /dev/null +++ b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.inventory.v1.samples; + +// [START kmsinventory_v1_generated_KeyDashboardService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.inventory.v1.KeyDashboardServiceClient; +import com.google.cloud.kms.inventory.v1.KeyDashboardServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + KeyDashboardServiceSettings keyDashboardServiceSettings = + KeyDashboardServiceSettings.newHttpJsonBuilder().build(); + KeyDashboardServiceClient keyDashboardServiceClient = + KeyDashboardServiceClient.create(keyDashboardServiceSettings); + } +} +// [END kmsinventory_v1_generated_KeyDashboardService_Create_UseHttpJsonTransport_sync] diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5f917fa3a2ca..000000000000 --- a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.kms.inventory.v1.samples; - -// [START kmsinventory_v1_generated_KeyTrackingService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.kms.inventory.v1.KeyTrackingServiceClient; -import com.google.cloud.kms.inventory.v1.KeyTrackingServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - KeyTrackingServiceSettings keyTrackingServiceSettings = - KeyTrackingServiceSettings.newHttpJsonBuilder().build(); - KeyTrackingServiceClient keyTrackingServiceClient = - KeyTrackingServiceClient.create(keyTrackingServiceSettings); - } -} -// [END kmsinventory_v1_generated_KeyTrackingService_Create_SetCredentialsProvider1_sync] diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateUseHttpJsonTransport.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..75ae2b329ce0 --- /dev/null +++ b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.inventory.v1.samples; + +// [START kmsinventory_v1_generated_KeyTrackingService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.kms.inventory.v1.KeyTrackingServiceClient; +import com.google.cloud.kms.inventory.v1.KeyTrackingServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + KeyTrackingServiceSettings keyTrackingServiceSettings = + KeyTrackingServiceSettings.newHttpJsonBuilder().build(); + KeyTrackingServiceClient keyTrackingServiceClient = + KeyTrackingServiceClient.create(keyTrackingServiceSettings); + } +} +// [END kmsinventory_v1_generated_KeyTrackingService_Create_UseHttpJsonTransport_sync] diff --git a/java-language/README.md b/java-language/README.md index 8b406f8793a1..57e4aa586335 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.53.0" ``` - ## Authentication @@ -228,7 +226,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1/reflect-config.json b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1/reflect-config.json index 012dc67b6cae..dd7ba7cef211 100644 --- a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1/reflect-config.json +++ b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.language.v1.AnalyzeEntitiesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1beta2/reflect-config.json b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1beta2/reflect-config.json index 8b0e7515b5ad..df7f967eb0e1 100644 --- a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1beta2/reflect-config.json +++ b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v1beta2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json index 0511c7df5a5d..2ea9045a97e9 100644 --- a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json +++ b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.language.v2.AnalyzeEntitiesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateSetCredentialsProvider1.java b/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bd07d15912b7..000000000000 --- a/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.language.v1.samples; - -// [START language_v1_generated_LanguageService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.language.v1.LanguageServiceClient; -import com.google.cloud.language.v1.LanguageServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LanguageServiceSettings languageServiceSettings = - LanguageServiceSettings.newHttpJsonBuilder().build(); - LanguageServiceClient languageServiceClient = - LanguageServiceClient.create(languageServiceSettings); - } -} -// [END language_v1_generated_LanguageService_Create_SetCredentialsProvider1_sync] diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateUseHttpJsonTransport.java b/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ecca56c79a01 --- /dev/null +++ b/java-language/samples/snippets/generated/com/google/cloud/language/v1/languageservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.language.v1.samples; + +// [START language_v1_generated_LanguageService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.language.v1.LanguageServiceClient; +import com.google.cloud.language.v1.LanguageServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LanguageServiceSettings languageServiceSettings = + LanguageServiceSettings.newHttpJsonBuilder().build(); + LanguageServiceClient languageServiceClient = + LanguageServiceClient.create(languageServiceSettings); + } +} +// [END language_v1_generated_LanguageService_Create_UseHttpJsonTransport_sync] diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateSetCredentialsProvider1.java b/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8e88b5cf402f..000000000000 --- a/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.language.v1beta2.samples; - -// [START language_v1beta2_generated_LanguageService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.language.v1beta2.LanguageServiceClient; -import com.google.cloud.language.v1beta2.LanguageServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LanguageServiceSettings languageServiceSettings = - LanguageServiceSettings.newHttpJsonBuilder().build(); - LanguageServiceClient languageServiceClient = - LanguageServiceClient.create(languageServiceSettings); - } -} -// [END language_v1beta2_generated_LanguageService_Create_SetCredentialsProvider1_sync] diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateUseHttpJsonTransport.java b/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e550669a073c --- /dev/null +++ b/java-language/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.language.v1beta2.samples; + +// [START language_v1beta2_generated_LanguageService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.language.v1beta2.LanguageServiceClient; +import com.google.cloud.language.v1beta2.LanguageServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LanguageServiceSettings languageServiceSettings = + LanguageServiceSettings.newHttpJsonBuilder().build(); + LanguageServiceClient languageServiceClient = + LanguageServiceClient.create(languageServiceSettings); + } +} +// [END language_v1beta2_generated_LanguageService_Create_UseHttpJsonTransport_sync] diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateSetCredentialsProvider1.java b/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c5d608ddb96c..000000000000 --- a/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.language.v2.samples; - -// [START language_v2_generated_LanguageService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.language.v2.LanguageServiceClient; -import com.google.cloud.language.v2.LanguageServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LanguageServiceSettings languageServiceSettings = - LanguageServiceSettings.newHttpJsonBuilder().build(); - LanguageServiceClient languageServiceClient = - LanguageServiceClient.create(languageServiceSettings); - } -} -// [END language_v2_generated_LanguageService_Create_SetCredentialsProvider1_sync] diff --git a/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateUseHttpJsonTransport.java b/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..93faf2b665fa --- /dev/null +++ b/java-language/samples/snippets/generated/com/google/cloud/language/v2/languageservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.language.v2.samples; + +// [START language_v2_generated_LanguageService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.language.v2.LanguageServiceClient; +import com.google.cloud.language.v2.LanguageServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LanguageServiceSettings languageServiceSettings = + LanguageServiceSettings.newHttpJsonBuilder().build(); + LanguageServiceClient languageServiceClient = + LanguageServiceClient.create(languageServiceSettings); + } +} +// [END language_v2_generated_LanguageService_Create_UseHttpJsonTransport_sync] diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index c32904731412..7f39cd9bb795 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.54.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/resources/META-INF/native-image/com.google.cloud.lifesciences.v2beta/reflect-config.json b/java-life-sciences/google-cloud-life-sciences/src/main/resources/META-INF/native-image/com.google.cloud.lifesciences.v2beta/reflect-config.json index 45e6e6730ccf..ea7fac384619 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/resources/META-INF/native-image/com.google.cloud.lifesciences.v2beta/reflect-config.json +++ b/java-life-sciences/google-cloud-life-sciences/src/main/resources/META-INF/native-image/com.google.cloud.lifesciences.v2beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.lifesciences.v2beta.Accelerator", "queryAllDeclaredConstructors": true, diff --git a/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateSetCredentialsProvider1.java b/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 72c181b056db..000000000000 --- a/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.lifesciences.v2beta.samples; - -// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_Create_SetCredentialsProvider1_sync] -import com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient; -import com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowsServiceV2BetaSettings workflowsServiceV2BetaSettings = - WorkflowsServiceV2BetaSettings.newHttpJsonBuilder().build(); - WorkflowsServiceV2BetaClient workflowsServiceV2BetaClient = - WorkflowsServiceV2BetaClient.create(workflowsServiceV2BetaSettings); - } -} -// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_Create_SetCredentialsProvider1_sync] diff --git a/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateUseHttpJsonTransport.java b/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9fb9aae3b513 --- /dev/null +++ b/java-life-sciences/samples/snippets/generated/com/google/cloud/lifesciences/v2beta/workflowsservicev2beta/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.lifesciences.v2beta.samples; + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_Create_UseHttpJsonTransport_sync] +import com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient; +import com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkflowsServiceV2BetaSettings workflowsServiceV2BetaSettings = + WorkflowsServiceV2BetaSettings.newHttpJsonBuilder().build(); + WorkflowsServiceV2BetaClient workflowsServiceV2BetaClient = + WorkflowsServiceV2BetaClient.create(workflowsServiceV2BetaSettings); + } +} +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_Create_UseHttpJsonTransport_sync] diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 96ec042d184f..d79cf7943807 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/resources/META-INF/native-image/com.google.cloud.managedidentities.v1/reflect-config.json b/java-managed-identities/google-cloud-managed-identities/src/main/resources/META-INF/native-image/com.google.cloud.managedidentities.v1/reflect-config.json index 39c5530cfb80..244c04846759 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/resources/META-INF/native-image/com.google.cloud.managedidentities.v1/reflect-config.json +++ b/java-managed-identities/google-cloud-managed-identities/src/main/resources/META-INF/native-image/com.google.cloud.managedidentities.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.managedidentities.v1.AttachTrustRequest", "queryAllDeclaredConstructors": true, diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 6643443dc9b3..8207da681419 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json index 9d2130c68730..870210f570f8 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json +++ b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateSetCredentialsProvider1.java b/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 46134e3fa2ac..000000000000 --- a/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.managedkafka.v1.samples; - -// [START managedkafka_v1_generated_ManagedKafka_Create_SetCredentialsProvider1_sync] -import com.google.cloud.managedkafka.v1.ManagedKafkaClient; -import com.google.cloud.managedkafka.v1.ManagedKafkaSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ManagedKafkaSettings managedKafkaSettings = ManagedKafkaSettings.newHttpJsonBuilder().build(); - ManagedKafkaClient managedKafkaClient = ManagedKafkaClient.create(managedKafkaSettings); - } -} -// [END managedkafka_v1_generated_ManagedKafka_Create_SetCredentialsProvider1_sync] diff --git a/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateUseHttpJsonTransport.java b/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f8630f63393f --- /dev/null +++ b/java-managedkafka/samples/snippets/generated/com/google/cloud/managedkafka/v1/managedkafka/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.managedkafka.v1.samples; + +// [START managedkafka_v1_generated_ManagedKafka_Create_UseHttpJsonTransport_sync] +import com.google.cloud.managedkafka.v1.ManagedKafkaClient; +import com.google.cloud.managedkafka.v1.ManagedKafkaSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ManagedKafkaSettings managedKafkaSettings = ManagedKafkaSettings.newHttpJsonBuilder().build(); + ManagedKafkaClient managedKafkaClient = ManagedKafkaClient.create(managedKafkaSettings); + } +} +// [END managedkafka_v1_generated_ManagedKafka_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index c046823861fa..0f7811f4edee 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.46.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/resources/META-INF/native-image/com.google.maps.addressvalidation.v1/reflect-config.json b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/resources/META-INF/native-image/com.google.maps.addressvalidation.v1/reflect-config.json index 5ba1410af44b..8c441d3f25af 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/resources/META-INF/native-image/com.google.maps.addressvalidation.v1/reflect-config.json +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/resources/META-INF/native-image/com.google.maps.addressvalidation.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.geo.type.Viewport", "queryAllDeclaredConstructors": true, diff --git a/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateSetCredentialsProvider1.java b/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5f1df05410bf..000000000000 --- a/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.addressvalidation.v1.samples; - -// [START addressvalidation_v1_generated_AddressValidation_Create_SetCredentialsProvider1_sync] -import com.google.maps.addressvalidation.v1.AddressValidationClient; -import com.google.maps.addressvalidation.v1.AddressValidationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AddressValidationSettings addressValidationSettings = - AddressValidationSettings.newHttpJsonBuilder().build(); - AddressValidationClient addressValidationClient = - AddressValidationClient.create(addressValidationSettings); - } -} -// [END addressvalidation_v1_generated_AddressValidation_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateUseHttpJsonTransport.java b/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..299e1482658e --- /dev/null +++ b/java-maps-addressvalidation/samples/snippets/generated/com/google/maps/addressvalidation/v1/addressvalidation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.addressvalidation.v1.samples; + +// [START addressvalidation_v1_generated_AddressValidation_Create_UseHttpJsonTransport_sync] +import com.google.maps.addressvalidation.v1.AddressValidationClient; +import com.google.maps.addressvalidation.v1.AddressValidationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AddressValidationSettings addressValidationSettings = + AddressValidationSettings.newHttpJsonBuilder().build(); + AddressValidationClient addressValidationClient = + AddressValidationClient.create(addressValidationSettings); + } +} +// [END addressvalidation_v1_generated_AddressValidation_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index ec7a097b0a5e..969d3fe0b386 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.3.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-area-insights/google-maps-area-insights/src/main/resources/META-INF/native-image/com.google.maps.areainsights.v1/reflect-config.json b/java-maps-area-insights/google-maps-area-insights/src/main/resources/META-INF/native-image/com.google.maps.areainsights.v1/reflect-config.json index d3034919973d..b8aa603a474a 100644 --- a/java-maps-area-insights/google-maps-area-insights/src/main/resources/META-INF/native-image/com.google.maps.areainsights.v1/reflect-config.json +++ b/java-maps-area-insights/google-maps-area-insights/src/main/resources/META-INF/native-image/com.google.maps.areainsights.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.areainsights.v1.ComputeInsightsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateSetCredentialsProvider1.java b/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 722d16c8d0da..000000000000 --- a/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.areainsights.v1.samples; - -// [START areainsights_v1_generated_AreaInsights_Create_SetCredentialsProvider1_sync] -import com.google.maps.areainsights.v1.AreaInsightsClient; -import com.google.maps.areainsights.v1.AreaInsightsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AreaInsightsSettings areaInsightsSettings = AreaInsightsSettings.newHttpJsonBuilder().build(); - AreaInsightsClient areaInsightsClient = AreaInsightsClient.create(areaInsightsSettings); - } -} -// [END areainsights_v1_generated_AreaInsights_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateUseHttpJsonTransport.java b/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..556e64f537dd --- /dev/null +++ b/java-maps-area-insights/samples/snippets/generated/com/google/maps/areainsights/v1/areainsights/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.areainsights.v1.samples; + +// [START areainsights_v1_generated_AreaInsights_Create_UseHttpJsonTransport_sync] +import com.google.maps.areainsights.v1.AreaInsightsClient; +import com.google.maps.areainsights.v1.AreaInsightsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AreaInsightsSettings areaInsightsSettings = AreaInsightsSettings.newHttpJsonBuilder().build(); + AreaInsightsClient areaInsightsClient = AreaInsightsClient.create(areaInsightsSettings); + } +} +// [END areainsights_v1_generated_AreaInsights_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 95bceb1566d4..bd9759bdce2b 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.41.0" ``` - ## Authentication @@ -203,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json index e26e5461352a..4bd1c895deb7 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest", "queryAllDeclaredConstructors": true, diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateSetCredentialsProvider1.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 37b70948f4fb..000000000000 --- a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.mapsplatformdatasets.v1.samples; - -// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_Create_SetCredentialsProvider1_sync] -import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; -import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MapsPlatformDatasetsSettings mapsPlatformDatasetsSettings = - MapsPlatformDatasetsSettings.newHttpJsonBuilder().build(); - MapsPlatformDatasetsClient mapsPlatformDatasetsClient = - MapsPlatformDatasetsClient.create(mapsPlatformDatasetsSettings); - } -} -// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateUseHttpJsonTransport.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..48c150ddd428 --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_Create_UseHttpJsonTransport_sync] +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MapsPlatformDatasetsSettings mapsPlatformDatasetsSettings = + MapsPlatformDatasetsSettings.newHttpJsonBuilder().build(); + MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create(mapsPlatformDatasetsSettings); + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 7508b85ba0f9..72d649e68553 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-places" % "0.23.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json index 5898e4fd37a3..56bd0cccef65 100644 --- a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json +++ b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.geo.type.Viewport", "queryAllDeclaredConstructors": true, diff --git a/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateSetCredentialsProvider1.java b/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2bf83d829e00..000000000000 --- a/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.places.v1.samples; - -// [START places_v1_generated_Places_Create_SetCredentialsProvider1_sync] -import com.google.maps.places.v1.PlacesClient; -import com.google.maps.places.v1.PlacesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PlacesSettings placesSettings = PlacesSettings.newHttpJsonBuilder().build(); - PlacesClient placesClient = PlacesClient.create(placesSettings); - } -} -// [END places_v1_generated_Places_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateUseHttpJsonTransport.java b/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b2c019d95cbc --- /dev/null +++ b/java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.places.v1.samples; + +// [START places_v1_generated_Places_Create_UseHttpJsonTransport_sync] +import com.google.maps.places.v1.PlacesClient; +import com.google.maps.places.v1.PlacesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PlacesSettings placesSettings = PlacesSettings.newHttpJsonBuilder().build(); + PlacesClient placesClient = PlacesClient.create(placesSettings); + } +} +// [END places_v1_generated_Places_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 5f5552350015..ac3e6208e192 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.10.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/resources/META-INF/native-image/com.google.maps.routeoptimization.v1/reflect-config.json b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/resources/META-INF/native-image/com.google.maps.routeoptimization.v1/reflect-config.json index 271649e5ed4b..ea2386bbc833 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/resources/META-INF/native-image/com.google.maps.routeoptimization.v1/reflect-config.json +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/resources/META-INF/native-image/com.google.maps.routeoptimization.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateSetCredentialsProvider1.java b/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 42b46c751e03..000000000000 --- a/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.routeoptimization.v1.samples; - -// [START routeoptimization_v1_generated_RouteOptimization_Create_SetCredentialsProvider1_sync] -import com.google.maps.routeoptimization.v1.RouteOptimizationClient; -import com.google.maps.routeoptimization.v1.RouteOptimizationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RouteOptimizationSettings routeOptimizationSettings = - RouteOptimizationSettings.newHttpJsonBuilder().build(); - RouteOptimizationClient routeOptimizationClient = - RouteOptimizationClient.create(routeOptimizationSettings); - } -} -// [END routeoptimization_v1_generated_RouteOptimization_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateUseHttpJsonTransport.java b/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..eee86fedf233 --- /dev/null +++ b/java-maps-routeoptimization/samples/snippets/generated/com/google/maps/routeoptimization/v1/routeoptimization/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.routeoptimization.v1.samples; + +// [START routeoptimization_v1_generated_RouteOptimization_Create_UseHttpJsonTransport_sync] +import com.google.maps.routeoptimization.v1.RouteOptimizationClient; +import com.google.maps.routeoptimization.v1.RouteOptimizationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RouteOptimizationSettings routeOptimizationSettings = + RouteOptimizationSettings.newHttpJsonBuilder().build(); + RouteOptimizationClient routeOptimizationClient = + RouteOptimizationClient.create(routeOptimizationSettings); + } +} +// [END routeoptimization_v1_generated_RouteOptimization_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index ba774f039e78..fb1684fb57d7 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.37.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json b/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json index 82eedc92166d..e116a3c0dc9d 100644 --- a/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json +++ b/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.geo.type.Viewport", "queryAllDeclaredConstructors": true, diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f99ddf259263..000000000000 --- a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.routing.v2.samples; - -// [START routes_v2_generated_Routes_Create_SetCredentialsProvider1_sync] -import com.google.maps.routing.v2.RoutesClient; -import com.google.maps.routing.v2.RoutesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RoutesSettings routesSettings = RoutesSettings.newHttpJsonBuilder().build(); - RoutesClient routesClient = RoutesClient.create(routesSettings); - } -} -// [END routes_v2_generated_Routes_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateUseHttpJsonTransport.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1141fcc1d196 --- /dev/null +++ b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.routing.v2.samples; + +// [START routes_v2_generated_Routes_Create_UseHttpJsonTransport_sync] +import com.google.maps.routing.v2.RoutesClient; +import com.google.maps.routing.v2.RoutesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RoutesSettings routesSettings = RoutesSettings.newHttpJsonBuilder().build(); + RoutesClient routesClient = RoutesClient.create(routesSettings); + } +} +// [END routes_v2_generated_Routes_Create_UseHttpJsonTransport_sync] diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 0086392eeae9..507f30e1692f 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.11.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json b/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json index 18249c84af94..131a7c06237a 100644 --- a/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json +++ b/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.solar.v1.BuildingInsights", "queryAllDeclaredConstructors": true, diff --git a/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateSetCredentialsProvider1.java b/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8b9583802194..000000000000 --- a/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.maps.solar.v1.samples; - -// [START solar_v1_generated_Solar_Create_SetCredentialsProvider1_sync] -import com.google.maps.solar.v1.SolarClient; -import com.google.maps.solar.v1.SolarSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SolarSettings solarSettings = SolarSettings.newHttpJsonBuilder().build(); - SolarClient solarClient = SolarClient.create(solarSettings); - } -} -// [END solar_v1_generated_Solar_Create_SetCredentialsProvider1_sync] diff --git a/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateUseHttpJsonTransport.java b/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7cb437db2900 --- /dev/null +++ b/java-maps-solar/samples/snippets/generated/com/google/maps/solar/v1/solar/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.solar.v1.samples; + +// [START solar_v1_generated_Solar_Create_UseHttpJsonTransport_sync] +import com.google.maps.solar.v1.SolarClient; +import com.google.maps.solar.v1.SolarSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SolarSettings solarSettings = SolarSettings.newHttpJsonBuilder().build(); + SolarClient solarClient = SolarClient.create(solarSettings); + } +} +// [END solar_v1_generated_Solar_Create_UseHttpJsonTransport_sync] diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index 91fcb1a94904..1ef0578b9ad5 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.1.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json b/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json index fbbb2d36b77d..d0633e8639bd 100644 --- a/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json +++ b/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json @@ -575,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1521436027d7..000000000000 --- a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.ads.marketingplatform.admin.v1alpha.samples; - -// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_Create_SetCredentialsProvider1_sync] -import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; -import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MarketingplatformAdminServiceSettings marketingplatformAdminServiceSettings = - MarketingplatformAdminServiceSettings.newHttpJsonBuilder().build(); - MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = - MarketingplatformAdminServiceClient.create(marketingplatformAdminServiceSettings); - } -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_Create_SetCredentialsProvider1_sync] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateUseHttpJsonTransport.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..600085ea664c --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_Create_UseHttpJsonTransport_sync] +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MarketingplatformAdminServiceSettings marketingplatformAdminServiceSettings = + MarketingplatformAdminServiceSettings.newHttpJsonBuilder().build(); + MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create(marketingplatformAdminServiceSettings); + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_Create_UseHttpJsonTransport_sync] diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index a5f9aa2b3f81..f8c48067043f 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.58.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/resources/META-INF/native-image/com.google.cloud.mediatranslation.v1beta1/reflect-config.json b/java-mediatranslation/google-cloud-mediatranslation/src/main/resources/META-INF/native-image/com.google.cloud.mediatranslation.v1beta1/reflect-config.json index 3cc4d69856df..693f7ef30788 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/resources/META-INF/native-image/com.google.cloud.mediatranslation.v1beta1/reflect-config.json +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/resources/META-INF/native-image/com.google.cloud.mediatranslation.v1beta1/reflect-config.json @@ -341,6 +341,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig", "queryAllDeclaredConstructors": true, diff --git a/java-meet/README.md b/java-meet/README.md index fe4716cb6fa9..a45a276dad4a 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.19.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json index c1a7041ee47c..3c57ba8a25e6 100644 --- a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json +++ b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2.ActiveConference", "queryAllDeclaredConstructors": true, diff --git a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json index e015413b0064..c999c8a281a7 100644 --- a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json +++ b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.ActiveConference", "queryAllDeclaredConstructors": true, diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d8c4882b0913..000000000000 --- a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.apps.meet.v2.samples; - -// [START meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] -import com.google.apps.meet.v2.ConferenceRecordsServiceClient; -import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = - ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); - ConferenceRecordsServiceClient conferenceRecordsServiceClient = - ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); - } -} -// [END meet_v2_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..28484a4a0e06 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2.samples; + +// [START meet_v2_generated_ConferenceRecordsService_Create_UseHttpJsonTransport_sync] +import com.google.apps.meet.v2.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2.ConferenceRecordsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); + ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + } +} +// [END meet_v2_generated_ConferenceRecordsService_Create_UseHttpJsonTransport_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8a96686713bd..000000000000 --- a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.apps.meet.v2.samples; - -// [START meet_v2_generated_SpacesService_Create_SetCredentialsProvider1_sync] -import com.google.apps.meet.v2.SpacesServiceClient; -import com.google.apps.meet.v2.SpacesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SpacesServiceSettings spacesServiceSettings = - SpacesServiceSettings.newHttpJsonBuilder().build(); - SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); - } -} -// [END meet_v2_generated_SpacesService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateUseHttpJsonTransport.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d0550dde57b6 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2/spacesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2.samples; + +// [START meet_v2_generated_SpacesService_Create_UseHttpJsonTransport_sync] +import com.google.apps.meet.v2.SpacesServiceClient; +import com.google.apps.meet.v2.SpacesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings spacesServiceSettings = + SpacesServiceSettings.newHttpJsonBuilder().build(); + SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); + } +} +// [END meet_v2_generated_SpacesService_Create_UseHttpJsonTransport_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5af9f2fafb7d..000000000000 --- a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.apps.meet.v2beta.samples; - -// [START meet_v2beta_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] -import com.google.apps.meet.v2beta.ConferenceRecordsServiceClient; -import com.google.apps.meet.v2beta.ConferenceRecordsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = - ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); - ConferenceRecordsServiceClient conferenceRecordsServiceClient = - ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); - } -} -// [END meet_v2beta_generated_ConferenceRecordsService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..40d7d807dbc4 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/conferencerecordsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_ConferenceRecordsService_Create_UseHttpJsonTransport_sync] +import com.google.apps.meet.v2beta.ConferenceRecordsServiceClient; +import com.google.apps.meet.v2beta.ConferenceRecordsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConferenceRecordsServiceSettings conferenceRecordsServiceSettings = + ConferenceRecordsServiceSettings.newHttpJsonBuilder().build(); + ConferenceRecordsServiceClient conferenceRecordsServiceClient = + ConferenceRecordsServiceClient.create(conferenceRecordsServiceSettings); + } +} +// [END meet_v2beta_generated_ConferenceRecordsService_Create_UseHttpJsonTransport_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateSetCredentialsProvider1.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3b80947c9311..000000000000 --- a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.apps.meet.v2beta.samples; - -// [START meet_v2beta_generated_SpacesService_Create_SetCredentialsProvider1_sync] -import com.google.apps.meet.v2beta.SpacesServiceClient; -import com.google.apps.meet.v2beta.SpacesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SpacesServiceSettings spacesServiceSettings = - SpacesServiceSettings.newHttpJsonBuilder().build(); - SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); - } -} -// [END meet_v2beta_generated_SpacesService_Create_SetCredentialsProvider1_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateUseHttpJsonTransport.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..02057c00aab5 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_Create_UseHttpJsonTransport_sync] +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.apps.meet.v2beta.SpacesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpacesServiceSettings spacesServiceSettings = + SpacesServiceSettings.newHttpJsonBuilder().build(); + SpacesServiceClient spacesServiceClient = SpacesServiceClient.create(spacesServiceSettings); + } +} +// [END meet_v2beta_generated_SpacesService_Create_UseHttpJsonTransport_sync] diff --git a/java-memcache/README.md b/java-memcache/README.md index abafc28df6d6..e0c5b6956c82 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1/reflect-config.json b/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1/reflect-config.json index bd36ac7c9f9f..da880281d385 100644 --- a/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1/reflect-config.json +++ b/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1beta2/reflect-config.json b/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1beta2/reflect-config.json index 78358551dc0a..29631a6c74ec 100644 --- a/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1beta2/reflect-config.json +++ b/java-memcache/google-cloud-memcache/src/main/resources/META-INF/native-image/com.google.cloud.memcache.v1beta2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cac4ddd5812f..000000000000 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.memcache.v1.samples; - -// [START memcache_v1_generated_CloudMemcache_Create_SetCredentialsProvider1_sync] -import com.google.cloud.memcache.v1.CloudMemcacheClient; -import com.google.cloud.memcache.v1.CloudMemcacheSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudMemcacheSettings cloudMemcacheSettings = - CloudMemcacheSettings.newHttpJsonBuilder().build(); - CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); - } -} -// [END memcache_v1_generated_CloudMemcache_Create_SetCredentialsProvider1_sync] diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6750b3b92faa --- /dev/null +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memcache.v1.samples; + +// [START memcache_v1_generated_CloudMemcache_Create_UseHttpJsonTransport_sync] +import com.google.cloud.memcache.v1.CloudMemcacheClient; +import com.google.cloud.memcache.v1.CloudMemcacheSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudMemcacheSettings cloudMemcacheSettings = + CloudMemcacheSettings.newHttpJsonBuilder().build(); + CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); + } +} +// [END memcache_v1_generated_CloudMemcache_Create_UseHttpJsonTransport_sync] diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9fa1403287ab..000000000000 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.memcache.v1beta2.samples; - -// [START memcache_v1beta2_generated_CloudMemcache_Create_SetCredentialsProvider1_sync] -import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; -import com.google.cloud.memcache.v1beta2.CloudMemcacheSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudMemcacheSettings cloudMemcacheSettings = - CloudMemcacheSettings.newHttpJsonBuilder().build(); - CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); - } -} -// [END memcache_v1beta2_generated_CloudMemcache_Create_SetCredentialsProvider1_sync] diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..df2e12fccdba --- /dev/null +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcache/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memcache.v1beta2.samples; + +// [START memcache_v1beta2_generated_CloudMemcache_Create_UseHttpJsonTransport_sync] +import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; +import com.google.cloud.memcache.v1beta2.CloudMemcacheSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudMemcacheSettings cloudMemcacheSettings = + CloudMemcacheSettings.newHttpJsonBuilder().build(); + CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); + } +} +// [END memcache_v1beta2_generated_CloudMemcache_Create_UseHttpJsonTransport_sync] diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 6c6195ab74cd..ba35ade32ae6 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.34.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/resources/META-INF/native-image/com.google.cloud.migrationcenter.v1/reflect-config.json b/java-migrationcenter/google-cloud-migrationcenter/src/main/resources/META-INF/native-image/com.google.cloud.migrationcenter.v1/reflect-config.json index 4988788928be..dbe210adba24 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/resources/META-INF/native-image/com.google.cloud.migrationcenter.v1/reflect-config.json +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/resources/META-INF/native-image/com.google.cloud.migrationcenter.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateSetCredentialsProvider1.java b/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c9dada8ecb07..000000000000 --- a/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.migrationcenter.v1.samples; - -// [START migrationcenter_v1_generated_MigrationCenter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.migrationcenter.v1.MigrationCenterClient; -import com.google.cloud.migrationcenter.v1.MigrationCenterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MigrationCenterSettings migrationCenterSettings = - MigrationCenterSettings.newHttpJsonBuilder().build(); - MigrationCenterClient migrationCenterClient = - MigrationCenterClient.create(migrationCenterSettings); - } -} -// [END migrationcenter_v1_generated_MigrationCenter_Create_SetCredentialsProvider1_sync] diff --git a/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateUseHttpJsonTransport.java b/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d65de72704af --- /dev/null +++ b/java-migrationcenter/samples/snippets/generated/com/google/cloud/migrationcenter/v1/migrationcenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.migrationcenter.v1.samples; + +// [START migrationcenter_v1_generated_MigrationCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.migrationcenter.v1.MigrationCenterClient; +import com.google.cloud.migrationcenter.v1.MigrationCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MigrationCenterSettings migrationCenterSettings = + MigrationCenterSettings.newHttpJsonBuilder().build(); + MigrationCenterClient migrationCenterClient = + MigrationCenterClient.create(migrationCenterSettings); + } +} +// [END migrationcenter_v1_generated_MigrationCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index fedb056f2225..e34c388812fd 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json index 0653ae4aefa4..3ab78172a48a 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.dashboard.v1/reflect-config.json @@ -476,6 +476,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.dashboard.v1.Aggregation", "queryAllDeclaredConstructors": true, diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e2877a9438f1..000000000000 --- a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.monitoring.dashboard.v1.samples; - -// [START monitoring_v1_generated_DashboardsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; -import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DashboardsServiceSettings dashboardsServiceSettings = - DashboardsServiceSettings.newHttpJsonBuilder().build(); - DashboardsServiceClient dashboardsServiceClient = - DashboardsServiceClient.create(dashboardsServiceSettings); - } -} -// [END monitoring_v1_generated_DashboardsService_Create_SetCredentialsProvider1_sync] diff --git a/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateUseHttpJsonTransport.java b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..361cb77d8389 --- /dev/null +++ b/java-monitoring-dashboards/samples/snippets/generated/com/google/cloud/monitoring/dashboard/v1/dashboardsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.monitoring.dashboard.v1.samples; + +// [START monitoring_v1_generated_DashboardsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClient; +import com.google.cloud.monitoring.dashboard.v1.DashboardsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DashboardsServiceSettings dashboardsServiceSettings = + DashboardsServiceSettings.newHttpJsonBuilder().build(); + DashboardsServiceClient dashboardsServiceClient = + DashboardsServiceClient.create(dashboardsServiceSettings); + } +} +// [END monitoring_v1_generated_DashboardsService_Create_UseHttpJsonTransport_sync] diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 7ffd299eb366..993af683f4f7 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.46.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/resources/META-INF/native-image/com.google.monitoring.metricsscope.v1/reflect-config.json b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/resources/META-INF/native-image/com.google.monitoring.metricsscope.v1/reflect-config.json index 126be7caeec0..492bbe962da8 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/resources/META-INF/native-image/com.google.monitoring.metricsscope.v1/reflect-config.json +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/resources/META-INF/native-image/com.google.monitoring.metricsscope.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 5e60d0b4e315..b7d2316e4fa3 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json index 334a63f8f266..b0fa105d507b 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json +++ b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json @@ -440,6 +440,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$TimeSeriesResourceHierarchyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.MetricDescriptor$MetricKind", "queryAllDeclaredConstructors": true, @@ -674,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.Aggregation", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/README.md b/java-netapp/README.md index 47c607ae3180..fde649b18fc3 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.31.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json index 82f59ebc00ed..12b0b5a807fc 100644 --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateSetCredentialsProvider1.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9e16e916867a..000000000000 --- a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.netapp.v1.samples; - -// [START netapp_v1_generated_NetApp_Create_SetCredentialsProvider1_sync] -import com.google.cloud.netapp.v1.NetAppClient; -import com.google.cloud.netapp.v1.NetAppSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - NetAppSettings netAppSettings = NetAppSettings.newHttpJsonBuilder().build(); - NetAppClient netAppClient = NetAppClient.create(netAppSettings); - } -} -// [END netapp_v1_generated_NetApp_Create_SetCredentialsProvider1_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateUseHttpJsonTransport.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..729f0cd1b803 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_Create_UseHttpJsonTransport_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.NetAppSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NetAppSettings netAppSettings = NetAppSettings.newHttpJsonBuilder().build(); + NetAppClient netAppClient = NetAppClient.create(netAppSettings); + } +} +// [END netapp_v1_generated_NetApp_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/README.md b/java-network-management/README.md index 7704b23ad9eb..190ff607f8e9 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java index 102377d199ba..81cf4376585c 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java @@ -69,7 +69,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - * String name = "name3373707"; + * ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name); * } * }
@@ -95,6 +95,7 @@ * *

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

*
    + *
  • listConnectivityTests(ProjectName parent) *

  • listConnectivityTests(String parent) *

*

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

@@ -114,6 +115,7 @@ * *

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

*
    + *
  • getConnectivityTest(ConnectivityTestName name) *

  • getConnectivityTest(String name) *

*

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

@@ -134,6 +136,7 @@ * *

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

*
    + *
  • createConnectivityTestAsync(ProjectName parent, String testId, ConnectivityTest resource) *

  • createConnectivityTestAsync(String parent, String testId, ConnectivityTest resource) *

*

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

@@ -147,7 +150,7 @@ *

UpdateConnectivityTest *

Updates the configuration of an existing `ConnectivityTest`. After you update a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. The Reachability state in the test resource is updated with the new result. *

If the endpoint specifications in `ConnectivityTest` are invalid (for example, they contain non-existent resources in the network, or the user does not have read permissions to the network configurations of listed projects), then the reachability result returns a value of <code>UNKNOWN</code>. - *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more details. + *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

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

*
    @@ -191,6 +194,7 @@ *
*

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

*
    + *
  • deleteConnectivityTestAsync(ConnectivityTestName name) *

  • deleteConnectivityTestAsync(String name) *

*

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

@@ -419,7 +423,40 @@ public final OperationsClient getHttpJsonOperationsClient() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - * String parent = "parent-995424086"; + * ProjectName parent = ProjectName.of("[PROJECT]"); + * for (ConnectivityTest element : + * reachabilityServiceClient.listConnectivityTests(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
+ * + * @param parent Required. The parent resource of the Connectivity Tests: + * `projects/{project_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectivityTestsPagedResponse listConnectivityTests(ProjectName parent) { + ListConnectivityTestsRequest request = + ListConnectivityTestsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConnectivityTests(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Connectivity Tests owned by a project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (ConnectivityTest element :
    *       reachabilityServiceClient.listConnectivityTests(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -452,7 +489,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests(String par
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   ListConnectivityTestsRequest request =
    *       ListConnectivityTestsRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -488,7 +525,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests(
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   ListConnectivityTestsRequest request =
    *       ListConnectivityTestsRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -523,7 +560,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests(
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   ListConnectivityTestsRequest request =
    *       ListConnectivityTestsRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -563,7 +600,37 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests(
    * // - It may require specifying regional endpoints when creating the service client as shown in
    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
-   *   String name = "name3373707";
+   *   ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]");
+   *   ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name);
+   * }
+   * }
+ * + * @param name Required. `ConnectivityTest` resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConnectivityTest getConnectivityTest(ConnectivityTestName name) { + GetConnectivityTestRequest request = + GetConnectivityTestRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConnectivityTest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Connectivity Test. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
+   *   String name = ConnectivityTestName.of("[PROJECT]", "[TEST]").toString();
    *   ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name);
    * }
    * }
@@ -592,7 +659,9 @@ public final ConnectivityTest getConnectivityTest(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); * } * }
@@ -618,7 +687,9 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.getConnectivityTestCallable().futureCall(request); * // Do something. @@ -653,7 +724,63 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - * String parent = "parent-995424086"; + * ProjectName parent = ProjectName.of("[PROJECT]"); + * String testId = "testId-877170355"; + * ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + * ConnectivityTest response = + * reachabilityServiceClient.createConnectivityTestAsync(parent, testId, resource).get(); + * } + * }
+ * + * @param parent Required. The parent resource of the Connectivity Test to create: + * `projects/{project_id}/locations/global` + * @param testId Required. The logical name of the Connectivity Test in your project with the + * following restrictions: + *
    + *
  • Must contain only lowercase letters, numbers, and hyphens. + *
  • Must start with a letter. + *
  • Must be between 1-40 characters. + *
  • Must end with a number or a letter. + *
  • Must be unique within the customer project + *
+ * + * @param resource Required. A `ConnectivityTest` resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConnectivityTestAsync( + ProjectName parent, String testId, ConnectivityTest resource) { + CreateConnectivityTestRequest request = + CreateConnectivityTestRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTestId(testId) + .setResource(resource) + .build(); + return createConnectivityTestAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Connectivity Test. After you create a test, the reachability analysis is + * performed as part of the long running operation, which completes when the analysis completes. + * + *

If the endpoint specifications in `ConnectivityTest` are invalid (for example, containing + * non-existent resources in the network, or you don't have read permissions to the network + * configurations of listed projects), then the reachability result returns a value of `UNKNOWN`. + * + *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result + * returns a value of <code>AMBIGUOUS</code>. For more information, see the + * Connectivity Test documentation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   String testId = "testId-877170355";
    *   ConnectivityTest resource = ConnectivityTest.newBuilder().build();
    *   ConnectivityTest response =
@@ -711,7 +838,7 @@ public final OperationFuture createConnecti
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   CreateConnectivityTestRequest request =
    *       CreateConnectivityTestRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setTestId("testId-877170355")
    *           .setResource(ConnectivityTest.newBuilder().build())
    *           .build();
@@ -752,7 +879,7 @@ public final OperationFuture createConnecti
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   CreateConnectivityTestRequest request =
    *       CreateConnectivityTestRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setTestId("testId-877170355")
    *           .setResource(ConnectivityTest.newBuilder().build())
    *           .build();
@@ -792,7 +919,7 @@ public final OperationFuture createConnecti
    * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
    *   CreateConnectivityTestRequest request =
    *       CreateConnectivityTestRequest.newBuilder()
-   *           .setParent("parent-995424086")
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setTestId("testId-877170355")
    *           .setResource(ConnectivityTest.newBuilder().build())
    *           .build();
@@ -821,8 +948,7 @@ public final OperationFuture createConnecti
    * <code>UNKNOWN</code>.
    *
    * 

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -868,8 +994,7 @@ public final OperationFuture updateConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -911,8 +1036,7 @@ public final OperationFuture updateConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -953,8 +1077,7 @@ public final OperationFuture updateConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -1005,7 +1128,9 @@ public final OperationFuture updateConnecti * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = * reachabilityServiceClient.rerunConnectivityTestAsync(request).get(); * } @@ -1042,7 +1167,9 @@ public final OperationFuture rerunConnectiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * OperationFuture future = * reachabilityServiceClient.rerunConnectivityTestOperationCallable().futureCall(request); * // Do something. @@ -1078,7 +1205,9 @@ public final OperationFuture rerunConnectiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.rerunConnectivityTestCallable().futureCall(request); * // Do something. @@ -1104,7 +1233,38 @@ public final OperationFuture rerunConnectiv * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - * String name = "name3373707"; + * ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + * reachabilityServiceClient.deleteConnectivityTestAsync(name).get(); + * } + * }

+ * + * @param name Required. Connectivity Test resource name using the form: + * `projects/{project_id}/locations/global/connectivityTests/{test_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConnectivityTestAsync( + ConnectivityTestName name) { + DeleteConnectivityTestRequest request = + DeleteConnectivityTestRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteConnectivityTestAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `ConnectivityTest`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
+   *   String name = ConnectivityTestName.of("[PROJECT]", "[TEST]").toString();
    *   reachabilityServiceClient.deleteConnectivityTestAsync(name).get();
    * }
    * }
@@ -1133,7 +1293,9 @@ public final OperationFuture deleteConnectivityTestAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * reachabilityServiceClient.deleteConnectivityTestAsync(request).get(); * } * }
@@ -1160,7 +1322,9 @@ public final OperationFuture deleteConnectivityTestAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * OperationFuture future = * reachabilityServiceClient.deleteConnectivityTestOperationCallable().futureCall(request); * // Do something. @@ -1187,7 +1351,9 @@ public final OperationFuture deleteConnectivityTestAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.deleteConnectivityTestCallable().futureCall(request); * // Do something. @@ -1374,7 +1540,7 @@ public final UnaryCallable getLocationCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1406,7 +1572,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1437,7 +1603,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = reachabilityServiceClient.getIamPolicy(request); @@ -1467,7 +1633,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = @@ -1501,7 +1667,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = reachabilityServiceClient.testIamPermissions(request); @@ -1535,7 +1701,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json index 5e8f6e372eb2..8569b59aff0e 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json @@ -11,13 +11,13 @@ "libraryClient": "ReachabilityServiceClient", "rpcs": { "CreateConnectivityTest": { - "methods": ["createConnectivityTestAsync", "createConnectivityTestAsync", "createConnectivityTestOperationCallable", "createConnectivityTestCallable"] + "methods": ["createConnectivityTestAsync", "createConnectivityTestAsync", "createConnectivityTestAsync", "createConnectivityTestOperationCallable", "createConnectivityTestCallable"] }, "DeleteConnectivityTest": { - "methods": ["deleteConnectivityTestAsync", "deleteConnectivityTestAsync", "deleteConnectivityTestOperationCallable", "deleteConnectivityTestCallable"] + "methods": ["deleteConnectivityTestAsync", "deleteConnectivityTestAsync", "deleteConnectivityTestAsync", "deleteConnectivityTestOperationCallable", "deleteConnectivityTestCallable"] }, "GetConnectivityTest": { - "methods": ["getConnectivityTest", "getConnectivityTest", "getConnectivityTestCallable"] + "methods": ["getConnectivityTest", "getConnectivityTest", "getConnectivityTest", "getConnectivityTestCallable"] }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] @@ -26,7 +26,7 @@ "methods": ["getLocation", "getLocationCallable"] }, "ListConnectivityTests": { - "methods": ["listConnectivityTests", "listConnectivityTests", "listConnectivityTestsPagedCallable", "listConnectivityTestsCallable"] + "methods": ["listConnectivityTests", "listConnectivityTests", "listConnectivityTests", "listConnectivityTestsPagedCallable", "listConnectivityTestsCallable"] }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java index 9d7b2d737e33..10a140e4670a 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java @@ -39,7 +39,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - * String name = "name3373707"; + * ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name); * } * }
diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java index f65795b524c7..a74771da52e2 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java @@ -69,7 +69,9 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); * } * }
@@ -135,7 +137,7 @@ *

UpdateConnectivityTest *

Updates the configuration of an existing `ConnectivityTest`. After you update a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. The Reachability state in the test resource is updated with the new result. *

If the endpoint specifications in `ConnectivityTest` are invalid (for example, they contain non-existent resources in the network, or the user does not have read permissions to the network configurations of listed projects), then the reachability result returns a value of <code>UNKNOWN</code>. - *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more details. + *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

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

*
    @@ -402,7 +404,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * ListConnectivityTestsRequest request = * ListConnectivityTestsRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -438,7 +440,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests( * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * ListConnectivityTestsRequest request = * ListConnectivityTestsRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -473,7 +475,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests( * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * ListConnectivityTestsRequest request = * ListConnectivityTestsRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -514,7 +516,9 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); * } * }
@@ -540,7 +544,9 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.getConnectivityTestCallable().futureCall(request); * // Do something. @@ -577,7 +583,7 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * CreateConnectivityTestRequest request = * CreateConnectivityTestRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setTestId("testId-877170355") * .setResource(ConnectivityTest.newBuilder().build()) * .build(); @@ -618,7 +624,7 @@ public final OperationFuture createConnecti * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * CreateConnectivityTestRequest request = * CreateConnectivityTestRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setTestId("testId-877170355") * .setResource(ConnectivityTest.newBuilder().build()) * .build(); @@ -658,7 +664,7 @@ public final OperationFuture createConnecti * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * CreateConnectivityTestRequest request = * CreateConnectivityTestRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setTestId("testId-877170355") * .setResource(ConnectivityTest.newBuilder().build()) * .build(); @@ -687,8 +693,7 @@ public final OperationFuture createConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -730,8 +735,7 @@ public final OperationFuture updateConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -772,8 +776,7 @@ public final OperationFuture updateConnecti * <code>UNKNOWN</code>. * *

If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result - * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more - * details. + * returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details. * *

Sample code: * @@ -824,7 +827,9 @@ public final OperationFuture updateConnecti * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = * reachabilityServiceClient.rerunConnectivityTestAsync(request).get(); * } @@ -861,7 +866,9 @@ public final OperationFuture rerunConnectiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * OperationFuture future = * reachabilityServiceClient.rerunConnectivityTestOperationCallable().futureCall(request); * // Do something. @@ -897,7 +904,9 @@ public final OperationFuture rerunConnectiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * RerunConnectivityTestRequest request = - * RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * RerunConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.rerunConnectivityTestCallable().futureCall(request); * // Do something. @@ -924,7 +933,9 @@ public final OperationFuture rerunConnectiv * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * reachabilityServiceClient.deleteConnectivityTestAsync(request).get(); * } * }

@@ -951,7 +962,9 @@ public final OperationFuture deleteConnectivityTestAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * OperationFuture future = * reachabilityServiceClient.deleteConnectivityTestOperationCallable().futureCall(request); * // Do something. @@ -978,7 +991,9 @@ public final OperationFuture deleteConnectivityTestAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * DeleteConnectivityTestRequest request = - * DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * DeleteConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ApiFuture future = * reachabilityServiceClient.deleteConnectivityTestCallable().futureCall(request); * // Do something. @@ -1165,7 +1180,7 @@ public final UnaryCallable getLocationCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1197,7 +1212,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1228,7 +1243,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = reachabilityServiceClient.getIamPolicy(request); @@ -1258,7 +1273,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = @@ -1292,7 +1307,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = reachabilityServiceClient.testIamPermissions(request); @@ -1326,7 +1341,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java index ac7abd50e0e7..da69d15f93aa 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java @@ -1465,7 +1465,7 @@ public final UnaryCallable getLocationCallable() { * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1497,7 +1497,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource("SetIamPolicyRequest1223629066".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1528,7 +1528,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = vpcFlowLogsServiceClient.getIamPolicy(request); @@ -1558,7 +1558,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource("GetIamPolicyRequest-1527610370".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = @@ -1592,7 +1592,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = vpcFlowLogsServiceClient.testIamPermissions(request); @@ -1626,7 +1626,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource("TestIamPermissionsRequest942398222".toString()) + * .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java index 67188a05bd2c..743da9168886 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java @@ -40,7 +40,9 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { * GetConnectivityTestRequest request = - * GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + * GetConnectivityTestRequest.newBuilder() + * .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + * .build(); * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); * } * }
diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json index aa5152219dd6..dde50ae9957d 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, @@ -1313,6 +1331,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.RedisClusterInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.RedisClusterInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.RedisInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.RedisInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest", "queryAllDeclaredConstructors": true, @@ -1376,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.ServerlessNegInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ServerlessNegInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.Step", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json index 23b8251ab702..6813b98269e5 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, @@ -1403,6 +1421,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest", "queryAllDeclaredConstructors": true, @@ -1466,6 +1520,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.Step", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java index e4f2641be817..616580b9779d 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java @@ -98,6 +98,7 @@ public void tearDown() throws Exception { mockService.reset(); } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void listConnectivityTestsTest() throws Exception { ConnectivityTest responsesElement = ConnectivityTest.newBuilder().build(); @@ -108,7 +109,7 @@ public void listConnectivityTestsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-6156/locations/global"; + ProjectName parent = ProjectName.of("[PROJECT]"); ListConnectivityTestsPagedResponse pagedListResponse = client.listConnectivityTests(parent); @@ -139,6 +140,56 @@ public void listConnectivityTestsExceptionTest() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listConnectivityTests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectivityTestsTest2() throws Exception { + ConnectivityTest responsesElement = ConnectivityTest.newBuilder().build(); + ListConnectivityTestsResponse expectedResponse = + ListConnectivityTestsResponse.newBuilder() + .setNextPageToken("") + .addAllResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6156/locations/global"; + + ListConnectivityTestsPagedResponse pagedListResponse = client.listConnectivityTests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listConnectivityTestsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-6156/locations/global"; client.listConnectivityTests(parent); @@ -152,7 +203,7 @@ public void listConnectivityTestsExceptionTest() throws Exception { public void getConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -168,7 +219,7 @@ public void getConnectivityTestTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); ConnectivityTest actualResponse = client.getConnectivityTest(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -195,6 +246,62 @@ public void getConnectivityTestExceptionTest() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + client.getConnectivityTest(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectivityTestTest2() throws Exception { + ConnectivityTest expectedResponse = + ConnectivityTest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setDescription("description-1724546052") + .setSource(Endpoint.newBuilder().build()) + .setDestination(Endpoint.newBuilder().build()) + .setProtocol("protocol-989163880") + .addAllRelatedProjects(new ArrayList()) + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setReachabilityDetails(ReachabilityDetails.newBuilder().build()) + .setProbingDetails(ProbingDetails.newBuilder().build()) + .setBypassFirewallChecks(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; + + ConnectivityTest actualResponse = client.getConnectivityTest(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getConnectivityTestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; @@ -205,11 +312,12 @@ public void getConnectivityTestExceptionTest() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -231,7 +339,7 @@ public void createConnectivityTestTest() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-6156/locations/global"; + ProjectName parent = ProjectName.of("[PROJECT]"); String testId = "testId-877170355"; ConnectivityTest resource = ConnectivityTest.newBuilder().build(); @@ -261,6 +369,72 @@ public void createConnectivityTestExceptionTest() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String testId = "testId-877170355"; + ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + client.createConnectivityTestAsync(parent, testId, resource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createConnectivityTestTest2() throws Exception { + ConnectivityTest expectedResponse = + ConnectivityTest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setDescription("description-1724546052") + .setSource(Endpoint.newBuilder().build()) + .setDestination(Endpoint.newBuilder().build()) + .setProtocol("protocol-989163880") + .addAllRelatedProjects(new ArrayList()) + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setReachabilityDetails(ReachabilityDetails.newBuilder().build()) + .setProbingDetails(ProbingDetails.newBuilder().build()) + .setBypassFirewallChecks(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectivityTestTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6156/locations/global"; + String testId = "testId-877170355"; + ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + + ConnectivityTest actualResponse = + client.createConnectivityTestAsync(parent, testId, resource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createConnectivityTestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-6156/locations/global"; String testId = "testId-877170355"; @@ -275,7 +449,7 @@ public void createConnectivityTestExceptionTest() throws Exception { public void updateConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -300,8 +474,7 @@ public void updateConnectivityTestTest() throws Exception { FieldMask updateMask = FieldMask.newBuilder().build(); ConnectivityTest resource = ConnectivityTest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -346,8 +519,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { FieldMask updateMask = FieldMask.newBuilder().build(); ConnectivityTest resource = ConnectivityTest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -371,7 +543,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { public void rerunConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -395,8 +567,7 @@ public void rerunConnectivityTestTest() throws Exception { RerunConnectivityTestRequest request = RerunConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); ConnectivityTest actualResponse = client.rerunConnectivityTestAsync(request).get(); @@ -427,8 +598,7 @@ public void rerunConnectivityTestExceptionTest() throws Exception { try { RerunConnectivityTestRequest request = RerunConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); client.rerunConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); @@ -447,7 +617,7 @@ public void deleteConnectivityTestTest() throws Exception { .build(); mockService.addResponse(resultOperation); - String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); client.deleteConnectivityTestAsync(name).get(); @@ -473,6 +643,51 @@ public void deleteConnectivityTestExceptionTest() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + client.deleteConnectivityTestAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteConnectivityTestTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectivityTestTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; + + client.deleteConnectivityTestAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteConnectivityTestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String name = "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569"; @@ -612,7 +827,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -645,7 +860,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -670,7 +885,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -702,7 +917,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -721,7 +936,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -753,7 +968,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientTest.java index e904dc8370ac..e613e61be56f 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientTest.java @@ -116,6 +116,51 @@ public void listConnectivityTestsTest() throws Exception { .build(); mockReachabilityService.addResponse(expectedResponse); + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListConnectivityTestsPagedResponse pagedListResponse = client.listConnectivityTests(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourcesList().get(0), resources.get(0)); + + List actualRequests = mockReachabilityService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectivityTestsRequest actualRequest = + ((ListConnectivityTestsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectivityTestsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReachabilityService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listConnectivityTests(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectivityTestsTest2() throws Exception { + ConnectivityTest responsesElement = ConnectivityTest.newBuilder().build(); + ListConnectivityTestsResponse expectedResponse = + ListConnectivityTestsResponse.newBuilder() + .setNextPageToken("") + .addAllResources(Arrays.asList(responsesElement)) + .build(); + mockReachabilityService.addResponse(expectedResponse); + String parent = "parent-995424086"; ListConnectivityTestsPagedResponse pagedListResponse = client.listConnectivityTests(parent); @@ -138,7 +183,7 @@ public void listConnectivityTestsTest() throws Exception { } @Test - public void listConnectivityTestsExceptionTest() throws Exception { + public void listConnectivityTestsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockReachabilityService.addException(exception); @@ -155,7 +200,57 @@ public void listConnectivityTestsExceptionTest() throws Exception { public void getConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setDescription("description-1724546052") + .setSource(Endpoint.newBuilder().build()) + .setDestination(Endpoint.newBuilder().build()) + .setProtocol("protocol-989163880") + .addAllRelatedProjects(new ArrayList()) + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setReachabilityDetails(ReachabilityDetails.newBuilder().build()) + .setProbingDetails(ProbingDetails.newBuilder().build()) + .setBypassFirewallChecks(true) + .build(); + mockReachabilityService.addResponse(expectedResponse); + + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + + ConnectivityTest actualResponse = client.getConnectivityTest(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReachabilityService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConnectivityTestRequest actualRequest = ((GetConnectivityTestRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConnectivityTestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReachabilityService.addException(exception); + + try { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + client.getConnectivityTest(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectivityTestTest2() throws Exception { + ConnectivityTest expectedResponse = + ConnectivityTest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -188,7 +283,7 @@ public void getConnectivityTestTest() throws Exception { } @Test - public void getConnectivityTestExceptionTest() throws Exception { + public void getConnectivityTestExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockReachabilityService.addException(exception); @@ -205,7 +300,73 @@ public void getConnectivityTestExceptionTest() throws Exception { public void createConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setDescription("description-1724546052") + .setSource(Endpoint.newBuilder().build()) + .setDestination(Endpoint.newBuilder().build()) + .setProtocol("protocol-989163880") + .addAllRelatedProjects(new ArrayList()) + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setReachabilityDetails(ReachabilityDetails.newBuilder().build()) + .setProbingDetails(ProbingDetails.newBuilder().build()) + .setBypassFirewallChecks(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectivityTestTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReachabilityService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String testId = "testId-877170355"; + ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + + ConnectivityTest actualResponse = + client.createConnectivityTestAsync(parent, testId, resource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReachabilityService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectivityTestRequest actualRequest = + ((CreateConnectivityTestRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(testId, actualRequest.getTestId()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectivityTestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReachabilityService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String testId = "testId-877170355"; + ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + client.createConnectivityTestAsync(parent, testId, resource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createConnectivityTestTest2() throws Exception { + ConnectivityTest expectedResponse = + ConnectivityTest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -250,7 +411,7 @@ public void createConnectivityTestTest() throws Exception { } @Test - public void createConnectivityTestExceptionTest() throws Exception { + public void createConnectivityTestExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockReachabilityService.addException(exception); @@ -271,7 +432,7 @@ public void createConnectivityTestExceptionTest() throws Exception { public void updateConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -334,7 +495,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { public void rerunConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -357,7 +518,9 @@ public void rerunConnectivityTestTest() throws Exception { mockReachabilityService.addResponse(resultOperation); RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest actualResponse = client.rerunConnectivityTestAsync(request).get(); Assert.assertEquals(expectedResponse, actualResponse); @@ -381,7 +544,9 @@ public void rerunConnectivityTestExceptionTest() throws Exception { try { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); client.rerunConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -402,6 +567,49 @@ public void deleteConnectivityTestTest() throws Exception { .build(); mockReachabilityService.addResponse(resultOperation); + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + + client.deleteConnectivityTestAsync(name).get(); + + List actualRequests = mockReachabilityService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConnectivityTestRequest actualRequest = + ((DeleteConnectivityTestRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConnectivityTestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReachabilityService.addException(exception); + + try { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + client.deleteConnectivityTestAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteConnectivityTestTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectivityTestTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReachabilityService.addResponse(resultOperation); + String name = "name3373707"; client.deleteConnectivityTestAsync(name).get(); @@ -419,7 +627,7 @@ public void deleteConnectivityTestTest() throws Exception { } @Test - public void deleteConnectivityTestExceptionTest() throws Exception { + public void deleteConnectivityTestExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockReachabilityService.addException(exception); @@ -548,7 +756,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -577,7 +785,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -601,7 +809,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -628,7 +836,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -646,7 +854,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -673,7 +881,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java index fce704b57915..a2ea0f8f24a6 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java @@ -98,6 +98,7 @@ public void tearDown() throws Exception { mockService.reset(); } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void listConnectivityTestsTest() throws Exception { ConnectivityTest responsesElement = ConnectivityTest.newBuilder().build(); @@ -110,7 +111,7 @@ public void listConnectivityTestsTest() throws Exception { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("projects/project-6156/locations/global") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") @@ -149,7 +150,7 @@ public void listConnectivityTestsExceptionTest() throws Exception { try { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("projects/project-6156/locations/global") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") @@ -166,7 +167,7 @@ public void listConnectivityTestsExceptionTest() throws Exception { public void getConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -184,8 +185,7 @@ public void getConnectivityTestTest() throws Exception { GetConnectivityTestRequest request = GetConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); ConnectivityTest actualResponse = client.getConnectivityTest(request); @@ -216,8 +216,7 @@ public void getConnectivityTestExceptionTest() throws Exception { try { GetConnectivityTestRequest request = GetConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); client.getConnectivityTest(request); Assert.fail("No exception raised"); @@ -226,11 +225,12 @@ public void getConnectivityTestExceptionTest() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -254,7 +254,7 @@ public void createConnectivityTestTest() throws Exception { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("projects/project-6156/locations/global") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); @@ -287,7 +287,7 @@ public void createConnectivityTestExceptionTest() throws Exception { try { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("projects/project-6156/locations/global") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); @@ -301,7 +301,7 @@ public void createConnectivityTestExceptionTest() throws Exception { public void updateConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -328,8 +328,7 @@ public void updateConnectivityTestTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setResource( ConnectivityTest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -376,8 +375,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setResource( ConnectivityTest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -402,7 +400,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { public void rerunConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -426,8 +424,7 @@ public void rerunConnectivityTestTest() throws Exception { RerunConnectivityTestRequest request = RerunConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); ConnectivityTest actualResponse = client.rerunConnectivityTestAsync(request).get(); @@ -458,8 +455,7 @@ public void rerunConnectivityTestExceptionTest() throws Exception { try { RerunConnectivityTestRequest request = RerunConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); client.rerunConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); @@ -480,8 +476,7 @@ public void deleteConnectivityTestTest() throws Exception { DeleteConnectivityTestRequest request = DeleteConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); client.deleteConnectivityTestAsync(request).get(); @@ -511,8 +506,7 @@ public void deleteConnectivityTestExceptionTest() throws Exception { try { DeleteConnectivityTestRequest request = DeleteConnectivityTestRequest.newBuilder() - .setName( - "projects/project-4569/locations/global/connectivityTests/connectivityTest-4569") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .build(); client.deleteConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); @@ -650,7 +644,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -683,7 +677,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -708,7 +702,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -740,7 +734,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -759,7 +753,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -791,7 +785,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientTest.java index bba24878c04c..2bab2f4eb94d 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientTest.java @@ -118,7 +118,7 @@ public void listConnectivityTestsTest() throws Exception { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") @@ -156,7 +156,7 @@ public void listConnectivityTestsExceptionTest() throws Exception { try { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") @@ -173,7 +173,7 @@ public void listConnectivityTestsExceptionTest() throws Exception { public void getConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -190,7 +190,9 @@ public void getConnectivityTestTest() throws Exception { mockReachabilityService.addResponse(expectedResponse); GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest actualResponse = client.getConnectivityTest(request); Assert.assertEquals(expectedResponse, actualResponse); @@ -213,7 +215,9 @@ public void getConnectivityTestExceptionTest() throws Exception { try { GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); client.getConnectivityTest(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -225,7 +229,7 @@ public void getConnectivityTestExceptionTest() throws Exception { public void createConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -249,7 +253,7 @@ public void createConnectivityTestTest() throws Exception { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); @@ -279,7 +283,7 @@ public void createConnectivityTestExceptionTest() throws Exception { try { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); @@ -296,7 +300,7 @@ public void createConnectivityTestExceptionTest() throws Exception { public void updateConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -364,7 +368,7 @@ public void updateConnectivityTestExceptionTest() throws Exception { public void rerunConnectivityTestTest() throws Exception { ConnectivityTest expectedResponse = ConnectivityTest.newBuilder() - .setName("name3373707") + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setDescription("description-1724546052") .setSource(Endpoint.newBuilder().build()) .setDestination(Endpoint.newBuilder().build()) @@ -387,7 +391,9 @@ public void rerunConnectivityTestTest() throws Exception { mockReachabilityService.addResponse(resultOperation); RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest actualResponse = client.rerunConnectivityTestAsync(request).get(); Assert.assertEquals(expectedResponse, actualResponse); @@ -411,7 +417,9 @@ public void rerunConnectivityTestExceptionTest() throws Exception { try { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); client.rerunConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -433,7 +441,9 @@ public void deleteConnectivityTestTest() throws Exception { mockReachabilityService.addResponse(resultOperation); DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); client.deleteConnectivityTestAsync(request).get(); @@ -456,7 +466,9 @@ public void deleteConnectivityTestExceptionTest() throws Exception { try { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); client.deleteConnectivityTestAsync(request).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -580,7 +592,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -609,7 +621,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -633,7 +645,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -660,7 +672,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -678,7 +690,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -705,7 +717,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java index 7be739f12e81..bcd86689d3b5 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -873,7 +873,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -906,7 +906,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -931,7 +931,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -963,7 +963,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -982,7 +982,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -1014,7 +1014,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java index ec889d825ba3..c51750680615 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java @@ -812,7 +812,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -841,7 +841,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -865,7 +865,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -892,7 +892,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -910,7 +910,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -937,7 +937,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java index 1e01b0cf34d8..b4e2e83bfdf2 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java @@ -469,7 +469,7 @@ default void createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ default void updateConnectivityTest( @@ -640,7 +640,7 @@ public void createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public void updateConnectivityTest( @@ -785,7 +785,7 @@ public com.google.longrunning.Operation createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public com.google.longrunning.Operation updateConnectivityTest( @@ -925,7 +925,7 @@ protected ReachabilityServiceFutureStub build( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java index 1afc681fc879..ffad8dd95151 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java @@ -469,7 +469,7 @@ default void createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ default void updateConnectivityTest( @@ -640,7 +640,7 @@ public void createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public void updateConnectivityTest( @@ -785,7 +785,7 @@ public com.google.longrunning.Operation createConnectivityTest( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public com.google.longrunning.Operation updateConnectivityTest( @@ -925,7 +925,7 @@ protected ReachabilityServiceFutureStub build( * <code>UNKNOWN</code>. * If the endpoint specifications in `ConnectivityTest` are incomplete, the * reachability result returns a value of `AMBIGUOUS`. See the documentation - * in `ConnectivityTest` for for more details. + * in `ConnectivityTest` for more details. *
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-network-management/proto-google-cloud-network-management-v1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1/pom.xml index 043cbbfb5e01..87c29b3df022 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1/pom.xml @@ -21,5 +21,9 @@ com.google.api.grpc proto-google-common-protos + + com.google.api + api-common + diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java index d3b7c19f9684..0713aa218dc2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java @@ -193,6 +193,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNKNOWN_IP = 2; */ UNKNOWN_IP(2), + /** + * + * + *
+     * Aborted because no endpoint with the packet's destination IP is found in
+     * the Google-managed project.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + */ + GOOGLE_MANAGED_SERVICE_UNKNOWN_IP(32), /** * * @@ -237,6 +248,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; */ PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS(29), + /** + * + * + *
+     * Aborted because user lacks permission to access Cloud Router configs
+     * required to run the test.
+     * 
+ * + * PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + */ + PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS(36), /** * * @@ -390,6 +412,27 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; */ SOURCE_PSC_CLOUD_SQL_UNSUPPORTED(20), + /** + * + * + *
+     * Aborted because tests with a Redis Cluster as a source are not supported.
+     * 
+ * + * SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + */ + SOURCE_REDIS_CLUSTER_UNSUPPORTED(34), + /** + * + * + *
+     * Aborted because tests with a Redis Instance as a source are not
+     * supported.
+     * 
+ * + * SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + */ + SOURCE_REDIS_INSTANCE_UNSUPPORTED(35), /** * * @@ -545,6 +588,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNKNOWN_IP = 2; */ public static final int UNKNOWN_IP_VALUE = 2; + /** + * + * + *
+     * Aborted because no endpoint with the packet's destination IP is found in
+     * the Google-managed project.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + */ + public static final int GOOGLE_MANAGED_SERVICE_UNKNOWN_IP_VALUE = 32; /** * * @@ -589,6 +643,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; */ public static final int PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS_VALUE = 29; + /** + * + * + *
+     * Aborted because user lacks permission to access Cloud Router configs
+     * required to run the test.
+     * 
+ * + * PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + */ + public static final int PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS_VALUE = 36; /** * * @@ -742,6 +807,27 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; */ public static final int SOURCE_PSC_CLOUD_SQL_UNSUPPORTED_VALUE = 20; + /** + * + * + *
+     * Aborted because tests with a Redis Cluster as a source are not supported.
+     * 
+ * + * SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + */ + public static final int SOURCE_REDIS_CLUSTER_UNSUPPORTED_VALUE = 34; + /** + * + * + *
+     * Aborted because tests with a Redis Instance as a source are not
+     * supported.
+     * 
+ * + * SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + */ + public static final int SOURCE_REDIS_INSTANCE_UNSUPPORTED_VALUE = 35; /** * * @@ -830,6 +916,8 @@ public static Cause forNumber(int value) { return MISMATCHED_DESTINATION_NETWORK; case 2: return UNKNOWN_IP; + case 32: + return GOOGLE_MANAGED_SERVICE_UNKNOWN_IP; case 23: return SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK; case 4: @@ -838,6 +926,8 @@ public static Cause forNumber(int value) { return PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS; case 29: return PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS; + case 36: + return PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS; case 5: return NO_SOURCE_LOCATION; case 6: @@ -866,6 +956,10 @@ public static Cause forNumber(int value) { return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT; case 20: return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED; + case 34: + return SOURCE_REDIS_CLUSTER_UNSUPPORTED; + case 35: + return SOURCE_REDIS_INSTANCE_UNSUPPORTED; case 21: return SOURCE_FORWARDING_RULE_UNSUPPORTED; case 22: diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java index ae82f6f29c54..1fad18e0ff04 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTest.java @@ -88,11 +88,11 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -112,11 +112,11 @@ public java.lang.String getName() { * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1683,11 +1683,11 @@ public Builder mergeFrom( * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1706,11 +1706,11 @@ public java.lang.String getName() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1729,11 +1729,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1751,11 +1751,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1769,11 +1769,11 @@ public Builder clearName() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java new file mode 100644 index 000000000000..97723aa61853 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConnectivityTestName implements ResourceName { + private static final PathTemplate PROJECT_TEST = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/global/connectivityTests/{test}"); + private volatile Map fieldValuesMap; + private final String project; + private final String test; + + @Deprecated + protected ConnectivityTestName() { + project = null; + test = null; + } + + private ConnectivityTestName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + test = Preconditions.checkNotNull(builder.getTest()); + } + + public String getProject() { + return project; + } + + public String getTest() { + return test; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConnectivityTestName of(String project, String test) { + return newBuilder().setProject(project).setTest(test).build(); + } + + public static String format(String project, String test) { + return newBuilder().setProject(project).setTest(test).build().toString(); + } + + public static ConnectivityTestName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_TEST.validatedMatch( + formattedString, "ConnectivityTestName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("test")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConnectivityTestName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TEST.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (test != null) { + fieldMapBuilder.put("test", test); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_TEST.instantiate("project", project, "test", test); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConnectivityTestName that = ((ConnectivityTestName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.test, that.test); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(test); + return h; + } + + /** Builder for projects/{project}/locations/global/connectivityTests/{test}. */ + public static class Builder { + private String project; + private String test; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTest() { + return test; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTest(String test) { + this.test = test; + return this; + } + + private Builder(ConnectivityTestName connectivityTestName) { + this.project = connectivityTestName.project; + this.test = connectivityTestName.test; + } + + public ConnectivityTestName build() { + return new ConnectivityTestName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java index 994208ede520..d7f45d77b8ec 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestOrBuilder.java @@ -28,11 +28,11 @@ public interface ConnectivityTestOrBuilder * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -41,11 +41,11 @@ public interface ConnectivityTestOrBuilder * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequest.java index f66bb347cc06..943d39810d8d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequest.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -101,7 +103,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -666,7 +670,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -689,7 +695,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -712,7 +720,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -734,7 +744,9 @@ public Builder setParent(java.lang.String value) { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -752,7 +764,9 @@ public Builder clearParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequestOrBuilder.java index 8be42d3f6eb0..825e220e35df 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface CreateConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -45,7 +47,9 @@ public interface CreateConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequest.java index af4dadb58937..fab44a560cdb 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -476,7 +480,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -499,7 +505,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -522,7 +530,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -544,7 +554,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -562,7 +574,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequestOrBuilder.java index 8dcf7a9c867f..169b1e5873d1 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface DeleteConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface DeleteConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java index c31f4e6bd9df..83800947200c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java @@ -42,6 +42,8 @@ private DeliverInfo() { target_ = 0; resourceUri_ = ""; ipAddress_ = ""; + storageBucket_ = ""; + pscGoogleApiTarget_ = ""; } @java.lang.Override @@ -150,7 +152,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Target is all Google APIs that use [Private Service
+     * Target is Google APIs that use [Private Service
      * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
      * 
* @@ -228,6 +230,36 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_REVISION = 14; */ CLOUD_RUN_REVISION(14), + /** + * + * + *
+     * Target is a Google-managed service. Used only for return traces.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE = 15; + */ + GOOGLE_MANAGED_SERVICE(15), + /** + * + * + *
+     * Target is a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE = 16; + */ + REDIS_INSTANCE(16), + /** + * + * + *
+     * Target is a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER = 17; + */ + REDIS_CLUSTER(17), UNRECOGNIZED(-1), ; @@ -306,7 +338,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Target is all Google APIs that use [Private Service
+     * Target is Google APIs that use [Private Service
      * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
      * 
* @@ -384,6 +416,36 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_REVISION = 14; */ public static final int CLOUD_RUN_REVISION_VALUE = 14; + /** + * + * + *
+     * Target is a Google-managed service. Used only for return traces.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE = 15; + */ + public static final int GOOGLE_MANAGED_SERVICE_VALUE = 15; + /** + * + * + *
+     * Target is a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE = 16; + */ + public static final int REDIS_INSTANCE_VALUE = 16; + /** + * + * + *
+     * Target is a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER = 17; + */ + public static final int REDIS_CLUSTER_VALUE = 17; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -439,6 +501,12 @@ public static Target forNumber(int value) { return APP_ENGINE_VERSION; case 14: return CLOUD_RUN_REVISION; + case 15: + return GOOGLE_MANAGED_SERVICE; + case 16: + return REDIS_INSTANCE; + case 17: + return REDIS_CLUSTER; default: return null; } @@ -633,6 +701,110 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } + public static final int STORAGE_BUCKET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageBucket_ = ""; + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + @java.lang.Override + public java.lang.String getStorageBucket() { + java.lang.Object ref = storageBucket_; + 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(); + storageBucket_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageBucketBytes() { + java.lang.Object ref = storageBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -658,6 +830,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageBucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pscGoogleApiTarget_); + } getUnknownFields().writeTo(output); } @@ -678,6 +856,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageBucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pscGoogleApiTarget_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -697,6 +881,8 @@ public boolean equals(final java.lang.Object obj) { if (target_ != other.target_) return false; if (!getResourceUri().equals(other.getResourceUri())) return false; if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getStorageBucket().equals(other.getStorageBucket())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -714,6 +900,10 @@ public int hashCode() { hash = (53 * hash) + getResourceUri().hashCode(); hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getStorageBucket().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -856,6 +1046,8 @@ public Builder clear() { target_ = 0; resourceUri_ = ""; ipAddress_ = ""; + storageBucket_ = ""; + pscGoogleApiTarget_ = ""; return this; } @@ -901,6 +1093,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.DeliverInfo res if (((from_bitField0_ & 0x00000004) != 0)) { result.ipAddress_ = ipAddress_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.storageBucket_ = storageBucket_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } } @java.lang.Override @@ -962,6 +1160,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.DeliverInfo other bitField0_ |= 0x00000004; onChanged(); } + if (!other.getStorageBucket().isEmpty()) { + storageBucket_ = other.storageBucket_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1006,6 +1214,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + storageBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1329,6 +1549,223 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object storageBucket_ = ""; + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + public java.lang.String getStorageBucket() { + java.lang.Object ref = storageBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + public com.google.protobuf.ByteString getStorageBucketBytes() { + java.lang.Object ref = storageBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @param value The storageBucket to set. + * @return This builder for chaining. + */ + public Builder setStorageBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageBucket_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return This builder for chaining. + */ + public Builder clearStorageBucket() { + storageBucket_ = getDefaultInstance().getStorageBucket(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @param value The bytes for storageBucket to set. + * @return This builder for chaining. + */ + public Builder setStorageBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageBucket_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java index 30856632dc7f..94515c2706b5 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java @@ -98,4 +98,56 @@ public interface DeliverInfoOrBuilder * @return The bytes for ipAddress. */ com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + java.lang.String getStorageBucket(); + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + com.google.protobuf.ByteString getStorageBucketBytes(); + + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java index bb3e2fa02cc4..e6b39895f030 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java @@ -377,6 +377,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; */ CLOUD_SQL_INSTANCE_NOT_RUNNING(28), + /** + * + * + *
+     * Packet sent from or to a Redis Instance that is not in running state.
+     * 
+ * + * REDIS_INSTANCE_NOT_RUNNING = 68; + */ + REDIS_INSTANCE_NOT_RUNNING(68), + /** + * + * + *
+     * Packet sent from or to a Redis Cluster that is not in running state.
+     * 
+ * + * REDIS_CLUSTER_NOT_RUNNING = 69; + */ + REDIS_CLUSTER_NOT_RUNNING(69), /** * * @@ -547,6 +567,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NO_ROUTE = 35; */ CLOUD_SQL_INSTANCE_NO_ROUTE(35), + /** + * + * + *
+     * Packet was dropped because the Cloud SQL instance requires all
+     * connections to use Cloud SQL connectors and to target the Cloud SQL proxy
+     * port (3307).
+     * 
+ * + * CLOUD_SQL_CONNECTOR_REQUIRED = 63; + */ + CLOUD_SQL_CONNECTOR_REQUIRED(63), /** * * @@ -579,6 +611,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * VPC_CONNECTOR_NOT_RUNNING = 24; */ VPC_CONNECTOR_NOT_RUNNING(24), + /** + * + * + *
+     * Packet could be dropped because the traffic from the serverless service
+     * to the VPC connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + */ + VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED(60), + /** + * + * + *
+     * Packet could be dropped because the health check traffic to the VPC
+     * connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + */ + VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED(61), /** * * @@ -659,6 +713,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; */ NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT(57), + /** + * + * + *
+     * PSC endpoint is accessed via NCC, but PSC transitivity configuration is
+     * not yet propagated.
+     * 
+ * + * PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + */ + PSC_TRANSITIVITY_NOT_PROPAGATED(64), /** * * @@ -733,6 +798,194 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * ROUTING_LOOP = 59; */ ROUTING_LOOP(59), + /** + * + * + *
+     * Packet is dropped inside a Google-managed service due to being delivered
+     * in return trace to an endpoint that doesn't match the endpoint the packet
+     * was sent from in forward trace. Used only for return traces.
+     * 
+ * + * DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + */ + DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE(62), + /** + * + * + *
+     * Packet is dropped due to a load balancer backend instance not having a
+     * network interface in the network expected by the load balancer.
+     * 
+ * + * LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + */ + LOAD_BALANCER_BACKEND_INVALID_NETWORK(65), + /** + * + * + *
+     * Packet is dropped due to a backend service named port not being defined
+     * on the instance group level.
+     * 
+ * + * BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + */ + BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED(66), + /** + * + * + *
+     * Packet is dropped due to a destination IP range being part of a Private
+     * NAT IP range.
+     * 
+ * + * DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + */ + DESTINATION_IS_PRIVATE_NAT_IP_RANGE(67), + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Instance
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + */ + DROPPED_INSIDE_REDIS_INSTANCE_SERVICE(70), + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Instance. Port 6379 should be used to connect to a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + */ + REDIS_INSTANCE_UNSUPPORTED_PORT(71), + /** + * + * + *
+     * Packet is dropped due to connecting from PUPI address to a PSA based
+     * Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + */ + REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS(72), + /** + * + * + *
+     * Packet is dropped due to no route to the destination network.
+     * 
+ * + * REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + */ + REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK(73), + /** + * + * + *
+     * Redis Instance does not have an external IP address.
+     * 
+ * + * REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + */ + REDIS_INSTANCE_NO_EXTERNAL_IP(74), + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Instance. Only TCP connections are accepted by a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + */ + REDIS_INSTANCE_UNSUPPORTED_PROTOCOL(78), + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Cluster
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + */ + DROPPED_INSIDE_REDIS_CLUSTER_SERVICE(75), + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to
+     * a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + */ + REDIS_CLUSTER_UNSUPPORTED_PORT(76), + /** + * + * + *
+     * Redis Cluster does not have an external IP address.
+     * 
+ * + * REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + */ + REDIS_CLUSTER_NO_EXTERNAL_IP(77), + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + */ + REDIS_CLUSTER_UNSUPPORTED_PROTOCOL(79), + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix advertised
+     * via BGP by the Cloud Router.
+     * 
+ * + * NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + */ + NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION(80), + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix included to
+     * the local traffic selector of the VPN tunnel.
+     * 
+ * + * NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + */ + NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION(81), + /** + * + * + *
+     * Packet from the unknown peered network is dropped due to no known route
+     * from the source network to the destination IP address.
+     * 
+ * + * NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + */ + NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION(82), UNRECOGNIZED(-1), ; @@ -1036,6 +1289,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; */ public static final int CLOUD_SQL_INSTANCE_NOT_RUNNING_VALUE = 28; + /** + * + * + *
+     * Packet sent from or to a Redis Instance that is not in running state.
+     * 
+ * + * REDIS_INSTANCE_NOT_RUNNING = 68; + */ + public static final int REDIS_INSTANCE_NOT_RUNNING_VALUE = 68; + /** + * + * + *
+     * Packet sent from or to a Redis Cluster that is not in running state.
+     * 
+ * + * REDIS_CLUSTER_NOT_RUNNING = 69; + */ + public static final int REDIS_CLUSTER_NOT_RUNNING_VALUE = 69; /** * * @@ -1206,6 +1479,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NO_ROUTE = 35; */ public static final int CLOUD_SQL_INSTANCE_NO_ROUTE_VALUE = 35; + /** + * + * + *
+     * Packet was dropped because the Cloud SQL instance requires all
+     * connections to use Cloud SQL connectors and to target the Cloud SQL proxy
+     * port (3307).
+     * 
+ * + * CLOUD_SQL_CONNECTOR_REQUIRED = 63; + */ + public static final int CLOUD_SQL_CONNECTOR_REQUIRED_VALUE = 63; /** * * @@ -1238,6 +1523,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * VPC_CONNECTOR_NOT_RUNNING = 24; */ public static final int VPC_CONNECTOR_NOT_RUNNING_VALUE = 24; + /** + * + * + *
+     * Packet could be dropped because the traffic from the serverless service
+     * to the VPC connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + */ + public static final int VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED_VALUE = 60; + /** + * + * + *
+     * Packet could be dropped because the health check traffic to the VPC
+     * connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + */ + public static final int VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED_VALUE = 61; /** * * @@ -1318,6 +1625,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; */ public static final int NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT_VALUE = 57; + /** + * + * + *
+     * PSC endpoint is accessed via NCC, but PSC transitivity configuration is
+     * not yet propagated.
+     * 
+ * + * PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + */ + public static final int PSC_TRANSITIVITY_NOT_PROPAGATED_VALUE = 64; /** * * @@ -1392,6 +1710,194 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * ROUTING_LOOP = 59; */ public static final int ROUTING_LOOP_VALUE = 59; + /** + * + * + *
+     * Packet is dropped inside a Google-managed service due to being delivered
+     * in return trace to an endpoint that doesn't match the endpoint the packet
+     * was sent from in forward trace. Used only for return traces.
+     * 
+ * + * DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + */ + public static final int DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE_VALUE = 62; + /** + * + * + *
+     * Packet is dropped due to a load balancer backend instance not having a
+     * network interface in the network expected by the load balancer.
+     * 
+ * + * LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + */ + public static final int LOAD_BALANCER_BACKEND_INVALID_NETWORK_VALUE = 65; + /** + * + * + *
+     * Packet is dropped due to a backend service named port not being defined
+     * on the instance group level.
+     * 
+ * + * BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + */ + public static final int BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED_VALUE = 66; + /** + * + * + *
+     * Packet is dropped due to a destination IP range being part of a Private
+     * NAT IP range.
+     * 
+ * + * DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + */ + public static final int DESTINATION_IS_PRIVATE_NAT_IP_RANGE_VALUE = 67; + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Instance
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + */ + public static final int DROPPED_INSIDE_REDIS_INSTANCE_SERVICE_VALUE = 70; + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Instance. Port 6379 should be used to connect to a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + */ + public static final int REDIS_INSTANCE_UNSUPPORTED_PORT_VALUE = 71; + /** + * + * + *
+     * Packet is dropped due to connecting from PUPI address to a PSA based
+     * Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + */ + public static final int REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS_VALUE = 72; + /** + * + * + *
+     * Packet is dropped due to no route to the destination network.
+     * 
+ * + * REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + */ + public static final int REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK_VALUE = 73; + /** + * + * + *
+     * Redis Instance does not have an external IP address.
+     * 
+ * + * REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + */ + public static final int REDIS_INSTANCE_NO_EXTERNAL_IP_VALUE = 74; + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Instance. Only TCP connections are accepted by a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + */ + public static final int REDIS_INSTANCE_UNSUPPORTED_PROTOCOL_VALUE = 78; + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Cluster
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + */ + public static final int DROPPED_INSIDE_REDIS_CLUSTER_SERVICE_VALUE = 75; + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to
+     * a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + */ + public static final int REDIS_CLUSTER_UNSUPPORTED_PORT_VALUE = 76; + /** + * + * + *
+     * Redis Cluster does not have an external IP address.
+     * 
+ * + * REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + */ + public static final int REDIS_CLUSTER_NO_EXTERNAL_IP_VALUE = 77; + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + */ + public static final int REDIS_CLUSTER_UNSUPPORTED_PROTOCOL_VALUE = 79; + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix advertised
+     * via BGP by the Cloud Router.
+     * 
+ * + * NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + */ + public static final int NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION_VALUE = 80; + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix included to
+     * the local traffic selector of the VPN tunnel.
+     * 
+ * + * NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + */ + public static final int NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION_VALUE = 81; + /** + * + * + *
+     * Packet from the unknown peered network is dropped due to no known route
+     * from the source network to the destination IP address.
+     * 
+ * + * NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + */ + public static final int NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION_VALUE = 82; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -1473,6 +1979,10 @@ public static Cause forNumber(int value) { return GKE_CLUSTER_NOT_RUNNING; case 28: return CLOUD_SQL_INSTANCE_NOT_RUNNING; + case 68: + return REDIS_INSTANCE_NOT_RUNNING; + case 69: + return REDIS_CLUSTER_NOT_RUNNING; case 15: return TRAFFIC_TYPE_BLOCKED; case 16: @@ -1503,12 +2013,18 @@ public static Cause forNumber(int value) { return PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION; case 35: return CLOUD_SQL_INSTANCE_NO_ROUTE; + case 63: + return CLOUD_SQL_CONNECTOR_REQUIRED; case 22: return CLOUD_FUNCTION_NOT_ACTIVE; case 23: return VPC_CONNECTOR_NOT_SET; case 24: return VPC_CONNECTOR_NOT_RUNNING; + case 60: + return VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED; + case 61: + return VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED; case 25: return FORWARDING_RULE_REGION_MISMATCH; case 26: @@ -1523,6 +2039,8 @@ public static Cause forNumber(int value) { return CLOUD_SQL_PSC_NEG_UNSUPPORTED; case 57: return NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT; + case 64: + return PSC_TRANSITIVITY_NOT_PROPAGATED; case 55: return HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED; case 56: @@ -1537,6 +2055,40 @@ public static Cause forNumber(int value) { return CLOUD_NAT_NO_ADDRESSES; case 59: return ROUTING_LOOP; + case 62: + return DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE; + case 65: + return LOAD_BALANCER_BACKEND_INVALID_NETWORK; + case 66: + return BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED; + case 67: + return DESTINATION_IS_PRIVATE_NAT_IP_RANGE; + case 70: + return DROPPED_INSIDE_REDIS_INSTANCE_SERVICE; + case 71: + return REDIS_INSTANCE_UNSUPPORTED_PORT; + case 72: + return REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS; + case 73: + return REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK; + case 74: + return REDIS_INSTANCE_NO_EXTERNAL_IP; + case 78: + return REDIS_INSTANCE_UNSUPPORTED_PROTOCOL; + case 75: + return DROPPED_INSIDE_REDIS_CLUSTER_SERVICE; + case 76: + return REDIS_CLUSTER_UNSUPPORTED_PORT; + case 77: + return REDIS_CLUSTER_NO_EXTERNAL_IP; + case 79: + return REDIS_CLUSTER_UNSUPPORTED_PROTOCOL; + case 80: + return NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION; + case 81: + return NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION; + case 82: + return NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java index fc7c49ccbf5a..3492d5077dd9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java @@ -47,6 +47,8 @@ private Endpoint() { loadBalancerType_ = 0; gkeMasterCluster_ = ""; cloudSqlInstance_ = ""; + redisInstance_ = ""; + redisCluster_ = ""; network_ = ""; networkType_ = 0; projectId_ = ""; @@ -2941,6 +2943,112 @@ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() { } } + public static final int REDIS_INSTANCE_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object redisInstance_ = ""; + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + @java.lang.Override + public java.lang.String getRedisInstance() { + java.lang.Object ref = redisInstance_; + 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(); + redisInstance_ = s; + return s; + } + } + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedisInstanceBytes() { + java.lang.Object ref = redisInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIS_CLUSTER_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object redisCluster_ = ""; + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + @java.lang.Override + public java.lang.String getRedisCluster() { + java.lang.Object ref = redisCluster_; + 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(); + redisCluster_ = s; + return s; + } + } + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedisClusterBytes() { + java.lang.Object ref = redisCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10; private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_; /** @@ -3341,6 +3449,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(16, loadBalancerType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisInstance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, redisInstance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, redisCluster_); + } getUnknownFields().writeTo(output); } @@ -3397,6 +3511,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, loadBalancerType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisInstance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, redisInstance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, redisCluster_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3431,6 +3551,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getGkeMasterCluster().equals(other.getGkeMasterCluster())) return false; if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false; + if (!getRedisInstance().equals(other.getRedisInstance())) return false; + if (!getRedisCluster().equals(other.getRedisCluster())) return false; if (hasCloudFunction() != other.hasCloudFunction()) return false; if (hasCloudFunction()) { if (!getCloudFunction().equals(other.getCloudFunction())) return false; @@ -3481,6 +3603,10 @@ public int hashCode() { hash = (53 * hash) + getGkeMasterCluster().hashCode(); hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlInstance().hashCode(); + hash = (37 * hash) + REDIS_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getRedisInstance().hashCode(); + hash = (37 * hash) + REDIS_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getRedisCluster().hashCode(); if (hasCloudFunction()) { hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -3658,6 +3784,8 @@ public Builder clear() { loadBalancerType_ = 0; gkeMasterCluster_ = ""; cloudSqlInstance_ = ""; + redisInstance_ = ""; + redisCluster_ = ""; cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -3744,27 +3872,33 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.Endpoint result result.cloudSqlInstance_ = cloudSqlInstance_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.redisInstance_ = redisInstance_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.redisCluster_ = redisCluster_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { result.cloudFunction_ = cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.appEngineVersion_ = appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.cloudRunRevision_ = cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.networkType_ = networkType_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -3854,6 +3988,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { bitField0_ |= 0x00000100; onChanged(); } + if (!other.getRedisInstance().isEmpty()) { + redisInstance_ = other.redisInstance_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getRedisCluster().isEmpty()) { + redisCluster_ = other.redisCluster_; + bitField0_ |= 0x00000400; + onChanged(); + } if (other.hasCloudFunction()) { mergeCloudFunction(other.getCloudFunction()); } @@ -3865,7 +4009,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); } if (other.networkType_ != 0) { @@ -3873,7 +4017,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3923,19 +4067,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 50 case 58: @@ -3953,21 +4097,21 @@ public Builder mergeFrom( case 82: { input.readMessage(getCloudFunctionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 82 case 90: { input.readMessage( getAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 90 case 98: { input.readMessage( getCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 98 case 106: @@ -3994,6 +4138,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 128 + case 138: + { + redisInstance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 138 + case 146: + { + redisCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5003,6 +5159,228 @@ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object redisInstance_ = ""; + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + public java.lang.String getRedisInstance() { + java.lang.Object ref = redisInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisInstance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + public com.google.protobuf.ByteString getRedisInstanceBytes() { + java.lang.Object ref = redisInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @param value The redisInstance to set. + * @return This builder for chaining. + */ + public Builder setRedisInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redisInstance_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return This builder for chaining. + */ + public Builder clearRedisInstance() { + redisInstance_ = getDefaultInstance().getRedisInstance(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @param value The bytes for redisInstance to set. + * @return This builder for chaining. + */ + public Builder setRedisInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisInstance_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object redisCluster_ = ""; + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + public java.lang.String getRedisCluster() { + java.lang.Object ref = redisCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + public com.google.protobuf.ByteString getRedisClusterBytes() { + java.lang.Object ref = redisCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @param value The redisCluster to set. + * @return This builder for chaining. + */ + public Builder setRedisCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redisCluster_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return This builder for chaining. + */ + public Builder clearRedisCluster() { + redisCluster_ = getDefaultInstance().getRedisCluster(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @param value The bytes for redisCluster to set. + * @return This builder for chaining. + */ + public Builder setRedisClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisCluster_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint, @@ -5022,7 +5400,7 @@ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) { * @return Whether the cloudFunction field is set. */ public boolean hasCloudFunction() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -5066,7 +5444,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5088,7 +5466,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5105,7 +5483,7 @@ public Builder setCloudFunction( public Builder mergeCloudFunction( com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) { if (cloudFunctionBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && cloudFunction_ != null && cloudFunction_ != com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint @@ -5118,7 +5496,7 @@ public Builder mergeCloudFunction( cloudFunctionBuilder_.mergeFrom(value); } if (cloudFunction_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5134,7 +5512,7 @@ public Builder mergeCloudFunction( *
*/ public Builder clearCloudFunction() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -5155,7 +5533,7 @@ public Builder clearCloudFunction() { */ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getCloudFunctionFieldBuilder().getBuilder(); } @@ -5229,7 +5607,7 @@ public Builder clearCloudFunction() { * @return Whether the appEngineVersion field is set. */ public boolean hasAppEngineVersion() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -5278,7 +5656,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5302,7 +5680,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5321,7 +5699,7 @@ public Builder setAppEngineVersion( public Builder mergeAppEngineVersion( com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) { if (appEngineVersionBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && appEngineVersion_ != null && appEngineVersion_ != com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint @@ -5334,7 +5712,7 @@ public Builder mergeAppEngineVersion( appEngineVersionBuilder_.mergeFrom(value); } if (appEngineVersion_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5352,7 +5730,7 @@ public Builder mergeAppEngineVersion( *
*/ public Builder clearAppEngineVersion() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); appEngineVersion_ = null; if (appEngineVersionBuilder_ != null) { appEngineVersionBuilder_.dispose(); @@ -5375,7 +5753,7 @@ public Builder clearAppEngineVersion() { */ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return getAppEngineVersionFieldBuilder().getBuilder(); } @@ -5453,7 +5831,7 @@ public Builder clearAppEngineVersion() { * @return Whether the cloudRunRevision field is set. */ public boolean hasCloudRunRevision() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -5502,7 +5880,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5526,7 +5904,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5545,7 +5923,7 @@ public Builder setCloudRunRevision( public Builder mergeCloudRunRevision( com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) { if (cloudRunRevisionBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00002000) != 0) && cloudRunRevision_ != null && cloudRunRevision_ != com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint @@ -5558,7 +5936,7 @@ public Builder mergeCloudRunRevision( cloudRunRevisionBuilder_.mergeFrom(value); } if (cloudRunRevision_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5576,7 +5954,7 @@ public Builder mergeCloudRunRevision( * */ public Builder clearCloudRunRevision() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); cloudRunRevision_ = null; if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.dispose(); @@ -5599,7 +5977,7 @@ public Builder clearCloudRunRevision() { */ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return getCloudRunRevisionFieldBuilder().getBuilder(); } @@ -5717,7 +6095,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5734,7 +6112,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -5756,7 +6134,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5795,7 +6173,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5839,7 +6217,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; networkType_ = value.getNumber(); onChanged(); return this; @@ -5858,7 +6236,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); networkType_ = 0; onChanged(); return this; @@ -5950,7 +6328,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5975,7 +6353,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -6005,7 +6383,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java index 6a9e2514e5ac..44f24d6980a3 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java @@ -304,6 +304,60 @@ public interface EndpointOrBuilder */ com.google.protobuf.ByteString getCloudSqlInstanceBytes(); + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + java.lang.String getRedisInstance(); + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + com.google.protobuf.ByteString getRedisInstanceBytes(); + + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + java.lang.String getRedisCluster(); + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + com.google.protobuf.ByteString getRedisClusterBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java index 5f9d0acd8ba8..77014ae5bfc2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java @@ -24,7 +24,7 @@ * *
  * For display only. Metadata associated with a VPC firewall rule, an implied
- * VPC firewall rule, or a hierarchical firewall policy rule.
+ * VPC firewall rule, or a firewall policy rule.
  * 
* * Protobuf type {@code google.cloud.networkmanagement.v1.FirewallInfo} @@ -48,6 +48,7 @@ private FirewallInfo() { targetTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); policy_ = ""; + policyUri_ = ""; firewallRuleType_ = 0; } @@ -411,8 +412,8 @@ private FirewallRuleType(int value) { * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -435,8 +436,8 @@ public java.lang.String getDisplayName() { * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -464,8 +465,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -488,8 +489,8 @@ public java.lang.String getUri() { * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -692,7 +693,7 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -707,7 +708,7 @@ public com.google.protobuf.ProtocolStringList getTargetTagsList() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -722,7 +723,7 @@ public int getTargetTagsCount() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -738,7 +739,7 @@ public java.lang.String getTargetTags(int index) { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -822,8 +823,9 @@ public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index) { * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -846,8 +848,9 @@ public java.lang.String getPolicy() { * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -867,6 +870,61 @@ public com.google.protobuf.ByteString getPolicyBytes() { } } + public static final int POLICY_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object policyUri_ = ""; + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + @java.lang.Override + public java.lang.String getPolicyUri() { + java.lang.Object ref = policyUri_; + 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(); + policyUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = policyUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER = 10; private int firewallRuleType_ = 0; /** @@ -955,6 +1013,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(10, firewallRuleType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, policyUri_); + } getUnknownFields().writeTo(output); } @@ -1007,6 +1068,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, firewallRuleType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, policyUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1032,6 +1096,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTargetTagsList().equals(other.getTargetTagsList())) return false; if (!getTargetServiceAccountsList().equals(other.getTargetServiceAccountsList())) return false; if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (firewallRuleType_ != other.firewallRuleType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1066,6 +1131,8 @@ public int hashCode() { } hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); + hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyUri().hashCode(); hash = (37 * hash) + FIREWALL_RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + firewallRuleType_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1173,7 +1240,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * For display only. Metadata associated with a VPC firewall rule, an implied
-   * VPC firewall rule, or a hierarchical firewall policy rule.
+   * VPC firewall rule, or a firewall policy rule.
    * 
* * Protobuf type {@code google.cloud.networkmanagement.v1.FirewallInfo} @@ -1217,6 +1284,7 @@ public Builder clear() { targetTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); policy_ = ""; + policyUri_ = ""; firewallRuleType_ = 0; return this; } @@ -1284,6 +1352,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.FirewallInfo re result.policy_ = policy_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.policyUri_ = policyUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.firewallRuleType_ = firewallRuleType_; } } @@ -1387,6 +1458,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.FirewallInfo othe bitField0_ |= 0x00000100; onChanged(); } + if (!other.getPolicyUri().isEmpty()) { + policyUri_ = other.policyUri_; + bitField0_ |= 0x00000200; + onChanged(); + } if (other.firewallRuleType_ != 0) { setFirewallRuleTypeValue(other.getFirewallRuleTypeValue()); } @@ -1475,9 +1551,15 @@ public Builder mergeFrom( case 80: { firewallRuleType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 80 + case 90: + { + policyUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1502,8 +1584,8 @@ public Builder mergeFrom( * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1525,8 +1607,8 @@ public java.lang.String getDisplayName() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1548,8 +1630,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1570,8 +1652,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1588,8 +1670,8 @@ public Builder clearDisplayName() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1613,8 +1695,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1636,8 +1718,8 @@ public java.lang.String getUri() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1659,8 +1741,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1681,8 +1763,8 @@ public Builder setUri(java.lang.String value) { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1699,8 +1781,8 @@ public Builder clearUri() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -2109,7 +2191,7 @@ private void ensureTargetTagsIsMutable() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2125,7 +2207,7 @@ public com.google.protobuf.ProtocolStringList getTargetTagsList() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2140,7 +2222,7 @@ public int getTargetTagsCount() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2156,7 +2238,7 @@ public java.lang.String getTargetTags(int index) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2172,7 +2254,7 @@ public com.google.protobuf.ByteString getTargetTagsBytes(int index) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2196,7 +2278,7 @@ public Builder setTargetTags(int index, java.lang.String value) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2219,7 +2301,7 @@ public Builder addTargetTags(java.lang.String value) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2239,7 +2321,7 @@ public Builder addAllTargetTags(java.lang.Iterable values) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2258,7 +2340,7 @@ public Builder clearTargetTags() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2458,8 +2540,9 @@ public Builder addTargetServiceAccountsBytes(com.google.protobuf.ByteString valu * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2481,8 +2564,9 @@ public java.lang.String getPolicy() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2504,8 +2588,9 @@ public com.google.protobuf.ByteString getPolicyBytes() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2526,8 +2611,9 @@ public Builder setPolicy(java.lang.String value) { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2544,8 +2630,9 @@ public Builder clearPolicy() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2564,6 +2651,122 @@ public Builder setPolicyBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object policyUri_ = ""; + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + public java.lang.String getPolicyUri() { + java.lang.Object ref = policyUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = policyUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @param value The policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policyUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return This builder for chaining. + */ + public Builder clearPolicyUri() { + policyUri_ = getDefaultInstance().getPolicyUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @param value The bytes for policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + private int firewallRuleType_ = 0; /** * @@ -2598,7 +2801,7 @@ public int getFirewallRuleTypeValue() { */ public Builder setFirewallRuleTypeValue(int value) { firewallRuleType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2644,7 +2847,7 @@ public Builder setFirewallRuleType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; firewallRuleType_ = value.getNumber(); onChanged(); return this; @@ -2663,7 +2866,7 @@ public Builder setFirewallRuleType( * @return This builder for chaining. */ public Builder clearFirewallRuleType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); firewallRuleType_ = 0; onChanged(); return this; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java index 48d78bbdc35c..3f154d70586b 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java @@ -28,8 +28,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -41,8 +41,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -55,8 +55,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -68,8 +68,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -173,7 +173,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -186,7 +186,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -199,7 +199,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -213,7 +213,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -278,8 +278,9 @@ public interface FirewallInfoOrBuilder * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -291,8 +292,9 @@ public interface FirewallInfoOrBuilder * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -301,6 +303,35 @@ public interface FirewallInfoOrBuilder */ com.google.protobuf.ByteString getPolicyBytes(); + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + java.lang.String getPolicyUri(); + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + com.google.protobuf.ByteString getPolicyUriBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfo.java index c4ebad30989a..f9cdfb1d76bf 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfo.java @@ -46,6 +46,10 @@ private ForwardingRuleInfo() { vip_ = ""; target_ = ""; networkUri_ = ""; + region_ = ""; + loadBalancerName_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; } @java.lang.Override @@ -77,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -100,7 +104,7 @@ public java.lang.String getDisplayName() { * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -128,7 +132,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -151,7 +155,7 @@ public java.lang.String getUri() { * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -202,7 +206,7 @@ public java.lang.String getMatchedProtocol() { * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -230,7 +234,7 @@ public com.google.protobuf.ByteString getMatchedProtocolBytes() { * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -253,7 +257,7 @@ public java.lang.String getMatchedPortRange() { * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -383,7 +387,7 @@ public com.google.protobuf.ByteString getTargetBytes() { * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -406,7 +410,7 @@ public java.lang.String getNetworkUri() { * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -426,6 +430,214 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { } } + public static final int REGION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOAD_BALANCER_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object loadBalancerName_ = ""; + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + @java.lang.Override + public java.lang.String getLoadBalancerName() { + java.lang.Object ref = loadBalancerName_; + 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(); + loadBalancerName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoadBalancerNameBytes() { + java.lang.Object ref = loadBalancerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadBalancerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + 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(); + pscServiceAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -461,6 +673,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, networkUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalancerName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, loadBalancerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pscGoogleApiTarget_); + } getUnknownFields().writeTo(output); } @@ -491,6 +715,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, networkUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalancerName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, loadBalancerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pscGoogleApiTarget_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -514,6 +751,10 @@ public boolean equals(final java.lang.Object obj) { if (!getVip().equals(other.getVip())) return false; if (!getTarget().equals(other.getTarget())) return false; if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getLoadBalancerName().equals(other.getLoadBalancerName())) return false; + if (!getPscServiceAttachmentUri().equals(other.getPscServiceAttachmentUri())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,6 +780,14 @@ public int hashCode() { hash = (53 * hash) + getTarget().hashCode(); hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + LOAD_BALANCER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancerName().hashCode(); + hash = (37 * hash) + PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentUri().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -686,6 +935,10 @@ public Builder clear() { vip_ = ""; target_ = ""; networkUri_ = ""; + region_ = ""; + loadBalancerName_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; return this; } @@ -743,6 +996,18 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.ForwardingRuleI if (((from_bitField0_ & 0x00000040) != 0)) { result.networkUri_ = networkUri_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.loadBalancerName_ = loadBalancerName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pscServiceAttachmentUri_ = pscServiceAttachmentUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } } @java.lang.Override @@ -826,6 +1091,26 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ForwardingRuleInf bitField0_ |= 0x00000040; onChanged(); } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getLoadBalancerName().isEmpty()) { + loadBalancerName_ = other.loadBalancerName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getPscServiceAttachmentUri().isEmpty()) { + pscServiceAttachmentUri_ = other.pscServiceAttachmentUri_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -894,6 +1179,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + loadBalancerName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + pscServiceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -918,7 +1227,7 @@ public Builder mergeFrom( * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -940,7 +1249,7 @@ public java.lang.String getDisplayName() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -962,7 +1271,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -983,7 +1292,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -1000,7 +1309,7 @@ public Builder clearDisplayName() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -1024,7 +1333,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1046,7 +1355,7 @@ public java.lang.String getUri() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1068,7 +1377,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1089,7 +1398,7 @@ public Builder setUri(java.lang.String value) { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1106,7 +1415,7 @@ public Builder clearUri() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1130,7 +1439,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1152,7 +1461,7 @@ public java.lang.String getMatchedProtocol() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1174,7 +1483,7 @@ public com.google.protobuf.ByteString getMatchedProtocolBytes() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1195,7 +1504,7 @@ public Builder setMatchedProtocol(java.lang.String value) { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1212,7 +1521,7 @@ public Builder clearMatchedProtocol() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1236,7 +1545,7 @@ public Builder setMatchedProtocolBytes(com.google.protobuf.ByteString value) { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1258,7 +1567,7 @@ public java.lang.String getMatchedPortRange() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1280,7 +1589,7 @@ public com.google.protobuf.ByteString getMatchedPortRangeBytes() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1301,7 +1610,7 @@ public Builder setMatchedPortRange(java.lang.String value) { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1318,7 +1627,7 @@ public Builder clearMatchedPortRange() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1554,7 +1863,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1576,7 +1885,7 @@ public java.lang.String getNetworkUri() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1598,7 +1907,7 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1619,7 +1928,7 @@ public Builder setNetworkUri(java.lang.String value) { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1636,7 +1945,7 @@ public Builder clearNetworkUri() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1655,6 +1964,440 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object loadBalancerName_ = ""; + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + public java.lang.String getLoadBalancerName() { + java.lang.Object ref = loadBalancerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loadBalancerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + public com.google.protobuf.ByteString getLoadBalancerNameBytes() { + java.lang.Object ref = loadBalancerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadBalancerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @param value The loadBalancerName to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancerName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerName() { + loadBalancerName_ = getDefaultInstance().getLoadBalancerName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @param value The bytes for loadBalancerName to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loadBalancerName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscServiceAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @param value The pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return This builder for chaining. + */ + public Builder clearPscServiceAttachmentUri() { + pscServiceAttachmentUri_ = getDefaultInstance().getPscServiceAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @param value The bytes for pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java index 4a8921044049..9d6c5df66501 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardingRuleInfoOrBuilder.java @@ -28,7 +28,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -40,7 +40,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -53,7 +53,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -65,7 +65,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -78,7 +78,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -90,7 +90,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -103,7 +103,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -115,7 +115,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -178,7 +178,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -190,7 +190,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -198,4 +198,108 @@ public interface ForwardingRuleInfoOrBuilder * @return The bytes for networkUri. */ com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + java.lang.String getLoadBalancerName(); + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + com.google.protobuf.ByteString getLoadBalancerNameBytes(); + + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + java.lang.String getPscServiceAttachmentUri(); + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + com.google.protobuf.ByteString getPscServiceAttachmentUriBytes(); + + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequest.java index 791870ca2760..5a1ff4d8cf61 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -472,7 +476,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -495,7 +501,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -518,7 +526,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -540,7 +550,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -558,7 +570,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequestOrBuilder.java index 3975e82f62a1..68615b6888d2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface GetConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface GetConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java index 4fdd108f63b4..810bf796e67e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java @@ -47,6 +47,7 @@ private InstanceInfo() { externalIp_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + pscNetworkAttachmentUri_ = ""; } @java.lang.Override @@ -454,7 +455,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The serviceAccount. */ @java.lang.Override @@ -480,7 +481,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -497,6 +498,57 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscNetworkAttachmentUri_ = ""; + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscNetworkAttachmentUri() { + java.lang.Object ref = pscNetworkAttachmentUri_; + 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(); + pscNetworkAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscNetworkAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -535,6 +587,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscNetworkAttachmentUri_); + } getUnknownFields().writeTo(output); } @@ -573,6 +628,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscNetworkAttachmentUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -597,6 +655,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExternalIp().equals(other.getExternalIp())) return false; if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getPscNetworkAttachmentUri().equals(other.getPscNetworkAttachmentUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -626,6 +685,8 @@ public int hashCode() { } hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscNetworkAttachmentUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -773,6 +834,7 @@ public Builder clear() { externalIp_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + pscNetworkAttachmentUri_ = ""; return this; } @@ -834,6 +896,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.InstanceInfo re if (((from_bitField0_ & 0x00000080) != 0)) { result.serviceAccount_ = serviceAccount_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pscNetworkAttachmentUri_ = pscNetworkAttachmentUri_; + } } @java.lang.Override @@ -927,6 +992,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.InstanceInfo othe bitField0_ |= 0x00000080; onChanged(); } + if (!other.getPscNetworkAttachmentUri().isEmpty()) { + pscNetworkAttachmentUri_ = other.pscNetworkAttachmentUri_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1002,6 +1072,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + pscNetworkAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1842,7 +1918,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The serviceAccount. */ @java.lang.Deprecated @@ -1867,7 +1943,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -1892,7 +1968,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -1916,7 +1992,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1936,7 +2012,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -1952,6 +2028,112 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object pscNetworkAttachmentUri_ = ""; + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + public java.lang.String getPscNetworkAttachmentUri() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscNetworkAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscNetworkAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @param value The pscNetworkAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscNetworkAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscNetworkAttachmentUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearPscNetworkAttachmentUri() { + pscNetworkAttachmentUri_ = getDefaultInstance().getPscNetworkAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @param value The bytes for pscNetworkAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscNetworkAttachmentUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java index 6c5da32cc6bc..e34170e58723 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java @@ -235,7 +235,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The serviceAccount. */ @java.lang.Deprecated @@ -250,9 +250,34 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=299 + * google/cloud/networkmanagement/v1/trace.proto;l=322 * @return The bytes for serviceAccount. */ @java.lang.Deprecated com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + java.lang.String getPscNetworkAttachmentUri(); + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequest.java index f350ddef9db6..330509862d37 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequest.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -102,7 +104,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -778,7 +782,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -801,7 +807,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -824,7 +832,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -846,7 +856,9 @@ public Builder setParent(java.lang.String value) { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -864,7 +876,9 @@ public Builder clearParent() { * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequestOrBuilder.java index cdd2a270df1a..d24f9e4f0a5c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListConnectivityTestsRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface ListConnectivityTestsRequestOrBuilder * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -45,7 +47,9 @@ public interface ListConnectivityTestsRequestOrBuilder * `projects/{project_id}/locations/global` *
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java index b6d201d328bd..cce422b26aa4 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java @@ -534,7 +534,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=658 + * See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The healthCheckUri. */ @java.lang.Override @@ -562,7 +562,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=658 + * See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1355,7 +1355,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=658 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1382,7 +1382,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=658 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1409,7 +1409,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=658 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=725 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1435,7 +1435,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=658 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1457,7 +1457,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=658 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=725 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java index a212c7df829c..06f31d576e3d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java @@ -65,7 +65,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=658 + * See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=658 + * See google/cloud/networkmanagement/v1/trace.proto;l=725 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java index 32749392ecaa..c9bc6080f36d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java @@ -24,6 +24,7 @@ * *
  * For display only. Metadata associated with a Compute Engine network.
+ * Next ID: 7
  * 
* * Protobuf type {@code google.cloud.networkmanagement.v1.NetworkInfo} @@ -41,7 +42,9 @@ private NetworkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private NetworkInfo() { displayName_ = ""; uri_ = ""; + matchedSubnetUri_ = ""; matchedIpRange_ = ""; + region_ = ""; } @java.lang.Override @@ -167,6 +170,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int MATCHED_SUBNET_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchedSubnetUri_ = ""; + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + @java.lang.Override + public java.lang.String getMatchedSubnetUri() { + java.lang.Object ref = matchedSubnetUri_; + 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(); + matchedSubnetUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchedSubnetUriBytes() { + java.lang.Object ref = matchedSubnetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedSubnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MATCHED_IP_RANGE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -175,7 +229,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -198,7 +252,7 @@ public java.lang.String getMatchedIpRange() { * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -218,6 +272,57 @@ public com.google.protobuf.ByteString getMatchedIpRangeBytes() { } } + public static final int REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -241,6 +346,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedIpRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, matchedIpRange_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedSubnetUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, matchedSubnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); + } getUnknownFields().writeTo(output); } @@ -259,6 +370,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, matchedIpRange_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedSubnetUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, matchedSubnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -277,7 +394,9 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUri().equals(other.getUri())) return false; + if (!getMatchedSubnetUri().equals(other.getMatchedSubnetUri())) return false; if (!getMatchedIpRange().equals(other.getMatchedIpRange())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,8 +412,12 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + MATCHED_SUBNET_URI_FIELD_NUMBER; + hash = (53 * hash) + getMatchedSubnetUri().hashCode(); hash = (37 * hash) + MATCHED_IP_RANGE_FIELD_NUMBER; hash = (53 * hash) + getMatchedIpRange().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -400,6 +523,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * For display only. Metadata associated with a Compute Engine network.
+   * Next ID: 7
    * 
* * Protobuf type {@code google.cloud.networkmanagement.v1.NetworkInfo} @@ -436,7 +560,9 @@ public Builder clear() { bitField0_ = 0; displayName_ = ""; uri_ = ""; + matchedSubnetUri_ = ""; matchedIpRange_ = ""; + region_ = ""; return this; } @@ -480,8 +606,14 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.NetworkInfo res result.uri_ = uri_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchedSubnetUri_ = matchedSubnetUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.matchedIpRange_ = matchedIpRange_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.region_ = region_; + } } @java.lang.Override @@ -540,9 +672,19 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.NetworkInfo other bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMatchedSubnetUri().isEmpty()) { + matchedSubnetUri_ = other.matchedSubnetUri_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getMatchedIpRange().isEmpty()) { matchedIpRange_ = other.matchedIpRange_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -586,9 +728,21 @@ public Builder mergeFrom( case 34: { matchedIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + matchedSubnetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -820,12 +974,118 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object matchedSubnetUri_ = ""; + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + public java.lang.String getMatchedSubnetUri() { + java.lang.Object ref = matchedSubnetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchedSubnetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + public com.google.protobuf.ByteString getMatchedSubnetUriBytes() { + java.lang.Object ref = matchedSubnetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedSubnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @param value The matchedSubnetUri to set. + * @return This builder for chaining. + */ + public Builder setMatchedSubnetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchedSubnetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearMatchedSubnetUri() { + matchedSubnetUri_ = getDefaultInstance().getMatchedSubnetUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @param value The bytes for matchedSubnetUri to set. + * @return This builder for chaining. + */ + public Builder setMatchedSubnetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchedSubnetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object matchedIpRange_ = ""; /** * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -847,7 +1107,7 @@ public java.lang.String getMatchedIpRange() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -869,7 +1129,7 @@ public com.google.protobuf.ByteString getMatchedIpRangeBytes() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -882,7 +1142,7 @@ public Builder setMatchedIpRange(java.lang.String value) { throw new NullPointerException(); } matchedIpRange_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -890,7 +1150,7 @@ public Builder setMatchedIpRange(java.lang.String value) { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -899,7 +1159,7 @@ public Builder setMatchedIpRange(java.lang.String value) { */ public Builder clearMatchedIpRange() { matchedIpRange_ = getDefaultInstance().getMatchedIpRange(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -907,7 +1167,7 @@ public Builder clearMatchedIpRange() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -921,7 +1181,113 @@ public Builder setMatchedIpRangeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); matchedIpRange_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfoOrBuilder.java index 00f33579a44b..3ca8231985df 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfoOrBuilder.java @@ -78,7 +78,32 @@ public interface NetworkInfoOrBuilder * * *
-   * The IP range that matches the test.
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + java.lang.String getMatchedSubnetUri(); + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + com.google.protobuf.ByteString getMatchedSubnetUriBytes(); + + /** + * + * + *
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -90,7 +115,7 @@ public interface NetworkInfoOrBuilder * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -98,4 +123,29 @@ public interface NetworkInfoOrBuilder * @return The bytes for matchedIpRange. */ com.google.protobuf.ByteString getMatchedIpRangeBytes(); + + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java new file mode 100644 index 000000000000..d922d7faa54c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceProto.java index c11ef3d67213..e457f85f67ce 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceProto.java @@ -78,81 +78,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "connectivity_test.proto\032#google/longrunn" + "ing/operations.proto\032\033google/protobuf/em" + "pty.proto\032 google/protobuf/field_mask.pr" - + "oto\032\037google/protobuf/timestamp.proto\"|\n\034" - + "ListConnectivityTestsRequest\022\023\n\006parent\030\001" - + " \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001" - + "(\t\"\225\001\n\035ListConnectivityTestsResponse\022F\n\t" - + "resources\030\001 \003(\01323.google.cloud.networkma" - + "nagement.v1.ConnectivityTest\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"/\n\032Ge" - + "tConnectivityTestRequest\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\002\"\226\001\n\035CreateConnectivityTestRequest\022\023\n" - + "\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007test_id\030\002 \001(\tB\003\340A\002" - + "\022J\n\010resource\030\003 \001(\01323.google.cloud.networ" - + "kmanagement.v1.ConnectivityTestB\003\340A\002\"\241\001\n" - + "\035UpdateConnectivityTestRequest\0224\n\013update" - + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\002\022J\n\010resource\030\002 \001(\01323.google.cloud.ne" - + "tworkmanagement.v1.ConnectivityTestB\003\340A\002" - + "\"2\n\035DeleteConnectivityTestRequest\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\002\"1\n\034RerunConnectivityTestReq" - + "uest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\326\001\n\021OperationMet" - + "adata\022/\n\013create_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004" - + "verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020can" - + "cel_requested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t" - + "2\226\r\n\023ReachabilityService\022\347\001\n\025ListConnect" - + "ivityTests\022?.google.cloud.networkmanagem" - + "ent.v1.ListConnectivityTestsRequest\032@.go" - + "ogle.cloud.networkmanagement.v1.ListConn" - + "ectivityTestsResponse\"K\332A\006parent\202\323\344\223\002<\022:" - + "/v1/{parent=projects/*/locations/global}" - + "/connectivityTests\022\324\001\n\023GetConnectivityTe" - + "st\022=.google.cloud.networkmanagement.v1.G" - + "etConnectivityTestRequest\0323.google.cloud" - + ".networkmanagement.v1.ConnectivityTest\"I" - + "\332A\004name\202\323\344\223\002<\022:/v1/{name=projects/*/loca" - + "tions/global/connectivityTests/*}\022\254\002\n\026Cr" - + "eateConnectivityTest\022@.google.cloud.netw" - + "orkmanagement.v1.CreateConnectivityTestR" - + "equest\032\035.google.longrunning.Operation\"\260\001" - + "\312AG\n2google.cloud.networkmanagement.v1.C" - + "onnectivityTest\022\021OperationMetadata\332A\027par" - + "ent,test_id,resource\202\323\344\223\002F\":/v1/{parent=" - + "projects/*/locations/global}/connectivit" - + "yTests:\010resource\022\262\002\n\026UpdateConnectivityT" - + "est\022@.google.cloud.networkmanagement.v1." - + "UpdateConnectivityTestRequest\032\035.google.l" - + "ongrunning.Operation\"\266\001\312AG\n2google.cloud" - + ".networkmanagement.v1.ConnectivityTest\022\021" - + "OperationMetadata\332A\024update_mask,resource" - + "\202\323\344\223\002O2C/v1/{resource.name=projects/*/lo" - + "cations/global/connectivityTests/*}:\010res" - + "ource\022\217\002\n\025RerunConnectivityTest\022?.google" - + ".cloud.networkmanagement.v1.RerunConnect" - + "ivityTestRequest\032\035.google.longrunning.Op" - + "eration\"\225\001\312AG\n2google.cloud.networkmanag" - + "ement.v1.ConnectivityTest\022\021OperationMeta" - + "data\202\323\344\223\002E\"@/v1/{name=projects/*/locatio" - + "ns/global/connectivityTests/*}:rerun:\001*\022" - + "\361\001\n\026DeleteConnectivityTest\022@.google.clou" - + "d.networkmanagement.v1.DeleteConnectivit" - + "yTestRequest\032\035.google.longrunning.Operat" - + "ion\"v\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002<*:/v1/{name=proje" - + "cts/*/locations/global/connectivityTests" - + "/*}\032T\312A networkmanagement.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\207\002\n%com.google.cloud.networkma" - + "nagement.v1B\030ReachabilityServiceProtoP\001Z" - + "Scloud.google.com/go/networkmanagement/a" - + "piv1/networkmanagementpb;networkmanageme" - + "ntpb\252\002!Google.Cloud.NetworkManagement.V1" - + "\312\002!Google\\Cloud\\NetworkManagement\\V1\352\002$G" - + "oogle::Cloud::NetworkManagement::V1b\006pro" - + "to3" + + "oto\032\037google/protobuf/timestamp.proto\"\254\001\n" + + "\034ListConnectivityTestsRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + + "er_by\030\005 \001(\t\"\225\001\n\035ListConnectivityTestsRes" + + "ponse\022F\n\tresources\030\001 \003(\01323.google.cloud." + + "networkmanagement.v1.ConnectivityTest\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " + + "\003(\t\"e\n\032GetConnectivityTestRequest\022G\n\004nam" + + "e\030\001 \001(\tB9\340A\002\372A3\n1networkmanagement.googl" + + "eapis.com/ConnectivityTest\"\306\001\n\035CreateCon" + + "nectivityTestRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\n+cloudresourcemanager.googleapis.co" + + "m/Project\022\024\n\007test_id\030\002 \001(\tB\003\340A\002\022J\n\010resou" + + "rce\030\003 \001(\01323.google.cloud.networkmanageme" + + "nt.v1.ConnectivityTestB\003\340A\002\"\241\001\n\035UpdateCo" + + "nnectivityTestRequest\0224\n\013update_mask\030\001 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022J\n\010r" + + "esource\030\002 \001(\01323.google.cloud.networkmana" + + "gement.v1.ConnectivityTestB\003\340A\002\"h\n\035Delet" + + "eConnectivityTestRequest\022G\n\004name\030\001 \001(\tB9" + + "\340A\002\372A3\n1networkmanagement.googleapis.com" + + "/ConnectivityTest\"g\n\034RerunConnectivityTe" + + "stRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1network" + + "management.googleapis.com/ConnectivityTe" + + "st\"\326\001\n\021OperationMetadata\022/\n\013create_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + + "\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_" + + "detail\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023" + + "\n\013api_version\030\007 \001(\t2\226\r\n\023ReachabilityServ" + + "ice\022\347\001\n\025ListConnectivityTests\022?.google.c" + + "loud.networkmanagement.v1.ListConnectivi" + + "tyTestsRequest\032@.google.cloud.networkman" + + "agement.v1.ListConnectivityTestsResponse" + + "\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=projects/" + + "*/locations/global}/connectivityTests\022\324\001" + + "\n\023GetConnectivityTest\022=.google.cloud.net" + + "workmanagement.v1.GetConnectivityTestReq" + + "uest\0323.google.cloud.networkmanagement.v1" + + ".ConnectivityTest\"I\332A\004name\202\323\344\223\002<\022:/v1/{n" + + "ame=projects/*/locations/global/connecti" + + "vityTests/*}\022\254\002\n\026CreateConnectivityTest\022" + + "@.google.cloud.networkmanagement.v1.Crea" + + "teConnectivityTestRequest\032\035.google.longr" + + "unning.Operation\"\260\001\312AG\n2google.cloud.net" + + "workmanagement.v1.ConnectivityTest\022\021Oper" + + "ationMetadata\332A\027parent,test_id,resource\202" + + "\323\344\223\002F\":/v1/{parent=projects/*/locations/" + + "global}/connectivityTests:\010resource\022\262\002\n\026" + + "UpdateConnectivityTest\022@.google.cloud.ne" + + "tworkmanagement.v1.UpdateConnectivityTes" + + "tRequest\032\035.google.longrunning.Operation\"" + + "\266\001\312AG\n2google.cloud.networkmanagement.v1" + + ".ConnectivityTest\022\021OperationMetadata\332A\024u" + + "pdate_mask,resource\202\323\344\223\002O2C/v1/{resource" + + ".name=projects/*/locations/global/connec" + + "tivityTests/*}:\010resource\022\217\002\n\025RerunConnec" + + "tivityTest\022?.google.cloud.networkmanagem" + + "ent.v1.RerunConnectivityTestRequest\032\035.go" + + "ogle.longrunning.Operation\"\225\001\312AG\n2google" + + ".cloud.networkmanagement.v1.Connectivity" + + "Test\022\021OperationMetadata\202\323\344\223\002E\"@/v1/{name" + + "=projects/*/locations/global/connectivit" + + "yTests/*}:rerun:\001*\022\361\001\n\026DeleteConnectivit" + + "yTest\022@.google.cloud.networkmanagement.v" + + "1.DeleteConnectivityTestRequest\032\035.google" + + ".longrunning.Operation\"v\312A*\n\025google.prot" + + "obuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002<*:/v1/{name=projects/*/locations/globa" + + "l/connectivityTests/*}\032T\312A networkmanage" + + "ment.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\207\002\n%com.goo" + + "gle.cloud.networkmanagement.v1B\030Reachabi" + + "lityServiceProtoP\001ZScloud.google.com/go/" + + "networkmanagement/apiv1/networkmanagemen" + + "tpb;networkmanagementpb\252\002!Google.Cloud.N" + + "etworkManagement.V1\312\002!Google\\Cloud\\Netwo" + + "rkManagement\\V1\352\002$Google::Cloud::Network" + + "Management::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -245,6 +251,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfo.java new file mode 100644 index 000000000000..a66c40fbf90f --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfo.java @@ -0,0 +1,1561 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * For display only. Metadata associated with a Redis Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.RedisClusterInfo} + */ +public final class RedisClusterInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.RedisClusterInfo) + RedisClusterInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use RedisClusterInfo.newBuilder() to construct. + private RedisClusterInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RedisClusterInfo() { + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + discoveryEndpointIpAddress_ = ""; + secondaryEndpointIpAddress_ = ""; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RedisClusterInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.RedisClusterInfo.class, + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISCOVERY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object discoveryEndpointIpAddress_ = ""; + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + @java.lang.Override + public java.lang.String getDiscoveryEndpointIpAddress() { + java.lang.Object ref = discoveryEndpointIpAddress_; + 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(); + discoveryEndpointIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + discoveryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryEndpointIpAddress_ = ""; + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + @java.lang.Override + public java.lang.String getSecondaryEndpointIpAddress() { + java.lang.Object ref = secondaryEndpointIpAddress_; + 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(); + secondaryEndpointIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpointIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, discoveryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryEndpointIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, secondaryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpointIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, discoveryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryEndpointIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, secondaryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, location_); + } + 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.networkmanagement.v1.RedisClusterInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.RedisClusterInfo other = + (com.google.cloud.networkmanagement.v1.RedisClusterInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getDiscoveryEndpointIpAddress().equals(other.getDiscoveryEndpointIpAddress())) + return false; + if (!getSecondaryEndpointIpAddress().equals(other.getSecondaryEndpointIpAddress())) + return false; + if (!getLocation().equals(other.getLocation())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + DISCOVERY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryEndpointIpAddress().hashCode(); + hash = (37 * hash) + SECONDARY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryEndpointIpAddress().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo 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.networkmanagement.v1.RedisClusterInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo 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.networkmanagement.v1.RedisClusterInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.RedisClusterInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with a Redis Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.RedisClusterInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.RedisClusterInfo) + com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.RedisClusterInfo.class, + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.RedisClusterInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + discoveryEndpointIpAddress_ = ""; + secondaryEndpointIpAddress_ = ""; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfo build() { + com.google.cloud.networkmanagement.v1.RedisClusterInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfo buildPartial() { + com.google.cloud.networkmanagement.v1.RedisClusterInfo result = + new com.google.cloud.networkmanagement.v1.RedisClusterInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.RedisClusterInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.discoveryEndpointIpAddress_ = discoveryEndpointIpAddress_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.secondaryEndpointIpAddress_ = secondaryEndpointIpAddress_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.RedisClusterInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.RedisClusterInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RedisClusterInfo other) { + if (other == com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDiscoveryEndpointIpAddress().isEmpty()) { + discoveryEndpointIpAddress_ = other.discoveryEndpointIpAddress_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSecondaryEndpointIpAddress().isEmpty()) { + secondaryEndpointIpAddress_ = other.secondaryEndpointIpAddress_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000020; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + discoveryEndpointIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + secondaryEndpointIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object discoveryEndpointIpAddress_ = ""; + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + public java.lang.String getDiscoveryEndpointIpAddress() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryEndpointIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + public com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + discoveryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @param value The discoveryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDiscoveryEndpointIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + discoveryEndpointIpAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDiscoveryEndpointIpAddress() { + discoveryEndpointIpAddress_ = getDefaultInstance().getDiscoveryEndpointIpAddress(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @param value The bytes for discoveryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDiscoveryEndpointIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpointIpAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object secondaryEndpointIpAddress_ = ""; + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + public java.lang.String getSecondaryEndpointIpAddress() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryEndpointIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + public com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @param value The secondaryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setSecondaryEndpointIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryEndpointIpAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSecondaryEndpointIpAddress() { + secondaryEndpointIpAddress_ = getDefaultInstance().getSecondaryEndpointIpAddress(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @param value The bytes for secondaryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setSecondaryEndpointIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryEndpointIpAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.RedisClusterInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.RedisClusterInfo) + private static final com.google.cloud.networkmanagement.v1.RedisClusterInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.RedisClusterInfo(); + } + + public static com.google.cloud.networkmanagement.v1.RedisClusterInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedisClusterInfo 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.networkmanagement.v1.RedisClusterInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfoOrBuilder.java new file mode 100644 index 000000000000..f7ca728f9808 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisClusterInfoOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface RedisClusterInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.RedisClusterInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + java.lang.String getDiscoveryEndpointIpAddress(); + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes(); + + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + java.lang.String getSecondaryEndpointIpAddress(); + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes(); + + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfo.java new file mode 100644 index 000000000000..6762edae16c7 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfo.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * For display only. Metadata associated with a Cloud Redis Instance.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.RedisInstanceInfo} + */ +public final class RedisInstanceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.RedisInstanceInfo) + RedisInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use RedisInstanceInfo.newBuilder() to construct. + private RedisInstanceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RedisInstanceInfo() { + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + primaryEndpointIp_ = ""; + readEndpointIp_ = ""; + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RedisInstanceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.class, + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_ENDPOINT_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryEndpointIp_ = ""; + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + @java.lang.Override + public java.lang.String getPrimaryEndpointIp() { + java.lang.Object ref = primaryEndpointIp_; + 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(); + primaryEndpointIp_ = s; + return s; + } + } + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryEndpointIpBytes() { + java.lang.Object ref = primaryEndpointIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_ENDPOINT_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object readEndpointIp_ = ""; + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + @java.lang.Override + public java.lang.String getReadEndpointIp() { + java.lang.Object ref = readEndpointIp_; + 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(); + readEndpointIp_ = s; + return s; + } + } + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReadEndpointIpBytes() { + java.lang.Object ref = readEndpointIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, primaryEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, readEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryEndpointIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, primaryEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpointIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, readEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); + } + 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.networkmanagement.v1.RedisInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.RedisInstanceInfo other = + (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getPrimaryEndpointIp().equals(other.getPrimaryEndpointIp())) return false; + if (!getReadEndpointIp().equals(other.getReadEndpointIp())) return false; + if (!getRegion().equals(other.getRegion())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + PRIMARY_ENDPOINT_IP_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryEndpointIp().hashCode(); + hash = (37 * hash) + READ_ENDPOINT_IP_FIELD_NUMBER; + hash = (53 * hash) + getReadEndpointIp().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo 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.networkmanagement.v1.RedisInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo 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.networkmanagement.v1.RedisInstanceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.RedisInstanceInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with a Cloud Redis Instance.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.RedisInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.RedisInstanceInfo) + com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.class, + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.RedisInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + primaryEndpointIp_ = ""; + readEndpointIp_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo build() { + com.google.cloud.networkmanagement.v1.RedisInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo buildPartial() { + com.google.cloud.networkmanagement.v1.RedisInstanceInfo result = + new com.google.cloud.networkmanagement.v1.RedisInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.RedisInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.primaryEndpointIp_ = primaryEndpointIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readEndpointIp_ = readEndpointIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.RedisInstanceInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.RedisInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RedisInstanceInfo other) { + if (other == com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrimaryEndpointIp().isEmpty()) { + primaryEndpointIp_ = other.primaryEndpointIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getReadEndpointIp().isEmpty()) { + readEndpointIp_ = other.readEndpointIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + primaryEndpointIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + readEndpointIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object primaryEndpointIp_ = ""; + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + public java.lang.String getPrimaryEndpointIp() { + java.lang.Object ref = primaryEndpointIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEndpointIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + public com.google.protobuf.ByteString getPrimaryEndpointIpBytes() { + java.lang.Object ref = primaryEndpointIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @param value The primaryEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEndpointIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryEndpointIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryEndpointIp() { + primaryEndpointIp_ = getDefaultInstance().getPrimaryEndpointIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @param value The bytes for primaryEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEndpointIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryEndpointIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object readEndpointIp_ = ""; + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + public java.lang.String getReadEndpointIp() { + java.lang.Object ref = readEndpointIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + readEndpointIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + public com.google.protobuf.ByteString getReadEndpointIpBytes() { + java.lang.Object ref = readEndpointIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @param value The readEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setReadEndpointIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + readEndpointIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearReadEndpointIp() { + readEndpointIp_ = getDefaultInstance().getReadEndpointIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @param value The bytes for readEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setReadEndpointIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpointIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.RedisInstanceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.RedisInstanceInfo) + private static final com.google.cloud.networkmanagement.v1.RedisInstanceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.RedisInstanceInfo(); + } + + public static com.google.cloud.networkmanagement.v1.RedisInstanceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedisInstanceInfo 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.networkmanagement.v1.RedisInstanceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfoOrBuilder.java new file mode 100644 index 000000000000..ee79d105a0a3 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RedisInstanceInfoOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface RedisInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.RedisInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + java.lang.String getPrimaryEndpointIp(); + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + com.google.protobuf.ByteString getPrimaryEndpointIpBytes(); + + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + java.lang.String getReadEndpointIp(); + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + com.google.protobuf.ByteString getReadEndpointIpBytes(); + + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequest.java index 53d7ca12b06e..506c9bf2896b 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -476,7 +480,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -499,7 +505,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -522,7 +530,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -544,7 +554,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -562,7 +574,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequestOrBuilder.java index d46ff03e8257..cfd32475d5fe 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RerunConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface RerunConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` *
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface RerunConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java index a4844ccd676b..24652e5ee5a2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java @@ -44,6 +44,7 @@ private RouteInfo() { routeScope_ = 0; displayName_ = ""; uri_ = ""; + region_ = ""; destIpRange_ = ""; nextHop_ = ""; networkUri_ = ""; @@ -54,6 +55,8 @@ private RouteInfo() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); nccHubUri_ = ""; nccSpokeUri_ = ""; + advertisedRouteSourceRouterUri_ = ""; + advertisedRouteNextHopUri_ = ""; } @java.lang.Override @@ -168,6 +171,17 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * POLICY_BASED = 7; */ POLICY_BASED(7), + /** + * + * + *
+     * Advertised route. Synthetic route which is used to transition from the
+     * StartFromPrivateNetwork state in Connectivity tests.
+     * 
+ * + * ADVERTISED = 101; + */ + ADVERTISED(101), UNRECOGNIZED(-1), ; @@ -252,6 +266,17 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * POLICY_BASED = 7; */ public static final int POLICY_BASED_VALUE = 7; + /** + * + * + *
+     * Advertised route. Synthetic route which is used to transition from the
+     * StartFromPrivateNetwork state in Connectivity tests.
+     * 
+ * + * ADVERTISED = 101; + */ + public static final int ADVERTISED_VALUE = 101; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -293,6 +318,8 @@ public static RouteType forNumber(int value) { return PEERING_DYNAMIC; case 7: return POLICY_BASED; + case 101: + return ADVERTISED; default: return null; } @@ -1063,10 +1090,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -1089,10 +1113,7 @@ public java.lang.String getUri() { * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -1112,6 +1133,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int REGION_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DEST_IP_RANGE_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -1722,6 +1794,150 @@ public com.google.protobuf.ByteString getNccSpokeUriBytes() { } } + public static final int ADVERTISED_ROUTE_SOURCE_ROUTER_URI_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertisedRouteSourceRouterUri_ = ""; + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + @java.lang.Override + public boolean hasAdvertisedRouteSourceRouterUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + @java.lang.Override + public java.lang.String getAdvertisedRouteSourceRouterUri() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + 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(); + advertisedRouteSourceRouterUri_ = s; + return s; + } + } + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteSourceRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISED_ROUTE_NEXT_HOP_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertisedRouteNextHopUri_ = ""; + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + @java.lang.Override + public boolean hasAdvertisedRouteNextHopUri() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + @java.lang.Override + public java.lang.String getAdvertisedRouteNextHopUri() { + java.lang.Object ref = advertisedRouteNextHopUri_; + 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(); + advertisedRouteNextHopUri_ = s; + return s; + } + } + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteNextHopUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1790,6 +2006,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nccSpokeUri_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 17, advertisedRouteSourceRouterUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, advertisedRouteNextHopUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, region_); + } getUnknownFields().writeTo(output); } @@ -1873,6 +2099,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nccSpokeUri_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 17, advertisedRouteSourceRouterUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(18, advertisedRouteNextHopUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, region_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1894,6 +2132,7 @@ public boolean equals(final java.lang.Object obj) { if (routeScope_ != other.routeScope_) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUri().equals(other.getUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!getDestIpRange().equals(other.getDestIpRange())) return false; if (!getNextHop().equals(other.getNextHop())) return false; if (!getNetworkUri().equals(other.getNetworkUri())) return false; @@ -1911,6 +2150,17 @@ public boolean equals(final java.lang.Object obj) { if (hasNccSpokeUri()) { if (!getNccSpokeUri().equals(other.getNccSpokeUri())) return false; } + if (hasAdvertisedRouteSourceRouterUri() != other.hasAdvertisedRouteSourceRouterUri()) + return false; + if (hasAdvertisedRouteSourceRouterUri()) { + if (!getAdvertisedRouteSourceRouterUri().equals(other.getAdvertisedRouteSourceRouterUri())) + return false; + } + if (hasAdvertisedRouteNextHopUri() != other.hasAdvertisedRouteNextHopUri()) return false; + if (hasAdvertisedRouteNextHopUri()) { + if (!getAdvertisedRouteNextHopUri().equals(other.getAdvertisedRouteNextHopUri())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1932,6 +2182,8 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDestIpRange().hashCode(); hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER; @@ -1966,6 +2218,14 @@ public int hashCode() { hash = (37 * hash) + NCC_SPOKE_URI_FIELD_NUMBER; hash = (53 * hash) + getNccSpokeUri().hashCode(); } + if (hasAdvertisedRouteSourceRouterUri()) { + hash = (37 * hash) + ADVERTISED_ROUTE_SOURCE_ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisedRouteSourceRouterUri().hashCode(); + } + if (hasAdvertisedRouteNextHopUri()) { + hash = (37 * hash) + ADVERTISED_ROUTE_NEXT_HOP_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisedRouteNextHopUri().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2110,6 +2370,7 @@ public Builder clear() { routeScope_ = 0; displayName_ = ""; uri_ = ""; + region_ = ""; destIpRange_ = ""; nextHop_ = ""; networkUri_ = ""; @@ -2121,6 +2382,8 @@ public Builder clear() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); nccHubUri_ = ""; nccSpokeUri_ = ""; + advertisedRouteSourceRouterUri_ = ""; + advertisedRouteNextHopUri_ = ""; return this; } @@ -2173,45 +2436,56 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.RouteInfo resul result.uri_ = uri_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.destIpRange_ = destIpRange_; + result.region_ = region_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.nextHop_ = nextHop_; + result.destIpRange_ = destIpRange_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.networkUri_ = networkUri_; + result.nextHop_ = nextHop_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.priority_ = priority_; + result.networkUri_ = networkUri_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { instanceTags_.makeImmutable(); result.instanceTags_ = instanceTags_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.srcIpRange_ = srcIpRange_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { destPortRanges_.makeImmutable(); result.destPortRanges_ = destPortRanges_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { srcPortRanges_.makeImmutable(); result.srcPortRanges_ = srcPortRanges_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { protocols_.makeImmutable(); result.protocols_ = protocols_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.nccHubUri_ = nccHubUri_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.nccSpokeUri_ = nccSpokeUri_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.advertisedRouteSourceRouterUri_ = advertisedRouteSourceRouterUri_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.advertisedRouteNextHopUri_ = advertisedRouteNextHopUri_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2280,19 +2554,24 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) bitField0_ |= 0x00000010; onChanged(); } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } if (!other.getDestIpRange().isEmpty()) { destIpRange_ = other.destIpRange_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getNextHop().isEmpty()) { nextHop_ = other.nextHop_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getNetworkUri().isEmpty()) { networkUri_ = other.networkUri_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.getPriority() != 0) { @@ -2301,7 +2580,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) if (!other.instanceTags_.isEmpty()) { if (instanceTags_.isEmpty()) { instanceTags_ = other.instanceTags_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } else { ensureInstanceTagsIsMutable(); instanceTags_.addAll(other.instanceTags_); @@ -2310,13 +2589,13 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) } if (!other.getSrcIpRange().isEmpty()) { srcIpRange_ = other.srcIpRange_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.destPortRanges_.isEmpty()) { if (destPortRanges_.isEmpty()) { destPortRanges_ = other.destPortRanges_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } else { ensureDestPortRangesIsMutable(); destPortRanges_.addAll(other.destPortRanges_); @@ -2326,7 +2605,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) if (!other.srcPortRanges_.isEmpty()) { if (srcPortRanges_.isEmpty()) { srcPortRanges_ = other.srcPortRanges_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } else { ensureSrcPortRangesIsMutable(); srcPortRanges_.addAll(other.srcPortRanges_); @@ -2336,7 +2615,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) if (!other.protocols_.isEmpty()) { if (protocols_.isEmpty()) { protocols_ = other.protocols_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } else { ensureProtocolsIsMutable(); protocols_.addAll(other.protocols_); @@ -2345,12 +2624,22 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.RouteInfo other) } if (other.hasNccHubUri()) { nccHubUri_ = other.nccHubUri_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasNccSpokeUri()) { nccSpokeUri_ = other.nccSpokeUri_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasAdvertisedRouteSourceRouterUri()) { + advertisedRouteSourceRouterUri_ = other.advertisedRouteSourceRouterUri_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasAdvertisedRouteNextHopUri()) { + advertisedRouteNextHopUri_ = other.advertisedRouteNextHopUri_; + bitField0_ |= 0x00040000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2394,25 +2683,25 @@ public Builder mergeFrom( case 26: { destIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 26 case 34: { nextHop_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 34 case 42: { networkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 42 case 48: { priority_ = input.readInt32(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 48 case 58: @@ -2437,7 +2726,7 @@ public Builder mergeFrom( case 82: { srcIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 82 case 90: @@ -2470,15 +2759,33 @@ public Builder mergeFrom( case 122: { nccHubUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 130: { nccSpokeUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 130 + case 138: + { + advertisedRouteSourceRouterUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 138 + case 146: + { + advertisedRouteNextHopUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 146 + case 154: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2886,10 +3193,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2911,10 +3215,7 @@ public java.lang.String getUri() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2936,10 +3237,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2960,10 +3258,7 @@ public Builder setUri(java.lang.String value) { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2980,10 +3275,7 @@ public Builder clearUri() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -3002,24 +3294,24 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object destIpRange_ = ""; + private java.lang.Object region_ = ""; /** * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @return The destIpRange. + * @return The region. */ - public java.lang.String getDestIpRange() { - java.lang.Object ref = destIpRange_; + public java.lang.String getRegion() { + java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - destIpRange_ = s; + region_ = s; return s; } else { return (java.lang.String) ref; @@ -3029,19 +3321,19 @@ public java.lang.String getDestIpRange() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @return The bytes for destIpRange. + * @return The bytes for region. */ - public com.google.protobuf.ByteString getDestIpRangeBytes() { - java.lang.Object ref = destIpRange_; + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destIpRange_ = b; + region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3051,19 +3343,19 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @param value The destIpRange to set. + * @param value The region to set. * @return This builder for chaining. */ - public Builder setDestIpRange(java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destIpRange_ = value; + region_ = value; bitField0_ |= 0x00000020; onChanged(); return this; @@ -3072,15 +3364,15 @@ public Builder setDestIpRange(java.lang.String value) { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * * @return This builder for chaining. */ - public Builder clearDestIpRange() { - destIpRange_ = getDefaultInstance().getDestIpRange(); + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; @@ -3089,43 +3381,43 @@ public Builder clearDestIpRange() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @param value The bytes for destIpRange to set. + * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - destIpRange_ = value; + region_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - private java.lang.Object nextHop_ = ""; + private java.lang.Object destIpRange_ = ""; /** * * *
-     * Next hop of the route.
+     * Destination IP range of the route.
      * 
* - * string next_hop = 4; + * string dest_ip_range = 3; * - * @return The nextHop. + * @return The destIpRange. */ - public java.lang.String getNextHop() { - java.lang.Object ref = nextHop_; + public java.lang.String getDestIpRange() { + java.lang.Object ref = destIpRange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - nextHop_ = s; + destIpRange_ = s; return s; } else { return (java.lang.String) ref; @@ -3135,10 +3427,116 @@ public java.lang.String getNextHop() { * * *
-     * Next hop of the route.
+     * Destination IP range of the route.
      * 
* - * string next_hop = 4; + * string dest_ip_range = 3; + * + * @return The bytes for destIpRange. + */ + public com.google.protobuf.ByteString getDestIpRangeBytes() { + java.lang.Object ref = destIpRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @param value The destIpRange to set. + * @return This builder for chaining. + */ + public Builder setDestIpRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destIpRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearDestIpRange() { + destIpRange_ = getDefaultInstance().getDestIpRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @param value The bytes for destIpRange to set. + * @return This builder for chaining. + */ + public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destIpRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object nextHop_ = ""; + /** + * + * + *
+     * Next hop of the route.
+     * 
+ * + * string next_hop = 4; + * + * @return The nextHop. + */ + public java.lang.String getNextHop() { + java.lang.Object ref = nextHop_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHop_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Next hop of the route.
+     * 
+ * + * string next_hop = 4; * * @return The bytes for nextHop. */ @@ -3170,7 +3568,7 @@ public Builder setNextHop(java.lang.String value) { throw new NullPointerException(); } nextHop_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3187,7 +3585,7 @@ public Builder setNextHop(java.lang.String value) { */ public Builder clearNextHop() { nextHop_ = getDefaultInstance().getNextHop(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3209,7 +3607,7 @@ public Builder setNextHopBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHop_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3276,7 +3674,7 @@ public Builder setNetworkUri(java.lang.String value) { throw new NullPointerException(); } networkUri_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3293,7 +3691,7 @@ public Builder setNetworkUri(java.lang.String value) { */ public Builder clearNetworkUri() { networkUri_ = getDefaultInstance().getNetworkUri(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3315,7 +3713,7 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); networkUri_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3351,7 +3749,7 @@ public int getPriority() { public Builder setPriority(int value) { priority_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3367,7 +3765,7 @@ public Builder setPriority(int value) { * @return This builder for chaining. */ public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); priority_ = 0; onChanged(); return this; @@ -3380,7 +3778,7 @@ private void ensureInstanceTagsIsMutable() { if (!instanceTags_.isModifiable()) { instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } /** * @@ -3460,7 +3858,7 @@ public Builder setInstanceTags(int index, java.lang.String value) { } ensureInstanceTagsIsMutable(); instanceTags_.set(index, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3482,7 +3880,7 @@ public Builder addInstanceTags(java.lang.String value) { } ensureInstanceTagsIsMutable(); instanceTags_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3501,7 +3899,7 @@ public Builder addInstanceTags(java.lang.String value) { public Builder addAllInstanceTags(java.lang.Iterable values) { ensureInstanceTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceTags_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3518,7 +3916,7 @@ public Builder addAllInstanceTags(java.lang.Iterable values) { */ public Builder clearInstanceTags() { instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -3542,7 +3940,7 @@ public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureInstanceTagsIsMutable(); instanceTags_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3609,7 +4007,7 @@ public Builder setSrcIpRange(java.lang.String value) { throw new NullPointerException(); } srcIpRange_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3626,7 +4024,7 @@ public Builder setSrcIpRange(java.lang.String value) { */ public Builder clearSrcIpRange() { srcIpRange_ = getDefaultInstance().getSrcIpRange(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3648,7 +4046,7 @@ public Builder setSrcIpRangeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); srcIpRange_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3660,7 +4058,7 @@ private void ensureDestPortRangesIsMutable() { if (!destPortRanges_.isModifiable()) { destPortRanges_ = new com.google.protobuf.LazyStringArrayList(destPortRanges_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } /** * @@ -3740,7 +4138,7 @@ public Builder setDestPortRanges(int index, java.lang.String value) { } ensureDestPortRangesIsMutable(); destPortRanges_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3762,7 +4160,7 @@ public Builder addDestPortRanges(java.lang.String value) { } ensureDestPortRangesIsMutable(); destPortRanges_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3781,7 +4179,7 @@ public Builder addDestPortRanges(java.lang.String value) { public Builder addAllDestPortRanges(java.lang.Iterable values) { ensureDestPortRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destPortRanges_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3798,7 +4196,7 @@ public Builder addAllDestPortRanges(java.lang.Iterable values) */ public Builder clearDestPortRanges() { destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; @@ -3822,7 +4220,7 @@ public Builder addDestPortRangesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureDestPortRangesIsMutable(); destPortRanges_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3834,7 +4232,7 @@ private void ensureSrcPortRangesIsMutable() { if (!srcPortRanges_.isModifiable()) { srcPortRanges_ = new com.google.protobuf.LazyStringArrayList(srcPortRanges_); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } /** * @@ -3914,7 +4312,7 @@ public Builder setSrcPortRanges(int index, java.lang.String value) { } ensureSrcPortRangesIsMutable(); srcPortRanges_.set(index, value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3936,7 +4334,7 @@ public Builder addSrcPortRanges(java.lang.String value) { } ensureSrcPortRangesIsMutable(); srcPortRanges_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3955,7 +4353,7 @@ public Builder addSrcPortRanges(java.lang.String value) { public Builder addAllSrcPortRanges(java.lang.Iterable values) { ensureSrcPortRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, srcPortRanges_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3972,7 +4370,7 @@ public Builder addAllSrcPortRanges(java.lang.Iterable values) */ public Builder clearSrcPortRanges() { srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); ; onChanged(); return this; @@ -3996,7 +4394,7 @@ public Builder addSrcPortRangesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSrcPortRangesIsMutable(); srcPortRanges_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4008,7 +4406,7 @@ private void ensureProtocolsIsMutable() { if (!protocols_.isModifiable()) { protocols_ = new com.google.protobuf.LazyStringArrayList(protocols_); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } /** * @@ -4088,7 +4486,7 @@ public Builder setProtocols(int index, java.lang.String value) { } ensureProtocolsIsMutable(); protocols_.set(index, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4110,7 +4508,7 @@ public Builder addProtocols(java.lang.String value) { } ensureProtocolsIsMutable(); protocols_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4129,7 +4527,7 @@ public Builder addProtocols(java.lang.String value) { public Builder addAllProtocols(java.lang.Iterable values) { ensureProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protocols_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4146,7 +4544,7 @@ public Builder addAllProtocols(java.lang.Iterable values) { */ public Builder clearProtocols() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); ; onChanged(); return this; @@ -4170,7 +4568,7 @@ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProtocolsIsMutable(); protocols_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4188,7 +4586,7 @@ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) { * @return Whether the nccHubUri field is set. */ public boolean hasNccHubUri() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4251,7 +4649,7 @@ public Builder setNccHubUri(java.lang.String value) { throw new NullPointerException(); } nccHubUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4268,7 +4666,7 @@ public Builder setNccHubUri(java.lang.String value) { */ public Builder clearNccHubUri() { nccHubUri_ = getDefaultInstance().getNccHubUri(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4290,7 +4688,7 @@ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nccHubUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4308,7 +4706,7 @@ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) { * @return Whether the nccSpokeUri field is set. */ public boolean hasNccSpokeUri() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4371,7 +4769,7 @@ public Builder setNccSpokeUri(java.lang.String value) { throw new NullPointerException(); } nccSpokeUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4388,7 +4786,7 @@ public Builder setNccSpokeUri(java.lang.String value) { */ public Builder clearNccSpokeUri() { nccSpokeUri_ = getDefaultInstance().getNccSpokeUri(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -4410,7 +4808,271 @@ public Builder setNccSpokeUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nccSpokeUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object advertisedRouteSourceRouterUri_ = ""; + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + public boolean hasAdvertisedRouteSourceRouterUri() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + public java.lang.String getAdvertisedRouteSourceRouterUri() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertisedRouteSourceRouterUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteSourceRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @param value The advertisedRouteSourceRouterUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteSourceRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertisedRouteSourceRouterUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdvertisedRouteSourceRouterUri() { + advertisedRouteSourceRouterUri_ = getDefaultInstance().getAdvertisedRouteSourceRouterUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @param value The bytes for advertisedRouteSourceRouterUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertisedRouteSourceRouterUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object advertisedRouteNextHopUri_ = ""; + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + public boolean hasAdvertisedRouteNextHopUri() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + public java.lang.String getAdvertisedRouteNextHopUri() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertisedRouteNextHopUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteNextHopUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @param value The advertisedRouteNextHopUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertisedRouteNextHopUri_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return This builder for chaining. + */ + public Builder clearAdvertisedRouteNextHopUri() { + advertisedRouteNextHopUri_ = getDefaultInstance().getAdvertisedRouteNextHopUri(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @param value The bytes for advertisedRouteNextHopUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteNextHopUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertisedRouteNextHopUri_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java index e2ff39f0f8c9..b348dad62ac9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java @@ -128,10 +128,7 @@ public interface RouteInfoOrBuilder * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -143,10 +140,7 @@ public interface RouteInfoOrBuilder * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -155,6 +149,31 @@ public interface RouteInfoOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + /** * * @@ -545,4 +564,90 @@ public interface RouteInfoOrBuilder * @return The bytes for nccSpokeUri. */ com.google.protobuf.ByteString getNccSpokeUriBytes(); + + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + boolean hasAdvertisedRouteSourceRouterUri(); + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + java.lang.String getAdvertisedRouteSourceRouterUri(); + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes(); + + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + boolean hasAdvertisedRouteNextHopUri(); + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + java.lang.String getAdvertisedRouteNextHopUri(); + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfo.java new file mode 100644 index 000000000000..7d3ef8ac6f1e --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfo.java @@ -0,0 +1,628 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * For display only. Metadata associated with the serverless network endpoint
+ * group backend.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ServerlessNegInfo} + */ +public final class ServerlessNegInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ServerlessNegInfo) + ServerlessNegInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerlessNegInfo.newBuilder() to construct. + private ServerlessNegInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerlessNegInfo() { + negUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerlessNegInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.class, + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder.class); + } + + public static final int NEG_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object negUri_ = ""; + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + @java.lang.Override + public java.lang.String getNegUri() { + java.lang.Object ref = negUri_; + 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(); + negUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNegUriBytes() { + java.lang.Object ref = negUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(negUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, negUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(negUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, negUri_); + } + 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.networkmanagement.v1.ServerlessNegInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ServerlessNegInfo other = + (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) obj; + + if (!getNegUri().equals(other.getNegUri())) 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) + NEG_URI_FIELD_NUMBER; + hash = (53 * hash) + getNegUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo 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.networkmanagement.v1.ServerlessNegInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo 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.networkmanagement.v1.ServerlessNegInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.ServerlessNegInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with the serverless network endpoint
+   * group backend.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ServerlessNegInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ServerlessNegInfo) + com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.class, + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.ServerlessNegInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + negUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo build() { + com.google.cloud.networkmanagement.v1.ServerlessNegInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo buildPartial() { + com.google.cloud.networkmanagement.v1.ServerlessNegInfo result = + new com.google.cloud.networkmanagement.v1.ServerlessNegInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.ServerlessNegInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.negUri_ = negUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.ServerlessNegInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.ServerlessNegInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ServerlessNegInfo other) { + if (other == com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance()) + return this; + if (!other.getNegUri().isEmpty()) { + negUri_ = other.negUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + negUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object negUri_ = ""; + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + public java.lang.String getNegUri() { + java.lang.Object ref = negUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + public com.google.protobuf.ByteString getNegUriBytes() { + java.lang.Object ref = negUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @param value The negUri to set. + * @return This builder for chaining. + */ + public Builder setNegUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + negUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearNegUri() { + negUri_ = getDefaultInstance().getNegUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @param value The bytes for negUri to set. + * @return This builder for chaining. + */ + public Builder setNegUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + negUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ServerlessNegInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ServerlessNegInfo) + private static final com.google.cloud.networkmanagement.v1.ServerlessNegInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ServerlessNegInfo(); + } + + public static com.google.cloud.networkmanagement.v1.ServerlessNegInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerlessNegInfo 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.networkmanagement.v1.ServerlessNegInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfoOrBuilder.java new file mode 100644 index 000000000000..dccd174fafbc --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ServerlessNegInfoOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface ServerlessNegInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ServerlessNegInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + java.lang.String getNegUri(); + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + com.google.protobuf.ByteString getNegUriBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java index 770ea3f579a1..60f287f0c4a7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java @@ -155,6 +155,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_CLOUD_SQL_INSTANCE = 22; */ START_FROM_CLOUD_SQL_INSTANCE(22), + /** + * + * + *
+     * Initial state: packet originating from a Redis instance.
+     * A RedisInstanceInfo is populated with starting instance information.
+     * 
+ * + * START_FROM_REDIS_INSTANCE = 32; + */ + START_FROM_REDIS_INSTANCE(32), + /** + * + * + *
+     * Initial state: packet originating from a Redis Cluster.
+     * A RedisClusterInfo is populated with starting Cluster information.
+     * 
+ * + * START_FROM_REDIS_CLUSTER = 33; + */ + START_FROM_REDIS_CLUSTER(33), /** * * @@ -211,6 +233,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_PSC_PUBLISHED_SERVICE = 30; */ START_FROM_PSC_PUBLISHED_SERVICE(30), + /** + * + * + *
+     * Initial state: packet originating from a serverless network endpoint
+     * group backend. Used only for return traces.
+     * The serverless_neg information is populated.
+     * 
+ * + * START_FROM_SERVERLESS_NEG = 31; + */ + START_FROM_SERVERLESS_NEG(31), /** * * @@ -488,6 +522,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_CLOUD_SQL_INSTANCE = 22; */ public static final int START_FROM_CLOUD_SQL_INSTANCE_VALUE = 22; + /** + * + * + *
+     * Initial state: packet originating from a Redis instance.
+     * A RedisInstanceInfo is populated with starting instance information.
+     * 
+ * + * START_FROM_REDIS_INSTANCE = 32; + */ + public static final int START_FROM_REDIS_INSTANCE_VALUE = 32; + /** + * + * + *
+     * Initial state: packet originating from a Redis Cluster.
+     * A RedisClusterInfo is populated with starting Cluster information.
+     * 
+ * + * START_FROM_REDIS_CLUSTER = 33; + */ + public static final int START_FROM_REDIS_CLUSTER_VALUE = 33; /** * * @@ -544,6 +600,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_PSC_PUBLISHED_SERVICE = 30; */ public static final int START_FROM_PSC_PUBLISHED_SERVICE_VALUE = 30; + /** + * + * + *
+     * Initial state: packet originating from a serverless network endpoint
+     * group backend. Used only for return traces.
+     * The serverless_neg information is populated.
+     * 
+ * + * START_FROM_SERVERLESS_NEG = 31; + */ + public static final int START_FROM_SERVERLESS_NEG_VALUE = 31; /** * * @@ -777,6 +845,10 @@ public static State forNumber(int value) { return START_FROM_GKE_MASTER; case 22: return START_FROM_CLOUD_SQL_INSTANCE; + case 32: + return START_FROM_REDIS_INSTANCE; + case 33: + return START_FROM_REDIS_CLUSTER; case 23: return START_FROM_CLOUD_FUNCTION; case 25: @@ -787,6 +859,8 @@ public static State forNumber(int value) { return START_FROM_STORAGE_BUCKET; case 30: return START_FROM_PSC_PUBLISHED_SERVICE; + case 31: + return START_FROM_SERVERLESS_NEG; case 4: return APPLY_INGRESS_FIREWALL_RULE; case 5: @@ -905,6 +979,8 @@ public enum StepInfoCase NETWORK(17), GKE_MASTER(18), CLOUD_SQL_INSTANCE(19), + REDIS_INSTANCE(30), + REDIS_CLUSTER(31), CLOUD_FUNCTION(20), APP_ENGINE_VERSION(22), CLOUD_RUN_REVISION(23), @@ -912,6 +988,7 @@ public enum StepInfoCase PROXY_CONNECTION(26), LOAD_BALANCER_BACKEND_INFO(27), STORAGE_BUCKET(28), + SERVERLESS_NEG(29), STEPINFO_NOT_SET(0); private final int value; @@ -964,6 +1041,10 @@ public static StepInfoCase forNumber(int value) { return GKE_MASTER; case 19: return CLOUD_SQL_INSTANCE; + case 30: + return REDIS_INSTANCE; + case 31: + return REDIS_CLUSTER; case 20: return CLOUD_FUNCTION; case 22: @@ -978,6 +1059,8 @@ public static StepInfoCase forNumber(int value) { return LOAD_BALANCER_BACKEND_INFO; case 28: return STORAGE_BUCKET; + case 29: + return SERVERLESS_NEG; case 0: return STEPINFO_NOT_SET; default: @@ -1838,7 +1921,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -1859,7 +1942,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return The loadBalancer. */ @java.lang.Override @@ -2046,6 +2129,110 @@ public com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo getCloudSqlIns return com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfo.getDefaultInstance(); } + public static final int REDIS_INSTANCE_FIELD_NUMBER = 30; + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * + * @return Whether the redisInstance field is set. + */ + @java.lang.Override + public boolean hasRedisInstance() { + return stepInfoCase_ == 30; + } + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * + * @return The redisInstance. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo getRedisInstance() { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder + getRedisInstanceOrBuilder() { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); + } + + public static final int REDIS_CLUSTER_FIELD_NUMBER = 31; + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + @java.lang.Override + public boolean hasRedisCluster() { + return stepInfoCase_ == 31; + } + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfo getRedisCluster() { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder + getRedisClusterOrBuilder() { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 20; /** * @@ -2416,6 +2603,61 @@ public com.google.cloud.networkmanagement.v1.StorageBucketInfo getStorageBucket( return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); } + public static final int SERVERLESS_NEG_FIELD_NUMBER = 29; + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + @java.lang.Override + public boolean hasServerlessNeg() { + return stepInfoCase_ == 29; + } + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo getServerlessNeg() { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder + getServerlessNegOrBuilder() { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2519,6 +2761,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stepInfoCase_ == 28) { output.writeMessage(28, (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_); } + if (stepInfoCase_ == 29) { + output.writeMessage(29, (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_); + } + if (stepInfoCase_ == 30) { + output.writeMessage(30, (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_); + } + if (stepInfoCase_ == 31) { + output.writeMessage(31, (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -2660,6 +2911,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_); } + if (stepInfoCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_); + } + if (stepInfoCase_ == 30) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_); + } + if (stepInfoCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2733,6 +2999,12 @@ public boolean equals(final java.lang.Object obj) { case 19: if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false; break; + case 30: + if (!getRedisInstance().equals(other.getRedisInstance())) return false; + break; + case 31: + if (!getRedisCluster().equals(other.getRedisCluster())) return false; + break; case 20: if (!getCloudFunction().equals(other.getCloudFunction())) return false; break; @@ -2754,6 +3026,9 @@ public boolean equals(final java.lang.Object obj) { case 28: if (!getStorageBucket().equals(other.getStorageBucket())) return false; break; + case 29: + if (!getServerlessNeg().equals(other.getServerlessNeg())) return false; + break; case 0: default: } @@ -2845,6 +3120,14 @@ public int hashCode() { hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlInstance().hashCode(); break; + case 30: + hash = (37 * hash) + REDIS_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getRedisInstance().hashCode(); + break; + case 31: + hash = (37 * hash) + REDIS_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getRedisCluster().hashCode(); + break; case 20: hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -2873,6 +3156,10 @@ public int hashCode() { hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getStorageBucket().hashCode(); break; + case 29: + hash = (37 * hash) + SERVERLESS_NEG_FIELD_NUMBER; + hash = (53 * hash) + getServerlessNeg().hashCode(); + break; case 0: default: } @@ -3071,6 +3358,12 @@ public Builder clear() { if (cloudSqlInstanceBuilder_ != null) { cloudSqlInstanceBuilder_.clear(); } + if (redisInstanceBuilder_ != null) { + redisInstanceBuilder_.clear(); + } + if (redisClusterBuilder_ != null) { + redisClusterBuilder_.clear(); + } if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.clear(); } @@ -3092,6 +3385,9 @@ public Builder clear() { if (storageBucketBuilder_ != null) { storageBucketBuilder_.clear(); } + if (serverlessNegBuilder_ != null) { + serverlessNegBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -3199,6 +3495,12 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 19 && cloudSqlInstanceBuilder_ != null) { result.stepInfo_ = cloudSqlInstanceBuilder_.build(); } + if (stepInfoCase_ == 30 && redisInstanceBuilder_ != null) { + result.stepInfo_ = redisInstanceBuilder_.build(); + } + if (stepInfoCase_ == 31 && redisClusterBuilder_ != null) { + result.stepInfo_ = redisClusterBuilder_.build(); + } if (stepInfoCase_ == 20 && cloudFunctionBuilder_ != null) { result.stepInfo_ = cloudFunctionBuilder_.build(); } @@ -3220,6 +3522,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 28 && storageBucketBuilder_ != null) { result.stepInfo_ = storageBucketBuilder_.build(); } + if (stepInfoCase_ == 29 && serverlessNegBuilder_ != null) { + result.stepInfo_ = serverlessNegBuilder_.build(); + } } @java.lang.Override @@ -3369,6 +3674,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeCloudSqlInstance(other.getCloudSqlInstance()); break; } + case REDIS_INSTANCE: + { + mergeRedisInstance(other.getRedisInstance()); + break; + } + case REDIS_CLUSTER: + { + mergeRedisCluster(other.getRedisCluster()); + break; + } case CLOUD_FUNCTION: { mergeCloudFunction(other.getCloudFunction()); @@ -3404,6 +3719,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeStorageBucket(other.getStorageBucket()); break; } + case SERVERLESS_NEG: + { + mergeServerlessNeg(other.getServerlessNeg()); + break; + } case STEPINFO_NOT_SET: { break; @@ -3607,6 +3927,24 @@ public Builder mergeFrom( stepInfoCase_ = 28; break; } // case 226 + case 234: + { + input.readMessage(getServerlessNegFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 29; + break; + } // case 234 + case 242: + { + input.readMessage(getRedisInstanceFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 30; + break; + } // case 242 + case 250: + { + input.readMessage(getRedisClusterFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 31; + break; + } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6776,7 +7114,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -6797,7 +7135,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return The loadBalancer. */ @java.lang.Override @@ -7645,110 +7983,110 @@ public Builder clearCloudSqlInstance() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.CloudFunctionInfo, - com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder, - com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder> - cloudFunctionBuilder_; + com.google.cloud.networkmanagement.v1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder> + redisInstanceBuilder_; /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; * - * @return Whether the cloudFunction field is set. + * @return Whether the redisInstance field is set. */ @java.lang.Override - public boolean hasCloudFunction() { - return stepInfoCase_ == 20; + public boolean hasRedisInstance() { + return stepInfoCase_ == 30; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; * - * @return The cloudFunction. + * @return The redisInstance. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.CloudFunctionInfo getCloudFunction() { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20) { - return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_; + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo getRedisInstance() { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_; } - return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); } else { - if (stepInfoCase_ == 20) { - return cloudFunctionBuilder_.getMessage(); + if (stepInfoCase_ == 30) { + return redisInstanceBuilder_.getMessage(); } - return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); } } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ - public Builder setCloudFunction(com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) { - if (cloudFunctionBuilder_ == null) { + public Builder setRedisInstance(com.google.cloud.networkmanagement.v1.RedisInstanceInfo value) { + if (redisInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stepInfo_ = value; onChanged(); } else { - cloudFunctionBuilder_.setMessage(value); + redisInstanceBuilder_.setMessage(value); } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ - public Builder setCloudFunction( - com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder builderForValue) { - if (cloudFunctionBuilder_ == null) { + public Builder setRedisInstance( + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder builderForValue) { + if (redisInstanceBuilder_ == null) { stepInfo_ = builderForValue.build(); onChanged(); } else { - cloudFunctionBuilder_.setMessage(builderForValue.build()); + redisInstanceBuilder_.setMessage(builderForValue.build()); } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ - public Builder mergeCloudFunction( - com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20 + public Builder mergeRedisInstance( + com.google.cloud.networkmanagement.v1.RedisInstanceInfo value) { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30 && stepInfo_ - != com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance()) { + != com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance()) { stepInfo_ = - com.google.cloud.networkmanagement.v1.CloudFunctionInfo.newBuilder( - (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_) + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_) .mergeFrom(value) .buildPartial(); } else { @@ -7756,37 +8094,37 @@ public Builder mergeCloudFunction( } onChanged(); } else { - if (stepInfoCase_ == 20) { - cloudFunctionBuilder_.mergeFrom(value); + if (stepInfoCase_ == 30) { + redisInstanceBuilder_.mergeFrom(value); } else { - cloudFunctionBuilder_.setMessage(value); + redisInstanceBuilder_.setMessage(value); } } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ - public Builder clearCloudFunction() { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20) { + public Builder clearRedisInstance() { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30) { stepInfoCase_ = 0; stepInfo_ = null; onChanged(); } } else { - if (stepInfoCase_ == 20) { + if (stepInfoCase_ == 30) { stepInfoCase_ = 0; stepInfo_ = null; } - cloudFunctionBuilder_.clear(); + redisInstanceBuilder_.clear(); } return this; } @@ -7794,54 +8132,478 @@ public Builder clearCloudFunction() { * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ - public com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder - getCloudFunctionBuilder() { - return getCloudFunctionFieldBuilder().getBuilder(); + public com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder + getRedisInstanceBuilder() { + return getRedisInstanceFieldBuilder().getBuilder(); } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder - getCloudFunctionOrBuilder() { - if ((stepInfoCase_ == 20) && (cloudFunctionBuilder_ != null)) { - return cloudFunctionBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder + getRedisInstanceOrBuilder() { + if ((stepInfoCase_ == 30) && (redisInstanceBuilder_ != null)) { + return redisInstanceBuilder_.getMessageOrBuilder(); } else { - if (stepInfoCase_ == 20) { - return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_; + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_; } - return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); } } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.CloudFunctionInfo, - com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder, - com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder> - getCloudFunctionFieldBuilder() { - if (cloudFunctionBuilder_ == null) { - if (!(stepInfoCase_ == 20)) { - stepInfo_ = com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); - } + com.google.cloud.networkmanagement.v1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder> + getRedisInstanceFieldBuilder() { + if (redisInstanceBuilder_ == null) { + if (!(stepInfoCase_ == 30)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.RedisInstanceInfo.getDefaultInstance(); + } + redisInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.RedisInstanceInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 30; + onChanged(); + return redisInstanceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder> + redisClusterBuilder_; + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + @java.lang.Override + public boolean hasRedisCluster() { + return stepInfoCase_ == 31; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfo getRedisCluster() { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 31) { + return redisClusterBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + public Builder setRedisCluster(com.google.cloud.networkmanagement.v1.RedisClusterInfo value) { + if (redisClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + redisClusterBuilder_.setMessage(value); + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + public Builder setRedisCluster( + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder builderForValue) { + if (redisClusterBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + redisClusterBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + public Builder mergeRedisCluster(com.google.cloud.networkmanagement.v1.RedisClusterInfo value) { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.RedisClusterInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 31) { + redisClusterBuilder_.mergeFrom(value); + } else { + redisClusterBuilder_.setMessage(value); + } + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + public Builder clearRedisCluster() { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 31) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + redisClusterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + public com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder getRedisClusterBuilder() { + return getRedisClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder + getRedisClusterOrBuilder() { + if ((stepInfoCase_ == 31) && (redisClusterBuilder_ != null)) { + return redisClusterBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder> + getRedisClusterFieldBuilder() { + if (redisClusterBuilder_ == null) { + if (!(stepInfoCase_ == 31)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.RedisClusterInfo.getDefaultInstance(); + } + redisClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.RedisClusterInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 31; + onChanged(); + return redisClusterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.CloudFunctionInfo, + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder, + com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder> + cloudFunctionBuilder_; + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * + * @return Whether the cloudFunction field is set. + */ + @java.lang.Override + public boolean hasCloudFunction() { + return stepInfoCase_ == 20; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + * + * @return The cloudFunction. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudFunctionInfo getCloudFunction() { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20) { + return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 20) { + return cloudFunctionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + public Builder setCloudFunction(com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) { + if (cloudFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + cloudFunctionBuilder_.setMessage(value); + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + public Builder setCloudFunction( + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder builderForValue) { + if (cloudFunctionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + cloudFunctionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + public Builder mergeCloudFunction( + com.google.cloud.networkmanagement.v1.CloudFunctionInfo value) { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 20) { + cloudFunctionBuilder_.mergeFrom(value); + } else { + cloudFunctionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + public Builder clearCloudFunction() { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 20) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + cloudFunctionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + public com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder + getCloudFunctionBuilder() { + return getCloudFunctionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder + getCloudFunctionOrBuilder() { + if ((stepInfoCase_ == 20) && (cloudFunctionBuilder_ != null)) { + return cloudFunctionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 20) { + return (com.google.cloud.networkmanagement.v1.CloudFunctionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1.CloudFunctionInfo cloud_function = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.CloudFunctionInfo, + com.google.cloud.networkmanagement.v1.CloudFunctionInfo.Builder, + com.google.cloud.networkmanagement.v1.CloudFunctionInfoOrBuilder> + getCloudFunctionFieldBuilder() { + if (cloudFunctionBuilder_ == null) { + if (!(stepInfoCase_ == 20)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.CloudFunctionInfo.getDefaultInstance(); + } cloudFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1.CloudFunctionInfo, @@ -9160,6 +9922,228 @@ public Builder clearStorageBucket() { return storageBucketBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder> + serverlessNegBuilder_; + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + @java.lang.Override + public boolean hasServerlessNeg() { + return stepInfoCase_ == 29; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo getServerlessNeg() { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 29) { + return serverlessNegBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder setServerlessNeg(com.google.cloud.networkmanagement.v1.ServerlessNegInfo value) { + if (serverlessNegBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + serverlessNegBuilder_.setMessage(value); + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder setServerlessNeg( + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder builderForValue) { + if (serverlessNegBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + serverlessNegBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder mergeServerlessNeg( + com.google.cloud.networkmanagement.v1.ServerlessNegInfo value) { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 29) { + serverlessNegBuilder_.mergeFrom(value); + } else { + serverlessNegBuilder_.setMessage(value); + } + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder clearServerlessNeg() { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 29) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + serverlessNegBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + public com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder + getServerlessNegBuilder() { + return getServerlessNegFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder + getServerlessNegOrBuilder() { + if ((stepInfoCase_ == 29) && (serverlessNegBuilder_ != null)) { + return serverlessNegBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder> + getServerlessNegFieldBuilder() { + if (serverlessNegBuilder_ == null) { + if (!(stepInfoCase_ == 29)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.ServerlessNegInfo.getDefaultInstance(); + } + serverlessNegBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.ServerlessNegInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 29; + onChanged(); + return serverlessNegBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java index d7ac27b13891..d1a11c30da3e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java @@ -589,7 +589,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -607,7 +607,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=241 + * google/cloud/networkmanagement/v1/trace.proto;l=254 * @return The loadBalancer. */ @java.lang.Deprecated @@ -733,6 +733,76 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1.CloudSQLInstanceInfoOrBuilder getCloudSqlInstanceOrBuilder(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * + * @return Whether the redisInstance field is set. + */ + boolean hasRedisInstance(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + * + * @return The redisInstance. + */ + com.google.cloud.networkmanagement.v1.RedisInstanceInfo getRedisInstance(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisInstanceInfo redis_instance = 30; + */ + com.google.cloud.networkmanagement.v1.RedisInstanceInfoOrBuilder getRedisInstanceOrBuilder(); + + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + boolean hasRedisCluster(); + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + com.google.cloud.networkmanagement.v1.RedisClusterInfo getRedisCluster(); + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1.RedisClusterInfo redis_cluster = 31; + */ + com.google.cloud.networkmanagement.v1.RedisClusterInfoOrBuilder getRedisClusterOrBuilder(); + /** * * @@ -987,5 +1057,43 @@ public interface StepOrBuilder */ com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder getStorageBucketOrBuilder(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + boolean hasServerlessNeg(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + com.google.cloud.networkmanagement.v1.ServerlessNegInfo getServerlessNeg(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1.ServerlessNegInfo serverless_neg = 29; + */ + com.google.cloud.networkmanagement.v1.ServerlessNegInfoOrBuilder getServerlessNegOrBuilder(); + com.google.cloud.networkmanagement.v1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java index 8f1c5fd09529..644a01e3b392 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java @@ -88,7 +88,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/cloud/networkmanagement/v1/trace.prot" + "o\032\037google/protobuf/timestamp.proto\032\027goog" + "le/rpc/status.proto\"\270\006\n\020ConnectivityTest" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013description\030\002 \001(\t" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\023\n\013description\030\002 \001(\t" + "\022@\n\006source\030\003 \001(\0132+.google.cloud.networkm" + "anagement.v1.EndpointB\003\340A\002\022E\n\013destinatio" + "n\030\004 \001(\0132+.google.cloud.networkmanagement" @@ -108,7 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t:\0028\001:t\352Aq\n1networkmanagement.googlea" + "pis.com/ConnectivityTest\022.google.cloud.net" - + "workmanagement.v1.ProbingDetails.EdgeLoc" - + "ation\032)\n\014EdgeLocation\022\031\n\021metropolitan_ar" - + "ea\030\001 \001(\t\"\200\001\n\rProbingResult\022\036\n\032PROBING_RE" - + "SULT_UNSPECIFIED\020\000\022\r\n\tREACHABLE\020\001\022\017\n\013UNR" - + "EACHABLE\020\002\022\035\n\031REACHABILITY_INCONSISTENT\020" - + "\003\022\020\n\014UNDETERMINED\020\004\"g\n\021ProbingAbortCause" - + "\022#\n\037PROBING_ABORT_CAUSE_UNSPECIFIED\020\000\022\025\n" - + "\021PERMISSION_DENIED\020\001\022\026\n\022NO_SOURCE_LOCATI" - + "ON\020\002B\375\001\n%com.google.cloud.networkmanagem" - + "ent.v1B\016TestOuterClassP\001ZScloud.google.c" - + "om/go/networkmanagement/apiv1/networkman" - + "agementpb;networkmanagementpb\252\002!Google.C" - + "loud.NetworkManagement.V1\312\002!Google\\Cloud" - + "\\NetworkManagement\\V1\352\002$Google::Cloud::N" - + "etworkManagement::V1b\006proto3" + + "\032\n\022cloud_sql_instance\030\010 \001(\t\022\026\n\016redis_ins" + + "tance\030\021 \001(\t\022\025\n\rredis_cluster\030\022 \001(\t\022Y\n\016cl" + + "oud_function\030\n \001(\0132A.google.cloud.networ" + + "kmanagement.v1.Endpoint.CloudFunctionEnd" + + "point\022`\n\022app_engine_version\030\013 \001(\0132D.goog" + + "le.cloud.networkmanagement.v1.Endpoint.A" + + "ppEngineVersionEndpoint\022`\n\022cloud_run_rev" + + "ision\030\014 \001(\0132D.google.cloud.networkmanage" + + "ment.v1.Endpoint.CloudRunRevisionEndpoin" + + "t\022\017\n\007network\030\004 \001(\t\022M\n\014network_type\030\005 \001(\016" + + "27.google.cloud.networkmanagement.v1.End" + + "point.NetworkType\022\022\n\nproject_id\030\006 \001(\t\032$\n" + + "\025CloudFunctionEndpoint\022\013\n\003uri\030\001 \001(\t\032\'\n\030A" + + "ppEngineVersionEndpoint\022\013\n\003uri\030\001 \001(\t\032\'\n\030" + + "CloudRunRevisionEndpoint\022\013\n\003uri\030\001 \001(\t\"Q\n" + + "\013NetworkType\022\034\n\030NETWORK_TYPE_UNSPECIFIED" + + "\020\000\022\017\n\013GCP_NETWORK\020\001\022\023\n\017NON_GCP_NETWORK\020\002" + + "\"y\n\024ForwardingRuleTarget\022&\n\"FORWARDING_R" + + "ULE_TARGET_UNSPECIFIED\020\000\022\014\n\010INSTANCE\020\001\022\021" + + "\n\rLOAD_BALANCER\020\002\022\017\n\013VPN_GATEWAY\020\003\022\007\n\003PS" + + "C\020\004B\031\n\027_forwarding_rule_targetB\023\n\021_load_" + + "balancer_idB\025\n\023_load_balancer_type\"\325\002\n\023R" + + "eachabilityDetails\022M\n\006result\030\001 \001(\0162=.goo" + + "gle.cloud.networkmanagement.v1.Reachabil" + + "ityDetails.Result\022/\n\013verify_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022!\n\005error\030\003 \001(" + + "\0132\022.google.rpc.Status\0228\n\006traces\030\005 \003(\0132(." + + "google.cloud.networkmanagement.v1.Trace\"" + + "a\n\006Result\022\026\n\022RESULT_UNSPECIFIED\020\000\022\r\n\tREA" + + "CHABLE\020\001\022\017\n\013UNREACHABLE\020\002\022\r\n\tAMBIGUOUS\020\004" + + "\022\020\n\014UNDETERMINED\020\005\"<\n\021LatencyPercentile\022" + + "\017\n\007percent\030\001 \001(\005\022\026\n\016latency_micros\030\002 \001(\003" + + "\"h\n\023LatencyDistribution\022Q\n\023latency_perce" + + "ntiles\030\001 \003(\01324.google.cloud.networkmanag" + + "ement.v1.LatencyPercentile\"\336\006\n\016ProbingDe" + + "tails\022O\n\006result\030\001 \001(\0162?.google.cloud.net" + + "workmanagement.v1.ProbingDetails.Probing" + + "Result\022/\n\013verify_time\030\002 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022!\n\005error\030\003 \001(\0132\022.google." + + "rpc.Status\022X\n\013abort_cause\030\004 \001(\0162C.google" + + ".cloud.networkmanagement.v1.ProbingDetai" + + "ls.ProbingAbortCause\022\030\n\020sent_probe_count" + + "\030\005 \001(\005\022\036\n\026successful_probe_count\030\006 \001(\005\022F" + + "\n\rendpoint_info\030\007 \001(\0132/.google.cloud.net" + + "workmanagement.v1.EndpointInfo\022O\n\017probin" + + "g_latency\030\010 \001(\01326.google.cloud.networkma" + + "nagement.v1.LatencyDistribution\022c\n\033desti" + + "nation_egress_location\030\t \001(\0132>.google.cl" + + "oud.networkmanagement.v1.ProbingDetails." + + "EdgeLocation\032)\n\014EdgeLocation\022\031\n\021metropol" + + "itan_area\030\001 \001(\t\"\200\001\n\rProbingResult\022\036\n\032PRO" + + "BING_RESULT_UNSPECIFIED\020\000\022\r\n\tREACHABLE\020\001" + + "\022\017\n\013UNREACHABLE\020\002\022\035\n\031REACHABILITY_INCONS" + + "ISTENT\020\003\022\020\n\014UNDETERMINED\020\004\"g\n\021ProbingAbo" + + "rtCause\022#\n\037PROBING_ABORT_CAUSE_UNSPECIFI" + + "ED\020\000\022\025\n\021PERMISSION_DENIED\020\001\022\026\n\022NO_SOURCE" + + "_LOCATION\020\002B\375\001\n%com.google.cloud.network" + + "management.v1B\016TestOuterClassP\001ZScloud.g" + + "oogle.com/go/networkmanagement/apiv1/net" + + "workmanagementpb;networkmanagementpb\252\002!G" + + "oogle.Cloud.NetworkManagement.V1\312\002!Googl" + + "e\\Cloud\\NetworkManagement\\V1\352\002$Google::C" + + "loud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -235,6 +236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LoadBalancerType", "GkeMasterCluster", "CloudSqlInstance", + "RedisInstance", + "RedisCluster", "CloudFunction", "AppEngineVersion", "CloudRunRevision", diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java index af14ea605690..6c9769fce648 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java @@ -104,6 +104,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_CloudSQLInstanceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,6 +144,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -152,7 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dpoint_info\030\001 \001(\0132/.google.cloud.network" + "management.v1.EndpointInfo\0226\n\005steps\030\002 \003(" + "\0132\'.google.cloud.networkmanagement.v1.St" - + "ep\022\030\n\020forward_trace_id\030\004 \001(\005\"\340\025\n\004Step\022\023\n" + + "ep\022\030\n\020forward_trace_id\030\004 \001(\005\"\252\030\n\004Step\022\023\n" + "\013description\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.goog" + "le.cloud.networkmanagement.v1.Step.State" + "\022\023\n\013causes_drop\030\003 \001(\010\022\022\n\nproject_id\030\004 \001(" @@ -186,326 +198,384 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01320.google.cloud.networkmanagement.v1" + ".GKEMasterInfoH\000\022U\n\022cloud_sql_instance\030\023" + " \001(\01327.google.cloud.networkmanagement.v1" - + ".CloudSQLInstanceInfoH\000\022N\n\016cloud_functio" - + "n\030\024 \001(\01324.google.cloud.networkmanagement" - + ".v1.CloudFunctionInfoH\000\022U\n\022app_engine_ve" - + "rsion\030\026 \001(\01327.google.cloud.networkmanage" - + "ment.v1.AppEngineVersionInfoH\000\022U\n\022cloud_" - + "run_revision\030\027 \001(\01327.google.cloud.networ" - + "kmanagement.v1.CloudRunRevisionInfoH\000\0229\n" - + "\003nat\030\031 \001(\0132*.google.cloud.networkmanagem" - + "ent.v1.NatInfoH\000\022R\n\020proxy_connection\030\032 \001" - + "(\01326.google.cloud.networkmanagement.v1.P" - + "roxyConnectionInfoH\000\022`\n\032load_balancer_ba" - + "ckend_info\030\033 \001(\0132:.google.cloud.networkm" - + "anagement.v1.LoadBalancerBackendInfoH\000\022N" - + "\n\016storage_bucket\030\034 \001(\01324.google.cloud.ne" - + "tworkmanagement.v1.StorageBucketInfoH\000\"\311" - + "\006\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\027\n\023START" - + "_FROM_INSTANCE\020\001\022\027\n\023START_FROM_INTERNET\020" - + "\002\022\035\n\031START_FROM_GOOGLE_SERVICE\020\033\022\036\n\032STAR" - + "T_FROM_PRIVATE_NETWORK\020\003\022\031\n\025START_FROM_G" - + "KE_MASTER\020\025\022!\n\035START_FROM_CLOUD_SQL_INST" - + "ANCE\020\026\022\035\n\031START_FROM_CLOUD_FUNCTION\020\027\022!\n" - + "\035START_FROM_APP_ENGINE_VERSION\020\031\022!\n\035STAR" - + "T_FROM_CLOUD_RUN_REVISION\020\032\022\035\n\031START_FRO" - + "M_STORAGE_BUCKET\020\035\022$\n START_FROM_PSC_PUB" - + "LISHED_SERVICE\020\036\022\037\n\033APPLY_INGRESS_FIREWA" - + "LL_RULE\020\004\022\036\n\032APPLY_EGRESS_FIREWALL_RULE\020" - + "\005\022\017\n\013APPLY_ROUTE\020\006\022\031\n\025APPLY_FORWARDING_R" - + "ULE\020\007\022!\n\035ANALYZE_LOAD_BALANCER_BACKEND\020\034" - + "\022\025\n\021SPOOFING_APPROVED\020\010\022\026\n\022ARRIVE_AT_INS" - + "TANCE\020\t\022(\n ARRIVE_AT_INTERNAL_LOAD_BALAN" - + "CER\020\n\032\002\010\001\022(\n ARRIVE_AT_EXTERNAL_LOAD_BAL" - + "ANCER\020\013\032\002\010\001\022\031\n\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030" - + "\n\024ARRIVE_AT_VPN_TUNNEL\020\r\022\033\n\027ARRIVE_AT_VP" - + "C_CONNECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROXY_CONNECTI" - + "ON\020\017\022\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022" - + "\022\t\n\005ABORT\020\023\022\035\n\031VIEWER_PERMISSION_MISSING" - + "\020\024B\013\n\tstep_info\"\266\001\n\014InstanceInfo\022\024\n\014disp" - + "lay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tinterface" - + "\030\003 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_" - + "ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\024\n\014network" - + "_tags\030\007 \003(\t\022\033\n\017service_account\030\010 \001(\tB\002\030\001" - + "\"J\n\013NetworkInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n" - + "\003uri\030\002 \001(\t\022\030\n\020matched_ip_range\030\004 \001(\t\"\355\004\n" - + "\014FirewallInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003u" - + "ri\030\002 \001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n\006action\030\004 " - + "\001(\t\022\020\n\010priority\030\005 \001(\005\022\023\n\013network_uri\030\006 \001" - + "(\t\022\023\n\013target_tags\030\007 \003(\t\022\037\n\027target_servic" - + "e_accounts\030\010 \003(\t\022\016\n\006policy\030\t \001(\t\022\\\n\022fire" - + "wall_rule_type\030\n \001(\0162@.google.cloud.netw" - + "orkmanagement.v1.FirewallInfo.FirewallRu" - + "leType\"\313\002\n\020FirewallRuleType\022\"\n\036FIREWALL_" - + "RULE_TYPE_UNSPECIFIED\020\000\022%\n!HIERARCHICAL_" - + "FIREWALL_POLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_R" - + "ULE\020\002\022\035\n\031IMPLIED_VPC_FIREWALL_RULE\020\003\022/\n+" - + "SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_R" - + "ULE\020\004\022 \n\034NETWORK_FIREWALL_POLICY_RULE\020\005\022" - + ")\n%NETWORK_REGIONAL_FIREWALL_POLICY_RULE" - + "\020\006\022$\n UNSUPPORTED_FIREWALL_POLICY_RULE\020d" - + "\022\022\n\016TRACKING_STATE\020e\"\346\010\n\tRouteInfo\022J\n\nro" - + "ute_type\030\010 \001(\01626.google.cloud.networkman" - + "agement.v1.RouteInfo.RouteType\022O\n\rnext_h" - + "op_type\030\t \001(\01628.google.cloud.networkmana" - + "gement.v1.RouteInfo.NextHopType\022L\n\013route" - + "_scope\030\016 \001(\01627.google.cloud.networkmanag" - + "ement.v1.RouteInfo.RouteScope\022\024\n\014display" - + "_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\025\n\rdest_ip_rang" - + "e\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013network_uri" - + "\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\rinstance_tag" - + "s\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t\022\030\n\020dest_po" - + "rt_ranges\030\013 \003(\t\022\027\n\017src_port_ranges\030\014 \003(\t" - + "\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hub_uri\030\017 \001(\t" - + "H\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH\001\210\001\001\"\233\001\n\tRo" - + "uteType\022\032\n\026ROUTE_TYPE_UNSPECIFIED\020\000\022\n\n\006S" - + "UBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMIC\020\003\022\022\n\016PEER" - + "ING_SUBNET\020\004\022\022\n\016PEERING_STATIC\020\005\022\023\n\017PEER" - + "ING_DYNAMIC\020\006\022\020\n\014POLICY_BASED\020\007\"\314\002\n\013Next" - + "HopType\022\035\n\031NEXT_HOP_TYPE_UNSPECIFIED\020\000\022\017" - + "\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_INSTANCE\020\002\022\024" - + "\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_HOP_PEERING" - + "\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005\022\027\n\023NEXT_HO" - + "P_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VPN_GATEWAY\020\007" - + "\022\035\n\031NEXT_HOP_INTERNET_GATEWAY\020\010\022\026\n\022NEXT_" - + "HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_ILB\020\n\022\035\n\031NEX" - + "T_HOP_ROUTER_APPLIANCE\020\013\022\024\n\020NEXT_HOP_NCC" - + "_HUB\020\014\"C\n\nRouteScope\022\033\n\027ROUTE_SCOPE_UNSP" - + "ECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC_HUB\020\002B\016\n\014_" - + "ncc_hub_uriB\020\n\016_ncc_spoke_uri\"\277\002\n\021Google" - + "ServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022c\n\023google" - + "_service_type\030\002 \001(\0162F.google.cloud.netwo" - + "rkmanagement.v1.GoogleServiceInfo.Google" - + "ServiceType\"\261\001\n\021GoogleServiceType\022#\n\037GOO" - + "GLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003IAP\020\001\022" - + "$\n GFE_PROXY_OR_HEALTH_CHECK_PROBER\020\002\022\r\n" - + "\tCLOUD_DNS\020\003\022\016\n\nGOOGLE_API\020\004\022\022\n\016GOOGLE_A" - + "PI_PSC\020\005\022\025\n\021GOOGLE_API_VPC_SC\020\006\"\237\001\n\022Forw" - + "ardingRuleInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003" - + "uri\030\002 \001(\t\022\030\n\020matched_protocol\030\003 \001(\t\022\032\n\022m" - + "atched_port_range\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006" - + "target\030\005 \001(\t\022\023\n\013network_uri\030\007 \001(\t\"\302\004\n\020Lo" - + "adBalancerInfo\022`\n\022load_balancer_type\030\001 \001" - + "(\0162D.google.cloud.networkmanagement.v1.L" - + "oadBalancerInfo.LoadBalancerType\022\034\n\020heal" - + "th_check_uri\030\002 \001(\tB\002\030\001\022H\n\010backends\030\003 \003(\013" - + "26.google.cloud.networkmanagement.v1.Loa" - + "dBalancerBackend\022U\n\014backend_type\030\004 \001(\0162?" - + ".google.cloud.networkmanagement.v1.LoadB" - + "alancerInfo.BackendType\022\023\n\013backend_uri\030\005" - + " \001(\t\"\217\001\n\020LoadBalancerType\022\"\n\036LOAD_BALANC" - + "ER_TYPE_UNSPECIFIED\020\000\022\024\n\020INTERNAL_TCP_UD" - + "P\020\001\022\023\n\017NETWORK_TCP_UDP\020\002\022\016\n\nHTTP_PROXY\020\003" - + "\022\r\n\tTCP_PROXY\020\004\022\r\n\tSSL_PROXY\020\005\"f\n\013Backen" - + "dType\022\034\n\030BACKEND_TYPE_UNSPECIFIED\020\000\022\023\n\017B" - + "ACKEND_SERVICE\020\001\022\017\n\013TARGET_POOL\020\002\022\023\n\017TAR" - + "GET_INSTANCE\020\003\"\366\002\n\023LoadBalancerBackend\022\024" - + "\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022t\n\033hea" - + "lth_check_firewall_state\030\003 \001(\0162O.google." - + "cloud.networkmanagement.v1.LoadBalancerB" - + "ackend.HealthCheckFirewallState\022,\n$healt" - + "h_check_allowing_firewall_rules\030\004 \003(\t\022,\n" - + "$health_check_blocking_firewall_rules\030\005 " - + "\003(\t\"j\n\030HealthCheckFirewallState\022+\n\'HEALT" - + "H_CHECK_FIREWALL_STATE_UNSPECIFIED\020\000\022\016\n\n" - + "CONFIGURED\020\001\022\021\n\rMISCONFIGURED\020\002\"\204\001\n\016VpnG" - + "atewayInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030" - + "\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\022\n\nip_address" - + "\030\004 \001(\t\022\026\n\016vpn_tunnel_uri\030\005 \001(\t\022\016\n\006region" - + "\030\006 \001(\t\"\356\002\n\rVpnTunnelInfo\022\024\n\014display_name" - + "\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\026\n\016source_gateway\030\003 " - + "\001(\t\022\026\n\016remote_gateway\030\004 \001(\t\022\031\n\021remote_ga" - + "teway_ip\030\005 \001(\t\022\031\n\021source_gateway_ip\030\006 \001(" - + "\t\022\023\n\013network_uri\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022R" - + "\n\014routing_type\030\t \001(\0162<.google.cloud.netw" - + "orkmanagement.v1.VpnTunnelInfo.RoutingTy" - + "pe\"[\n\013RoutingType\022\034\n\030ROUTING_TYPE_UNSPEC" - + "IFIED\020\000\022\017\n\013ROUTE_BASED\020\001\022\020\n\014POLICY_BASED" - + "\020\002\022\013\n\007DYNAMIC\020\003\"\321\001\n\014EndpointInfo\022\021\n\tsour" - + "ce_ip\030\001 \001(\t\022\026\n\016destination_ip\030\002 \001(\t\022\020\n\010p" - + "rotocol\030\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022\030\n\020de" - + "stination_port\030\005 \001(\005\022\032\n\022source_network_u" - + "ri\030\006 \001(\t\022\037\n\027destination_network_uri\030\007 \001(" - + "\t\022\030\n\020source_agent_uri\030\010 \001(\t\"\277\003\n\013DeliverI" - + "nfo\022E\n\006target\030\001 \001(\01625.google.cloud.netwo" - + "rkmanagement.v1.DeliverInfo.Target\022\024\n\014re" - + "source_uri\030\002 \001(\t\022\034\n\nip_address\030\003 \001(\tB\010\342\214" - + "\317\327\010\002\010\004\"\264\002\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020" - + "\000\022\014\n\010INSTANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOGLE_" - + "API\020\003\022\016\n\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_INSTA" - + "NCE\020\005\022\031\n\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016PSC_" - + "GOOGLE_API\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVERLE" - + "SS_NEG\020\t\022\022\n\016STORAGE_BUCKET\020\n\022\023\n\017PRIVATE_" - + "NETWORK\020\013\022\022\n\016CLOUD_FUNCTION\020\014\022\026\n\022APP_ENG" - + "INE_VERSION\020\r\022\026\n\022CLOUD_RUN_REVISION\020\016\"\353\002" - + "\n\013ForwardInfo\022E\n\006target\030\001 \001(\01625.google.c" - + "loud.networkmanagement.v1.ForwardInfo.Ta" - + "rget\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\nip_address" - + "\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001\n\006Target\022\026\n\022TARGET_UN" - + "SPECIFIED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n\013VPN_GATE" - + "WAY\020\002\022\020\n\014INTERCONNECT\020\003\022\022\n\nGKE_MASTER\020\004\032" - + "\002\010\001\022\"\n\036IMPORTED_CUSTOM_ROUTE_NEXT_HOP\020\005\022" - + "\032\n\022CLOUD_SQL_INSTANCE\020\006\032\002\010\001\022\023\n\017ANOTHER_P" - + "ROJECT\020\007\022\013\n\007NCC_HUB\020\010\022\024\n\020ROUTER_APPLIANC" - + "E\020\t\"\265\t\n\tAbortInfo\022A\n\005cause\030\001 \001(\01622.googl" - + "e.cloud.networkmanagement.v1.AbortInfo.C" - + "ause\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\nip_address" - + "\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n\033projects_missing_per" - + "mission\030\003 \003(\t\"\213\010\n\005Cause\022\025\n\021CAUSE_UNSPECI" - + "FIED\020\000\022\027\n\017UNKNOWN_NETWORK\020\001\032\002\010\001\022\027\n\017UNKNO" - + "WN_PROJECT\020\003\032\002\010\001\022\026\n\016NO_EXTERNAL_IP\020\007\032\002\010\001" - + "\022\036\n\026UNINTENDED_DESTINATION\020\010\032\002\010\001\022!\n\031SOUR" - + "CE_ENDPOINT_NOT_FOUND\020\013\032\002\010\001\022!\n\031MISMATCHE" - + "D_SOURCE_NETWORK\020\014\032\002\010\001\022&\n\036DESTINATION_EN" - + "DPOINT_NOT_FOUND\020\r\032\002\010\001\022&\n\036MISMATCHED_DES" - + "TINATION_NETWORK\020\016\032\002\010\001\022\016\n\nUNKNOWN_IP\020\002\022+" - + "\n\'SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWOR" - + "K\020\027\022\025\n\021PERMISSION_DENIED\020\004\022*\n&PERMISSION" - + "_DENIED_NO_CLOUD_NAT_CONFIGS\020\034\022-\n)PERMIS" - + "SION_DENIED_NO_NEG_ENDPOINT_CONFIGS\020\035\022\026\n" - + "\022NO_SOURCE_LOCATION\020\005\022\024\n\020INVALID_ARGUMEN" - + "T\020\006\022\022\n\016TRACE_TOO_LONG\020\t\022\022\n\016INTERNAL_ERRO" - + "R\020\n\022\017\n\013UNSUPPORTED\020\017\022\031\n\025MISMATCHED_IP_VE" - + "RSION\020\020\022&\n\"GKE_KONNECTIVITY_PROXY_UNSUPP" - + "ORTED\020\021\022\035\n\031RESOURCE_CONFIG_NOT_FOUND\020\022\022 " - + "\n\034VM_INSTANCE_CONFIG_NOT_FOUND\020\030\022\034\n\030NETW" - + "ORK_CONFIG_NOT_FOUND\020\031\022\035\n\031FIREWALL_CONFI" - + "G_NOT_FOUND\020\032\022\032\n\026ROUTE_CONFIG_NOT_FOUND\020" - + "\033\0221\n-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PS" - + "C_ENDPOINT\020\023\022$\n SOURCE_PSC_CLOUD_SQL_UNS" - + "UPPORTED\020\024\022&\n\"SOURCE_FORWARDING_RULE_UNS" - + "UPPORTED\020\025\022\033\n\027NON_ROUTABLE_IP_ADDRESS\020\026\022" - + "+\n\'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJE" - + "CT\020\036\022-\n)UNSUPPORTED_GOOGLE_MANAGED_PROJE" - + "CT_CONFIG\020\037\"\343\022\n\010DropInfo\022@\n\005cause\030\001 \001(\0162" - + "1.google.cloud.networkmanagement.v1.Drop" - + "Info.Cause\022\024\n\014resource_uri\030\002 \001(\t\022\021\n\tsour" - + "ce_ip\030\003 \001(\t\022\026\n\016destination_ip\030\004 \001(\t\022\016\n\006r" - + "egion\030\005 \001(\t\"\303\021\n\005Cause\022\025\n\021CAUSE_UNSPECIFI" - + "ED\020\000\022\034\n\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n\025FO" - + "REIGN_IP_DISALLOWED\020\002\022\021\n\rFIREWALL_RULE\020\003" - + "\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_BLACKHOLE\020\005\022\027\n\023R" - + "OUTE_WRONG_NETWORK\020\006\022*\n&ROUTE_NEXT_HOP_I" - + "P_ADDRESS_NOT_RESOLVED\020*\022%\n!ROUTE_NEXT_H" - + "OP_RESOURCE_NOT_FOUND\020+\022)\n%ROUTE_NEXT_HO" - + "P_INSTANCE_WRONG_NETWORK\0201\022*\n&ROUTE_NEXT" - + "_HOP_INSTANCE_NON_PRIMARY_IP\0202\022.\n*ROUTE_" - + "NEXT_HOP_FORWARDING_RULE_IP_MISMATCH\0203\022-" - + "\n)ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLIS" - + "HED\0204\022/\n+ROUTE_NEXT_HOP_FORWARDING_RULE_" - + "TYPE_INVALID\0205\0222\n.NO_ROUTE_FROM_INTERNET" - + "_TO_PRIVATE_IPV6_ADDRESS\020,\022&\n\"VPN_TUNNEL" - + "_LOCAL_SELECTOR_MISMATCH\020-\022\'\n#VPN_TUNNEL" - + "_REMOTE_SELECTOR_MISMATCH\020.\022\037\n\033PRIVATE_T" - + "RAFFIC_TO_INTERNET\020\007\022$\n PRIVATE_GOOGLE_A" - + "CCESS_DISALLOWED\020\010\0224\n0PRIVATE_GOOGLE_ACC" - + "ESS_VIA_VPN_TUNNEL_UNSUPPORTED\020/\022\027\n\023NO_E" - + "XTERNAL_ADDRESS\020\t\022\034\n\030UNKNOWN_INTERNAL_AD" - + "DRESS\020\n\022\034\n\030FORWARDING_RULE_MISMATCH\020\013\022 \n" - + "\034FORWARDING_RULE_NO_INSTANCES\020\014\0228\n4FIREW" - + "ALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALT" - + "H_CHECK\020\r\022\030\n\024INSTANCE_NOT_RUNNING\020\016\022\033\n\027G" - + "KE_CLUSTER_NOT_RUNNING\020\033\022\"\n\036CLOUD_SQL_IN" - + "STANCE_NOT_RUNNING\020\034\022\030\n\024TRAFFIC_TYPE_BLO" - + "CKED\020\017\022\"\n\036GKE_MASTER_UNAUTHORIZED_ACCESS" - + "\020\020\022*\n&CLOUD_SQL_INSTANCE_UNAUTHORIZED_AC" - + "CESS\020\021\022\036\n\032DROPPED_INSIDE_GKE_SERVICE\020\022\022$" - + "\n DROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022%\n!" - + "GOOGLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n&G" - + "OOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022" - + "\034\n\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n CLOUD_S" - + "QL_INSTANCE_NO_IP_ADDRESS\020\025\022%\n!GKE_CONTR" - + "OL_PLANE_REGION_MISMATCH\020\036\0223\n/PUBLIC_GKE" - + "_CONTROL_PLANE_TO_PRIVATE_DESTINATION\020\037\022" - + "\036\n\032GKE_CONTROL_PLANE_NO_ROUTE\020 \022:\n6CLOUD" - + "_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNA" - + "L_TRAFFIC\020!\0224\n0PUBLIC_CLOUD_SQL_INSTANCE" - + "_TO_PRIVATE_DESTINATION\020\"\022\037\n\033CLOUD_SQL_I" - + "NSTANCE_NO_ROUTE\020#\022\035\n\031CLOUD_FUNCTION_NOT" - + "_ACTIVE\020\026\022\031\n\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n\031" - + "VPC_CONNECTOR_NOT_RUNNING\020\030\022#\n\037FORWARDIN" - + "G_RULE_REGION_MISMATCH\020\031\022\037\n\033PSC_CONNECTI" - + "ON_NOT_ACCEPTED\020\032\022-\n)PSC_ENDPOINT_ACCESS" - + "ED_FROM_PEERED_NETWORK\020)\022.\n*PSC_NEG_PROD" - + "UCER_ENDPOINT_NO_GLOBAL_ACCESS\0200\0223\n/PSC_" - + "NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PO" - + "RTS\0206\022!\n\035CLOUD_SQL_PSC_NEG_UNSUPPORTED\020:" - + "\022-\n)NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTAC" - + "HMENT\0209\022(\n$HYBRID_NEG_NON_DYNAMIC_ROUTE_" - + "MATCHED\0207\022.\n*HYBRID_NEG_NON_LOCAL_DYNAMI" - + "C_ROUTE_MATCHED\0208\022 \n\034CLOUD_RUN_REVISION_" - + "NOT_READY\020\035\022\'\n#DROPPED_INSIDE_PSC_SERVIC" - + "E_PRODUCER\020%\022%\n!LOAD_BALANCER_HAS_NO_PRO" - + "XY_SUBNET\020\'\022\032\n\026CLOUD_NAT_NO_ADDRESSES\020(\022" - + "\020\n\014ROUTING_LOOP\020;\"k\n\rGKEMasterInfo\022\023\n\013cl" - + "uster_uri\030\002 \001(\t\022\033\n\023cluster_network_uri\030\004" - + " \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013external_ip" - + "\030\006 \001(\t\"\210\001\n\024CloudSQLInstanceInfo\022\024\n\014displ" - + "ay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_ur" - + "i\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013external" - + "_ip\030\006 \001(\t\022\016\n\006region\030\007 \001(\t\"\\\n\021CloudFuncti" - + "onInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(" - + "\t\022\020\n\010location\030\003 \001(\t\022\022\n\nversion_id\030\004 \001(\003\"" - + "`\n\024CloudRunRevisionInfo\022\024\n\014display_name\030" - + "\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\004 \001(\t\022\023\n\013" - + "service_uri\030\005 \001(\t\"_\n\024AppEngineVersionInf" - + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007" - + "runtime\030\003 \001(\t\022\023\n\013environment\030\004 \001(\t\"G\n\020Vp" - + "cConnectorInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003" - + "uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\"\357\003\n\007NatInfo\022" - + "=\n\004type\030\001 \001(\0162/.google.cloud.networkmana" - + "gement.v1.NatInfo.Type\022\020\n\010protocol\030\002 \001(\t" - + "\022\023\n\013network_uri\030\003 \001(\t\022\025\n\rold_source_ip\030\004" - + " \001(\t\022\025\n\rnew_source_ip\030\005 \001(\t\022\032\n\022old_desti" - + "nation_ip\030\006 \001(\t\022\032\n\022new_destination_ip\030\007 " - + "\001(\t\022\027\n\017old_source_port\030\010 \001(\005\022\027\n\017new_sour" - + "ce_port\030\t \001(\005\022\034\n\024old_destination_port\030\n " - + "\001(\005\022\034\n\024new_destination_port\030\013 \001(\005\022\022\n\nrou" - + "ter_uri\030\014 \001(\t\022\030\n\020nat_gateway_name\030\r \001(\t\"" - + "|\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024INTERNA" - + "L_TO_EXTERNAL\020\001\022\030\n\024EXTERNAL_TO_INTERNAL\020" - + "\002\022\r\n\tCLOUD_NAT\020\003\022\033\n\027PRIVATE_SERVICE_CONN" - + "ECT\020\004\"\244\002\n\023ProxyConnectionInfo\022\020\n\010protoco" - + "l\030\001 \001(\t\022\025\n\rold_source_ip\030\002 \001(\t\022\025\n\rnew_so" - + "urce_ip\030\003 \001(\t\022\032\n\022old_destination_ip\030\004 \001(" - + "\t\022\032\n\022new_destination_ip\030\005 \001(\t\022\027\n\017old_sou" - + "rce_port\030\006 \001(\005\022\027\n\017new_source_port\030\007 \001(\005\022" - + "\034\n\024old_destination_port\030\010 \001(\005\022\034\n\024new_des" - + "tination_port\030\t \001(\005\022\022\n\nsubnet_uri\030\n \001(\t\022" - + "\023\n\013network_uri\030\013 \001(\t\"\362\004\n\027LoadBalancerBac" - + "kendInfo\022\014\n\004name\030\001 \001(\t\022\024\n\014instance_uri\030\002" - + " \001(\t\022\033\n\023backend_service_uri\030\003 \001(\t\022\032\n\022ins" - + "tance_group_uri\030\004 \001(\t\022\"\n\032network_endpoin" - + "t_group_uri\030\005 \001(\t\022\032\n\022backend_bucket_uri\030" - + "\010 \001(\t\022\"\n\032psc_service_attachment_uri\030\t \001(" - + "\t\022\035\n\025psc_google_api_target\030\n \001(\t\022\030\n\020heal" - + "th_check_uri\030\006 \001(\t\022\214\001\n#health_check_fire" - + "walls_config_state\030\007 \001(\0162Z.google.cloud." - + "networkmanagement.v1.LoadBalancerBackend" - + "Info.HealthCheckFirewallsConfigStateB\003\340A" - + "\003\"\315\001\n\037HealthCheckFirewallsConfigState\0223\n" - + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNS" - + "PECIFIED\020\000\022\030\n\024FIREWALLS_CONFIGURED\020\001\022\"\n\036" - + "FIREWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n\030FIRE" - + "WALLS_NOT_CONFIGURED\020\003\022\031\n\025FIREWALLS_UNSU" - + "PPORTED\020\004\"#\n\021StorageBucketInfo\022\016\n\006bucket" - + "\030\001 \001(\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BALA" - + "NCER_TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVANCE" - + "D_LOAD_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANCER" - + "\020\002\022 \n\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n\034" - + "INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_PR" - + "OXY_LOAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_BA" - + "LANCER\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BALA" - + "NCER\020\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034LEG" - + "ACY_NETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP_I" - + "NTERNAL_LOAD_BALANCER\020\nB\371\001\n%com.google.c" - + "loud.networkmanagement.v1B\nTraceProtoP\001Z" - + "Scloud.google.com/go/networkmanagement/a" - + "piv1/networkmanagementpb;networkmanageme" - + "ntpb\252\002!Google.Cloud.NetworkManagement.V1" - + "\312\002!Google\\Cloud\\NetworkManagement\\V1\352\002$G" - + "oogle::Cloud::NetworkManagement::V1b\006pro" - + "to3" + + ".CloudSQLInstanceInfoH\000\022N\n\016redis_instanc" + + "e\030\036 \001(\01324.google.cloud.networkmanagement" + + ".v1.RedisInstanceInfoH\000\022L\n\rredis_cluster" + + "\030\037 \001(\01323.google.cloud.networkmanagement." + + "v1.RedisClusterInfoH\000\022N\n\016cloud_function\030" + + "\024 \001(\01324.google.cloud.networkmanagement.v" + + "1.CloudFunctionInfoH\000\022U\n\022app_engine_vers" + + "ion\030\026 \001(\01327.google.cloud.networkmanageme" + + "nt.v1.AppEngineVersionInfoH\000\022U\n\022cloud_ru" + + "n_revision\030\027 \001(\01327.google.cloud.networkm" + + "anagement.v1.CloudRunRevisionInfoH\000\0229\n\003n" + + "at\030\031 \001(\0132*.google.cloud.networkmanagemen" + + "t.v1.NatInfoH\000\022R\n\020proxy_connection\030\032 \001(\013" + + "26.google.cloud.networkmanagement.v1.Pro" + + "xyConnectionInfoH\000\022`\n\032load_balancer_back" + + "end_info\030\033 \001(\0132:.google.cloud.networkman" + + "agement.v1.LoadBalancerBackendInfoH\000\022N\n\016" + + "storage_bucket\030\034 \001(\01324.google.cloud.netw" + + "orkmanagement.v1.StorageBucketInfoH\000\022N\n\016" + + "serverless_neg\030\035 \001(\01324.google.cloud.netw" + + "orkmanagement.v1.ServerlessNegInfoH\000\"\245\007\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\027\n\023START_F" + + "ROM_INSTANCE\020\001\022\027\n\023START_FROM_INTERNET\020\002\022" + + "\035\n\031START_FROM_GOOGLE_SERVICE\020\033\022\036\n\032START_" + + "FROM_PRIVATE_NETWORK\020\003\022\031\n\025START_FROM_GKE" + + "_MASTER\020\025\022!\n\035START_FROM_CLOUD_SQL_INSTAN" + + "CE\020\026\022\035\n\031START_FROM_REDIS_INSTANCE\020 \022\034\n\030S" + + "TART_FROM_REDIS_CLUSTER\020!\022\035\n\031START_FROM_" + + "CLOUD_FUNCTION\020\027\022!\n\035START_FROM_APP_ENGIN" + + "E_VERSION\020\031\022!\n\035START_FROM_CLOUD_RUN_REVI" + + "SION\020\032\022\035\n\031START_FROM_STORAGE_BUCKET\020\035\022$\n" + + " START_FROM_PSC_PUBLISHED_SERVICE\020\036\022\035\n\031S" + + "TART_FROM_SERVERLESS_NEG\020\037\022\037\n\033APPLY_INGR" + + "ESS_FIREWALL_RULE\020\004\022\036\n\032APPLY_EGRESS_FIRE" + + "WALL_RULE\020\005\022\017\n\013APPLY_ROUTE\020\006\022\031\n\025APPLY_FO" + + "RWARDING_RULE\020\007\022!\n\035ANALYZE_LOAD_BALANCER" + + "_BACKEND\020\034\022\025\n\021SPOOFING_APPROVED\020\010\022\026\n\022ARR" + + "IVE_AT_INSTANCE\020\t\022(\n ARRIVE_AT_INTERNAL_" + + "LOAD_BALANCER\020\n\032\002\010\001\022(\n ARRIVE_AT_EXTERNA" + + "L_LOAD_BALANCER\020\013\032\002\010\001\022\031\n\025ARRIVE_AT_VPN_G" + + "ATEWAY\020\014\022\030\n\024ARRIVE_AT_VPN_TUNNEL\020\r\022\033\n\027AR" + + "RIVE_AT_VPC_CONNECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROX" + + "Y_CONNECTION\020\017\022\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n" + + "\007FORWARD\020\022\022\t\n\005ABORT\020\023\022\035\n\031VIEWER_PERMISSI" + + "ON_MISSING\020\024B\013\n\tstep_info\"\332\001\n\014InstanceIn" + + "fo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n" + + "\tinterface\030\003 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n" + + "\013internal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022" + + "\024\n\014network_tags\030\007 \003(\t\022\033\n\017service_account" + + "\030\010 \001(\tB\002\030\001\022\"\n\032psc_network_attachment_uri" + + "\030\t \001(\t\"v\n\013NetworkInfo\022\024\n\014display_name\030\001 " + + "\001(\t\022\013\n\003uri\030\002 \001(\t\022\032\n\022matched_subnet_uri\030\005" + + " \001(\t\022\030\n\020matched_ip_range\030\004 \001(\t\022\016\n\006region" + + "\030\006 \001(\t\"\201\005\n\014FirewallInfo\022\024\n\014display_name\030" + + "\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n" + + "\006action\030\004 \001(\t\022\020\n\010priority\030\005 \001(\005\022\023\n\013netwo" + + "rk_uri\030\006 \001(\t\022\023\n\013target_tags\030\007 \003(\t\022\037\n\027tar" + + "get_service_accounts\030\010 \003(\t\022\016\n\006policy\030\t \001" + + "(\t\022\022\n\npolicy_uri\030\013 \001(\t\022\\\n\022firewall_rule_" + + "type\030\n \001(\0162@.google.cloud.networkmanagem" + + "ent.v1.FirewallInfo.FirewallRuleType\"\313\002\n" + + "\020FirewallRuleType\022\"\n\036FIREWALL_RULE_TYPE_" + + "UNSPECIFIED\020\000\022%\n!HIERARCHICAL_FIREWALL_P" + + "OLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002\022\035\n\031I" + + "MPLIED_VPC_FIREWALL_RULE\020\003\022/\n+SERVERLESS" + + "_VPC_ACCESS_MANAGED_FIREWALL_RULE\020\004\022 \n\034N" + + "ETWORK_FIREWALL_POLICY_RULE\020\005\022)\n%NETWORK" + + "_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n UNSU" + + "PPORTED_FIREWALL_POLICY_RULE\020d\022\022\n\016TRACKI" + + "NG_STATE\020e\"\254\n\n\tRouteInfo\022J\n\nroute_type\030\010" + + " \001(\01626.google.cloud.networkmanagement.v1" + + ".RouteInfo.RouteType\022O\n\rnext_hop_type\030\t " + + "\001(\01628.google.cloud.networkmanagement.v1." + + "RouteInfo.NextHopType\022L\n\013route_scope\030\016 \001" + + "(\01627.google.cloud.networkmanagement.v1.R" + + "outeInfo.RouteScope\022\024\n\014display_name\030\001 \001(" + + "\t\022\013\n\003uri\030\002 \001(\t\022\016\n\006region\030\023 \001(\t\022\025\n\rdest_i" + + "p_range\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013netwo" + + "rk_uri\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\rinstan" + + "ce_tags\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t\022\030\n\020d" + + "est_port_ranges\030\013 \003(\t\022\027\n\017src_port_ranges" + + "\030\014 \003(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hub_uri" + + "\030\017 \001(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH\001\210\001\001\022" + + "/\n\"advertised_route_source_router_uri\030\021 " + + "\001(\tH\002\210\001\001\022*\n\035advertised_route_next_hop_ur" + + "i\030\022 \001(\tH\003\210\001\001\"\253\001\n\tRouteType\022\032\n\026ROUTE_TYPE" + + "_UNSPECIFIED\020\000\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013" + + "\n\007DYNAMIC\020\003\022\022\n\016PEERING_SUBNET\020\004\022\022\n\016PEERI" + + "NG_STATIC\020\005\022\023\n\017PEERING_DYNAMIC\020\006\022\020\n\014POLI" + + "CY_BASED\020\007\022\016\n\nADVERTISED\020e\"\314\002\n\013NextHopTy" + + "pe\022\035\n\031NEXT_HOP_TYPE_UNSPECIFIED\020\000\022\017\n\013NEX" + + "T_HOP_IP\020\001\022\025\n\021NEXT_HOP_INSTANCE\020\002\022\024\n\020NEX" + + "T_HOP_NETWORK\020\003\022\024\n\020NEXT_HOP_PEERING\020\004\022\031\n" + + "\025NEXT_HOP_INTERCONNECT\020\005\022\027\n\023NEXT_HOP_VPN" + + "_TUNNEL\020\006\022\030\n\024NEXT_HOP_VPN_GATEWAY\020\007\022\035\n\031N" + + "EXT_HOP_INTERNET_GATEWAY\020\010\022\026\n\022NEXT_HOP_B" + + "LACKHOLE\020\t\022\020\n\014NEXT_HOP_ILB\020\n\022\035\n\031NEXT_HOP" + + "_ROUTER_APPLIANCE\020\013\022\024\n\020NEXT_HOP_NCC_HUB\020" + + "\014\"C\n\nRouteScope\022\033\n\027ROUTE_SCOPE_UNSPECIFI" + + "ED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC_HUB\020\002B\016\n\014_ncc_h" + + "ub_uriB\020\n\016_ncc_spoke_uriB%\n#_advertised_" + + "route_source_router_uriB \n\036_advertised_r" + + "oute_next_hop_uri\"\277\002\n\021GoogleServiceInfo\022" + + "\021\n\tsource_ip\030\001 \001(\t\022c\n\023google_service_typ" + + "e\030\002 \001(\0162F.google.cloud.networkmanagement" + + ".v1.GoogleServiceInfo.GoogleServiceType\"" + + "\261\001\n\021GoogleServiceType\022#\n\037GOOGLE_SERVICE_" + + "TYPE_UNSPECIFIED\020\000\022\007\n\003IAP\020\001\022$\n GFE_PROXY" + + "_OR_HEALTH_CHECK_PROBER\020\002\022\r\n\tCLOUD_DNS\020\003" + + "\022\016\n\nGOOGLE_API\020\004\022\022\n\016GOOGLE_API_PSC\020\005\022\025\n\021" + + "GOOGLE_API_VPC_SC\020\006\"\216\002\n\022ForwardingRuleIn" + + "fo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n" + + "\020matched_protocol\030\003 \001(\t\022\032\n\022matched_port_" + + "range\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006target\030\005 \001(\t" + + "\022\023\n\013network_uri\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022\032\n" + + "\022load_balancer_name\030\t \001(\t\022\"\n\032psc_service" + + "_attachment_uri\030\n \001(\t\022\035\n\025psc_google_api_" + + "target\030\013 \001(\t\"\302\004\n\020LoadBalancerInfo\022`\n\022loa" + + "d_balancer_type\030\001 \001(\0162D.google.cloud.net" + + "workmanagement.v1.LoadBalancerInfo.LoadB" + + "alancerType\022\034\n\020health_check_uri\030\002 \001(\tB\002\030" + + "\001\022H\n\010backends\030\003 \003(\01326.google.cloud.netwo" + + "rkmanagement.v1.LoadBalancerBackend\022U\n\014b" + + "ackend_type\030\004 \001(\0162?.google.cloud.network" + + "management.v1.LoadBalancerInfo.BackendTy" + + "pe\022\023\n\013backend_uri\030\005 \001(\t\"\217\001\n\020LoadBalancer" + + "Type\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000" + + "\022\024\n\020INTERNAL_TCP_UDP\020\001\022\023\n\017NETWORK_TCP_UD" + + "P\020\002\022\016\n\nHTTP_PROXY\020\003\022\r\n\tTCP_PROXY\020\004\022\r\n\tSS" + + "L_PROXY\020\005\"f\n\013BackendType\022\034\n\030BACKEND_TYPE" + + "_UNSPECIFIED\020\000\022\023\n\017BACKEND_SERVICE\020\001\022\017\n\013T" + + "ARGET_POOL\020\002\022\023\n\017TARGET_INSTANCE\020\003\"\366\002\n\023Lo" + + "adBalancerBackend\022\024\n\014display_name\030\001 \001(\t\022" + + "\013\n\003uri\030\002 \001(\t\022t\n\033health_check_firewall_st" + + "ate\030\003 \001(\0162O.google.cloud.networkmanageme" + + "nt.v1.LoadBalancerBackend.HealthCheckFir" + + "ewallState\022,\n$health_check_allowing_fire" + + "wall_rules\030\004 \003(\t\022,\n$health_check_blockin" + + "g_firewall_rules\030\005 \003(\t\"j\n\030HealthCheckFir" + + "ewallState\022+\n\'HEALTH_CHECK_FIREWALL_STAT" + + "E_UNSPECIFIED\020\000\022\016\n\nCONFIGURED\020\001\022\021\n\rMISCO" + + "NFIGURED\020\002\"\204\001\n\016VpnGatewayInfo\022\024\n\014display" + + "_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030" + + "\003 \001(\t\022\022\n\nip_address\030\004 \001(\t\022\026\n\016vpn_tunnel_" + + "uri\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\356\002\n\rVpnTunnelI" + + "nfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\026" + + "\n\016source_gateway\030\003 \001(\t\022\026\n\016remote_gateway" + + "\030\004 \001(\t\022\031\n\021remote_gateway_ip\030\005 \001(\t\022\031\n\021sou" + + "rce_gateway_ip\030\006 \001(\t\022\023\n\013network_uri\030\007 \001(" + + "\t\022\016\n\006region\030\010 \001(\t\022R\n\014routing_type\030\t \001(\0162" + + "<.google.cloud.networkmanagement.v1.VpnT" + + "unnelInfo.RoutingType\"[\n\013RoutingType\022\034\n\030" + + "ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n\013ROUTE_BASE" + + "D\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007DYNAMIC\020\003\"\321\001\n\014E" + + "ndpointInfo\022\021\n\tsource_ip\030\001 \001(\t\022\026\n\016destin" + + "ation_ip\030\002 \001(\t\022\020\n\010protocol\030\003 \001(\t\022\023\n\013sour" + + "ce_port\030\004 \001(\005\022\030\n\020destination_port\030\005 \001(\005\022" + + "\032\n\022source_network_uri\030\006 \001(\t\022\037\n\027destinati" + + "on_network_uri\030\007 \001(\t\022\030\n\020source_agent_uri" + + "\030\010 \001(\t\"\271\004\n\013DeliverInfo\022E\n\006target\030\001 \001(\01625" + + ".google.cloud.networkmanagement.v1.Deliv" + + "erInfo.Target\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\ni" + + "p_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n\016storage_buc" + + "ket\030\004 \001(\t\022\035\n\025psc_google_api_target\030\005 \001(\t" + + "\"\367\002\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\014\n\010I" + + "NSTANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOGLE_API\020\003\022" + + "\016\n\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_INSTANCE\020\005\022" + + "\031\n\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016PSC_GOOGLE" + + "_API\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVERLESS_NEG" + + "\020\t\022\022\n\016STORAGE_BUCKET\020\n\022\023\n\017PRIVATE_NETWOR" + + "K\020\013\022\022\n\016CLOUD_FUNCTION\020\014\022\026\n\022APP_ENGINE_VE" + + "RSION\020\r\022\026\n\022CLOUD_RUN_REVISION\020\016\022\032\n\026GOOGL" + + "E_MANAGED_SERVICE\020\017\022\022\n\016REDIS_INSTANCE\020\020\022" + + "\021\n\rREDIS_CLUSTER\020\021\"\353\002\n\013ForwardInfo\022E\n\006ta" + + "rget\030\001 \001(\01625.google.cloud.networkmanagem" + + "ent.v1.ForwardInfo.Target\022\024\n\014resource_ur" + + "i\030\002 \001(\t\022\034\n\nip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001" + + "\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\017\n\013PEER" + + "ING_VPC\020\001\022\017\n\013VPN_GATEWAY\020\002\022\020\n\014INTERCONNE" + + "CT\020\003\022\022\n\nGKE_MASTER\020\004\032\002\010\001\022\"\n\036IMPORTED_CUS" + + "TOM_ROUTE_NEXT_HOP\020\005\022\032\n\022CLOUD_SQL_INSTAN" + + "CE\020\006\032\002\010\001\022\023\n\017ANOTHER_PROJECT\020\007\022\013\n\007NCC_HUB" + + "\020\010\022\024\n\020ROUTER_APPLIANCE\020\t\"\330\n\n\tAbortInfo\022A" + + "\n\005cause\030\001 \001(\01622.google.cloud.networkmana" + + "gement.v1.AbortInfo.Cause\022\024\n\014resource_ur" + + "i\030\002 \001(\t\022\034\n\nip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" + + "\033projects_missing_permission\030\003 \003(\t\"\256\t\n\005C" + + "ause\022\025\n\021CAUSE_UNSPECIFIED\020\000\022\027\n\017UNKNOWN_N" + + "ETWORK\020\001\032\002\010\001\022\027\n\017UNKNOWN_PROJECT\020\003\032\002\010\001\022\026\n" + + "\016NO_EXTERNAL_IP\020\007\032\002\010\001\022\036\n\026UNINTENDED_DEST" + + "INATION\020\010\032\002\010\001\022!\n\031SOURCE_ENDPOINT_NOT_FOU" + + "ND\020\013\032\002\010\001\022!\n\031MISMATCHED_SOURCE_NETWORK\020\014\032" + + "\002\010\001\022&\n\036DESTINATION_ENDPOINT_NOT_FOUND\020\r\032" + + "\002\010\001\022&\n\036MISMATCHED_DESTINATION_NETWORK\020\016\032" + + "\002\010\001\022\016\n\nUNKNOWN_IP\020\002\022%\n!GOOGLE_MANAGED_SE" + + "RVICE_UNKNOWN_IP\020 \022+\n\'SOURCE_IP_ADDRESS_" + + "NOT_IN_SOURCE_NETWORK\020\027\022\025\n\021PERMISSION_DE" + + "NIED\020\004\022*\n&PERMISSION_DENIED_NO_CLOUD_NAT" + + "_CONFIGS\020\034\022-\n)PERMISSION_DENIED_NO_NEG_E" + + "NDPOINT_CONFIGS\020\035\022-\n)PERMISSION_DENIED_N" + + "O_CLOUD_ROUTER_CONFIGS\020$\022\026\n\022NO_SOURCE_LO" + + "CATION\020\005\022\024\n\020INVALID_ARGUMENT\020\006\022\022\n\016TRACE_" + + "TOO_LONG\020\t\022\022\n\016INTERNAL_ERROR\020\n\022\017\n\013UNSUPP" + + "ORTED\020\017\022\031\n\025MISMATCHED_IP_VERSION\020\020\022&\n\"GK" + + "E_KONNECTIVITY_PROXY_UNSUPPORTED\020\021\022\035\n\031RE" + + "SOURCE_CONFIG_NOT_FOUND\020\022\022 \n\034VM_INSTANCE" + + "_CONFIG_NOT_FOUND\020\030\022\034\n\030NETWORK_CONFIG_NO" + + "T_FOUND\020\031\022\035\n\031FIREWALL_CONFIG_NOT_FOUND\020\032" + + "\022\032\n\026ROUTE_CONFIG_NOT_FOUND\020\033\0221\n-GOOGLE_M" + + "ANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022" + + "$\n SOURCE_PSC_CLOUD_SQL_UNSUPPORTED\020\024\022$\n" + + " SOURCE_REDIS_CLUSTER_UNSUPPORTED\020\"\022%\n!S" + + "OURCE_REDIS_INSTANCE_UNSUPPORTED\020#\022&\n\"SO" + + "URCE_FORWARDING_RULE_UNSUPPORTED\020\025\022\033\n\027NO" + + "N_ROUTABLE_IP_ADDRESS\020\026\022+\n\'UNKNOWN_ISSUE" + + "_IN_GOOGLE_MANAGED_PROJECT\020\036\022-\n)UNSUPPOR" + + "TED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\"\232\032\n\010" + + "DropInfo\022@\n\005cause\030\001 \001(\01621.google.cloud.n" + + "etworkmanagement.v1.DropInfo.Cause\022\024\n\014re" + + "source_uri\030\002 \001(\t\022\021\n\tsource_ip\030\003 \001(\t\022\026\n\016d" + + "estination_ip\030\004 \001(\t\022\016\n\006region\030\005 \001(\t\"\372\030\n\005" + + "Cause\022\025\n\021CAUSE_UNSPECIFIED\020\000\022\034\n\030UNKNOWN_" + + "EXTERNAL_ADDRESS\020\001\022\031\n\025FOREIGN_IP_DISALLO" + + "WED\020\002\022\021\n\rFIREWALL_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023" + + "\n\017ROUTE_BLACKHOLE\020\005\022\027\n\023ROUTE_WRONG_NETWO" + + "RK\020\006\022*\n&ROUTE_NEXT_HOP_IP_ADDRESS_NOT_RE" + + "SOLVED\020*\022%\n!ROUTE_NEXT_HOP_RESOURCE_NOT_" + + "FOUND\020+\022)\n%ROUTE_NEXT_HOP_INSTANCE_WRONG" + + "_NETWORK\0201\022*\n&ROUTE_NEXT_HOP_INSTANCE_NO" + + "N_PRIMARY_IP\0202\022.\n*ROUTE_NEXT_HOP_FORWARD" + + "ING_RULE_IP_MISMATCH\0203\022-\n)ROUTE_NEXT_HOP" + + "_VPN_TUNNEL_NOT_ESTABLISHED\0204\022/\n+ROUTE_N" + + "EXT_HOP_FORWARDING_RULE_TYPE_INVALID\0205\0222" + + "\n.NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6" + + "_ADDRESS\020,\022&\n\"VPN_TUNNEL_LOCAL_SELECTOR_" + + "MISMATCH\020-\022\'\n#VPN_TUNNEL_REMOTE_SELECTOR" + + "_MISMATCH\020.\022\037\n\033PRIVATE_TRAFFIC_TO_INTERN" + + "ET\020\007\022$\n PRIVATE_GOOGLE_ACCESS_DISALLOWED" + + "\020\010\0224\n0PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNN" + + "EL_UNSUPPORTED\020/\022\027\n\023NO_EXTERNAL_ADDRESS\020" + + "\t\022\034\n\030UNKNOWN_INTERNAL_ADDRESS\020\n\022\034\n\030FORWA" + + "RDING_RULE_MISMATCH\020\013\022 \n\034FORWARDING_RULE" + + "_NO_INSTANCES\020\014\0228\n4FIREWALL_BLOCKING_LOA" + + "D_BALANCER_BACKEND_HEALTH_CHECK\020\r\022\030\n\024INS" + + "TANCE_NOT_RUNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_R" + + "UNNING\020\033\022\"\n\036CLOUD_SQL_INSTANCE_NOT_RUNNI" + + "NG\020\034\022\036\n\032REDIS_INSTANCE_NOT_RUNNING\020D\022\035\n\031" + + "REDIS_CLUSTER_NOT_RUNNING\020E\022\030\n\024TRAFFIC_T" + + "YPE_BLOCKED\020\017\022\"\n\036GKE_MASTER_UNAUTHORIZED" + + "_ACCESS\020\020\022*\n&CLOUD_SQL_INSTANCE_UNAUTHOR" + + "IZED_ACCESS\020\021\022\036\n\032DROPPED_INSIDE_GKE_SERV" + + "ICE\020\022\022$\n DROPPED_INSIDE_CLOUD_SQL_SERVIC" + + "E\020\023\022%\n!GOOGLE_MANAGED_SERVICE_NO_PEERING" + + "\020\024\022*\n&GOOGLE_MANAGED_SERVICE_NO_PSC_ENDP" + + "OINT\020&\022\034\n\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n " + + "CLOUD_SQL_INSTANCE_NO_IP_ADDRESS\020\025\022%\n!GK" + + "E_CONTROL_PLANE_REGION_MISMATCH\020\036\0223\n/PUB" + + "LIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINA" + + "TION\020\037\022\036\n\032GKE_CONTROL_PLANE_NO_ROUTE\020 \022:" + + "\n6CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_" + + "EXTERNAL_TRAFFIC\020!\0224\n0PUBLIC_CLOUD_SQL_I" + + "NSTANCE_TO_PRIVATE_DESTINATION\020\"\022\037\n\033CLOU" + + "D_SQL_INSTANCE_NO_ROUTE\020#\022 \n\034CLOUD_SQL_C" + + "ONNECTOR_REQUIRED\020?\022\035\n\031CLOUD_FUNCTION_NO" + + "T_ACTIVE\020\026\022\031\n\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n" + + "\031VPC_CONNECTOR_NOT_RUNNING\020\030\022,\n(VPC_CONN" + + "ECTOR_SERVERLESS_TRAFFIC_BLOCKED\020<\022.\n*VP" + + "C_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED" + + "\020=\022#\n\037FORWARDING_RULE_REGION_MISMATCH\020\031\022" + + "\037\n\033PSC_CONNECTION_NOT_ACCEPTED\020\032\022-\n)PSC_" + + "ENDPOINT_ACCESSED_FROM_PEERED_NETWORK\020)\022" + + ".\n*PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_A" + + "CCESS\0200\0223\n/PSC_NEG_PRODUCER_FORWARDING_R" + + "ULE_MULTIPLE_PORTS\0206\022!\n\035CLOUD_SQL_PSC_NE" + + "G_UNSUPPORTED\020:\022-\n)NO_NAT_SUBNETS_FOR_PS" + + "C_SERVICE_ATTACHMENT\0209\022#\n\037PSC_TRANSITIVI" + + "TY_NOT_PROPAGATED\020@\022(\n$HYBRID_NEG_NON_DY" + + "NAMIC_ROUTE_MATCHED\0207\022.\n*HYBRID_NEG_NON_" + + "LOCAL_DYNAMIC_ROUTE_MATCHED\0208\022 \n\034CLOUD_R" + + "UN_REVISION_NOT_READY\020\035\022\'\n#DROPPED_INSID" + + "E_PSC_SERVICE_PRODUCER\020%\022%\n!LOAD_BALANCE" + + "R_HAS_NO_PROXY_SUBNET\020\'\022\032\n\026CLOUD_NAT_NO_" + + "ADDRESSES\020(\022\020\n\014ROUTING_LOOP\020;\022)\n%DROPPED" + + "_INSIDE_GOOGLE_MANAGED_SERVICE\020>\022)\n%LOAD" + + "_BALANCER_BACKEND_INVALID_NETWORK\020A\022*\n&B" + + "ACKEND_SERVICE_NAMED_PORT_NOT_DEFINED\020B\022" + + "\'\n#DESTINATION_IS_PRIVATE_NAT_IP_RANGE\020C" + + "\022)\n%DROPPED_INSIDE_REDIS_INSTANCE_SERVIC" + + "E\020F\022#\n\037REDIS_INSTANCE_UNSUPPORTED_PORT\020G" + + "\022/\n+REDIS_INSTANCE_CONNECTING_FROM_PUPI_" + + "ADDRESS\020H\0222\n.REDIS_INSTANCE_NO_ROUTE_TO_" + + "DESTINATION_NETWORK\020I\022!\n\035REDIS_INSTANCE_" + + "NO_EXTERNAL_IP\020J\022\'\n#REDIS_INSTANCE_UNSUP" + + "PORTED_PROTOCOL\020N\022(\n$DROPPED_INSIDE_REDI" + + "S_CLUSTER_SERVICE\020K\022\"\n\036REDIS_CLUSTER_UNS" + + "UPPORTED_PORT\020L\022 \n\034REDIS_CLUSTER_NO_EXTE" + + "RNAL_IP\020M\022&\n\"REDIS_CLUSTER_UNSUPPORTED_P" + + "ROTOCOL\020O\022*\n&NO_ADVERTISED_ROUTE_TO_GCP_" + + "DESTINATION\020P\022*\n&NO_TRAFFIC_SELECTOR_TO_" + + "GCP_DESTINATION\020Q\0225\n1NO_KNOWN_ROUTE_FROM" + + "_PEERED_NETWORK_TO_DESTINATION\020R\"k\n\rGKEM" + + "asterInfo\022\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023cluste" + + "r_network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t" + + "\022\023\n\013external_ip\030\006 \001(\t\"\210\001\n\024CloudSQLInstan" + + "ceInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(" + + "\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 " + + "\001(\t\022\023\n\013external_ip\030\006 \001(\t\022\016\n\006region\030\007 \001(\t" + + "\"\222\001\n\021RedisInstanceInfo\022\024\n\014display_name\030\001" + + " \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\033" + + "\n\023primary_endpoint_ip\030\004 \001(\t\022\030\n\020read_endp" + + "oint_ip\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\276\001\n\020RedisC" + + "lusterInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030" + + "\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022/\n\035discovery_" + + "endpoint_ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022/\n\035s" + + "econdary_endpoint_ip_address\030\005 \001(\tB\010\342\214\317\327" + + "\010\002\010\004\022\020\n\010location\030\006 \001(\t\"\\\n\021CloudFunctionI" + + "nfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020" + + "\n\010location\030\003 \001(\t\022\022\n\nversion_id\030\004 \001(\003\"`\n\024" + + "CloudRunRevisionInfo\022\024\n\014display_name\030\001 \001" + + "(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\004 \001(\t\022\023\n\013ser" + + "vice_uri\030\005 \001(\t\"_\n\024AppEngineVersionInfo\022\024" + + "\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007run" + + "time\030\003 \001(\t\022\023\n\013environment\030\004 \001(\t\"G\n\020VpcCo" + + "nnectorInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri" + + "\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\"\357\003\n\007NatInfo\022=\n\004" + + "type\030\001 \001(\0162/.google.cloud.networkmanagem" + + "ent.v1.NatInfo.Type\022\020\n\010protocol\030\002 \001(\t\022\023\n" + + "\013network_uri\030\003 \001(\t\022\025\n\rold_source_ip\030\004 \001(" + + "\t\022\025\n\rnew_source_ip\030\005 \001(\t\022\032\n\022old_destinat" + + "ion_ip\030\006 \001(\t\022\032\n\022new_destination_ip\030\007 \001(\t" + + "\022\027\n\017old_source_port\030\010 \001(\005\022\027\n\017new_source_" + + "port\030\t \001(\005\022\034\n\024old_destination_port\030\n \001(\005" + + "\022\034\n\024new_destination_port\030\013 \001(\005\022\022\n\nrouter" + + "_uri\030\014 \001(\t\022\030\n\020nat_gateway_name\030\r \001(\t\"|\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024INTERNAL_T" + + "O_EXTERNAL\020\001\022\030\n\024EXTERNAL_TO_INTERNAL\020\002\022\r" + + "\n\tCLOUD_NAT\020\003\022\033\n\027PRIVATE_SERVICE_CONNECT" + + "\020\004\"\244\002\n\023ProxyConnectionInfo\022\020\n\010protocol\030\001" + + " \001(\t\022\025\n\rold_source_ip\030\002 \001(\t\022\025\n\rnew_sourc" + + "e_ip\030\003 \001(\t\022\032\n\022old_destination_ip\030\004 \001(\t\022\032" + + "\n\022new_destination_ip\030\005 \001(\t\022\027\n\017old_source" + + "_port\030\006 \001(\005\022\027\n\017new_source_port\030\007 \001(\005\022\034\n\024" + + "old_destination_port\030\010 \001(\005\022\034\n\024new_destin" + + "ation_port\030\t \001(\005\022\022\n\nsubnet_uri\030\n \001(\t\022\023\n\013" + + "network_uri\030\013 \001(\t\"\362\004\n\027LoadBalancerBacken" + + "dInfo\022\014\n\004name\030\001 \001(\t\022\024\n\014instance_uri\030\002 \001(" + + "\t\022\033\n\023backend_service_uri\030\003 \001(\t\022\032\n\022instan" + + "ce_group_uri\030\004 \001(\t\022\"\n\032network_endpoint_g" + + "roup_uri\030\005 \001(\t\022\032\n\022backend_bucket_uri\030\010 \001" + + "(\t\022\"\n\032psc_service_attachment_uri\030\t \001(\t\022\035" + + "\n\025psc_google_api_target\030\n \001(\t\022\030\n\020health_" + + "check_uri\030\006 \001(\t\022\214\001\n#health_check_firewal" + + "ls_config_state\030\007 \001(\0162Z.google.cloud.net" + + "workmanagement.v1.LoadBalancerBackendInf" + + "o.HealthCheckFirewallsConfigStateB\003\340A\003\"\315" + + "\001\n\037HealthCheckFirewallsConfigState\0223\n/HE" + + "ALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPEC" + + "IFIED\020\000\022\030\n\024FIREWALLS_CONFIGURED\020\001\022\"\n\036FIR" + + "EWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n\030FIREWAL", + "LS_NOT_CONFIGURED\020\003\022\031\n\025FIREWALLS_UNSUPPO" + + "RTED\020\004\"#\n\021StorageBucketInfo\022\016\n\006bucket\030\001 " + + "\001(\t\"$\n\021ServerlessNegInfo\022\017\n\007neg_uri\030\001 \001(" + + "\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + + "TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVANCED_LOA" + + "D_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANCER\020\002\022 \n" + + "\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n\034INTER" + + "NAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_PROXY_L" + + "OAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_BALANCE" + + "R\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BALANCER\020" + + "\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034LEGACY_N" + + "ETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP_INTERN" + + "AL_LOAD_BALANCER\020\nB\371\001\n%com.google.cloud." + + "networkmanagement.v1B\nTraceProtoP\001ZSclou" + + "d.google.com/go/networkmanagement/apiv1/" + + "networkmanagementpb;networkmanagementpb\252" + + "\002!Google.Cloud.NetworkManagement.V1\312\002!Go" + + "ogle\\Cloud\\NetworkManagement\\V1\352\002$Google" + + "::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -549,6 +619,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "GkeMaster", "CloudSqlInstance", + "RedisInstance", + "RedisCluster", "CloudFunction", "AppEngineVersion", "CloudRunRevision", @@ -556,6 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProxyConnection", "LoadBalancerBackendInfo", "StorageBucket", + "ServerlessNeg", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1_InstanceInfo_descriptor = @@ -572,6 +645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalIp", "NetworkTags", "ServiceAccount", + "PscNetworkAttachmentUri", }); internal_static_google_cloud_networkmanagement_v1_NetworkInfo_descriptor = getDescriptor().getMessageTypes().get(3); @@ -579,7 +653,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_NetworkInfo_descriptor, new java.lang.String[] { - "DisplayName", "Uri", "MatchedIpRange", + "DisplayName", "Uri", "MatchedSubnetUri", "MatchedIpRange", "Region", }); internal_static_google_cloud_networkmanagement_v1_FirewallInfo_descriptor = getDescriptor().getMessageTypes().get(4); @@ -596,6 +670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTags", "TargetServiceAccounts", "Policy", + "PolicyUri", "FirewallRuleType", }); internal_static_google_cloud_networkmanagement_v1_RouteInfo_descriptor = @@ -609,6 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RouteScope", "DisplayName", "Uri", + "Region", "DestIpRange", "NextHop", "NetworkUri", @@ -620,6 +696,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Protocols", "NccHubUri", "NccSpokeUri", + "AdvertisedRouteSourceRouterUri", + "AdvertisedRouteNextHopUri", }); internal_static_google_cloud_networkmanagement_v1_GoogleServiceInfo_descriptor = getDescriptor().getMessageTypes().get(6); @@ -642,6 +720,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vip", "Target", "NetworkUri", + "Region", + "LoadBalancerName", + "PscServiceAttachmentUri", + "PscGoogleApiTarget", }); internal_static_google_cloud_networkmanagement_v1_LoadBalancerInfo_descriptor = getDescriptor().getMessageTypes().get(8); @@ -708,7 +790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_DeliverInfo_descriptor, new java.lang.String[] { - "Target", "ResourceUri", "IpAddress", + "Target", "ResourceUri", "IpAddress", "StorageBucket", "PscGoogleApiTarget", }); internal_static_google_cloud_networkmanagement_v1_ForwardInfo_descriptor = getDescriptor().getMessageTypes().get(14); @@ -750,8 +832,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region", }); - internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor = + internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor, + new java.lang.String[] { + "DisplayName", "Uri", "NetworkUri", "PrimaryEndpointIp", "ReadEndpointIp", "Region", + }); + internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor, + new java.lang.String[] { + "DisplayName", + "Uri", + "NetworkUri", + "DiscoveryEndpointIpAddress", + "SecondaryEndpointIpAddress", + "Location", + }); + internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor = + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor, @@ -759,7 +862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "VersionId", }); internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor, @@ -767,7 +870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "ServiceUri", }); internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor, @@ -775,7 +878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Runtime", "Environment", }); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor, @@ -783,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", }); internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor, @@ -803,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatGatewayName", }); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor, @@ -821,7 +924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", }); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor, @@ -838,13 +941,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckFirewallsConfigState", }); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor, new java.lang.String[] { "Bucket", }); + internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor, + new java.lang.String[] { + "NegUri", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto index 8fe340aeb918..0759773e2abc 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto @@ -37,9 +37,9 @@ message ConnectivityTest { pattern: "projects/{project}/locations/global/connectivityTests/{test}" }; - // Required. Unique name of the resource using the form: + // Identifier. Unique name of the resource using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The user-supplied description of the Connectivity Test. // Maximum of 512 characters. @@ -227,6 +227,14 @@ message Endpoint { // A [Cloud SQL](https://cloud.google.com/sql) instance URI. string cloud_sql_instance = 8; + // A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) + // URI. + string redis_instance = 17; + + // A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) + // URI. + string redis_cluster = 18; + // A [Cloud Function](https://cloud.google.com/functions). CloudFunctionEndpoint cloud_function = 10; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/reachability.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/reachability.proto index 2ae3caa910a9..e6ece7d335f0 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/reachability.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/reachability.proto @@ -106,7 +106,7 @@ service ReachabilityService { // // If the endpoint specifications in `ConnectivityTest` are incomplete, the // reachability result returns a value of `AMBIGUOUS`. See the documentation - // in `ConnectivityTest` for for more details. + // in `ConnectivityTest` for more details. rpc UpdateConnectivityTest(UpdateConnectivityTestRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -162,7 +162,12 @@ service ReachabilityService { message ListConnectivityTestsRequest { // Required. The parent resource of the Connectivity Tests: // `projects/{project_id}/locations/global` - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Number of `ConnectivityTests` to return. int32 page_size = 2; @@ -210,14 +215,24 @@ message ListConnectivityTestsResponse { message GetConnectivityTestRequest { // Required. `ConnectivityTest` resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Request for the `CreateConnectivityTest` method. message CreateConnectivityTestRequest { // Required. The parent resource of the Connectivity Test to create: // `projects/{project_id}/locations/global` - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. The logical name of the Connectivity Test in your project // with the following restrictions: @@ -248,14 +263,24 @@ message UpdateConnectivityTestRequest { message DeleteConnectivityTestRequest { // Required. Connectivity Test resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Request for the `RerunConnectivityTest` method. message RerunConnectivityTestRequest { // Required. Connectivity Test resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Metadata describing an [Operation][google.longrunning.Operation] diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto index de0bbfa48831..0a39fc3ffa55 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto @@ -94,6 +94,14 @@ message Step { // A CloudSQLInstanceInfo is populated with starting instance information. START_FROM_CLOUD_SQL_INSTANCE = 22; + // Initial state: packet originating from a Redis instance. + // A RedisInstanceInfo is populated with starting instance information. + START_FROM_REDIS_INSTANCE = 32; + + // Initial state: packet originating from a Redis Cluster. + // A RedisClusterInfo is populated with starting Cluster information. + START_FROM_REDIS_CLUSTER = 33; + // Initial state: packet originating from a Cloud Function. // A CloudFunctionInfo is populated with starting function information. START_FROM_CLOUD_FUNCTION = 23; @@ -115,6 +123,11 @@ message Step { // Private Service Connect. Used only for return traces. START_FROM_PSC_PUBLISHED_SERVICE = 30; + // Initial state: packet originating from a serverless network endpoint + // group backend. Used only for return traces. + // The serverless_neg information is populated. + START_FROM_SERVERLESS_NEG = 31; + // Config checking state: verify ingress firewall rule. APPLY_INGRESS_FIREWALL_RULE = 4; @@ -250,6 +263,12 @@ message Step { // Display information of a Cloud SQL instance. CloudSQLInstanceInfo cloud_sql_instance = 19; + // Display information of a Redis Instance. + RedisInstanceInfo redis_instance = 30; + + // Display information of a Redis Cluster. + RedisClusterInfo redis_cluster = 31; + // Display information of a Cloud Function. CloudFunctionInfo cloud_function = 20; @@ -270,6 +289,10 @@ message Step { // Display information of a Storage Bucket. Used only for return traces. StorageBucketInfo storage_bucket = 28; + + // Display information of a Serverless network endpoint group backend. Used + // only for return traces. + ServerlessNegInfo serverless_neg = 29; } } @@ -298,9 +321,13 @@ message InstanceInfo { // Service account authorized for the instance. string service_account = 8 [deprecated = true]; + + // URI of the PSC network attachment the NIC is attached to (if relevant). + string psc_network_attachment_uri = 9; } // For display only. Metadata associated with a Compute Engine network. +// Next ID: 7 message NetworkInfo { // Name of a Compute Engine network. string display_name = 1; @@ -308,12 +335,18 @@ message NetworkInfo { // URI of a Compute Engine network. string uri = 2; - // The IP range that matches the test. + // URI of the subnet matching the source IP address of the test. + string matched_subnet_uri = 5; + + // The IP range of the subnet matching the source IP address of the test. string matched_ip_range = 4; + + // The region of the subnet matching the source IP address of the test. + string region = 6; } // For display only. Metadata associated with a VPC firewall rule, an implied -// VPC firewall rule, or a hierarchical firewall policy rule. +// VPC firewall rule, or a firewall policy rule. message FirewallInfo { // The firewall rule's type. enum FirewallRuleType { @@ -364,12 +397,12 @@ message FirewallInfo { TRACKING_STATE = 101; } - // The display name of the VPC firewall rule. This field is not applicable - // to hierarchical firewall policy rules. + // The display name of the firewall rule. This field might be empty for + // firewall policy rules. string display_name = 1; - // The URI of the VPC firewall rule. This field is not applicable to - // implied firewall rules or hierarchical firewall policy rules. + // The URI of the firewall rule. This field is not applicable to implied + // VPC firewall rules. string uri = 2; // Possible values: INGRESS, EGRESS @@ -386,16 +419,22 @@ message FirewallInfo { string network_uri = 6; // The target tags defined by the VPC firewall rule. This field is not - // applicable to hierarchical firewall policy rules. + // applicable to firewall policy rules. repeated string target_tags = 7; // The target service accounts specified by the firewall rule. repeated string target_service_accounts = 8; - // The hierarchical firewall policy that this rule is associated with. - // This field is not applicable to VPC firewall rules. + // The name of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. string policy = 9; + // The URI of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. + string policy_uri = 11; + // The firewall rule's type. FirewallRuleType firewall_rule_type = 10; } @@ -428,6 +467,10 @@ message RouteInfo { // Policy based route. POLICY_BASED = 7; + + // Advertised route. Synthetic route which is used to transition from the + // StartFromPrivateNetwork state in Connectivity tests. + ADVERTISED = 101; } // Type of next hop: @@ -502,12 +545,12 @@ message RouteInfo { // Name of a route. string display_name = 1; - // URI of a route. - // Dynamic, peering static and peering dynamic routes do not have an URI. - // Advertised route from Google Cloud VPC to on-premises network also does - // not have an URI. + // URI of a route (if applicable). string uri = 2; + // Region of the route (if applicable). + string region = 19; + // Destination IP range of the route. string dest_ip_range = 3; @@ -540,6 +583,16 @@ message RouteInfo { // URI of a NCC Spoke. NCC_HUB routes only. optional string ncc_spoke_uri = 16; + + // For advertised dynamic routes, the URI of the Cloud Router that advertised + // the corresponding IP prefix. + optional string advertised_route_source_router_uri = 17; + + // For advertised routes, the URI of their next hop, i.e. the URI of the + // hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + // the advertised prefix is advertised through, or URI of the source peered + // network. + optional string advertised_route_next_hop_uri = 18; } // For display only. Details of a Google Service sending packets to a @@ -590,16 +643,16 @@ message GoogleServiceInfo { // For display only. Metadata associated with a Compute Engine forwarding rule. message ForwardingRuleInfo { - // Name of a Compute Engine forwarding rule. + // Name of the forwarding rule. string display_name = 1; - // URI of a Compute Engine forwarding rule. + // URI of the forwarding rule. string uri = 2; - // Protocol defined in the forwarding rule that matches the test. + // Protocol defined in the forwarding rule that matches the packet. string matched_protocol = 3; - // Port range defined in the forwarding rule that matches the test. + // Port range defined in the forwarding rule that matches the packet. string matched_port_range = 6; // VIP of the forwarding rule. @@ -608,8 +661,22 @@ message ForwardingRuleInfo { // Target type of the forwarding rule. string target = 5; - // Network URI. Only valid for Internal Load Balancer. + // Network URI. string network_uri = 7; + + // Region of the forwarding rule. Set only for regional forwarding rules. + string region = 8; + + // Name of the load balancer the forwarding rule belongs to. Empty for + // forwarding rules not related to load balancers (like PSC forwarding rules). + string load_balancer_name = 9; + + // URI of the PSC service attachment this forwarding rule targets (if + // applicable). + string psc_service_attachment_uri = 10; + + // PSC Google API target this forwarding rule targets (if applicable). + string psc_google_api_target = 11; } // For display only. Metadata associated with a load balancer. @@ -827,7 +894,7 @@ message DeliverInfo { // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). PSC_PUBLISHED_SERVICE = 6; - // Target is all Google APIs that use [Private Service + // Target is Google APIs that use [Private Service // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). PSC_GOOGLE_API = 7; @@ -852,6 +919,15 @@ message DeliverInfo { // Target is a Cloud Run revision. Used only for return traces. CLOUD_RUN_REVISION = 14; + + // Target is a Google-managed service. Used only for return traces. + GOOGLE_MANAGED_SERVICE = 15; + + // Target is a Redis Instance. + REDIS_INSTANCE = 16; + + // Target is a Redis Cluster. + REDIS_CLUSTER = 17; } // Target type where the packet is delivered to. @@ -862,6 +938,13 @@ message DeliverInfo { // IP address of the target (if applicable). string ip_address = 3 [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Name of the Cloud Storage Bucket the packet is delivered to (if + // applicable). + string storage_bucket = 4; + + // PSC Google API target the packet is delivered to (if applicable). + string psc_google_api_target = 5; } // Details of the final state "forward" and associated resource. @@ -952,6 +1035,10 @@ message AbortInfo { // found. UNKNOWN_IP = 2; + // Aborted because no endpoint with the packet's destination IP is found in + // the Google-managed project. + GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + // Aborted because the source IP address doesn't belong to any of the // subnets of the source VPC network. SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; @@ -968,6 +1055,10 @@ message AbortInfo { // endpoint configs required to run the test. PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; + // Aborted because user lacks permission to access Cloud Router configs + // required to run the test. + PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + // Aborted because no valid source or destination endpoint is derived from // the input test request. NO_SOURCE_LOCATION = 5; @@ -1023,6 +1114,13 @@ message AbortInfo { // not supported. SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; + // Aborted because tests with a Redis Cluster as a source are not supported. + SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + + // Aborted because tests with a Redis Instance as a source are not + // supported. + SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + // Aborted because tests with a forwarding rule as a source are not // supported. SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; @@ -1161,6 +1259,12 @@ message DropInfo { // Packet sent from or to a Cloud SQL instance that is not in running state. CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; + // Packet sent from or to a Redis Instance that is not in running state. + REDIS_INSTANCE_NOT_RUNNING = 68; + + // Packet sent from or to a Redis Cluster that is not in running state. + REDIS_CLUSTER_NOT_RUNNING = 69; + // The type of traffic is blocked and the user cannot configure a firewall // rule to enable it. See [Always blocked // traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for @@ -1226,6 +1330,11 @@ message DropInfo { // instance to a destination network. CLOUD_SQL_INSTANCE_NO_ROUTE = 35; + // Packet was dropped because the Cloud SQL instance requires all + // connections to use Cloud SQL connectors and to target the Cloud SQL proxy + // port (3307). + CLOUD_SQL_CONNECTOR_REQUIRED = 63; + // Packet could be dropped because the Cloud Function is not in an active // status. CLOUD_FUNCTION_NOT_ACTIVE = 22; @@ -1237,6 +1346,14 @@ message DropInfo { // state. VPC_CONNECTOR_NOT_RUNNING = 24; + // Packet could be dropped because the traffic from the serverless service + // to the VPC connector is not allowed. + VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + + // Packet could be dropped because the health check traffic to the VPC + // connector is not allowed. + VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + // Packet could be dropped because it was sent from a different region // to a regional forwarding without global access. FORWARDING_RULE_REGION_MISMATCH = 25; @@ -1268,6 +1385,10 @@ message DropInfo { // No NAT subnets are defined for the PSC service attachment. NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; + // PSC endpoint is accessed via NCC, but PSC transitivity configuration is + // not yet propagated. + PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + // The packet sent from the hybrid NEG proxy matches a non-dynamic route, // but such a configuration is not supported. HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; @@ -1292,6 +1413,75 @@ message DropInfo { // Packet is stuck in a routing loop. ROUTING_LOOP = 59; + + // Packet is dropped inside a Google-managed service due to being delivered + // in return trace to an endpoint that doesn't match the endpoint the packet + // was sent from in forward trace. Used only for return traces. + DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + + // Packet is dropped due to a load balancer backend instance not having a + // network interface in the network expected by the load balancer. + LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + + // Packet is dropped due to a backend service named port not being defined + // on the instance group level. + BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + + // Packet is dropped due to a destination IP range being part of a Private + // NAT IP range. + DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + + // Generic drop cause for a packet being dropped inside a Redis Instance + // service project. + DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + + // Packet is dropped due to an unsupported port being used to connect to a + // Redis Instance. Port 6379 should be used to connect to a Redis Instance. + REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + + // Packet is dropped due to connecting from PUPI address to a PSA based + // Redis Instance. + REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + + // Packet is dropped due to no route to the destination network. + REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + + // Redis Instance does not have an external IP address. + REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + + // Packet is dropped due to an unsupported protocol being used to connect to + // a Redis Instance. Only TCP connections are accepted by a Redis Instance. + REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + + // Generic drop cause for a packet being dropped inside a Redis Cluster + // service project. + DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + + // Packet is dropped due to an unsupported port being used to connect to a + // Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to + // a Redis Cluster. + REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + + // Redis Cluster does not have an external IP address. + REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + + // Packet is dropped due to an unsupported protocol being used to connect to + // a Redis Cluster. Only TCP connections are accepted by a Redis Cluster. + REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + + // Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + // to the destination IP address not belonging to any IP prefix advertised + // via BGP by the Cloud Router. + NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + + // Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + // to the destination IP address not belonging to any IP prefix included to + // the local traffic selector of the VPN tunnel. + NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + + // Packet from the unknown peered network is dropped due to no known route + // from the source network to the destination IP address. + NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; } // Cause that the packet is dropped. @@ -1348,6 +1538,53 @@ message CloudSQLInstanceInfo { string region = 7; } +// For display only. Metadata associated with a Cloud Redis Instance. +message RedisInstanceInfo { + // Name of a Cloud Redis Instance. + string display_name = 1; + + // URI of a Cloud Redis Instance. + string uri = 2; + + // URI of a Cloud Redis Instance network. + string network_uri = 3; + + // Primary endpoint IP address of a Cloud Redis Instance. + string primary_endpoint_ip = 4; + + // Read endpoint IP address of a Cloud Redis Instance (if applicable). + string read_endpoint_ip = 5; + + // Region in which the Cloud Redis Instance is defined. + string region = 6; +} + +// For display only. Metadata associated with a Redis Cluster. +message RedisClusterInfo { + // Name of a Redis Cluster. + string display_name = 1; + + // URI of a Redis Cluster in format + // "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + string uri = 2; + + // URI of a Redis Cluster network in format + // "projects/{project_id}/global/networks/{network_id}". + string network_uri = 3; + + // Discovery endpoint IP address of a Redis Cluster. + string discovery_endpoint_ip_address = 4 + [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Secondary endpoint IP address of a Redis Cluster. + string secondary_endpoint_ip_address = 5 + [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Name of the region in which the Redis Cluster is defined. For example, + // "us-central1". + string location = 6; +} + // For display only. Metadata associated with a Cloud Function. message CloudFunctionInfo { // Name of a Cloud Function. @@ -1619,3 +1856,10 @@ message StorageBucketInfo { // Cloud Storage Bucket name. string bucket = 1; } + +// For display only. Metadata associated with the serverless network endpoint +// group backend. +message ServerlessNegInfo { + // URI of the serverless network endpoint group. + string neg_uri = 1; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java index 7334094037e0..89e7ba408086 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java @@ -193,6 +193,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNKNOWN_IP = 2; */ UNKNOWN_IP(2), + /** + * + * + *
+     * Aborted because no endpoint with the packet's destination IP is found in
+     * the Google-managed project.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + */ + GOOGLE_MANAGED_SERVICE_UNKNOWN_IP(32), /** * * @@ -237,6 +248,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; */ PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS(29), + /** + * + * + *
+     * Aborted because user lacks permission to access Cloud Router configs
+     * required to run the test.
+     * 
+ * + * PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + */ + PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS(36), /** * * @@ -390,6 +412,27 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; */ SOURCE_PSC_CLOUD_SQL_UNSUPPORTED(20), + /** + * + * + *
+     * Aborted because tests with a Redis Cluster as a source are not supported.
+     * 
+ * + * SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + */ + SOURCE_REDIS_CLUSTER_UNSUPPORTED(34), + /** + * + * + *
+     * Aborted because tests with a Redis Instance as a source are not
+     * supported.
+     * 
+ * + * SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + */ + SOURCE_REDIS_INSTANCE_UNSUPPORTED(35), /** * * @@ -545,6 +588,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNKNOWN_IP = 2; */ public static final int UNKNOWN_IP_VALUE = 2; + /** + * + * + *
+     * Aborted because no endpoint with the packet's destination IP is found in
+     * the Google-managed project.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + */ + public static final int GOOGLE_MANAGED_SERVICE_UNKNOWN_IP_VALUE = 32; /** * * @@ -589,6 +643,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; */ public static final int PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS_VALUE = 29; + /** + * + * + *
+     * Aborted because user lacks permission to access Cloud Router configs
+     * required to run the test.
+     * 
+ * + * PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + */ + public static final int PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS_VALUE = 36; /** * * @@ -742,6 +807,27 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; */ public static final int SOURCE_PSC_CLOUD_SQL_UNSUPPORTED_VALUE = 20; + /** + * + * + *
+     * Aborted because tests with a Redis Cluster as a source are not supported.
+     * 
+ * + * SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + */ + public static final int SOURCE_REDIS_CLUSTER_UNSUPPORTED_VALUE = 34; + /** + * + * + *
+     * Aborted because tests with a Redis Instance as a source are not
+     * supported.
+     * 
+ * + * SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + */ + public static final int SOURCE_REDIS_INSTANCE_UNSUPPORTED_VALUE = 35; /** * * @@ -830,6 +916,8 @@ public static Cause forNumber(int value) { return MISMATCHED_DESTINATION_NETWORK; case 2: return UNKNOWN_IP; + case 32: + return GOOGLE_MANAGED_SERVICE_UNKNOWN_IP; case 23: return SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK; case 4: @@ -838,6 +926,8 @@ public static Cause forNumber(int value) { return PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS; case 29: return PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS; + case 36: + return PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS; case 5: return NO_SOURCE_LOCATION; case 6: @@ -866,6 +956,10 @@ public static Cause forNumber(int value) { return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT; case 20: return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED; + case 34: + return SOURCE_REDIS_CLUSTER_UNSUPPORTED; + case 35: + return SOURCE_REDIS_INSTANCE_UNSUPPORTED; case 21: return SOURCE_FORWARDING_RULE_UNSUPPORTED; case 22: diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTest.java index bb4fa1593c59..415edc0a4e58 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTest.java @@ -88,11 +88,11 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -112,11 +112,11 @@ public java.lang.String getName() { * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1683,11 +1683,11 @@ public Builder mergeFrom( * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1706,11 +1706,11 @@ public java.lang.String getName() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1729,11 +1729,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1751,11 +1751,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1769,11 +1769,11 @@ public Builder clearName() { * * *
-     * Required. Unique name of the resource using the form:
+     * Identifier. Unique name of the resource using the form:
      *     `projects/{project_id}/locations/global/connectivityTests/{test}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java new file mode 100644 index 000000000000..d4aebbfb9335 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConnectivityTestName implements ResourceName { + private static final PathTemplate PROJECT_TEST = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/global/connectivityTests/{test}"); + private volatile Map fieldValuesMap; + private final String project; + private final String test; + + @Deprecated + protected ConnectivityTestName() { + project = null; + test = null; + } + + private ConnectivityTestName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + test = Preconditions.checkNotNull(builder.getTest()); + } + + public String getProject() { + return project; + } + + public String getTest() { + return test; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConnectivityTestName of(String project, String test) { + return newBuilder().setProject(project).setTest(test).build(); + } + + public static String format(String project, String test) { + return newBuilder().setProject(project).setTest(test).build().toString(); + } + + public static ConnectivityTestName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_TEST.validatedMatch( + formattedString, "ConnectivityTestName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("test")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConnectivityTestName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TEST.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (test != null) { + fieldMapBuilder.put("test", test); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_TEST.instantiate("project", project, "test", test); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConnectivityTestName that = ((ConnectivityTestName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.test, that.test); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(test); + return h; + } + + /** Builder for projects/{project}/locations/global/connectivityTests/{test}. */ + public static class Builder { + private String project; + private String test; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTest() { + return test; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTest(String test) { + this.test = test; + return this; + } + + private Builder(ConnectivityTestName connectivityTestName) { + this.project = connectivityTestName.project; + this.test = connectivityTestName.test; + } + + public ConnectivityTestName build() { + return new ConnectivityTestName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestOrBuilder.java index 09cf3d12f746..778e718d8be2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestOrBuilder.java @@ -28,11 +28,11 @@ public interface ConnectivityTestOrBuilder * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -41,11 +41,11 @@ public interface ConnectivityTestOrBuilder * * *
-   * Required. Unique name of the resource using the form:
+   * Identifier. Unique name of the resource using the form:
    *     `projects/{project_id}/locations/global/connectivityTests/{test}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequest.java index 8009902bfc70..0aa1c1f846d5 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequest.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -101,7 +103,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -671,7 +675,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -694,7 +700,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -717,7 +725,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -739,7 +749,9 @@ public Builder setParent(java.lang.String value) { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -757,7 +769,9 @@ public Builder clearParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequestOrBuilder.java index 60ed0d217fa0..1ad258f3c0cf 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface CreateConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -45,7 +47,9 @@ public interface CreateConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequest.java index 7d5317c18cf2..c7b024bf3735 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -480,7 +484,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -503,7 +509,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -526,7 +534,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -548,7 +558,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -566,7 +578,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequestOrBuilder.java index 8d7f888ef18c..f0e876055716 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface DeleteConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface DeleteConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java index 86fcdc3a0569..2604e3f22258 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java @@ -42,6 +42,8 @@ private DeliverInfo() { target_ = 0; resourceUri_ = ""; ipAddress_ = ""; + storageBucket_ = ""; + pscGoogleApiTarget_ = ""; } @java.lang.Override @@ -150,7 +152,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Target is all Google APIs that use [Private Service
+     * Target is Google APIs that use [Private Service
      * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
      * 
* @@ -228,6 +230,36 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_REVISION = 14; */ CLOUD_RUN_REVISION(14), + /** + * + * + *
+     * Target is a Google-managed service. Used only for return traces.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE = 15; + */ + GOOGLE_MANAGED_SERVICE(15), + /** + * + * + *
+     * Target is a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE = 16; + */ + REDIS_INSTANCE(16), + /** + * + * + *
+     * Target is a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER = 17; + */ + REDIS_CLUSTER(17), UNRECOGNIZED(-1), ; @@ -306,7 +338,7 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Target is all Google APIs that use [Private Service
+     * Target is Google APIs that use [Private Service
      * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).
      * 
* @@ -384,6 +416,36 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_REVISION = 14; */ public static final int CLOUD_RUN_REVISION_VALUE = 14; + /** + * + * + *
+     * Target is a Google-managed service. Used only for return traces.
+     * 
+ * + * GOOGLE_MANAGED_SERVICE = 15; + */ + public static final int GOOGLE_MANAGED_SERVICE_VALUE = 15; + /** + * + * + *
+     * Target is a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE = 16; + */ + public static final int REDIS_INSTANCE_VALUE = 16; + /** + * + * + *
+     * Target is a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER = 17; + */ + public static final int REDIS_CLUSTER_VALUE = 17; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -439,6 +501,12 @@ public static Target forNumber(int value) { return APP_ENGINE_VERSION; case 14: return CLOUD_RUN_REVISION; + case 15: + return GOOGLE_MANAGED_SERVICE; + case 16: + return REDIS_INSTANCE; + case 17: + return REDIS_CLUSTER; default: return null; } @@ -633,6 +701,110 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } + public static final int STORAGE_BUCKET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageBucket_ = ""; + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + @java.lang.Override + public java.lang.String getStorageBucket() { + java.lang.Object ref = storageBucket_; + 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(); + storageBucket_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageBucketBytes() { + java.lang.Object ref = storageBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -658,6 +830,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageBucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pscGoogleApiTarget_); + } getUnknownFields().writeTo(output); } @@ -678,6 +856,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageBucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pscGoogleApiTarget_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -697,6 +881,8 @@ public boolean equals(final java.lang.Object obj) { if (target_ != other.target_) return false; if (!getResourceUri().equals(other.getResourceUri())) return false; if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getStorageBucket().equals(other.getStorageBucket())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -714,6 +900,10 @@ public int hashCode() { hash = (53 * hash) + getResourceUri().hashCode(); hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getStorageBucket().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -857,6 +1047,8 @@ public Builder clear() { target_ = 0; resourceUri_ = ""; ipAddress_ = ""; + storageBucket_ = ""; + pscGoogleApiTarget_ = ""; return this; } @@ -902,6 +1094,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.DeliverInf if (((from_bitField0_ & 0x00000004) != 0)) { result.ipAddress_ = ipAddress_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.storageBucket_ = storageBucket_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } } @java.lang.Override @@ -963,6 +1161,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.DeliverInfo bitField0_ |= 0x00000004; onChanged(); } + if (!other.getStorageBucket().isEmpty()) { + storageBucket_ = other.storageBucket_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1007,6 +1215,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + storageBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1330,6 +1550,223 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object storageBucket_ = ""; + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + public java.lang.String getStorageBucket() { + java.lang.Object ref = storageBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + public com.google.protobuf.ByteString getStorageBucketBytes() { + java.lang.Object ref = storageBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @param value The storageBucket to set. + * @return This builder for chaining. + */ + public Builder setStorageBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageBucket_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @return This builder for chaining. + */ + public Builder clearStorageBucket() { + storageBucket_ = getDefaultInstance().getStorageBucket(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the Cloud Storage Bucket the packet is delivered to (if
+     * applicable).
+     * 
+ * + * string storage_bucket = 4; + * + * @param value The bytes for storageBucket to set. + * @return This builder for chaining. + */ + public Builder setStorageBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageBucket_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target the packet is delivered to (if applicable).
+     * 
+ * + * string psc_google_api_target = 5; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java index 516f365fd9b1..73969df9aceb 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java @@ -98,4 +98,56 @@ public interface DeliverInfoOrBuilder * @return The bytes for ipAddress. */ com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The storageBucket. + */ + java.lang.String getStorageBucket(); + /** + * + * + *
+   * Name of the Cloud Storage Bucket the packet is delivered to (if
+   * applicable).
+   * 
+ * + * string storage_bucket = 4; + * + * @return The bytes for storageBucket. + */ + com.google.protobuf.ByteString getStorageBucketBytes(); + + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
+   * PSC Google API target the packet is delivered to (if applicable).
+   * 
+ * + * string psc_google_api_target = 5; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java index 33df6452c82f..c3e6f4af38ed 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java @@ -377,6 +377,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; */ CLOUD_SQL_INSTANCE_NOT_RUNNING(28), + /** + * + * + *
+     * Packet sent from or to a Redis Instance that is not in running state.
+     * 
+ * + * REDIS_INSTANCE_NOT_RUNNING = 68; + */ + REDIS_INSTANCE_NOT_RUNNING(68), + /** + * + * + *
+     * Packet sent from or to a Redis Cluster that is not in running state.
+     * 
+ * + * REDIS_CLUSTER_NOT_RUNNING = 69; + */ + REDIS_CLUSTER_NOT_RUNNING(69), /** * * @@ -547,6 +567,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NO_ROUTE = 35; */ CLOUD_SQL_INSTANCE_NO_ROUTE(35), + /** + * + * + *
+     * Packet was dropped because the Cloud SQL instance requires all
+     * connections to use Cloud SQL connectors and to target the Cloud SQL proxy
+     * port (3307).
+     * 
+ * + * CLOUD_SQL_CONNECTOR_REQUIRED = 63; + */ + CLOUD_SQL_CONNECTOR_REQUIRED(63), /** * * @@ -579,6 +611,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * VPC_CONNECTOR_NOT_RUNNING = 24; */ VPC_CONNECTOR_NOT_RUNNING(24), + /** + * + * + *
+     * Packet could be dropped because the traffic from the serverless service
+     * to the VPC connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + */ + VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED(60), + /** + * + * + *
+     * Packet could be dropped because the health check traffic to the VPC
+     * connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + */ + VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED(61), /** * * @@ -659,6 +713,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; */ NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT(57), + /** + * + * + *
+     * PSC endpoint is accessed via NCC, but PSC transitivity configuration is
+     * not yet propagated.
+     * 
+ * + * PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + */ + PSC_TRANSITIVITY_NOT_PROPAGATED(64), /** * * @@ -733,6 +798,194 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * ROUTING_LOOP = 59; */ ROUTING_LOOP(59), + /** + * + * + *
+     * Packet is dropped inside a Google-managed service due to being delivered
+     * in return trace to an endpoint that doesn't match the endpoint the packet
+     * was sent from in forward trace. Used only for return traces.
+     * 
+ * + * DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + */ + DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE(62), + /** + * + * + *
+     * Packet is dropped due to a load balancer backend instance not having a
+     * network interface in the network expected by the load balancer.
+     * 
+ * + * LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + */ + LOAD_BALANCER_BACKEND_INVALID_NETWORK(65), + /** + * + * + *
+     * Packet is dropped due to a backend service named port not being defined
+     * on the instance group level.
+     * 
+ * + * BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + */ + BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED(66), + /** + * + * + *
+     * Packet is dropped due to a destination IP range being part of a Private
+     * NAT IP range.
+     * 
+ * + * DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + */ + DESTINATION_IS_PRIVATE_NAT_IP_RANGE(67), + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Instance
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + */ + DROPPED_INSIDE_REDIS_INSTANCE_SERVICE(70), + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Instance. Port 6379 should be used to connect to a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + */ + REDIS_INSTANCE_UNSUPPORTED_PORT(71), + /** + * + * + *
+     * Packet is dropped due to connecting from PUPI address to a PSA based
+     * Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + */ + REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS(72), + /** + * + * + *
+     * Packet is dropped due to no route to the destination network.
+     * 
+ * + * REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + */ + REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK(73), + /** + * + * + *
+     * Redis Instance does not have an external IP address.
+     * 
+ * + * REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + */ + REDIS_INSTANCE_NO_EXTERNAL_IP(74), + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Instance. Only TCP connections are accepted by a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + */ + REDIS_INSTANCE_UNSUPPORTED_PROTOCOL(78), + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Cluster
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + */ + DROPPED_INSIDE_REDIS_CLUSTER_SERVICE(75), + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to
+     * a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + */ + REDIS_CLUSTER_UNSUPPORTED_PORT(76), + /** + * + * + *
+     * Redis Cluster does not have an external IP address.
+     * 
+ * + * REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + */ + REDIS_CLUSTER_NO_EXTERNAL_IP(77), + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + */ + REDIS_CLUSTER_UNSUPPORTED_PROTOCOL(79), + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix advertised
+     * via BGP by the Cloud Router.
+     * 
+ * + * NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + */ + NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION(80), + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix included to
+     * the local traffic selector of the VPN tunnel.
+     * 
+ * + * NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + */ + NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION(81), + /** + * + * + *
+     * Packet from the unknown peered network is dropped due to no known route
+     * from the source network to the destination IP address.
+     * 
+ * + * NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + */ + NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION(82), UNRECOGNIZED(-1), ; @@ -1036,6 +1289,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; */ public static final int CLOUD_SQL_INSTANCE_NOT_RUNNING_VALUE = 28; + /** + * + * + *
+     * Packet sent from or to a Redis Instance that is not in running state.
+     * 
+ * + * REDIS_INSTANCE_NOT_RUNNING = 68; + */ + public static final int REDIS_INSTANCE_NOT_RUNNING_VALUE = 68; + /** + * + * + *
+     * Packet sent from or to a Redis Cluster that is not in running state.
+     * 
+ * + * REDIS_CLUSTER_NOT_RUNNING = 69; + */ + public static final int REDIS_CLUSTER_NOT_RUNNING_VALUE = 69; /** * * @@ -1206,6 +1479,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_SQL_INSTANCE_NO_ROUTE = 35; */ public static final int CLOUD_SQL_INSTANCE_NO_ROUTE_VALUE = 35; + /** + * + * + *
+     * Packet was dropped because the Cloud SQL instance requires all
+     * connections to use Cloud SQL connectors and to target the Cloud SQL proxy
+     * port (3307).
+     * 
+ * + * CLOUD_SQL_CONNECTOR_REQUIRED = 63; + */ + public static final int CLOUD_SQL_CONNECTOR_REQUIRED_VALUE = 63; /** * * @@ -1238,6 +1523,28 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * VPC_CONNECTOR_NOT_RUNNING = 24; */ public static final int VPC_CONNECTOR_NOT_RUNNING_VALUE = 24; + /** + * + * + *
+     * Packet could be dropped because the traffic from the serverless service
+     * to the VPC connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + */ + public static final int VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED_VALUE = 60; + /** + * + * + *
+     * Packet could be dropped because the health check traffic to the VPC
+     * connector is not allowed.
+     * 
+ * + * VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + */ + public static final int VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED_VALUE = 61; /** * * @@ -1318,6 +1625,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; */ public static final int NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT_VALUE = 57; + /** + * + * + *
+     * PSC endpoint is accessed via NCC, but PSC transitivity configuration is
+     * not yet propagated.
+     * 
+ * + * PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + */ + public static final int PSC_TRANSITIVITY_NOT_PROPAGATED_VALUE = 64; /** * * @@ -1392,6 +1710,194 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * ROUTING_LOOP = 59; */ public static final int ROUTING_LOOP_VALUE = 59; + /** + * + * + *
+     * Packet is dropped inside a Google-managed service due to being delivered
+     * in return trace to an endpoint that doesn't match the endpoint the packet
+     * was sent from in forward trace. Used only for return traces.
+     * 
+ * + * DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + */ + public static final int DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE_VALUE = 62; + /** + * + * + *
+     * Packet is dropped due to a load balancer backend instance not having a
+     * network interface in the network expected by the load balancer.
+     * 
+ * + * LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + */ + public static final int LOAD_BALANCER_BACKEND_INVALID_NETWORK_VALUE = 65; + /** + * + * + *
+     * Packet is dropped due to a backend service named port not being defined
+     * on the instance group level.
+     * 
+ * + * BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + */ + public static final int BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED_VALUE = 66; + /** + * + * + *
+     * Packet is dropped due to a destination IP range being part of a Private
+     * NAT IP range.
+     * 
+ * + * DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + */ + public static final int DESTINATION_IS_PRIVATE_NAT_IP_RANGE_VALUE = 67; + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Instance
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + */ + public static final int DROPPED_INSIDE_REDIS_INSTANCE_SERVICE_VALUE = 70; + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Instance. Port 6379 should be used to connect to a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + */ + public static final int REDIS_INSTANCE_UNSUPPORTED_PORT_VALUE = 71; + /** + * + * + *
+     * Packet is dropped due to connecting from PUPI address to a PSA based
+     * Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + */ + public static final int REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS_VALUE = 72; + /** + * + * + *
+     * Packet is dropped due to no route to the destination network.
+     * 
+ * + * REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + */ + public static final int REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK_VALUE = 73; + /** + * + * + *
+     * Redis Instance does not have an external IP address.
+     * 
+ * + * REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + */ + public static final int REDIS_INSTANCE_NO_EXTERNAL_IP_VALUE = 74; + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Instance. Only TCP connections are accepted by a Redis Instance.
+     * 
+ * + * REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + */ + public static final int REDIS_INSTANCE_UNSUPPORTED_PROTOCOL_VALUE = 78; + /** + * + * + *
+     * Generic drop cause for a packet being dropped inside a Redis Cluster
+     * service project.
+     * 
+ * + * DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + */ + public static final int DROPPED_INSIDE_REDIS_CLUSTER_SERVICE_VALUE = 75; + /** + * + * + *
+     * Packet is dropped due to an unsupported port being used to connect to a
+     * Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to
+     * a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + */ + public static final int REDIS_CLUSTER_UNSUPPORTED_PORT_VALUE = 76; + /** + * + * + *
+     * Redis Cluster does not have an external IP address.
+     * 
+ * + * REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + */ + public static final int REDIS_CLUSTER_NO_EXTERNAL_IP_VALUE = 77; + /** + * + * + *
+     * Packet is dropped due to an unsupported protocol being used to connect to
+     * a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.
+     * 
+ * + * REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + */ + public static final int REDIS_CLUSTER_UNSUPPORTED_PROTOCOL_VALUE = 79; + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix advertised
+     * via BGP by the Cloud Router.
+     * 
+ * + * NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + */ + public static final int NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION_VALUE = 80; + /** + * + * + *
+     * Packet from the non-GCP (on-prem) or unknown GCP network is dropped due
+     * to the destination IP address not belonging to any IP prefix included to
+     * the local traffic selector of the VPN tunnel.
+     * 
+ * + * NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + */ + public static final int NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION_VALUE = 81; + /** + * + * + *
+     * Packet from the unknown peered network is dropped due to no known route
+     * from the source network to the destination IP address.
+     * 
+ * + * NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; + */ + public static final int NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION_VALUE = 82; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -1473,6 +1979,10 @@ public static Cause forNumber(int value) { return GKE_CLUSTER_NOT_RUNNING; case 28: return CLOUD_SQL_INSTANCE_NOT_RUNNING; + case 68: + return REDIS_INSTANCE_NOT_RUNNING; + case 69: + return REDIS_CLUSTER_NOT_RUNNING; case 15: return TRAFFIC_TYPE_BLOCKED; case 16: @@ -1503,12 +2013,18 @@ public static Cause forNumber(int value) { return PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION; case 35: return CLOUD_SQL_INSTANCE_NO_ROUTE; + case 63: + return CLOUD_SQL_CONNECTOR_REQUIRED; case 22: return CLOUD_FUNCTION_NOT_ACTIVE; case 23: return VPC_CONNECTOR_NOT_SET; case 24: return VPC_CONNECTOR_NOT_RUNNING; + case 60: + return VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED; + case 61: + return VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED; case 25: return FORWARDING_RULE_REGION_MISMATCH; case 26: @@ -1523,6 +2039,8 @@ public static Cause forNumber(int value) { return CLOUD_SQL_PSC_NEG_UNSUPPORTED; case 57: return NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT; + case 64: + return PSC_TRANSITIVITY_NOT_PROPAGATED; case 55: return HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED; case 56: @@ -1537,6 +2055,40 @@ public static Cause forNumber(int value) { return CLOUD_NAT_NO_ADDRESSES; case 59: return ROUTING_LOOP; + case 62: + return DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE; + case 65: + return LOAD_BALANCER_BACKEND_INVALID_NETWORK; + case 66: + return BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED; + case 67: + return DESTINATION_IS_PRIVATE_NAT_IP_RANGE; + case 70: + return DROPPED_INSIDE_REDIS_INSTANCE_SERVICE; + case 71: + return REDIS_INSTANCE_UNSUPPORTED_PORT; + case 72: + return REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS; + case 73: + return REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK; + case 74: + return REDIS_INSTANCE_NO_EXTERNAL_IP; + case 78: + return REDIS_INSTANCE_UNSUPPORTED_PROTOCOL; + case 75: + return DROPPED_INSIDE_REDIS_CLUSTER_SERVICE; + case 76: + return REDIS_CLUSTER_UNSUPPORTED_PORT; + case 77: + return REDIS_CLUSTER_NO_EXTERNAL_IP; + case 79: + return REDIS_CLUSTER_UNSUPPORTED_PROTOCOL; + case 80: + return NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION; + case 81: + return NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION; + case 82: + return NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java index 66a63059588a..665c8ff47105 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java @@ -47,6 +47,8 @@ private Endpoint() { loadBalancerType_ = 0; gkeMasterCluster_ = ""; cloudSqlInstance_ = ""; + redisInstance_ = ""; + redisCluster_ = ""; network_ = ""; networkType_ = 0; projectId_ = ""; @@ -2974,6 +2976,112 @@ public com.google.protobuf.ByteString getCloudSqlInstanceBytes() { } } + public static final int REDIS_INSTANCE_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object redisInstance_ = ""; + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + @java.lang.Override + public java.lang.String getRedisInstance() { + java.lang.Object ref = redisInstance_; + 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(); + redisInstance_ = s; + return s; + } + } + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedisInstanceBytes() { + java.lang.Object ref = redisInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIS_CLUSTER_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object redisCluster_ = ""; + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + @java.lang.Override + public java.lang.String getRedisCluster() { + java.lang.Object ref = redisCluster_; + 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(); + redisCluster_ = s; + return s; + } + } + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedisClusterBytes() { + java.lang.Object ref = redisCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10; private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_; /** @@ -3382,6 +3490,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(16, loadBalancerType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisInstance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, redisInstance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, redisCluster_); + } getUnknownFields().writeTo(output); } @@ -3438,6 +3552,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, loadBalancerType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisInstance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, redisInstance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, redisCluster_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3472,6 +3592,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getGkeMasterCluster().equals(other.getGkeMasterCluster())) return false; if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false; + if (!getRedisInstance().equals(other.getRedisInstance())) return false; + if (!getRedisCluster().equals(other.getRedisCluster())) return false; if (hasCloudFunction() != other.hasCloudFunction()) return false; if (hasCloudFunction()) { if (!getCloudFunction().equals(other.getCloudFunction())) return false; @@ -3522,6 +3644,10 @@ public int hashCode() { hash = (53 * hash) + getGkeMasterCluster().hashCode(); hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlInstance().hashCode(); + hash = (37 * hash) + REDIS_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getRedisInstance().hashCode(); + hash = (37 * hash) + REDIS_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getRedisCluster().hashCode(); if (hasCloudFunction()) { hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -3699,6 +3825,8 @@ public Builder clear() { loadBalancerType_ = 0; gkeMasterCluster_ = ""; cloudSqlInstance_ = ""; + redisInstance_ = ""; + redisCluster_ = ""; cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -3785,27 +3913,33 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.Endpoint r result.cloudSqlInstance_ = cloudSqlInstance_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.redisInstance_ = redisInstance_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.redisCluster_ = redisCluster_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { result.cloudFunction_ = cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.appEngineVersion_ = appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.cloudRunRevision_ = cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.networkType_ = networkType_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -3896,6 +4030,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth bitField0_ |= 0x00000100; onChanged(); } + if (!other.getRedisInstance().isEmpty()) { + redisInstance_ = other.redisInstance_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getRedisCluster().isEmpty()) { + redisCluster_ = other.redisCluster_; + bitField0_ |= 0x00000400; + onChanged(); + } if (other.hasCloudFunction()) { mergeCloudFunction(other.getCloudFunction()); } @@ -3907,7 +4051,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); } if (other.networkType_ != 0) { @@ -3915,7 +4059,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3965,19 +4109,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 50 case 58: @@ -3995,21 +4139,21 @@ public Builder mergeFrom( case 82: { input.readMessage(getCloudFunctionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 82 case 90: { input.readMessage( getAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 90 case 98: { input.readMessage( getCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 98 case 106: @@ -4036,6 +4180,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 128 + case 138: + { + redisInstance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 138 + case 146: + { + redisCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5045,6 +5201,228 @@ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object redisInstance_ = ""; + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + public java.lang.String getRedisInstance() { + java.lang.Object ref = redisInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisInstance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + public com.google.protobuf.ByteString getRedisInstanceBytes() { + java.lang.Object ref = redisInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @param value The redisInstance to set. + * @return This builder for chaining. + */ + public Builder setRedisInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redisInstance_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @return This builder for chaining. + */ + public Builder clearRedisInstance() { + redisInstance_ = getDefaultInstance().getRedisInstance(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+     * URI.
+     * 
+ * + * string redis_instance = 17; + * + * @param value The bytes for redisInstance to set. + * @return This builder for chaining. + */ + public Builder setRedisInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisInstance_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object redisCluster_ = ""; + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + public java.lang.String getRedisCluster() { + java.lang.Object ref = redisCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + public com.google.protobuf.ByteString getRedisClusterBytes() { + java.lang.Object ref = redisCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redisCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @param value The redisCluster to set. + * @return This builder for chaining. + */ + public Builder setRedisCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redisCluster_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @return This builder for chaining. + */ + public Builder clearRedisCluster() { + redisCluster_ = getDefaultInstance().getRedisCluster(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+     * URI.
+     * 
+ * + * string redis_cluster = 18; + * + * @param value The bytes for redisCluster to set. + * @return This builder for chaining. + */ + public Builder setRedisClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redisCluster_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_; private com.google.protobuf.SingleFieldBuilderV3< @@ -5066,7 +5444,7 @@ public Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value) { * @return Whether the cloudFunction field is set. */ public boolean hasCloudFunction() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -5113,7 +5491,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5136,7 +5514,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5154,7 +5532,7 @@ public Builder setCloudFunction( public Builder mergeCloudFunction( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) { if (cloudFunctionBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && cloudFunction_ != null && cloudFunction_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint @@ -5167,7 +5545,7 @@ public Builder mergeCloudFunction( cloudFunctionBuilder_.mergeFrom(value); } if (cloudFunction_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5184,7 +5562,7 @@ public Builder mergeCloudFunction( * */ public Builder clearCloudFunction() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -5206,7 +5584,7 @@ public Builder clearCloudFunction() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getCloudFunctionFieldBuilder().getBuilder(); } @@ -5282,7 +5660,7 @@ public Builder clearCloudFunction() { * @return Whether the appEngineVersion field is set. */ public boolean hasAppEngineVersion() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -5331,7 +5709,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5355,7 +5733,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5374,7 +5752,7 @@ public Builder setAppEngineVersion( public Builder mergeAppEngineVersion( com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint value) { if (appEngineVersionBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && appEngineVersion_ != null && appEngineVersion_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint @@ -5387,7 +5765,7 @@ public Builder mergeAppEngineVersion( appEngineVersionBuilder_.mergeFrom(value); } if (appEngineVersion_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5405,7 +5783,7 @@ public Builder mergeAppEngineVersion( * */ public Builder clearAppEngineVersion() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); appEngineVersion_ = null; if (appEngineVersionBuilder_ != null) { appEngineVersionBuilder_.dispose(); @@ -5428,7 +5806,7 @@ public Builder clearAppEngineVersion() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return getAppEngineVersionFieldBuilder().getBuilder(); } @@ -5508,7 +5886,7 @@ public Builder clearAppEngineVersion() { * @return Whether the cloudRunRevision field is set. */ public boolean hasCloudRunRevision() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -5557,7 +5935,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5581,7 +5959,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5600,7 +5978,7 @@ public Builder setCloudRunRevision( public Builder mergeCloudRunRevision( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint value) { if (cloudRunRevisionBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00002000) != 0) && cloudRunRevision_ != null && cloudRunRevision_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint @@ -5613,7 +5991,7 @@ public Builder mergeCloudRunRevision( cloudRunRevisionBuilder_.mergeFrom(value); } if (cloudRunRevision_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5631,7 +6009,7 @@ public Builder mergeCloudRunRevision( * */ public Builder clearCloudRunRevision() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); cloudRunRevision_ = null; if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.dispose(); @@ -5654,7 +6032,7 @@ public Builder clearCloudRunRevision() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return getCloudRunRevisionFieldBuilder().getBuilder(); } @@ -5774,7 +6152,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5791,7 +6169,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -5813,7 +6191,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5852,7 +6230,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5896,7 +6274,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; networkType_ = value.getNumber(); onChanged(); return this; @@ -5915,7 +6293,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); networkType_ = 0; onChanged(); return this; @@ -6007,7 +6385,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6032,7 +6410,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -6062,7 +6440,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java index 301873fa6a83..4d0a2e3a4c54 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java @@ -305,6 +305,60 @@ public interface EndpointOrBuilder */ com.google.protobuf.ByteString getCloudSqlInstanceBytes(); + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The redisInstance. + */ + java.lang.String getRedisInstance(); + /** + * + * + *
+   * A [Redis Instance](https://cloud.google.com/memorystore/docs/redis)
+   * URI.
+   * 
+ * + * string redis_instance = 17; + * + * @return The bytes for redisInstance. + */ + com.google.protobuf.ByteString getRedisInstanceBytes(); + + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The redisCluster. + */ + java.lang.String getRedisCluster(); + /** + * + * + *
+   * A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster)
+   * URI.
+   * 
+ * + * string redis_cluster = 18; + * + * @return The bytes for redisCluster. + */ + com.google.protobuf.ByteString getRedisClusterBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java index 47d2374ce45b..068f2eee4f8e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java @@ -24,7 +24,7 @@ * *
  * For display only. Metadata associated with a VPC firewall rule, an implied
- * VPC firewall rule, or a hierarchical firewall policy rule.
+ * VPC firewall rule, or a firewall policy rule.
  * 
* * Protobuf type {@code google.cloud.networkmanagement.v1beta1.FirewallInfo} @@ -48,6 +48,7 @@ private FirewallInfo() { targetTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); policy_ = ""; + policyUri_ = ""; firewallRuleType_ = 0; } @@ -411,8 +412,8 @@ private FirewallRuleType(int value) { * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -435,8 +436,8 @@ public java.lang.String getDisplayName() { * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -464,8 +465,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -488,8 +489,8 @@ public java.lang.String getUri() { * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -692,7 +693,7 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -707,7 +708,7 @@ public com.google.protobuf.ProtocolStringList getTargetTagsList() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -722,7 +723,7 @@ public int getTargetTagsCount() { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -738,7 +739,7 @@ public java.lang.String getTargetTags(int index) { * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -822,8 +823,9 @@ public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index) { * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -846,8 +848,9 @@ public java.lang.String getPolicy() { * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -867,6 +870,61 @@ public com.google.protobuf.ByteString getPolicyBytes() { } } + public static final int POLICY_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object policyUri_ = ""; + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + @java.lang.Override + public java.lang.String getPolicyUri() { + java.lang.Object ref = policyUri_; + 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(); + policyUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = policyUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER = 10; private int firewallRuleType_ = 0; /** @@ -958,6 +1016,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(10, firewallRuleType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, policyUri_); + } getUnknownFields().writeTo(output); } @@ -1010,6 +1071,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, firewallRuleType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, policyUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1035,6 +1099,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTargetTagsList().equals(other.getTargetTagsList())) return false; if (!getTargetServiceAccountsList().equals(other.getTargetServiceAccountsList())) return false; if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (firewallRuleType_ != other.firewallRuleType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1069,6 +1134,8 @@ public int hashCode() { } hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); + hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyUri().hashCode(); hash = (37 * hash) + FIREWALL_RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + firewallRuleType_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1177,7 +1244,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * For display only. Metadata associated with a VPC firewall rule, an implied
-   * VPC firewall rule, or a hierarchical firewall policy rule.
+   * VPC firewall rule, or a firewall policy rule.
    * 
* * Protobuf type {@code google.cloud.networkmanagement.v1beta1.FirewallInfo} @@ -1221,6 +1288,7 @@ public Builder clear() { targetTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetServiceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); policy_ = ""; + policyUri_ = ""; firewallRuleType_ = 0; return this; } @@ -1288,6 +1356,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.FirewallIn result.policy_ = policy_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.policyUri_ = policyUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.firewallRuleType_ = firewallRuleType_; } } @@ -1391,6 +1462,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.FirewallInfo bitField0_ |= 0x00000100; onChanged(); } + if (!other.getPolicyUri().isEmpty()) { + policyUri_ = other.policyUri_; + bitField0_ |= 0x00000200; + onChanged(); + } if (other.firewallRuleType_ != 0) { setFirewallRuleTypeValue(other.getFirewallRuleTypeValue()); } @@ -1479,9 +1555,15 @@ public Builder mergeFrom( case 80: { firewallRuleType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 80 + case 90: + { + policyUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1506,8 +1588,8 @@ public Builder mergeFrom( * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1529,8 +1611,8 @@ public java.lang.String getDisplayName() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1552,8 +1634,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1574,8 +1656,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1592,8 +1674,8 @@ public Builder clearDisplayName() { * * *
-     * The display name of the VPC firewall rule. This field is not applicable
-     * to hierarchical firewall policy rules.
+     * The display name of the firewall rule. This field might be empty for
+     * firewall policy rules.
      * 
* * string display_name = 1; @@ -1617,8 +1699,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1640,8 +1722,8 @@ public java.lang.String getUri() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1663,8 +1745,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1685,8 +1767,8 @@ public Builder setUri(java.lang.String value) { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -1703,8 +1785,8 @@ public Builder clearUri() { * * *
-     * The URI of the VPC firewall rule. This field is not applicable to
-     * implied firewall rules or hierarchical firewall policy rules.
+     * The URI of the firewall rule. This field is not applicable to implied
+     * VPC firewall rules.
      * 
* * string uri = 2; @@ -2113,7 +2195,7 @@ private void ensureTargetTagsIsMutable() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2129,7 +2211,7 @@ public com.google.protobuf.ProtocolStringList getTargetTagsList() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2144,7 +2226,7 @@ public int getTargetTagsCount() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2160,7 +2242,7 @@ public java.lang.String getTargetTags(int index) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2176,7 +2258,7 @@ public com.google.protobuf.ByteString getTargetTagsBytes(int index) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2200,7 +2282,7 @@ public Builder setTargetTags(int index, java.lang.String value) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2223,7 +2305,7 @@ public Builder addTargetTags(java.lang.String value) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2243,7 +2325,7 @@ public Builder addAllTargetTags(java.lang.Iterable values) { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2262,7 +2344,7 @@ public Builder clearTargetTags() { * *
      * The target tags defined by the VPC firewall rule. This field is not
-     * applicable to hierarchical firewall policy rules.
+     * applicable to firewall policy rules.
      * 
* * repeated string target_tags = 7; @@ -2462,8 +2544,9 @@ public Builder addTargetServiceAccountsBytes(com.google.protobuf.ByteString valu * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2485,8 +2568,9 @@ public java.lang.String getPolicy() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2508,8 +2592,9 @@ public com.google.protobuf.ByteString getPolicyBytes() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2530,8 +2615,9 @@ public Builder setPolicy(java.lang.String value) { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2548,8 +2634,9 @@ public Builder clearPolicy() { * * *
-     * The hierarchical firewall policy that this rule is associated with.
-     * This field is not applicable to VPC firewall rules.
+     * The name of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
      * 
* * string policy = 9; @@ -2568,6 +2655,122 @@ public Builder setPolicyBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object policyUri_ = ""; + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + public java.lang.String getPolicyUri() { + java.lang.Object ref = policyUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = policyUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @param value The policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policyUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @return This builder for chaining. + */ + public Builder clearPolicyUri() { + policyUri_ = getDefaultInstance().getPolicyUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI of the firewall policy that this rule is associated with.
+     * This field is not applicable to VPC firewall rules and implied VPC firewall
+     * rules.
+     * 
+ * + * string policy_uri = 11; + * + * @param value The bytes for policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + private int firewallRuleType_ = 0; /** * @@ -2602,7 +2805,7 @@ public int getFirewallRuleTypeValue() { */ public Builder setFirewallRuleTypeValue(int value) { firewallRuleType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2648,7 +2851,7 @@ public Builder setFirewallRuleType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; firewallRuleType_ = value.getNumber(); onChanged(); return this; @@ -2667,7 +2870,7 @@ public Builder setFirewallRuleType( * @return This builder for chaining. */ public Builder clearFirewallRuleType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); firewallRuleType_ = 0; onChanged(); return this; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java index 4b5945238670..8d65ec23b45c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java @@ -28,8 +28,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -41,8 +41,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The display name of the VPC firewall rule. This field is not applicable
-   * to hierarchical firewall policy rules.
+   * The display name of the firewall rule. This field might be empty for
+   * firewall policy rules.
    * 
* * string display_name = 1; @@ -55,8 +55,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -68,8 +68,8 @@ public interface FirewallInfoOrBuilder * * *
-   * The URI of the VPC firewall rule. This field is not applicable to
-   * implied firewall rules or hierarchical firewall policy rules.
+   * The URI of the firewall rule. This field is not applicable to implied
+   * VPC firewall rules.
    * 
* * string uri = 2; @@ -173,7 +173,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -186,7 +186,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -199,7 +199,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -213,7 +213,7 @@ public interface FirewallInfoOrBuilder * *
    * The target tags defined by the VPC firewall rule. This field is not
-   * applicable to hierarchical firewall policy rules.
+   * applicable to firewall policy rules.
    * 
* * repeated string target_tags = 7; @@ -278,8 +278,9 @@ public interface FirewallInfoOrBuilder * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -291,8 +292,9 @@ public interface FirewallInfoOrBuilder * * *
-   * The hierarchical firewall policy that this rule is associated with.
-   * This field is not applicable to VPC firewall rules.
+   * The name of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
    * 
* * string policy = 9; @@ -301,6 +303,35 @@ public interface FirewallInfoOrBuilder */ com.google.protobuf.ByteString getPolicyBytes(); + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The policyUri. + */ + java.lang.String getPolicyUri(); + /** + * + * + *
+   * The URI of the firewall policy that this rule is associated with.
+   * This field is not applicable to VPC firewall rules and implied VPC firewall
+   * rules.
+   * 
+ * + * string policy_uri = 11; + * + * @return The bytes for policyUri. + */ + com.google.protobuf.ByteString getPolicyUriBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfo.java index 514ebe4ab20d..b99f807c5cdc 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfo.java @@ -46,6 +46,10 @@ private ForwardingRuleInfo() { vip_ = ""; target_ = ""; networkUri_ = ""; + region_ = ""; + loadBalancerName_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; } @java.lang.Override @@ -77,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -100,7 +104,7 @@ public java.lang.String getDisplayName() { * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -128,7 +132,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -151,7 +155,7 @@ public java.lang.String getUri() { * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -202,7 +206,7 @@ public java.lang.String getMatchedProtocol() { * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -230,7 +234,7 @@ public com.google.protobuf.ByteString getMatchedProtocolBytes() { * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -253,7 +257,7 @@ public java.lang.String getMatchedPortRange() { * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -383,7 +387,7 @@ public com.google.protobuf.ByteString getTargetBytes() { * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -406,7 +410,7 @@ public java.lang.String getNetworkUri() { * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -426,6 +430,214 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { } } + public static final int REGION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOAD_BALANCER_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object loadBalancerName_ = ""; + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + @java.lang.Override + public java.lang.String getLoadBalancerName() { + java.lang.Object ref = loadBalancerName_; + 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(); + loadBalancerName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoadBalancerNameBytes() { + java.lang.Object ref = loadBalancerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadBalancerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + 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(); + pscServiceAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -461,6 +673,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, networkUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalancerName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, loadBalancerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pscGoogleApiTarget_); + } getUnknownFields().writeTo(output); } @@ -491,6 +715,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, networkUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalancerName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, loadBalancerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pscGoogleApiTarget_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -514,6 +751,10 @@ public boolean equals(final java.lang.Object obj) { if (!getVip().equals(other.getVip())) return false; if (!getTarget().equals(other.getTarget())) return false; if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getLoadBalancerName().equals(other.getLoadBalancerName())) return false; + if (!getPscServiceAttachmentUri().equals(other.getPscServiceAttachmentUri())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,6 +780,14 @@ public int hashCode() { hash = (53 * hash) + getTarget().hashCode(); hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + LOAD_BALANCER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancerName().hashCode(); + hash = (37 * hash) + PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentUri().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -686,6 +935,10 @@ public Builder clear() { vip_ = ""; target_ = ""; networkUri_ = ""; + region_ = ""; + loadBalancerName_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; return this; } @@ -745,6 +998,18 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.networkUri_ = networkUri_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.loadBalancerName_ = loadBalancerName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pscServiceAttachmentUri_ = pscServiceAttachmentUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } } @java.lang.Override @@ -829,6 +1094,26 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ForwardingRu bitField0_ |= 0x00000040; onChanged(); } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getLoadBalancerName().isEmpty()) { + loadBalancerName_ = other.loadBalancerName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getPscServiceAttachmentUri().isEmpty()) { + pscServiceAttachmentUri_ = other.pscServiceAttachmentUri_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -897,6 +1182,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + loadBalancerName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + pscServiceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -921,7 +1230,7 @@ public Builder mergeFrom( * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -943,7 +1252,7 @@ public java.lang.String getDisplayName() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -965,7 +1274,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -986,7 +1295,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -1003,7 +1312,7 @@ public Builder clearDisplayName() { * * *
-     * Name of a Compute Engine forwarding rule.
+     * Name of the forwarding rule.
      * 
* * string display_name = 1; @@ -1027,7 +1336,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1049,7 +1358,7 @@ public java.lang.String getUri() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1071,7 +1380,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1092,7 +1401,7 @@ public Builder setUri(java.lang.String value) { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1109,7 +1418,7 @@ public Builder clearUri() { * * *
-     * URI of a Compute Engine forwarding rule.
+     * URI of the forwarding rule.
      * 
* * string uri = 2; @@ -1133,7 +1442,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1155,7 +1464,7 @@ public java.lang.String getMatchedProtocol() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1177,7 +1486,7 @@ public com.google.protobuf.ByteString getMatchedProtocolBytes() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1198,7 +1507,7 @@ public Builder setMatchedProtocol(java.lang.String value) { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1215,7 +1524,7 @@ public Builder clearMatchedProtocol() { * * *
-     * Protocol defined in the forwarding rule that matches the test.
+     * Protocol defined in the forwarding rule that matches the packet.
      * 
* * string matched_protocol = 3; @@ -1239,7 +1548,7 @@ public Builder setMatchedProtocolBytes(com.google.protobuf.ByteString value) { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1261,7 +1570,7 @@ public java.lang.String getMatchedPortRange() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1283,7 +1592,7 @@ public com.google.protobuf.ByteString getMatchedPortRangeBytes() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1304,7 +1613,7 @@ public Builder setMatchedPortRange(java.lang.String value) { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1321,7 +1630,7 @@ public Builder clearMatchedPortRange() { * * *
-     * Port range defined in the forwarding rule that matches the test.
+     * Port range defined in the forwarding rule that matches the packet.
      * 
* * string matched_port_range = 6; @@ -1557,7 +1866,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1579,7 +1888,7 @@ public java.lang.String getNetworkUri() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1601,7 +1910,7 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1622,7 +1931,7 @@ public Builder setNetworkUri(java.lang.String value) { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1639,7 +1948,7 @@ public Builder clearNetworkUri() { * * *
-     * Network URI. Only valid for Internal Load Balancer.
+     * Network URI.
      * 
* * string network_uri = 7; @@ -1658,6 +1967,440 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Region of the forwarding rule. Set only for regional forwarding rules.
+     * 
+ * + * string region = 8; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object loadBalancerName_ = ""; + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + public java.lang.String getLoadBalancerName() { + java.lang.Object ref = loadBalancerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loadBalancerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + public com.google.protobuf.ByteString getLoadBalancerNameBytes() { + java.lang.Object ref = loadBalancerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadBalancerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @param value The loadBalancerName to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + loadBalancerName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerName() { + loadBalancerName_ = getDefaultInstance().getLoadBalancerName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the load balancer the forwarding rule belongs to. Empty for
+     * forwarding rules not related to load balancers (like PSC forwarding rules).
+     * 
+ * + * string load_balancer_name = 9; + * + * @param value The bytes for loadBalancerName to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loadBalancerName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscServiceAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @param value The pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return This builder for chaining. + */ + public Builder clearPscServiceAttachmentUri() { + pscServiceAttachmentUri_ = getDefaultInstance().getPscServiceAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC service attachment this forwarding rule targets (if
+     * applicable).
+     * 
+ * + * string psc_service_attachment_uri = 10; + * + * @param value The bytes for pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * PSC Google API target this forwarding rule targets (if applicable).
+     * 
+ * + * string psc_google_api_target = 11; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfoOrBuilder.java index dc12da721964..44715ab0edde 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardingRuleInfoOrBuilder.java @@ -28,7 +28,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -40,7 +40,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Name of a Compute Engine forwarding rule.
+   * Name of the forwarding rule.
    * 
* * string display_name = 1; @@ -53,7 +53,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -65,7 +65,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * URI of a Compute Engine forwarding rule.
+   * URI of the forwarding rule.
    * 
* * string uri = 2; @@ -78,7 +78,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -90,7 +90,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Protocol defined in the forwarding rule that matches the test.
+   * Protocol defined in the forwarding rule that matches the packet.
    * 
* * string matched_protocol = 3; @@ -103,7 +103,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -115,7 +115,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Port range defined in the forwarding rule that matches the test.
+   * Port range defined in the forwarding rule that matches the packet.
    * 
* * string matched_port_range = 6; @@ -178,7 +178,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -190,7 +190,7 @@ public interface ForwardingRuleInfoOrBuilder * * *
-   * Network URI. Only valid for Internal Load Balancer.
+   * Network URI.
    * 
* * string network_uri = 7; @@ -198,4 +198,108 @@ public interface ForwardingRuleInfoOrBuilder * @return The bytes for networkUri. */ com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region of the forwarding rule. Set only for regional forwarding rules.
+   * 
+ * + * string region = 8; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The loadBalancerName. + */ + java.lang.String getLoadBalancerName(); + /** + * + * + *
+   * Name of the load balancer the forwarding rule belongs to. Empty for
+   * forwarding rules not related to load balancers (like PSC forwarding rules).
+   * 
+ * + * string load_balancer_name = 9; + * + * @return The bytes for loadBalancerName. + */ + com.google.protobuf.ByteString getLoadBalancerNameBytes(); + + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The pscServiceAttachmentUri. + */ + java.lang.String getPscServiceAttachmentUri(); + /** + * + * + *
+   * URI of the PSC service attachment this forwarding rule targets (if
+   * applicable).
+   * 
+ * + * string psc_service_attachment_uri = 10; + * + * @return The bytes for pscServiceAttachmentUri. + */ + com.google.protobuf.ByteString getPscServiceAttachmentUriBytes(); + + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
+   * PSC Google API target this forwarding rule targets (if applicable).
+   * 
+ * + * string psc_google_api_target = 11; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequest.java index a99c03c63c25..620847dd8ab7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -476,7 +480,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -499,7 +505,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -522,7 +530,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -544,7 +554,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -562,7 +574,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequestOrBuilder.java index d52680679c60..a9eef65f9d2f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface GetConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface GetConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java index 39e5603f1b95..3e836d26fa84 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java @@ -47,6 +47,7 @@ private InstanceInfo() { externalIp_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + pscNetworkAttachmentUri_ = ""; } @java.lang.Override @@ -454,7 +455,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The serviceAccount. */ @java.lang.Override @@ -480,7 +481,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -497,6 +498,57 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscNetworkAttachmentUri_ = ""; + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscNetworkAttachmentUri() { + java.lang.Object ref = pscNetworkAttachmentUri_; + 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(); + pscNetworkAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscNetworkAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -535,6 +587,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscNetworkAttachmentUri_); + } getUnknownFields().writeTo(output); } @@ -573,6 +628,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscNetworkAttachmentUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -597,6 +655,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExternalIp().equals(other.getExternalIp())) return false; if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getPscNetworkAttachmentUri().equals(other.getPscNetworkAttachmentUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -626,6 +685,8 @@ public int hashCode() { } hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscNetworkAttachmentUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -774,6 +835,7 @@ public Builder clear() { externalIp_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + pscNetworkAttachmentUri_ = ""; return this; } @@ -835,6 +897,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.InstanceIn if (((from_bitField0_ & 0x00000080) != 0)) { result.serviceAccount_ = serviceAccount_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pscNetworkAttachmentUri_ = pscNetworkAttachmentUri_; + } } @java.lang.Override @@ -928,6 +993,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.InstanceInfo bitField0_ |= 0x00000080; onChanged(); } + if (!other.getPscNetworkAttachmentUri().isEmpty()) { + pscNetworkAttachmentUri_ = other.pscNetworkAttachmentUri_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1003,6 +1073,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + pscNetworkAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1843,7 +1919,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The serviceAccount. */ @java.lang.Deprecated @@ -1868,7 +1944,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -1893,7 +1969,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -1917,7 +1993,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1937,7 +2013,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -1953,6 +2029,112 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object pscNetworkAttachmentUri_ = ""; + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + public java.lang.String getPscNetworkAttachmentUri() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscNetworkAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { + java.lang.Object ref = pscNetworkAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscNetworkAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @param value The pscNetworkAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscNetworkAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscNetworkAttachmentUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearPscNetworkAttachmentUri() { + pscNetworkAttachmentUri_ = getDefaultInstance().getPscNetworkAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the PSC network attachment the NIC is attached to (if relevant).
+     * 
+ * + * string psc_network_attachment_uri = 9; + * + * @param value The bytes for pscNetworkAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscNetworkAttachmentUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java index 17cee5bd55f9..cee8e467a1b6 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java @@ -235,7 +235,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The serviceAccount. */ @java.lang.Deprecated @@ -250,9 +250,34 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=303 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=326 * @return The bytes for serviceAccount. */ @java.lang.Deprecated com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The pscNetworkAttachmentUri. + */ + java.lang.String getPscNetworkAttachmentUri(); + /** + * + * + *
+   * URI of the PSC network attachment the NIC is attached to (if relevant).
+   * 
+ * + * string psc_network_attachment_uri = 9; + * + * @return The bytes for pscNetworkAttachmentUri. + */ + com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequest.java index 2658e15741d0..a61ef09a5cd4 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequest.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -102,7 +104,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -781,7 +785,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -804,7 +810,9 @@ public java.lang.String getParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -827,7 +835,9 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -849,7 +859,9 @@ public Builder setParent(java.lang.String value) { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -867,7 +879,9 @@ public Builder clearParent() { * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequestOrBuilder.java index 4177fbaed76d..6330ead7fe8c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListConnectivityTestsRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface ListConnectivityTestsRequestOrBuilder * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -45,7 +47,9 @@ public interface ListConnectivityTestsRequestOrBuilder * `projects/{project_id}/locations/global` * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java index a23fd1654312..030ca1458b6c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java @@ -534,7 +534,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The healthCheckUri. */ @java.lang.Override @@ -562,7 +562,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1359,7 +1359,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1386,7 +1386,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1413,7 +1413,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1439,7 +1439,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1461,7 +1461,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java index 513132060bdd..eff3b4fa2c4f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java @@ -66,7 +66,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -83,7 +83,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=662 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=729 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java index 0a47349f7054..468c443b0869 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java @@ -24,6 +24,7 @@ * *
  * For display only. Metadata associated with a Compute Engine network.
+ * Next ID: 7
  * 
* * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NetworkInfo} @@ -41,7 +42,9 @@ private NetworkInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private NetworkInfo() { displayName_ = ""; uri_ = ""; + matchedSubnetUri_ = ""; matchedIpRange_ = ""; + region_ = ""; } @java.lang.Override @@ -167,6 +170,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int MATCHED_SUBNET_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchedSubnetUri_ = ""; + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + @java.lang.Override + public java.lang.String getMatchedSubnetUri() { + java.lang.Object ref = matchedSubnetUri_; + 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(); + matchedSubnetUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchedSubnetUriBytes() { + java.lang.Object ref = matchedSubnetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedSubnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MATCHED_IP_RANGE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -175,7 +229,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -198,7 +252,7 @@ public java.lang.String getMatchedIpRange() { * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -218,6 +272,57 @@ public com.google.protobuf.ByteString getMatchedIpRangeBytes() { } } + public static final int REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -241,6 +346,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedIpRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, matchedIpRange_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedSubnetUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, matchedSubnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); + } getUnknownFields().writeTo(output); } @@ -259,6 +370,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, matchedIpRange_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedSubnetUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, matchedSubnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -277,7 +394,9 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUri().equals(other.getUri())) return false; + if (!getMatchedSubnetUri().equals(other.getMatchedSubnetUri())) return false; if (!getMatchedIpRange().equals(other.getMatchedIpRange())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,8 +412,12 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + MATCHED_SUBNET_URI_FIELD_NUMBER; + hash = (53 * hash) + getMatchedSubnetUri().hashCode(); hash = (37 * hash) + MATCHED_IP_RANGE_FIELD_NUMBER; hash = (53 * hash) + getMatchedIpRange().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -401,6 +524,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * For display only. Metadata associated with a Compute Engine network.
+   * Next ID: 7
    * 
* * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NetworkInfo} @@ -437,7 +561,9 @@ public Builder clear() { bitField0_ = 0; displayName_ = ""; uri_ = ""; + matchedSubnetUri_ = ""; matchedIpRange_ = ""; + region_ = ""; return this; } @@ -481,8 +607,14 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.NetworkInf result.uri_ = uri_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchedSubnetUri_ = matchedSubnetUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.matchedIpRange_ = matchedIpRange_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.region_ = region_; + } } @java.lang.Override @@ -541,9 +673,19 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.NetworkInfo bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMatchedSubnetUri().isEmpty()) { + matchedSubnetUri_ = other.matchedSubnetUri_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getMatchedIpRange().isEmpty()) { matchedIpRange_ = other.matchedIpRange_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -587,9 +729,21 @@ public Builder mergeFrom( case 34: { matchedIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + matchedSubnetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -821,12 +975,118 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object matchedSubnetUri_ = ""; + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + public java.lang.String getMatchedSubnetUri() { + java.lang.Object ref = matchedSubnetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchedSubnetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + public com.google.protobuf.ByteString getMatchedSubnetUriBytes() { + java.lang.Object ref = matchedSubnetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedSubnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @param value The matchedSubnetUri to set. + * @return This builder for chaining. + */ + public Builder setMatchedSubnetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchedSubnetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearMatchedSubnetUri() { + matchedSubnetUri_ = getDefaultInstance().getMatchedSubnetUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the subnet matching the source IP address of the test.
+     * 
+ * + * string matched_subnet_uri = 5; + * + * @param value The bytes for matchedSubnetUri to set. + * @return This builder for chaining. + */ + public Builder setMatchedSubnetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchedSubnetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object matchedIpRange_ = ""; /** * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -848,7 +1108,7 @@ public java.lang.String getMatchedIpRange() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -870,7 +1130,7 @@ public com.google.protobuf.ByteString getMatchedIpRangeBytes() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -883,7 +1143,7 @@ public Builder setMatchedIpRange(java.lang.String value) { throw new NullPointerException(); } matchedIpRange_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -891,7 +1151,7 @@ public Builder setMatchedIpRange(java.lang.String value) { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -900,7 +1160,7 @@ public Builder setMatchedIpRange(java.lang.String value) { */ public Builder clearMatchedIpRange() { matchedIpRange_ = getDefaultInstance().getMatchedIpRange(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -908,7 +1168,7 @@ public Builder clearMatchedIpRange() { * * *
-     * The IP range that matches the test.
+     * The IP range of the subnet matching the source IP address of the test.
      * 
* * string matched_ip_range = 4; @@ -922,7 +1182,113 @@ public Builder setMatchedIpRangeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); matchedIpRange_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The region of the subnet matching the source IP address of the test.
+     * 
+ * + * string region = 6; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfoOrBuilder.java index 7cfc51b60661..be1efe4a674e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfoOrBuilder.java @@ -78,7 +78,32 @@ public interface NetworkInfoOrBuilder * * *
-   * The IP range that matches the test.
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The matchedSubnetUri. + */ + java.lang.String getMatchedSubnetUri(); + /** + * + * + *
+   * URI of the subnet matching the source IP address of the test.
+   * 
+ * + * string matched_subnet_uri = 5; + * + * @return The bytes for matchedSubnetUri. + */ + com.google.protobuf.ByteString getMatchedSubnetUriBytes(); + + /** + * + * + *
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -90,7 +115,7 @@ public interface NetworkInfoOrBuilder * * *
-   * The IP range that matches the test.
+   * The IP range of the subnet matching the source IP address of the test.
    * 
* * string matched_ip_range = 4; @@ -98,4 +123,29 @@ public interface NetworkInfoOrBuilder * @return The bytes for matchedIpRange. */ com.google.protobuf.ByteString getMatchedIpRangeBytes(); + + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * The region of the subnet matching the source IP address of the test.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java new file mode 100644 index 000000000000..f06deeae1d62 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceProto.java index b6d82eb563f9..2eae18dccccc 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceProto.java @@ -79,81 +79,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/longrunning/operations.proto\032\033goo" + "gle/protobuf/empty.proto\032 google/protobu" + "f/field_mask.proto\032\037google/protobuf/time" - + "stamp.proto\"|\n\034ListConnectivityTestsRequ" - + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" - + "\020\n\010order_by\030\005 \001(\t\"\232\001\n\035ListConnectivityTe" - + "stsResponse\022K\n\tresources\030\001 \003(\01328.google." - + "cloud.networkmanagement.v1beta1.Connecti" - + "vityTest\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" - + "eachable\030\003 \003(\t\"/\n\032GetConnectivityTestReq" - + "uest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\233\001\n\035CreateConnec" - + "tivityTestRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024" - + "\n\007test_id\030\002 \001(\tB\003\340A\002\022O\n\010resource\030\003 \001(\01328" - + ".google.cloud.networkmanagement.v1beta1." - + "ConnectivityTestB\003\340A\002\"\246\001\n\035UpdateConnecti" - + "vityTestRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022O\n\010resourc" - + "e\030\002 \001(\01328.google.cloud.networkmanagement" - + ".v1beta1.ConnectivityTestB\003\340A\002\"2\n\035Delete" - + "ConnectivityTestRequest\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\002\"1\n\034RerunConnectivityTestRequest\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\"\326\001\n\021OperationMetadata\022/\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" - + "\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reques" - + "ted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t2\243\r\n\023Reach" - + "abilityService\022\355\001\n\025ListConnectivityTests" - + "\022D.google.cloud.networkmanagement.v1beta" - + "1.ListConnectivityTestsRequest\032E.google." - + "cloud.networkmanagement.v1beta1.ListConn" - + "ectivityTestsResponse\"G\202\323\344\223\002A\022?/v1beta1/" - + "{parent=projects/*/locations/global}/con" - + "nectivityTests\022\334\001\n\023GetConnectivityTest\022B" + + "stamp.proto\"\254\001\n\034ListConnectivityTestsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\035ListConne" + + "ctivityTestsResponse\022K\n\tresources\030\001 \003(\0132" + + "8.google.cloud.networkmanagement.v1beta1" + + ".ConnectivityTest\022\027\n\017next_page_token\030\002 \001" + + "(\t\022\023\n\013unreachable\030\003 \003(\t\"e\n\032GetConnectivi" + + "tyTestRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1net" + + "workmanagement.googleapis.com/Connectivi" + + "tyTest\"\313\001\n\035CreateConnectivityTestRequest" + + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem" + + "anager.googleapis.com/Project\022\024\n\007test_id" + + "\030\002 \001(\tB\003\340A\002\022O\n\010resource\030\003 \001(\01328.google.c" + + "loud.networkmanagement.v1beta1.Connectiv" + + "ityTestB\003\340A\002\"\246\001\n\035UpdateConnectivityTestR" + + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\022O\n\010resource\030\002 \001(\01328" + ".google.cloud.networkmanagement.v1beta1." - + "GetConnectivityTestRequest\0328.google.clou" - + "d.networkmanagement.v1beta1.Connectivity" - + "Test\"G\202\323\344\223\002A\022?/v1beta1/{name=projects/*/" - + "locations/global/connectivityTests/*}\022\241\002" - + "\n\026CreateConnectivityTest\022E.google.cloud." - + "networkmanagement.v1beta1.CreateConnecti" - + "vityTestRequest\032\035.google.longrunning.Ope" - + "ration\"\240\001\312AL\n7google.cloud.networkmanage" - + "ment.v1beta1.ConnectivityTest\022\021Operation" - + "Metadata\202\323\344\223\002K\"?/v1beta1/{parent=project" - + "s/*/locations/global}/connectivityTests:" - + "\010resource\022\252\002\n\026UpdateConnectivityTest\022E.g" - + "oogle.cloud.networkmanagement.v1beta1.Up" - + "dateConnectivityTestRequest\032\035.google.lon" - + "grunning.Operation\"\251\001\312AL\n7google.cloud.n" - + "etworkmanagement.v1beta1.ConnectivityTes" - + "t\022\021OperationMetadata\202\323\344\223\002T2H/v1beta1/{re" - + "source.name=projects/*/locations/global/" - + "connectivityTests/*}:\010resource\022\236\002\n\025Rerun" - + "ConnectivityTest\022D.google.cloud.networkm" - + "anagement.v1beta1.RerunConnectivityTestR" - + "equest\032\035.google.longrunning.Operation\"\237\001" + + "ConnectivityTestB\003\340A\002\"h\n\035DeleteConnectiv" + + "ityTestRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1ne" + + "tworkmanagement.googleapis.com/Connectiv" + + "ityTest\"g\n\034RerunConnectivityTestRequest\022" + + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1networkmanagement" + + ".googleapis.com/ConnectivityTest\"\326\001\n\021Ope" + + "rationMetadata\022/\n\013create_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\022\016\n\006target\030" + + "\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001" + + "(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023\n\013api_vers" + + "ion\030\007 \001(\t2\243\r\n\023ReachabilityService\022\355\001\n\025Li" + + "stConnectivityTests\022D.google.cloud.netwo" + + "rkmanagement.v1beta1.ListConnectivityTes" + + "tsRequest\032E.google.cloud.networkmanageme" + + "nt.v1beta1.ListConnectivityTestsResponse" + + "\"G\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" + + "cations/global}/connectivityTests\022\334\001\n\023Ge" + + "tConnectivityTest\022B.google.cloud.network" + + "management.v1beta1.GetConnectivityTestRe" + + "quest\0328.google.cloud.networkmanagement.v" + + "1beta1.ConnectivityTest\"G\202\323\344\223\002A\022?/v1beta" + + "1/{name=projects/*/locations/global/conn" + + "ectivityTests/*}\022\241\002\n\026CreateConnectivityT" + + "est\022E.google.cloud.networkmanagement.v1b" + + "eta1.CreateConnectivityTestRequest\032\035.goo" + + "gle.longrunning.Operation\"\240\001\312AL\n7google." + + "cloud.networkmanagement.v1beta1.Connecti" + + "vityTest\022\021OperationMetadata\202\323\344\223\002K\"?/v1be" + + "ta1/{parent=projects/*/locations/global}" + + "/connectivityTests:\010resource\022\252\002\n\026UpdateC" + + "onnectivityTest\022E.google.cloud.networkma" + + "nagement.v1beta1.UpdateConnectivityTestR" + + "equest\032\035.google.longrunning.Operation\"\251\001" + "\312AL\n7google.cloud.networkmanagement.v1be" + "ta1.ConnectivityTest\022\021OperationMetadata\202" - + "\323\344\223\002J\"E/v1beta1/{name=projects/*/locatio" - + "ns/global/connectivityTests/*}:rerun:\001*\022" - + "\364\001\n\026DeleteConnectivityTest\022E.google.clou" - + "d.networkmanagement.v1beta1.DeleteConnec" - + "tivityTestRequest\032\035.google.longrunning.O" - + "peration\"t\312A*\n\025google.protobuf.Empty\022\021Op" - + "erationMetadata\202\323\344\223\002A*?/v1beta1/{name=pr" - + "ojects/*/locations/global/connectivityTe" - + "sts/*}\032T\312A networkmanagement.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\240\002\n*com.google.cloud.networ" - + "kmanagement.v1beta1B\030ReachabilityService" - + "ProtoP\001ZXcloud.google.com/go/networkmana" - + "gement/apiv1beta1/networkmanagementpb;ne" - + "tworkmanagementpb\252\002&Google.Cloud.Network" - + "Management.V1Beta1\312\002&Google\\Cloud\\Networ" - + "kManagement\\V1beta1\352\002)Google::Cloud::Net" - + "workManagement::V1beta1b\006proto3" + + "\323\344\223\002T2H/v1beta1/{resource.name=projects/" + + "*/locations/global/connectivityTests/*}:" + + "\010resource\022\236\002\n\025RerunConnectivityTest\022D.go" + + "ogle.cloud.networkmanagement.v1beta1.Rer" + + "unConnectivityTestRequest\032\035.google.longr" + + "unning.Operation\"\237\001\312AL\n7google.cloud.net" + + "workmanagement.v1beta1.ConnectivityTest\022" + + "\021OperationMetadata\202\323\344\223\002J\"E/v1beta1/{name" + + "=projects/*/locations/global/connectivit" + + "yTests/*}:rerun:\001*\022\364\001\n\026DeleteConnectivit" + + "yTest\022E.google.cloud.networkmanagement.v" + + "1beta1.DeleteConnectivityTestRequest\032\035.g" + + "oogle.longrunning.Operation\"t\312A*\n\025google" + + ".protobuf.Empty\022\021OperationMetadata\202\323\344\223\002A" + + "*?/v1beta1/{name=projects/*/locations/gl" + + "obal/connectivityTests/*}\032T\312A networkman" + + "agement.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\240\002\n*com." + + "google.cloud.networkmanagement.v1beta1B\030" + + "ReachabilityServiceProtoP\001ZXcloud.google" + + ".com/go/networkmanagement/apiv1beta1/net" + + "workmanagementpb;networkmanagementpb\252\002&G" + + "oogle.Cloud.NetworkManagement.V1Beta1\312\002&" + + "Google\\Cloud\\NetworkManagement\\V1beta1\352\002" + + ")Google::Cloud::NetworkManagement::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -245,6 +252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfo.java new file mode 100644 index 000000000000..86813a9ff963 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfo.java @@ -0,0 +1,1561 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
+ * For display only. Metadata associated with a Redis Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RedisClusterInfo} + */ +public final class RedisClusterInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.RedisClusterInfo) + RedisClusterInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use RedisClusterInfo.newBuilder() to construct. + private RedisClusterInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RedisClusterInfo() { + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + discoveryEndpointIpAddress_ = ""; + secondaryEndpointIpAddress_ = ""; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RedisClusterInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.class, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISCOVERY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object discoveryEndpointIpAddress_ = ""; + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + @java.lang.Override + public java.lang.String getDiscoveryEndpointIpAddress() { + java.lang.Object ref = discoveryEndpointIpAddress_; + 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(); + discoveryEndpointIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + discoveryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryEndpointIpAddress_ = ""; + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + @java.lang.Override + public java.lang.String getSecondaryEndpointIpAddress() { + java.lang.Object ref = secondaryEndpointIpAddress_; + 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(); + secondaryEndpointIpAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpointIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, discoveryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryEndpointIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, secondaryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpointIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, discoveryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryEndpointIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, secondaryEndpointIpAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, location_); + } + 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.networkmanagement.v1beta1.RedisClusterInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo other = + (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getDiscoveryEndpointIpAddress().equals(other.getDiscoveryEndpointIpAddress())) + return false; + if (!getSecondaryEndpointIpAddress().equals(other.getSecondaryEndpointIpAddress())) + return false; + if (!getLocation().equals(other.getLocation())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + DISCOVERY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryEndpointIpAddress().hashCode(); + hash = (37 * hash) + SECONDARY_ENDPOINT_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryEndpointIpAddress().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo 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.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo 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.networkmanagement.v1beta1.RedisClusterInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.RedisClusterInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with a Redis Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RedisClusterInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.RedisClusterInfo) + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.class, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + discoveryEndpointIpAddress_ = ""; + secondaryEndpointIpAddress_ = ""; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo build() { + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo result = + new com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.discoveryEndpointIpAddress_ = discoveryEndpointIpAddress_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.secondaryEndpointIpAddress_ = secondaryEndpointIpAddress_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo other) { + if (other == com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDiscoveryEndpointIpAddress().isEmpty()) { + discoveryEndpointIpAddress_ = other.discoveryEndpointIpAddress_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSecondaryEndpointIpAddress().isEmpty()) { + secondaryEndpointIpAddress_ = other.secondaryEndpointIpAddress_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000020; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + discoveryEndpointIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + secondaryEndpointIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Redis Cluster.
+     * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster in format
+     * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Redis Cluster network in format
+     * "projects/{project_id}/global/networks/{network_id}".
+     * 
+ * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object discoveryEndpointIpAddress_ = ""; + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + public java.lang.String getDiscoveryEndpointIpAddress() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryEndpointIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + public com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes() { + java.lang.Object ref = discoveryEndpointIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + discoveryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @param value The discoveryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDiscoveryEndpointIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + discoveryEndpointIpAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDiscoveryEndpointIpAddress() { + discoveryEndpointIpAddress_ = getDefaultInstance().getDiscoveryEndpointIpAddress(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Discovery endpoint IP address of a Redis Cluster.
+     * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @param value The bytes for discoveryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDiscoveryEndpointIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpointIpAddress_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object secondaryEndpointIpAddress_ = ""; + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + public java.lang.String getSecondaryEndpointIpAddress() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryEndpointIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + public com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes() { + java.lang.Object ref = secondaryEndpointIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryEndpointIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @param value The secondaryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setSecondaryEndpointIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryEndpointIpAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSecondaryEndpointIpAddress() { + secondaryEndpointIpAddress_ = getDefaultInstance().getSecondaryEndpointIpAddress(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Secondary endpoint IP address of a Redis Cluster.
+     * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @param value The bytes for secondaryEndpointIpAddress to set. + * @return This builder for chaining. + */ + public Builder setSecondaryEndpointIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryEndpointIpAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the region in which the Redis Cluster is defined. For example,
+     * "us-central1".
+     * 
+ * + * string location = 6; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.RedisClusterInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.RedisClusterInfo) + private static final com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedisClusterInfo 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.networkmanagement.v1beta1.RedisClusterInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfoOrBuilder.java new file mode 100644 index 000000000000..37b02fd1bee3 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisClusterInfoOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +public interface RedisClusterInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.RedisClusterInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Name of a Redis Cluster.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of a Redis Cluster in format
+   * "projects/{project_id}/locations/{location}/clusters/{cluster_id}"
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
+   * URI of a Redis Cluster network in format
+   * "projects/{project_id}/global/networks/{network_id}".
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The discoveryEndpointIpAddress. + */ + java.lang.String getDiscoveryEndpointIpAddress(); + /** + * + * + *
+   * Discovery endpoint IP address of a Redis Cluster.
+   * 
+ * + * string discovery_endpoint_ip_address = 4 [(.google.api.field_info) = { ... } + * + * @return The bytes for discoveryEndpointIpAddress. + */ + com.google.protobuf.ByteString getDiscoveryEndpointIpAddressBytes(); + + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The secondaryEndpointIpAddress. + */ + java.lang.String getSecondaryEndpointIpAddress(); + /** + * + * + *
+   * Secondary endpoint IP address of a Redis Cluster.
+   * 
+ * + * string secondary_endpoint_ip_address = 5 [(.google.api.field_info) = { ... } + * + * @return The bytes for secondaryEndpointIpAddress. + */ + com.google.protobuf.ByteString getSecondaryEndpointIpAddressBytes(); + + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Name of the region in which the Redis Cluster is defined. For example,
+   * "us-central1".
+   * 
+ * + * string location = 6; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfo.java new file mode 100644 index 000000000000..8213a44975a1 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfo.java @@ -0,0 +1,1540 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
+ * For display only. Metadata associated with a Cloud Redis Instance.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RedisInstanceInfo} + */ +public final class RedisInstanceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) + RedisInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use RedisInstanceInfo.newBuilder() to construct. + private RedisInstanceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RedisInstanceInfo() { + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + primaryEndpointIp_ = ""; + readEndpointIp_ = ""; + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RedisInstanceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.class, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_ENDPOINT_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryEndpointIp_ = ""; + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + @java.lang.Override + public java.lang.String getPrimaryEndpointIp() { + java.lang.Object ref = primaryEndpointIp_; + 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(); + primaryEndpointIp_ = s; + return s; + } + } + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryEndpointIpBytes() { + java.lang.Object ref = primaryEndpointIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_ENDPOINT_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object readEndpointIp_ = ""; + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + @java.lang.Override + public java.lang.String getReadEndpointIp() { + java.lang.Object ref = readEndpointIp_; + 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(); + readEndpointIp_ = s; + return s; + } + } + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReadEndpointIpBytes() { + java.lang.Object ref = readEndpointIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, primaryEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, readEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryEndpointIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, primaryEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpointIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, readEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); + } + 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.networkmanagement.v1beta1.RedisInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo other = + (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getPrimaryEndpointIp().equals(other.getPrimaryEndpointIp())) return false; + if (!getReadEndpointIp().equals(other.getReadEndpointIp())) return false; + if (!getRegion().equals(other.getRegion())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + PRIMARY_ENDPOINT_IP_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryEndpointIp().hashCode(); + hash = (37 * hash) + READ_ENDPOINT_IP_FIELD_NUMBER; + hash = (53 * hash) + getReadEndpointIp().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo 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.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo 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.networkmanagement.v1beta1.RedisInstanceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.RedisInstanceInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with a Cloud Redis Instance.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.RedisInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.class, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + networkUri_ = ""; + primaryEndpointIp_ = ""; + readEndpointIp_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo build() { + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo result = + new com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.primaryEndpointIp_ = primaryEndpointIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readEndpointIp_ = readEndpointIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrimaryEndpointIp().isEmpty()) { + primaryEndpointIp_ = other.primaryEndpointIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getReadEndpointIp().isEmpty()) { + readEndpointIp_ = other.readEndpointIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + primaryEndpointIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + readEndpointIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of a Cloud Redis Instance.
+     * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance.
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of a Cloud Redis Instance network.
+     * 
+ * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object primaryEndpointIp_ = ""; + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + public java.lang.String getPrimaryEndpointIp() { + java.lang.Object ref = primaryEndpointIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryEndpointIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + public com.google.protobuf.ByteString getPrimaryEndpointIpBytes() { + java.lang.Object ref = primaryEndpointIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @param value The primaryEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEndpointIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryEndpointIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryEndpointIp() { + primaryEndpointIp_ = getDefaultInstance().getPrimaryEndpointIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Primary endpoint IP address of a Cloud Redis Instance.
+     * 
+ * + * string primary_endpoint_ip = 4; + * + * @param value The bytes for primaryEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setPrimaryEndpointIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryEndpointIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object readEndpointIp_ = ""; + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + public java.lang.String getReadEndpointIp() { + java.lang.Object ref = readEndpointIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + readEndpointIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + public com.google.protobuf.ByteString getReadEndpointIpBytes() { + java.lang.Object ref = readEndpointIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readEndpointIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @param value The readEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setReadEndpointIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + readEndpointIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearReadEndpointIp() { + readEndpointIp_ = getDefaultInstance().getReadEndpointIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+     * 
+ * + * string read_endpoint_ip = 5; + * + * @param value The bytes for readEndpointIp to set. + * @return This builder for chaining. + */ + public Builder setReadEndpointIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readEndpointIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Region in which the Cloud Redis Instance is defined.
+     * 
+ * + * string region = 6; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) + private static final com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedisInstanceInfo 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.networkmanagement.v1beta1.RedisInstanceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfoOrBuilder.java new file mode 100644 index 000000000000..4aa425902262 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RedisInstanceInfoOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +public interface RedisInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Name of a Cloud Redis Instance.
+   * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of a Cloud Redis Instance.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
+   * URI of a Cloud Redis Instance network.
+   * 
+ * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The primaryEndpointIp. + */ + java.lang.String getPrimaryEndpointIp(); + /** + * + * + *
+   * Primary endpoint IP address of a Cloud Redis Instance.
+   * 
+ * + * string primary_endpoint_ip = 4; + * + * @return The bytes for primaryEndpointIp. + */ + com.google.protobuf.ByteString getPrimaryEndpointIpBytes(); + + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The readEndpointIp. + */ + java.lang.String getReadEndpointIp(); + /** + * + * + *
+   * Read endpoint IP address of a Cloud Redis Instance (if applicable).
+   * 
+ * + * string read_endpoint_ip = 5; + * + * @return The bytes for readEndpointIp. + */ + com.google.protobuf.ByteString getReadEndpointIpBytes(); + + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region in which the Cloud Redis Instance is defined.
+   * 
+ * + * string region = 6; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequest.java index b64be3106c1e..45c8a241c7ba 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -99,7 +101,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -479,7 +483,9 @@ public Builder mergeFrom( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -502,7 +508,9 @@ public java.lang.String getName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -525,7 +533,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -565,7 +577,9 @@ public Builder clearName() { * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequestOrBuilder.java index 809c1539cb78..64c5e5a52c23 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RerunConnectivityTestRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface RerunConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -45,7 +47,9 @@ public interface RerunConnectivityTestRequestOrBuilder * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java index a86eccb0ee62..7d827274eb32 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java @@ -44,6 +44,7 @@ private RouteInfo() { routeScope_ = 0; displayName_ = ""; uri_ = ""; + region_ = ""; destIpRange_ = ""; nextHop_ = ""; networkUri_ = ""; @@ -54,6 +55,8 @@ private RouteInfo() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); nccHubUri_ = ""; nccSpokeUri_ = ""; + advertisedRouteSourceRouterUri_ = ""; + advertisedRouteNextHopUri_ = ""; } @java.lang.Override @@ -168,6 +171,17 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * POLICY_BASED = 7; */ POLICY_BASED(7), + /** + * + * + *
+     * Advertised route. Synthetic route which is used to transition from the
+     * StartFromPrivateNetwork state in Connectivity tests.
+     * 
+ * + * ADVERTISED = 101; + */ + ADVERTISED(101), UNRECOGNIZED(-1), ; @@ -252,6 +266,17 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * POLICY_BASED = 7; */ public static final int POLICY_BASED_VALUE = 7; + /** + * + * + *
+     * Advertised route. Synthetic route which is used to transition from the
+     * StartFromPrivateNetwork state in Connectivity tests.
+     * 
+ * + * ADVERTISED = 101; + */ + public static final int ADVERTISED_VALUE = 101; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -293,6 +318,8 @@ public static RouteType forNumber(int value) { return PEERING_DYNAMIC; case 7: return POLICY_BASED; + case 101: + return ADVERTISED; default: return null; } @@ -1069,10 +1096,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -1095,10 +1119,7 @@ public java.lang.String getUri() { * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -1118,6 +1139,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int REGION_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DEST_IP_RANGE_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -1728,6 +1800,150 @@ public com.google.protobuf.ByteString getNccSpokeUriBytes() { } } + public static final int ADVERTISED_ROUTE_SOURCE_ROUTER_URI_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertisedRouteSourceRouterUri_ = ""; + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + @java.lang.Override + public boolean hasAdvertisedRouteSourceRouterUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + @java.lang.Override + public java.lang.String getAdvertisedRouteSourceRouterUri() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + 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(); + advertisedRouteSourceRouterUri_ = s; + return s; + } + } + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteSourceRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISED_ROUTE_NEXT_HOP_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertisedRouteNextHopUri_ = ""; + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + @java.lang.Override + public boolean hasAdvertisedRouteNextHopUri() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + @java.lang.Override + public java.lang.String getAdvertisedRouteNextHopUri() { + java.lang.Object ref = advertisedRouteNextHopUri_; + 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(); + advertisedRouteNextHopUri_ = s; + return s; + } + } + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteNextHopUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1797,6 +2013,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nccSpokeUri_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 17, advertisedRouteSourceRouterUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, advertisedRouteNextHopUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, region_); + } getUnknownFields().writeTo(output); } @@ -1881,6 +2107,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nccSpokeUri_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 17, advertisedRouteSourceRouterUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(18, advertisedRouteNextHopUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, region_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1902,6 +2140,7 @@ public boolean equals(final java.lang.Object obj) { if (routeScope_ != other.routeScope_) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUri().equals(other.getUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!getDestIpRange().equals(other.getDestIpRange())) return false; if (!getNextHop().equals(other.getNextHop())) return false; if (!getNetworkUri().equals(other.getNetworkUri())) return false; @@ -1919,6 +2158,17 @@ public boolean equals(final java.lang.Object obj) { if (hasNccSpokeUri()) { if (!getNccSpokeUri().equals(other.getNccSpokeUri())) return false; } + if (hasAdvertisedRouteSourceRouterUri() != other.hasAdvertisedRouteSourceRouterUri()) + return false; + if (hasAdvertisedRouteSourceRouterUri()) { + if (!getAdvertisedRouteSourceRouterUri().equals(other.getAdvertisedRouteSourceRouterUri())) + return false; + } + if (hasAdvertisedRouteNextHopUri() != other.hasAdvertisedRouteNextHopUri()) return false; + if (hasAdvertisedRouteNextHopUri()) { + if (!getAdvertisedRouteNextHopUri().equals(other.getAdvertisedRouteNextHopUri())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1940,6 +2190,8 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + DEST_IP_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDestIpRange().hashCode(); hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER; @@ -1974,6 +2226,14 @@ public int hashCode() { hash = (37 * hash) + NCC_SPOKE_URI_FIELD_NUMBER; hash = (53 * hash) + getNccSpokeUri().hashCode(); } + if (hasAdvertisedRouteSourceRouterUri()) { + hash = (37 * hash) + ADVERTISED_ROUTE_SOURCE_ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisedRouteSourceRouterUri().hashCode(); + } + if (hasAdvertisedRouteNextHopUri()) { + hash = (37 * hash) + ADVERTISED_ROUTE_NEXT_HOP_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisedRouteNextHopUri().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2118,6 +2378,7 @@ public Builder clear() { routeScope_ = 0; displayName_ = ""; uri_ = ""; + region_ = ""; destIpRange_ = ""; nextHop_ = ""; networkUri_ = ""; @@ -2129,6 +2390,8 @@ public Builder clear() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); nccHubUri_ = ""; nccSpokeUri_ = ""; + advertisedRouteSourceRouterUri_ = ""; + advertisedRouteNextHopUri_ = ""; return this; } @@ -2181,45 +2444,56 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.RouteInfo result.uri_ = uri_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.destIpRange_ = destIpRange_; + result.region_ = region_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.nextHop_ = nextHop_; + result.destIpRange_ = destIpRange_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.networkUri_ = networkUri_; + result.nextHop_ = nextHop_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.priority_ = priority_; + result.networkUri_ = networkUri_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { instanceTags_.makeImmutable(); result.instanceTags_ = instanceTags_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.srcIpRange_ = srcIpRange_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { destPortRanges_.makeImmutable(); result.destPortRanges_ = destPortRanges_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { srcPortRanges_.makeImmutable(); result.srcPortRanges_ = srcPortRanges_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { protocols_.makeImmutable(); result.protocols_ = protocols_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.nccHubUri_ = nccHubUri_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.nccSpokeUri_ = nccSpokeUri_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.advertisedRouteSourceRouterUri_ = advertisedRouteSourceRouterUri_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.advertisedRouteNextHopUri_ = advertisedRouteNextHopUri_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2288,19 +2562,24 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot bitField0_ |= 0x00000010; onChanged(); } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } if (!other.getDestIpRange().isEmpty()) { destIpRange_ = other.destIpRange_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getNextHop().isEmpty()) { nextHop_ = other.nextHop_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getNetworkUri().isEmpty()) { networkUri_ = other.networkUri_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.getPriority() != 0) { @@ -2309,7 +2588,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot if (!other.instanceTags_.isEmpty()) { if (instanceTags_.isEmpty()) { instanceTags_ = other.instanceTags_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } else { ensureInstanceTagsIsMutable(); instanceTags_.addAll(other.instanceTags_); @@ -2318,13 +2597,13 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot } if (!other.getSrcIpRange().isEmpty()) { srcIpRange_ = other.srcIpRange_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.destPortRanges_.isEmpty()) { if (destPortRanges_.isEmpty()) { destPortRanges_ = other.destPortRanges_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } else { ensureDestPortRangesIsMutable(); destPortRanges_.addAll(other.destPortRanges_); @@ -2334,7 +2613,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot if (!other.srcPortRanges_.isEmpty()) { if (srcPortRanges_.isEmpty()) { srcPortRanges_ = other.srcPortRanges_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } else { ensureSrcPortRangesIsMutable(); srcPortRanges_.addAll(other.srcPortRanges_); @@ -2344,7 +2623,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot if (!other.protocols_.isEmpty()) { if (protocols_.isEmpty()) { protocols_ = other.protocols_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } else { ensureProtocolsIsMutable(); protocols_.addAll(other.protocols_); @@ -2353,12 +2632,22 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.RouteInfo ot } if (other.hasNccHubUri()) { nccHubUri_ = other.nccHubUri_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasNccSpokeUri()) { nccSpokeUri_ = other.nccSpokeUri_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasAdvertisedRouteSourceRouterUri()) { + advertisedRouteSourceRouterUri_ = other.advertisedRouteSourceRouterUri_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasAdvertisedRouteNextHopUri()) { + advertisedRouteNextHopUri_ = other.advertisedRouteNextHopUri_; + bitField0_ |= 0x00040000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2402,25 +2691,25 @@ public Builder mergeFrom( case 26: { destIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 26 case 34: { nextHop_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 34 case 42: { networkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 42 case 48: { priority_ = input.readInt32(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 48 case 58: @@ -2445,7 +2734,7 @@ public Builder mergeFrom( case 82: { srcIpRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 82 case 90: @@ -2478,15 +2767,33 @@ public Builder mergeFrom( case 122: { nccHubUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 130: { nccSpokeUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 130 + case 138: + { + advertisedRouteSourceRouterUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 138 + case 146: + { + advertisedRouteNextHopUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 146 + case 154: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2896,10 +3203,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2921,10 +3225,7 @@ public java.lang.String getUri() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2946,10 +3247,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2970,10 +3268,7 @@ public Builder setUri(java.lang.String value) { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -2990,10 +3285,7 @@ public Builder clearUri() { * * *
-     * URI of a route.
-     * Dynamic, peering static and peering dynamic routes do not have an URI.
-     * Advertised route from Google Cloud VPC to on-premises network also does
-     * not have an URI.
+     * URI of a route (if applicable).
      * 
* * string uri = 2; @@ -3012,24 +3304,24 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object destIpRange_ = ""; + private java.lang.Object region_ = ""; /** * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @return The destIpRange. + * @return The region. */ - public java.lang.String getDestIpRange() { - java.lang.Object ref = destIpRange_; + public java.lang.String getRegion() { + java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - destIpRange_ = s; + region_ = s; return s; } else { return (java.lang.String) ref; @@ -3039,19 +3331,19 @@ public java.lang.String getDestIpRange() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @return The bytes for destIpRange. + * @return The bytes for region. */ - public com.google.protobuf.ByteString getDestIpRangeBytes() { - java.lang.Object ref = destIpRange_; + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destIpRange_ = b; + region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3061,19 +3353,19 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @param value The destIpRange to set. + * @param value The region to set. * @return This builder for chaining. */ - public Builder setDestIpRange(java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destIpRange_ = value; + region_ = value; bitField0_ |= 0x00000020; onChanged(); return this; @@ -3082,15 +3374,15 @@ public Builder setDestIpRange(java.lang.String value) { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * * @return This builder for chaining. */ - public Builder clearDestIpRange() { - destIpRange_ = getDefaultInstance().getDestIpRange(); + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; @@ -3099,43 +3391,43 @@ public Builder clearDestIpRange() { * * *
-     * Destination IP range of the route.
+     * Region of the route (if applicable).
      * 
* - * string dest_ip_range = 3; + * string region = 19; * - * @param value The bytes for destIpRange to set. + * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - destIpRange_ = value; + region_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - private java.lang.Object nextHop_ = ""; + private java.lang.Object destIpRange_ = ""; /** * * *
-     * Next hop of the route.
+     * Destination IP range of the route.
      * 
* - * string next_hop = 4; + * string dest_ip_range = 3; * - * @return The nextHop. + * @return The destIpRange. */ - public java.lang.String getNextHop() { - java.lang.Object ref = nextHop_; + public java.lang.String getDestIpRange() { + java.lang.Object ref = destIpRange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - nextHop_ = s; + destIpRange_ = s; return s; } else { return (java.lang.String) ref; @@ -3145,10 +3437,116 @@ public java.lang.String getNextHop() { * * *
-     * Next hop of the route.
+     * Destination IP range of the route.
      * 
* - * string next_hop = 4; + * string dest_ip_range = 3; + * + * @return The bytes for destIpRange. + */ + public com.google.protobuf.ByteString getDestIpRangeBytes() { + java.lang.Object ref = destIpRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @param value The destIpRange to set. + * @return This builder for chaining. + */ + public Builder setDestIpRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destIpRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearDestIpRange() { + destIpRange_ = getDefaultInstance().getDestIpRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Destination IP range of the route.
+     * 
+ * + * string dest_ip_range = 3; + * + * @param value The bytes for destIpRange to set. + * @return This builder for chaining. + */ + public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destIpRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object nextHop_ = ""; + /** + * + * + *
+     * Next hop of the route.
+     * 
+ * + * string next_hop = 4; + * + * @return The nextHop. + */ + public java.lang.String getNextHop() { + java.lang.Object ref = nextHop_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHop_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Next hop of the route.
+     * 
+ * + * string next_hop = 4; * * @return The bytes for nextHop. */ @@ -3180,7 +3578,7 @@ public Builder setNextHop(java.lang.String value) { throw new NullPointerException(); } nextHop_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3197,7 +3595,7 @@ public Builder setNextHop(java.lang.String value) { */ public Builder clearNextHop() { nextHop_ = getDefaultInstance().getNextHop(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3219,7 +3617,7 @@ public Builder setNextHopBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHop_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3286,7 +3684,7 @@ public Builder setNetworkUri(java.lang.String value) { throw new NullPointerException(); } networkUri_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3303,7 +3701,7 @@ public Builder setNetworkUri(java.lang.String value) { */ public Builder clearNetworkUri() { networkUri_ = getDefaultInstance().getNetworkUri(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3325,7 +3723,7 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); networkUri_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3361,7 +3759,7 @@ public int getPriority() { public Builder setPriority(int value) { priority_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3377,7 +3775,7 @@ public Builder setPriority(int value) { * @return This builder for chaining. */ public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); priority_ = 0; onChanged(); return this; @@ -3390,7 +3788,7 @@ private void ensureInstanceTagsIsMutable() { if (!instanceTags_.isModifiable()) { instanceTags_ = new com.google.protobuf.LazyStringArrayList(instanceTags_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } /** * @@ -3470,7 +3868,7 @@ public Builder setInstanceTags(int index, java.lang.String value) { } ensureInstanceTagsIsMutable(); instanceTags_.set(index, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3492,7 +3890,7 @@ public Builder addInstanceTags(java.lang.String value) { } ensureInstanceTagsIsMutable(); instanceTags_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3511,7 +3909,7 @@ public Builder addInstanceTags(java.lang.String value) { public Builder addAllInstanceTags(java.lang.Iterable values) { ensureInstanceTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceTags_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3528,7 +3926,7 @@ public Builder addAllInstanceTags(java.lang.Iterable values) { */ public Builder clearInstanceTags() { instanceTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -3552,7 +3950,7 @@ public Builder addInstanceTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureInstanceTagsIsMutable(); instanceTags_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3619,7 +4017,7 @@ public Builder setSrcIpRange(java.lang.String value) { throw new NullPointerException(); } srcIpRange_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3636,7 +4034,7 @@ public Builder setSrcIpRange(java.lang.String value) { */ public Builder clearSrcIpRange() { srcIpRange_ = getDefaultInstance().getSrcIpRange(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3658,7 +4056,7 @@ public Builder setSrcIpRangeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); srcIpRange_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3670,7 +4068,7 @@ private void ensureDestPortRangesIsMutable() { if (!destPortRanges_.isModifiable()) { destPortRanges_ = new com.google.protobuf.LazyStringArrayList(destPortRanges_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } /** * @@ -3750,7 +4148,7 @@ public Builder setDestPortRanges(int index, java.lang.String value) { } ensureDestPortRangesIsMutable(); destPortRanges_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3772,7 +4170,7 @@ public Builder addDestPortRanges(java.lang.String value) { } ensureDestPortRangesIsMutable(); destPortRanges_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3791,7 +4189,7 @@ public Builder addDestPortRanges(java.lang.String value) { public Builder addAllDestPortRanges(java.lang.Iterable values) { ensureDestPortRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destPortRanges_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3808,7 +4206,7 @@ public Builder addAllDestPortRanges(java.lang.Iterable values) */ public Builder clearDestPortRanges() { destPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; @@ -3832,7 +4230,7 @@ public Builder addDestPortRangesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureDestPortRangesIsMutable(); destPortRanges_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3844,7 +4242,7 @@ private void ensureSrcPortRangesIsMutable() { if (!srcPortRanges_.isModifiable()) { srcPortRanges_ = new com.google.protobuf.LazyStringArrayList(srcPortRanges_); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } /** * @@ -3924,7 +4322,7 @@ public Builder setSrcPortRanges(int index, java.lang.String value) { } ensureSrcPortRangesIsMutable(); srcPortRanges_.set(index, value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3946,7 +4344,7 @@ public Builder addSrcPortRanges(java.lang.String value) { } ensureSrcPortRangesIsMutable(); srcPortRanges_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3965,7 +4363,7 @@ public Builder addSrcPortRanges(java.lang.String value) { public Builder addAllSrcPortRanges(java.lang.Iterable values) { ensureSrcPortRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, srcPortRanges_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3982,7 +4380,7 @@ public Builder addAllSrcPortRanges(java.lang.Iterable values) */ public Builder clearSrcPortRanges() { srcPortRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); ; onChanged(); return this; @@ -4006,7 +4404,7 @@ public Builder addSrcPortRangesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSrcPortRangesIsMutable(); srcPortRanges_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4018,7 +4416,7 @@ private void ensureProtocolsIsMutable() { if (!protocols_.isModifiable()) { protocols_ = new com.google.protobuf.LazyStringArrayList(protocols_); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } /** * @@ -4098,7 +4496,7 @@ public Builder setProtocols(int index, java.lang.String value) { } ensureProtocolsIsMutable(); protocols_.set(index, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4120,7 +4518,7 @@ public Builder addProtocols(java.lang.String value) { } ensureProtocolsIsMutable(); protocols_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4139,7 +4537,7 @@ public Builder addProtocols(java.lang.String value) { public Builder addAllProtocols(java.lang.Iterable values) { ensureProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protocols_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4156,7 +4554,7 @@ public Builder addAllProtocols(java.lang.Iterable values) { */ public Builder clearProtocols() { protocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); ; onChanged(); return this; @@ -4180,7 +4578,7 @@ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProtocolsIsMutable(); protocols_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4198,7 +4596,7 @@ public Builder addProtocolsBytes(com.google.protobuf.ByteString value) { * @return Whether the nccHubUri field is set. */ public boolean hasNccHubUri() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4261,7 +4659,7 @@ public Builder setNccHubUri(java.lang.String value) { throw new NullPointerException(); } nccHubUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4278,7 +4676,7 @@ public Builder setNccHubUri(java.lang.String value) { */ public Builder clearNccHubUri() { nccHubUri_ = getDefaultInstance().getNccHubUri(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4300,7 +4698,7 @@ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nccHubUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4318,7 +4716,7 @@ public Builder setNccHubUriBytes(com.google.protobuf.ByteString value) { * @return Whether the nccSpokeUri field is set. */ public boolean hasNccSpokeUri() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4381,7 +4779,7 @@ public Builder setNccSpokeUri(java.lang.String value) { throw new NullPointerException(); } nccSpokeUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4398,7 +4796,7 @@ public Builder setNccSpokeUri(java.lang.String value) { */ public Builder clearNccSpokeUri() { nccSpokeUri_ = getDefaultInstance().getNccSpokeUri(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -4420,7 +4818,271 @@ public Builder setNccSpokeUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nccSpokeUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object advertisedRouteSourceRouterUri_ = ""; + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + public boolean hasAdvertisedRouteSourceRouterUri() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + public java.lang.String getAdvertisedRouteSourceRouterUri() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertisedRouteSourceRouterUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { + java.lang.Object ref = advertisedRouteSourceRouterUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteSourceRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @param value The advertisedRouteSourceRouterUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteSourceRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertisedRouteSourceRouterUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdvertisedRouteSourceRouterUri() { + advertisedRouteSourceRouterUri_ = getDefaultInstance().getAdvertisedRouteSourceRouterUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised dynamic routes, the URI of the Cloud Router that advertised
+     * the corresponding IP prefix.
+     * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @param value The bytes for advertisedRouteSourceRouterUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertisedRouteSourceRouterUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object advertisedRouteNextHopUri_ = ""; + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + public boolean hasAdvertisedRouteNextHopUri() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + public java.lang.String getAdvertisedRouteNextHopUri() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertisedRouteNextHopUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { + java.lang.Object ref = advertisedRouteNextHopUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertisedRouteNextHopUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @param value The advertisedRouteNextHopUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertisedRouteNextHopUri_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return This builder for chaining. + */ + public Builder clearAdvertisedRouteNextHopUri() { + advertisedRouteNextHopUri_ = getDefaultInstance().getAdvertisedRouteNextHopUri(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * For advertised routes, the URI of their next hop, i.e. the URI of the
+     * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+     * the advertised prefix is advertised through, or URI of the source peered
+     * network.
+     * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @param value The bytes for advertisedRouteNextHopUri to set. + * @return This builder for chaining. + */ + public Builder setAdvertisedRouteNextHopUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertisedRouteNextHopUri_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index fec723140deb..436b3a59439a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java @@ -128,10 +128,7 @@ public interface RouteInfoOrBuilder * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -143,10 +140,7 @@ public interface RouteInfoOrBuilder * * *
-   * URI of a route.
-   * Dynamic, peering static and peering dynamic routes do not have an URI.
-   * Advertised route from Google Cloud VPC to on-premises network also does
-   * not have an URI.
+   * URI of a route (if applicable).
    * 
* * string uri = 2; @@ -155,6 +149,31 @@ public interface RouteInfoOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Region of the route (if applicable).
+   * 
+ * + * string region = 19; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + /** * * @@ -545,4 +564,90 @@ public interface RouteInfoOrBuilder * @return The bytes for nccSpokeUri. */ com.google.protobuf.ByteString getNccSpokeUriBytes(); + + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return Whether the advertisedRouteSourceRouterUri field is set. + */ + boolean hasAdvertisedRouteSourceRouterUri(); + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The advertisedRouteSourceRouterUri. + */ + java.lang.String getAdvertisedRouteSourceRouterUri(); + /** + * + * + *
+   * For advertised dynamic routes, the URI of the Cloud Router that advertised
+   * the corresponding IP prefix.
+   * 
+ * + * optional string advertised_route_source_router_uri = 17; + * + * @return The bytes for advertisedRouteSourceRouterUri. + */ + com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes(); + + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return Whether the advertisedRouteNextHopUri field is set. + */ + boolean hasAdvertisedRouteNextHopUri(); + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The advertisedRouteNextHopUri. + */ + java.lang.String getAdvertisedRouteNextHopUri(); + /** + * + * + *
+   * For advertised routes, the URI of their next hop, i.e. the URI of the
+   * hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance)
+   * the advertised prefix is advertised through, or URI of the source peered
+   * network.
+   * 
+ * + * optional string advertised_route_next_hop_uri = 18; + * + * @return The bytes for advertisedRouteNextHopUri. + */ + com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfo.java new file mode 100644 index 000000000000..38a42c9f1de4 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfo.java @@ -0,0 +1,632 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
+ * For display only. Metadata associated with the serverless network endpoint
+ * group backend.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ServerlessNegInfo} + */ +public final class ServerlessNegInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) + ServerlessNegInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerlessNegInfo.newBuilder() to construct. + private ServerlessNegInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerlessNegInfo() { + negUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerlessNegInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.class, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder.class); + } + + public static final int NEG_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object negUri_ = ""; + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + @java.lang.Override + public java.lang.String getNegUri() { + java.lang.Object ref = negUri_; + 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(); + negUri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNegUriBytes() { + java.lang.Object ref = negUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(negUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, negUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(negUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, negUri_); + } + 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.networkmanagement.v1beta1.ServerlessNegInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo other = + (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) obj; + + if (!getNegUri().equals(other.getNegUri())) 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) + NEG_URI_FIELD_NUMBER; + hash = (53 * hash) + getNegUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo 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.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo 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.networkmanagement.v1beta1.ServerlessNegInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.ServerlessNegInfo 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * For display only. Metadata associated with the serverless network endpoint
+   * group backend.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ServerlessNegInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.class, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + negUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo build() { + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo result = + new com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.negUri_ = negUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance()) + return this; + if (!other.getNegUri().isEmpty()) { + negUri_ = other.negUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + negUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object negUri_ = ""; + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + public java.lang.String getNegUri() { + java.lang.Object ref = negUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + public com.google.protobuf.ByteString getNegUriBytes() { + java.lang.Object ref = negUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @param value The negUri to set. + * @return This builder for chaining. + */ + public Builder setNegUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + negUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearNegUri() { + negUri_ = getDefaultInstance().getNegUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the serverless network endpoint group.
+     * 
+ * + * string neg_uri = 1; + * + * @param value The bytes for negUri to set. + * @return This builder for chaining. + */ + public Builder setNegUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + negUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) + private static final com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerlessNegInfo 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.networkmanagement.v1beta1.ServerlessNegInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfoOrBuilder.java new file mode 100644 index 000000000000..7576063ab76c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ServerlessNegInfoOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1beta1; + +public interface ServerlessNegInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The negUri. + */ + java.lang.String getNegUri(); + /** + * + * + *
+   * URI of the serverless network endpoint group.
+   * 
+ * + * string neg_uri = 1; + * + * @return The bytes for negUri. + */ + com.google.protobuf.ByteString getNegUriBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java index 0b8f4dc0a7ea..ec71d29cc8c6 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java @@ -155,6 +155,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_CLOUD_SQL_INSTANCE = 22; */ START_FROM_CLOUD_SQL_INSTANCE(22), + /** + * + * + *
+     * Initial state: packet originating from a Redis instance.
+     * A RedisInstanceInfo is populated with starting instance information.
+     * 
+ * + * START_FROM_REDIS_INSTANCE = 32; + */ + START_FROM_REDIS_INSTANCE(32), + /** + * + * + *
+     * Initial state: packet originating from a Redis Cluster.
+     * A RedisClusterInfo is populated with starting Cluster information.
+     * 
+ * + * START_FROM_REDIS_CLUSTER = 33; + */ + START_FROM_REDIS_CLUSTER(33), /** * * @@ -211,6 +233,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_PSC_PUBLISHED_SERVICE = 30; */ START_FROM_PSC_PUBLISHED_SERVICE(30), + /** + * + * + *
+     * Initial state: packet originating from a serverless network endpoint
+     * group backend. Used only for return traces.
+     * The serverless_neg information is populated.
+     * 
+ * + * START_FROM_SERVERLESS_NEG = 31; + */ + START_FROM_SERVERLESS_NEG(31), /** * * @@ -492,6 +526,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_CLOUD_SQL_INSTANCE = 22; */ public static final int START_FROM_CLOUD_SQL_INSTANCE_VALUE = 22; + /** + * + * + *
+     * Initial state: packet originating from a Redis instance.
+     * A RedisInstanceInfo is populated with starting instance information.
+     * 
+ * + * START_FROM_REDIS_INSTANCE = 32; + */ + public static final int START_FROM_REDIS_INSTANCE_VALUE = 32; + /** + * + * + *
+     * Initial state: packet originating from a Redis Cluster.
+     * A RedisClusterInfo is populated with starting Cluster information.
+     * 
+ * + * START_FROM_REDIS_CLUSTER = 33; + */ + public static final int START_FROM_REDIS_CLUSTER_VALUE = 33; /** * * @@ -548,6 +604,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_PSC_PUBLISHED_SERVICE = 30; */ public static final int START_FROM_PSC_PUBLISHED_SERVICE_VALUE = 30; + /** + * + * + *
+     * Initial state: packet originating from a serverless network endpoint
+     * group backend. Used only for return traces.
+     * The serverless_neg information is populated.
+     * 
+ * + * START_FROM_SERVERLESS_NEG = 31; + */ + public static final int START_FROM_SERVERLESS_NEG_VALUE = 31; /** * * @@ -785,6 +853,10 @@ public static State forNumber(int value) { return START_FROM_GKE_MASTER; case 22: return START_FROM_CLOUD_SQL_INSTANCE; + case 32: + return START_FROM_REDIS_INSTANCE; + case 33: + return START_FROM_REDIS_CLUSTER; case 23: return START_FROM_CLOUD_FUNCTION; case 25: @@ -795,6 +867,8 @@ public static State forNumber(int value) { return START_FROM_STORAGE_BUCKET; case 30: return START_FROM_PSC_PUBLISHED_SERVICE; + case 31: + return START_FROM_SERVERLESS_NEG; case 4: return APPLY_INGRESS_FIREWALL_RULE; case 5: @@ -913,6 +987,8 @@ public enum StepInfoCase NETWORK(17), GKE_MASTER(18), CLOUD_SQL_INSTANCE(19), + REDIS_INSTANCE(30), + REDIS_CLUSTER(31), CLOUD_FUNCTION(20), APP_ENGINE_VERSION(22), CLOUD_RUN_REVISION(23), @@ -920,6 +996,7 @@ public enum StepInfoCase PROXY_CONNECTION(26), LOAD_BALANCER_BACKEND_INFO(27), STORAGE_BUCKET(28), + SERVERLESS_NEG(29), STEPINFO_NOT_SET(0); private final int value; @@ -972,6 +1049,10 @@ public static StepInfoCase forNumber(int value) { return GKE_MASTER; case 19: return CLOUD_SQL_INSTANCE; + case 30: + return REDIS_INSTANCE; + case 31: + return REDIS_CLUSTER; case 20: return CLOUD_FUNCTION; case 22: @@ -986,6 +1067,8 @@ public static StepInfoCase forNumber(int value) { return LOAD_BALANCER_BACKEND_INFO; case 28: return STORAGE_BUCKET; + case 29: + return SERVERLESS_NEG; case 0: return STEPINFO_NOT_SET; default: @@ -1849,7 +1932,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -1870,7 +1953,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return The loadBalancer. */ @java.lang.Override @@ -2060,6 +2143,110 @@ public com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo getCloudS return com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfo.getDefaultInstance(); } + public static final int REDIS_INSTANCE_FIELD_NUMBER = 30; + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + * + * @return Whether the redisInstance field is set. + */ + @java.lang.Override + public boolean hasRedisInstance() { + return stepInfoCase_ == 30; + } + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + * + * @return The redisInstance. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo getRedisInstance() { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder + getRedisInstanceOrBuilder() { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); + } + + public static final int REDIS_CLUSTER_FIELD_NUMBER = 31; + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + @java.lang.Override + public boolean hasRedisCluster() { + return stepInfoCase_ == 31; + } + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo getRedisCluster() { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder + getRedisClusterOrBuilder() { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 20; /** * @@ -2436,6 +2623,61 @@ public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo getStorageBu return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); } + public static final int SERVERLESS_NEG_FIELD_NUMBER = 29; + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + @java.lang.Override + public boolean hasServerlessNeg() { + return stepInfoCase_ == 29; + } + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo getServerlessNeg() { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder + getServerlessNegOrBuilder() { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2547,6 +2789,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_); } + if (stepInfoCase_ == 29) { + output.writeMessage( + 29, (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_); + } + if (stepInfoCase_ == 30) { + output.writeMessage( + 30, (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_); + } + if (stepInfoCase_ == 31) { + output.writeMessage( + 31, (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -2689,6 +2943,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_); } + if (stepInfoCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_); + } + if (stepInfoCase_ == 30) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_); + } + if (stepInfoCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2762,6 +3031,12 @@ public boolean equals(final java.lang.Object obj) { case 19: if (!getCloudSqlInstance().equals(other.getCloudSqlInstance())) return false; break; + case 30: + if (!getRedisInstance().equals(other.getRedisInstance())) return false; + break; + case 31: + if (!getRedisCluster().equals(other.getRedisCluster())) return false; + break; case 20: if (!getCloudFunction().equals(other.getCloudFunction())) return false; break; @@ -2783,6 +3058,9 @@ public boolean equals(final java.lang.Object obj) { case 28: if (!getStorageBucket().equals(other.getStorageBucket())) return false; break; + case 29: + if (!getServerlessNeg().equals(other.getServerlessNeg())) return false; + break; case 0: default: } @@ -2874,6 +3152,14 @@ public int hashCode() { hash = (37 * hash) + CLOUD_SQL_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlInstance().hashCode(); break; + case 30: + hash = (37 * hash) + REDIS_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getRedisInstance().hashCode(); + break; + case 31: + hash = (37 * hash) + REDIS_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getRedisCluster().hashCode(); + break; case 20: hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -2902,6 +3188,10 @@ public int hashCode() { hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getStorageBucket().hashCode(); break; + case 29: + hash = (37 * hash) + SERVERLESS_NEG_FIELD_NUMBER; + hash = (53 * hash) + getServerlessNeg().hashCode(); + break; case 0: default: } @@ -3100,6 +3390,12 @@ public Builder clear() { if (cloudSqlInstanceBuilder_ != null) { cloudSqlInstanceBuilder_.clear(); } + if (redisInstanceBuilder_ != null) { + redisInstanceBuilder_.clear(); + } + if (redisClusterBuilder_ != null) { + redisClusterBuilder_.clear(); + } if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.clear(); } @@ -3121,6 +3417,9 @@ public Builder clear() { if (storageBucketBuilder_ != null) { storageBucketBuilder_.clear(); } + if (serverlessNegBuilder_ != null) { + serverlessNegBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -3228,6 +3527,12 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 19 && cloudSqlInstanceBuilder_ != null) { result.stepInfo_ = cloudSqlInstanceBuilder_.build(); } + if (stepInfoCase_ == 30 && redisInstanceBuilder_ != null) { + result.stepInfo_ = redisInstanceBuilder_.build(); + } + if (stepInfoCase_ == 31 && redisClusterBuilder_ != null) { + result.stepInfo_ = redisClusterBuilder_.build(); + } if (stepInfoCase_ == 20 && cloudFunctionBuilder_ != null) { result.stepInfo_ = cloudFunctionBuilder_.build(); } @@ -3249,6 +3554,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 28 && storageBucketBuilder_ != null) { result.stepInfo_ = storageBucketBuilder_.build(); } + if (stepInfoCase_ == 29 && serverlessNegBuilder_ != null) { + result.stepInfo_ = serverlessNegBuilder_.build(); + } } @java.lang.Override @@ -3399,6 +3707,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeCloudSqlInstance(other.getCloudSqlInstance()); break; } + case REDIS_INSTANCE: + { + mergeRedisInstance(other.getRedisInstance()); + break; + } + case REDIS_CLUSTER: + { + mergeRedisCluster(other.getRedisCluster()); + break; + } case CLOUD_FUNCTION: { mergeCloudFunction(other.getCloudFunction()); @@ -3434,6 +3752,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeStorageBucket(other.getStorageBucket()); break; } + case SERVERLESS_NEG: + { + mergeServerlessNeg(other.getServerlessNeg()); + break; + } case STEPINFO_NOT_SET: { break; @@ -3637,6 +3960,24 @@ public Builder mergeFrom( stepInfoCase_ = 28; break; } // case 226 + case 234: + { + input.readMessage(getServerlessNegFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 29; + break; + } // case 234 + case 242: + { + input.readMessage(getRedisInstanceFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 30; + break; + } // case 242 + case 250: + { + input.readMessage(getRedisClusterFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 31; + break; + } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6825,7 +7166,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -6846,7 +7187,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return The loadBalancer. */ @java.lang.Override @@ -7709,112 +8050,112 @@ public Builder clearCloudSqlInstance() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo, - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder, - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder> - cloudFunctionBuilder_; + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder> + redisInstanceBuilder_; /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; * - * @return Whether the cloudFunction field is set. + * @return Whether the redisInstance field is set. */ @java.lang.Override - public boolean hasCloudFunction() { - return stepInfoCase_ == 20; + public boolean hasRedisInstance() { + return stepInfoCase_ == 30; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; * - * @return The cloudFunction. + * @return The redisInstance. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunction() { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20) { - return (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_; + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo getRedisInstance() { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_; } - return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); } else { - if (stepInfoCase_ == 20) { - return cloudFunctionBuilder_.getMessage(); + if (stepInfoCase_ == 30) { + return redisInstanceBuilder_.getMessage(); } - return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); } } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ - public Builder setCloudFunction( - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo value) { - if (cloudFunctionBuilder_ == null) { + public Builder setRedisInstance( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo value) { + if (redisInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stepInfo_ = value; onChanged(); } else { - cloudFunctionBuilder_.setMessage(value); + redisInstanceBuilder_.setMessage(value); } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ - public Builder setCloudFunction( - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder builderForValue) { - if (cloudFunctionBuilder_ == null) { + public Builder setRedisInstance( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder builderForValue) { + if (redisInstanceBuilder_ == null) { stepInfo_ = builderForValue.build(); onChanged(); } else { - cloudFunctionBuilder_.setMessage(builderForValue.build()); + redisInstanceBuilder_.setMessage(builderForValue.build()); } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ - public Builder mergeCloudFunction( - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo value) { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20 + public Builder mergeRedisInstance( + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo value) { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30 && stepInfo_ - != com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo + != com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo .getDefaultInstance()) { stepInfo_ = - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.newBuilder( - (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_) + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_) .mergeFrom(value) .buildPartial(); } else { @@ -7822,37 +8163,37 @@ public Builder mergeCloudFunction( } onChanged(); } else { - if (stepInfoCase_ == 20) { - cloudFunctionBuilder_.mergeFrom(value); + if (stepInfoCase_ == 30) { + redisInstanceBuilder_.mergeFrom(value); } else { - cloudFunctionBuilder_.setMessage(value); + redisInstanceBuilder_.setMessage(value); } } - stepInfoCase_ = 20; + stepInfoCase_ = 30; return this; } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ - public Builder clearCloudFunction() { - if (cloudFunctionBuilder_ == null) { - if (stepInfoCase_ == 20) { + public Builder clearRedisInstance() { + if (redisInstanceBuilder_ == null) { + if (stepInfoCase_ == 30) { stepInfoCase_ = 0; stepInfo_ = null; onChanged(); } } else { - if (stepInfoCase_ == 20) { + if (stepInfoCase_ == 30) { stepInfoCase_ = 0; stepInfo_ = null; } - cloudFunctionBuilder_.clear(); + redisInstanceBuilder_.clear(); } return this; } @@ -7860,50 +8201,482 @@ public Builder clearCloudFunction() { * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ - public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder - getCloudFunctionBuilder() { - return getCloudFunctionFieldBuilder().getBuilder(); + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder + getRedisInstanceBuilder() { + return getRedisInstanceFieldBuilder().getBuilder(); } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder - getCloudFunctionOrBuilder() { - if ((stepInfoCase_ == 20) && (cloudFunctionBuilder_ != null)) { - return cloudFunctionBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder + getRedisInstanceOrBuilder() { + if ((stepInfoCase_ == 30) && (redisInstanceBuilder_ != null)) { + return redisInstanceBuilder_.getMessageOrBuilder(); } else { - if (stepInfoCase_ == 20) { - return (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_; + if (stepInfoCase_ == 30) { + return (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_; } - return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + return com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); } } /** * * *
-     * Display information of a Cloud Function.
+     * Display information of a Redis Instance.
      * 
* - * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo, - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder, - com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder> - getCloudFunctionFieldBuilder() { + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder> + getRedisInstanceFieldBuilder() { + if (redisInstanceBuilder_ == null) { + if (!(stepInfoCase_ == 30)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.getDefaultInstance(); + } + redisInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 30; + onChanged(); + return redisInstanceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder> + redisClusterBuilder_; + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + @java.lang.Override + public boolean hasRedisCluster() { + return stepInfoCase_ == 31; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo getRedisCluster() { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 31) { + return redisClusterBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + public Builder setRedisCluster( + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo value) { + if (redisClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + redisClusterBuilder_.setMessage(value); + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + public Builder setRedisCluster( + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder builderForValue) { + if (redisClusterBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + redisClusterBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + public Builder mergeRedisCluster( + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo value) { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 31) { + redisClusterBuilder_.mergeFrom(value); + } else { + redisClusterBuilder_.setMessage(value); + } + } + stepInfoCase_ = 31; + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + public Builder clearRedisCluster() { + if (redisClusterBuilder_ == null) { + if (stepInfoCase_ == 31) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 31) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + redisClusterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder + getRedisClusterBuilder() { + return getRedisClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder + getRedisClusterOrBuilder() { + if ((stepInfoCase_ == 31) && (redisClusterBuilder_ != null)) { + return redisClusterBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 31) { + return (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Redis Cluster.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder> + getRedisClusterFieldBuilder() { + if (redisClusterBuilder_ == null) { + if (!(stepInfoCase_ == 31)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.getDefaultInstance(); + } + redisClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 31; + onChanged(); + return redisClusterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo, + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder> + cloudFunctionBuilder_; + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * + * @return Whether the cloudFunction field is set. + */ + @java.lang.Override + public boolean hasCloudFunction() { + return stepInfoCase_ == 20; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + * + * @return The cloudFunction. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunction() { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20) { + return (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 20) { + return cloudFunctionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + public Builder setCloudFunction( + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo value) { + if (cloudFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + cloudFunctionBuilder_.setMessage(value); + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + public Builder setCloudFunction( + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder builderForValue) { + if (cloudFunctionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + cloudFunctionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + public Builder mergeCloudFunction( + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo value) { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 20) { + cloudFunctionBuilder_.mergeFrom(value); + } else { + cloudFunctionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 20; + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + public Builder clearCloudFunction() { + if (cloudFunctionBuilder_ == null) { + if (stepInfoCase_ == 20) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 20) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + cloudFunctionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder + getCloudFunctionBuilder() { + return getCloudFunctionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder + getCloudFunctionOrBuilder() { + if ((stepInfoCase_ == 20) && (cloudFunctionBuilder_ != null)) { + return cloudFunctionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 20) { + return (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Cloud Function.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.CloudFunctionInfo cloud_function = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo, + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder> + getCloudFunctionFieldBuilder() { if (cloudFunctionBuilder_ == null) { if (!(stepInfoCase_ == 20)) { stepInfo_ = @@ -9266,6 +10039,231 @@ public Builder clearStorageBucket() { return storageBucketBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder> + serverlessNegBuilder_; + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + @java.lang.Override + public boolean hasServerlessNeg() { + return stepInfoCase_ == 29; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo getServerlessNeg() { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 29) { + return serverlessNegBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder setServerlessNeg( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo value) { + if (serverlessNegBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + serverlessNegBuilder_.setMessage(value); + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder setServerlessNeg( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder builderForValue) { + if (serverlessNegBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + serverlessNegBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder mergeServerlessNeg( + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo value) { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 29) { + serverlessNegBuilder_.mergeFrom(value); + } else { + serverlessNegBuilder_.setMessage(value); + } + } + stepInfoCase_ = 29; + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + public Builder clearServerlessNeg() { + if (serverlessNegBuilder_ == null) { + if (stepInfoCase_ == 29) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 29) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + serverlessNegBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder + getServerlessNegBuilder() { + return getServerlessNegFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder + getServerlessNegOrBuilder() { + if ((stepInfoCase_ == 29) && (serverlessNegBuilder_ != null)) { + return serverlessNegBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 29) { + return (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + } + /** + * + * + *
+     * Display information of a Serverless network endpoint group backend. Used
+     * only for return traces.
+     * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder> + getServerlessNegFieldBuilder() { + if (serverlessNegBuilder_ == null) { + if (!(stepInfoCase_ == 29)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.getDefaultInstance(); + } + serverlessNegBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 29; + onChanged(); + return serverlessNegBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java index d4d5e0077f6c..53a695a57e94 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java @@ -590,7 +590,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -608,7 +608,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=245 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=258 * @return The loadBalancer. */ @java.lang.Deprecated @@ -737,6 +737,76 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoOrBuilder getCloudSqlInstanceOrBuilder(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + * + * @return Whether the redisInstance field is set. + */ + boolean hasRedisInstance(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + * + * @return The redisInstance. + */ + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfo getRedisInstance(); + /** + * + * + *
+   * Display information of a Redis Instance.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisInstanceInfo redis_instance = 30; + */ + com.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoOrBuilder getRedisInstanceOrBuilder(); + + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return Whether the redisCluster field is set. + */ + boolean hasRedisCluster(); + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + * + * @return The redisCluster. + */ + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfo getRedisCluster(); + /** + * + * + *
+   * Display information of a Redis Cluster.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.RedisClusterInfo redis_cluster = 31; + */ + com.google.cloud.networkmanagement.v1beta1.RedisClusterInfoOrBuilder getRedisClusterOrBuilder(); + /** * * @@ -998,5 +1068,43 @@ public interface StepOrBuilder */ com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder getStorageBucketOrBuilder(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return Whether the serverlessNeg field is set. + */ + boolean hasServerlessNeg(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + * + * @return The serverlessNeg. + */ + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfo getServerlessNeg(); + /** + * + * + *
+   * Display information of a Serverless network endpoint group backend. Used
+   * only for return traces.
+   * 
+ * + * .google.cloud.networkmanagement.v1beta1.ServerlessNegInfo serverless_neg = 29; + */ + com.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoOrBuilder getServerlessNegOrBuilder(); + com.google.cloud.networkmanagement.v1beta1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java index 21e7e6fd74ca..38e568c1a932 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java @@ -88,7 +88,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\0322google/cloud/networkmanagement/v1b" + "eta1/trace.proto\032\037google/protobuf/timest" + "amp.proto\032\027google/rpc/status.proto\"\321\006\n\020C" - + "onnectivityTest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013de" + + "onnectivityTest\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\023\n\013de" + "scription\030\002 \001(\t\022E\n\006source\030\003 \001(\01320.google" + ".cloud.networkmanagement.v1beta1.Endpoin" + "tB\003\340A\002\022J\n\013destination\030\004 \001(\01320.google.clo" @@ -109,7 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t:\0028\001:t\352Aq\n1networkmanagement.googlea" + "pis.com/ConnectivityTest\022\n\003nat\030\031 \001(\0132/.google.cloud.networkma" - + "nagement.v1beta1.NatInfoH\000\022W\n\020proxy_conn" - + "ection\030\032 \001(\0132;.google.cloud.networkmanag" - + "ement.v1beta1.ProxyConnectionInfoH\000\022e\n\032l" - + "oad_balancer_backend_info\030\033 \001(\0132?.google" - + ".cloud.networkmanagement.v1beta1.LoadBal" - + "ancerBackendInfoH\000\022S\n\016storage_bucket\030\034 \001" - + "(\01329.google.cloud.networkmanagement.v1be" - + "ta1.StorageBucketInfoH\000\"\311\006\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\027\n\023START_FROM_INSTANCE\020" - + "\001\022\027\n\023START_FROM_INTERNET\020\002\022\035\n\031START_FROM" - + "_GOOGLE_SERVICE\020\033\022\036\n\032START_FROM_PRIVATE_" - + "NETWORK\020\003\022\031\n\025START_FROM_GKE_MASTER\020\025\022!\n\035" - + "START_FROM_CLOUD_SQL_INSTANCE\020\026\022\035\n\031START" - + "_FROM_CLOUD_FUNCTION\020\027\022!\n\035START_FROM_APP" - + "_ENGINE_VERSION\020\031\022!\n\035START_FROM_CLOUD_RU" - + "N_REVISION\020\032\022\035\n\031START_FROM_STORAGE_BUCKE" - + "T\020\035\022$\n START_FROM_PSC_PUBLISHED_SERVICE\020" - + "\036\022\037\n\033APPLY_INGRESS_FIREWALL_RULE\020\004\022\036\n\032AP" - + "PLY_EGRESS_FIREWALL_RULE\020\005\022\017\n\013APPLY_ROUT" - + "E\020\006\022\031\n\025APPLY_FORWARDING_RULE\020\007\022!\n\035ANALYZ" - + "E_LOAD_BALANCER_BACKEND\020\034\022\025\n\021SPOOFING_AP" - + "PROVED\020\010\022\026\n\022ARRIVE_AT_INSTANCE\020\t\022(\n ARRI" - + "VE_AT_INTERNAL_LOAD_BALANCER\020\n\032\002\010\001\022(\n AR" - + "RIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\032\002\010\001\022\031\n\025" - + "ARRIVE_AT_VPN_GATEWAY\020\014\022\030\n\024ARRIVE_AT_VPN" - + "_TUNNEL\020\r\022\033\n\027ARRIVE_AT_VPC_CONNECTOR\020\030\022\007" - + "\n\003NAT\020\016\022\024\n\020PROXY_CONNECTION\020\017\022\013\n\007DELIVER" - + "\020\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022\022\t\n\005ABORT\020\023\022\035\n\031" - + "VIEWER_PERMISSION_MISSING\020\024B\013\n\tstep_info" - + "\"\266\001\n\014InstanceInfo\022\024\n\014display_name\030\001 \001(\t\022" - + "\013\n\003uri\030\002 \001(\t\022\021\n\tinterface\030\003 \001(\t\022\023\n\013netwo" + + "nstanceInfoH\000\022S\n\016redis_instance\030\036 \001(\01329." + + "google.cloud.networkmanagement.v1beta1.R" + + "edisInstanceInfoH\000\022Q\n\rredis_cluster\030\037 \001(" + + "\01328.google.cloud.networkmanagement.v1bet" + + "a1.RedisClusterInfoH\000\022S\n\016cloud_function\030" + + "\024 \001(\01329.google.cloud.networkmanagement.v" + + "1beta1.CloudFunctionInfoH\000\022Z\n\022app_engine" + + "_version\030\026 \001(\0132<.google.cloud.networkman" + + "agement.v1beta1.AppEngineVersionInfoH\000\022Z" + + "\n\022cloud_run_revision\030\027 \001(\0132<.google.clou" + + "d.networkmanagement.v1beta1.CloudRunRevi" + + "sionInfoH\000\022>\n\003nat\030\031 \001(\0132/.google.cloud.n" + + "etworkmanagement.v1beta1.NatInfoH\000\022W\n\020pr" + + "oxy_connection\030\032 \001(\0132;.google.cloud.netw" + + "orkmanagement.v1beta1.ProxyConnectionInf" + + "oH\000\022e\n\032load_balancer_backend_info\030\033 \001(\0132" + + "?.google.cloud.networkmanagement.v1beta1" + + ".LoadBalancerBackendInfoH\000\022S\n\016storage_bu" + + "cket\030\034 \001(\01329.google.cloud.networkmanagem" + + "ent.v1beta1.StorageBucketInfoH\000\022S\n\016serve" + + "rless_neg\030\035 \001(\01329.google.cloud.networkma" + + "nagement.v1beta1.ServerlessNegInfoH\000\"\245\007\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\027\n\023START_F" + + "ROM_INSTANCE\020\001\022\027\n\023START_FROM_INTERNET\020\002\022" + + "\035\n\031START_FROM_GOOGLE_SERVICE\020\033\022\036\n\032START_" + + "FROM_PRIVATE_NETWORK\020\003\022\031\n\025START_FROM_GKE" + + "_MASTER\020\025\022!\n\035START_FROM_CLOUD_SQL_INSTAN" + + "CE\020\026\022\035\n\031START_FROM_REDIS_INSTANCE\020 \022\034\n\030S" + + "TART_FROM_REDIS_CLUSTER\020!\022\035\n\031START_FROM_" + + "CLOUD_FUNCTION\020\027\022!\n\035START_FROM_APP_ENGIN" + + "E_VERSION\020\031\022!\n\035START_FROM_CLOUD_RUN_REVI" + + "SION\020\032\022\035\n\031START_FROM_STORAGE_BUCKET\020\035\022$\n" + + " START_FROM_PSC_PUBLISHED_SERVICE\020\036\022\035\n\031S" + + "TART_FROM_SERVERLESS_NEG\020\037\022\037\n\033APPLY_INGR" + + "ESS_FIREWALL_RULE\020\004\022\036\n\032APPLY_EGRESS_FIRE" + + "WALL_RULE\020\005\022\017\n\013APPLY_ROUTE\020\006\022\031\n\025APPLY_FO" + + "RWARDING_RULE\020\007\022!\n\035ANALYZE_LOAD_BALANCER" + + "_BACKEND\020\034\022\025\n\021SPOOFING_APPROVED\020\010\022\026\n\022ARR" + + "IVE_AT_INSTANCE\020\t\022(\n ARRIVE_AT_INTERNAL_" + + "LOAD_BALANCER\020\n\032\002\010\001\022(\n ARRIVE_AT_EXTERNA" + + "L_LOAD_BALANCER\020\013\032\002\010\001\022\031\n\025ARRIVE_AT_VPN_G" + + "ATEWAY\020\014\022\030\n\024ARRIVE_AT_VPN_TUNNEL\020\r\022\033\n\027AR" + + "RIVE_AT_VPC_CONNECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROX" + + "Y_CONNECTION\020\017\022\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n" + + "\007FORWARD\020\022\022\t\n\005ABORT\020\023\022\035\n\031VIEWER_PERMISSI" + + "ON_MISSING\020\024B\013\n\tstep_info\"\332\001\n\014InstanceIn" + + "fo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n" + + "\tinterface\030\003 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n" + + "\013internal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022" + + "\024\n\014network_tags\030\007 \003(\t\022\033\n\017service_account" + + "\030\010 \001(\tB\002\030\001\022\"\n\032psc_network_attachment_uri" + + "\030\t \001(\t\"v\n\013NetworkInfo\022\024\n\014display_name\030\001 " + + "\001(\t\022\013\n\003uri\030\002 \001(\t\022\032\n\022matched_subnet_uri\030\005" + + " \001(\t\022\030\n\020matched_ip_range\030\004 \001(\t\022\016\n\006region" + + "\030\006 \001(\t\"\206\005\n\014FirewallInfo\022\024\n\014display_name\030" + + "\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n" + + "\006action\030\004 \001(\t\022\020\n\010priority\030\005 \001(\005\022\023\n\013netwo" + + "rk_uri\030\006 \001(\t\022\023\n\013target_tags\030\007 \003(\t\022\037\n\027tar" + + "get_service_accounts\030\010 \003(\t\022\016\n\006policy\030\t \001" + + "(\t\022\022\n\npolicy_uri\030\013 \001(\t\022a\n\022firewall_rule_" + + "type\030\n \001(\0162E.google.cloud.networkmanagem" + + "ent.v1beta1.FirewallInfo.FirewallRuleTyp" + + "e\"\313\002\n\020FirewallRuleType\022\"\n\036FIREWALL_RULE_" + + "TYPE_UNSPECIFIED\020\000\022%\n!HIERARCHICAL_FIREW" + + "ALL_POLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002" + + "\022\035\n\031IMPLIED_VPC_FIREWALL_RULE\020\003\022/\n+SERVE" + + "RLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE\020\004" + + "\022 \n\034NETWORK_FIREWALL_POLICY_RULE\020\005\022)\n%NE" + + "TWORK_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n" + + " UNSUPPORTED_FIREWALL_POLICY_RULE\020d\022\022\n\016T" + + "RACKING_STATE\020e\"\273\n\n\tRouteInfo\022O\n\nroute_t" + + "ype\030\010 \001(\0162;.google.cloud.networkmanageme" + + "nt.v1beta1.RouteInfo.RouteType\022T\n\rnext_h" + + "op_type\030\t \001(\0162=.google.cloud.networkmana" + + "gement.v1beta1.RouteInfo.NextHopType\022Q\n\013" + + "route_scope\030\016 \001(\0162<.google.cloud.network" + + "management.v1beta1.RouteInfo.RouteScope\022" + + "\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\016\n\006re" + + "gion\030\023 \001(\t\022\025\n\rdest_ip_range\030\003 \001(\t\022\020\n\010nex" + + "t_hop\030\004 \001(\t\022\023\n\013network_uri\030\005 \001(\t\022\020\n\010prio" + + "rity\030\006 \001(\005\022\025\n\rinstance_tags\030\007 \003(\t\022\024\n\014src" + + "_ip_range\030\n \001(\t\022\030\n\020dest_port_ranges\030\013 \003(" + + "\t\022\027\n\017src_port_ranges\030\014 \003(\t\022\021\n\tprotocols\030" + + "\r \003(\t\022\030\n\013ncc_hub_uri\030\017 \001(\tH\000\210\001\001\022\032\n\rncc_s" + + "poke_uri\030\020 \001(\tH\001\210\001\001\022/\n\"advertised_route_" + + "source_router_uri\030\021 \001(\tH\002\210\001\001\022*\n\035advertis" + + "ed_route_next_hop_uri\030\022 \001(\tH\003\210\001\001\"\253\001\n\tRou" + + "teType\022\032\n\026ROUTE_TYPE_UNSPECIFIED\020\000\022\n\n\006SU" + + "BNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMIC\020\003\022\022\n\016PEERI" + + "NG_SUBNET\020\004\022\022\n\016PEERING_STATIC\020\005\022\023\n\017PEERI" + + "NG_DYNAMIC\020\006\022\020\n\014POLICY_BASED\020\007\022\016\n\nADVERT" + + "ISED\020e\"\314\002\n\013NextHopType\022\035\n\031NEXT_HOP_TYPE_" + + "UNSPECIFIED\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_H" + + "OP_INSTANCE\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020N" + + "EXT_HOP_PEERING\020\004\022\031\n\025NEXT_HOP_INTERCONNE" + + "CT\020\005\022\027\n\023NEXT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HO" + + "P_VPN_GATEWAY\020\007\022\035\n\031NEXT_HOP_INTERNET_GAT" + + "EWAY\020\010\022\026\n\022NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_H" + + "OP_ILB\020\n\022\035\n\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022" + + "\024\n\020NEXT_HOP_NCC_HUB\020\014\"C\n\nRouteScope\022\033\n\027R" + + "OUTE_SCOPE_UNSPECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n" + + "\007NCC_HUB\020\002B\016\n\014_ncc_hub_uriB\020\n\016_ncc_spoke" + + "_uriB%\n#_advertised_route_source_router_" + + "uriB \n\036_advertised_route_next_hop_uri\"\304\002" + + "\n\021GoogleServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022h" + + "\n\023google_service_type\030\002 \001(\0162K.google.clo" + + "ud.networkmanagement.v1beta1.GoogleServi" + + "ceInfo.GoogleServiceType\"\261\001\n\021GoogleServi" + + "ceType\022#\n\037GOOGLE_SERVICE_TYPE_UNSPECIFIE" + + "D\020\000\022\007\n\003IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_CHEC" + + "K_PROBER\020\002\022\r\n\tCLOUD_DNS\020\003\022\016\n\nGOOGLE_API\020" + + "\004\022\022\n\016GOOGLE_API_PSC\020\005\022\025\n\021GOOGLE_API_VPC_" + + "SC\020\006\"\216\002\n\022ForwardingRuleInfo\022\024\n\014display_n" + + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020matched_protoc" + + "ol\030\003 \001(\t\022\032\n\022matched_port_range\030\006 \001(\t\022\013\n\003" + + "vip\030\004 \001(\t\022\016\n\006target\030\005 \001(\t\022\023\n\013network_uri" + + "\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022\032\n\022load_balancer_" + + "name\030\t \001(\t\022\"\n\032psc_service_attachment_uri" + + "\030\n \001(\t\022\035\n\025psc_google_api_target\030\013 \001(\t\"\321\004" + + "\n\020LoadBalancerInfo\022e\n\022load_balancer_type" + + "\030\001 \001(\0162I.google.cloud.networkmanagement." + + "v1beta1.LoadBalancerInfo.LoadBalancerTyp" + + "e\022\034\n\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n\010backe" + + "nds\030\003 \003(\0132;.google.cloud.networkmanageme" + + "nt.v1beta1.LoadBalancerBackend\022Z\n\014backen" + + "d_type\030\004 \001(\0162D.google.cloud.networkmanag" + + "ement.v1beta1.LoadBalancerInfo.BackendTy" + + "pe\022\023\n\013backend_uri\030\005 \001(\t\"\217\001\n\020LoadBalancer" + + "Type\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000" + + "\022\024\n\020INTERNAL_TCP_UDP\020\001\022\023\n\017NETWORK_TCP_UD" + + "P\020\002\022\016\n\nHTTP_PROXY\020\003\022\r\n\tTCP_PROXY\020\004\022\r\n\tSS" + + "L_PROXY\020\005\"f\n\013BackendType\022\034\n\030BACKEND_TYPE" + + "_UNSPECIFIED\020\000\022\023\n\017BACKEND_SERVICE\020\001\022\017\n\013T" + + "ARGET_POOL\020\002\022\023\n\017TARGET_INSTANCE\020\003\"\373\002\n\023Lo" + + "adBalancerBackend\022\024\n\014display_name\030\001 \001(\t\022" + + "\013\n\003uri\030\002 \001(\t\022y\n\033health_check_firewall_st" + + "ate\030\003 \001(\0162T.google.cloud.networkmanageme" + + "nt.v1beta1.LoadBalancerBackend.HealthChe" + + "ckFirewallState\022,\n$health_check_allowing" + + "_firewall_rules\030\004 \003(\t\022,\n$health_check_bl" + + "ocking_firewall_rules\030\005 \003(\t\"j\n\030HealthChe" + + "ckFirewallState\022+\n\'HEALTH_CHECK_FIREWALL" + + "_STATE_UNSPECIFIED\020\000\022\016\n\nCONFIGURED\020\001\022\021\n\r" + + "MISCONFIGURED\020\002\"\204\001\n\016VpnGatewayInfo\022\024\n\014di" + + "splay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network" + + "_uri\030\003 \001(\t\022\022\n\nip_address\030\004 \001(\t\022\026\n\016vpn_tu" + + "nnel_uri\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\363\002\n\rVpnTu" + + "nnelInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 " + + "\001(\t\022\026\n\016source_gateway\030\003 \001(\t\022\026\n\016remote_ga" + + "teway\030\004 \001(\t\022\031\n\021remote_gateway_ip\030\005 \001(\t\022\031" + + "\n\021source_gateway_ip\030\006 \001(\t\022\023\n\013network_uri" + + "\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022W\n\014routing_type\030\t" + + " \001(\0162A.google.cloud.networkmanagement.v1" + + "beta1.VpnTunnelInfo.RoutingType\"[\n\013Routi" + + "ngType\022\034\n\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n\013" + + "ROUTE_BASED\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007DYNAM" + + "IC\020\003\"\321\001\n\014EndpointInfo\022\021\n\tsource_ip\030\001 \001(\t" + + "\022\026\n\016destination_ip\030\002 \001(\t\022\020\n\010protocol\030\003 \001" + + "(\t\022\023\n\013source_port\030\004 \001(\005\022\030\n\020destination_p" + + "ort\030\005 \001(\005\022\032\n\022source_network_uri\030\006 \001(\t\022\037\n" + + "\027destination_network_uri\030\007 \001(\t\022\030\n\020source" + + "_agent_uri\030\010 \001(\t\"\276\004\n\013DeliverInfo\022J\n\006targ" + + "et\030\001 \001(\0162:.google.cloud.networkmanagemen" + + "t.v1beta1.DeliverInfo.Target\022\024\n\014resource" + + "_uri\030\002 \001(\t\022\034\n\nip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004" + + "\022\026\n\016storage_bucket\030\004 \001(\t\022\035\n\025psc_google_a" + + "pi_target\030\005 \001(\t\"\367\002\n\006Target\022\026\n\022TARGET_UNS" + + "PECIFIED\020\000\022\014\n\010INSTANCE\020\001\022\014\n\010INTERNET\020\002\022\016" + + "\n\nGOOGLE_API\020\003\022\016\n\nGKE_MASTER\020\004\022\026\n\022CLOUD_" + + "SQL_INSTANCE\020\005\022\031\n\025PSC_PUBLISHED_SERVICE\020" + + "\006\022\022\n\016PSC_GOOGLE_API\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n" + + "\016SERVERLESS_NEG\020\t\022\022\n\016STORAGE_BUCKET\020\n\022\023\n" + + "\017PRIVATE_NETWORK\020\013\022\022\n\016CLOUD_FUNCTION\020\014\022\026" + + "\n\022APP_ENGINE_VERSION\020\r\022\026\n\022CLOUD_RUN_REVI" + + "SION\020\016\022\032\n\026GOOGLE_MANAGED_SERVICE\020\017\022\022\n\016RE" + + "DIS_INSTANCE\020\020\022\021\n\rREDIS_CLUSTER\020\021\"\360\002\n\013Fo" + + "rwardInfo\022J\n\006target\030\001 \001(\0162:.google.cloud" + + ".networkmanagement.v1beta1.ForwardInfo.T" + + "arget\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\nip_addres" + + "s\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001\n\006Target\022\026\n\022TARGET_U" + + "NSPECIFIED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n\013VPN_GAT" + + "EWAY\020\002\022\020\n\014INTERCONNECT\020\003\022\022\n\nGKE_MASTER\020\004" + + "\032\002\010\001\022\"\n\036IMPORTED_CUSTOM_ROUTE_NEXT_HOP\020\005" + + "\022\032\n\022CLOUD_SQL_INSTANCE\020\006\032\002\010\001\022\023\n\017ANOTHER_" + + "PROJECT\020\007\022\013\n\007NCC_HUB\020\010\022\024\n\020ROUTER_APPLIAN" + + "CE\020\t\"\335\n\n\tAbortInfo\022F\n\005cause\030\001 \001(\01627.goog" + + "le.cloud.networkmanagement.v1beta1.Abort" + + "Info.Cause\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\nip_a" + + "ddress\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n\033projects_missi" + + "ng_permission\030\003 \003(\t\"\256\t\n\005Cause\022\025\n\021CAUSE_U" + + "NSPECIFIED\020\000\022\027\n\017UNKNOWN_NETWORK\020\001\032\002\010\001\022\027\n" + + "\017UNKNOWN_PROJECT\020\003\032\002\010\001\022\026\n\016NO_EXTERNAL_IP" + + "\020\007\032\002\010\001\022\036\n\026UNINTENDED_DESTINATION\020\010\032\002\010\001\022!" + + "\n\031SOURCE_ENDPOINT_NOT_FOUND\020\013\032\002\010\001\022!\n\031MIS" + + "MATCHED_SOURCE_NETWORK\020\014\032\002\010\001\022&\n\036DESTINAT" + + "ION_ENDPOINT_NOT_FOUND\020\r\032\002\010\001\022&\n\036MISMATCH" + + "ED_DESTINATION_NETWORK\020\016\032\002\010\001\022\016\n\nUNKNOWN_" + + "IP\020\002\022%\n!GOOGLE_MANAGED_SERVICE_UNKNOWN_I" + + "P\020 \022+\n\'SOURCE_IP_ADDRESS_NOT_IN_SOURCE_N" + + "ETWORK\020\027\022\025\n\021PERMISSION_DENIED\020\004\022*\n&PERMI" + + "SSION_DENIED_NO_CLOUD_NAT_CONFIGS\020\034\022-\n)P" + + "ERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS" + + "\020\035\022-\n)PERMISSION_DENIED_NO_CLOUD_ROUTER_" + + "CONFIGS\020$\022\026\n\022NO_SOURCE_LOCATION\020\005\022\024\n\020INV" + + "ALID_ARGUMENT\020\006\022\022\n\016TRACE_TOO_LONG\020\t\022\022\n\016I" + + "NTERNAL_ERROR\020\n\022\017\n\013UNSUPPORTED\020\017\022\031\n\025MISM" + + "ATCHED_IP_VERSION\020\020\022&\n\"GKE_KONNECTIVITY_" + + "PROXY_UNSUPPORTED\020\021\022\035\n\031RESOURCE_CONFIG_N" + + "OT_FOUND\020\022\022 \n\034VM_INSTANCE_CONFIG_NOT_FOU" + + "ND\020\030\022\034\n\030NETWORK_CONFIG_NOT_FOUND\020\031\022\035\n\031FI" + + "REWALL_CONFIG_NOT_FOUND\020\032\022\032\n\026ROUTE_CONFI" + + "G_NOT_FOUND\020\033\0221\n-GOOGLE_MANAGED_SERVICE_" + + "AMBIGUOUS_PSC_ENDPOINT\020\023\022$\n SOURCE_PSC_C" + + "LOUD_SQL_UNSUPPORTED\020\024\022$\n SOURCE_REDIS_C" + + "LUSTER_UNSUPPORTED\020\"\022%\n!SOURCE_REDIS_INS" + + "TANCE_UNSUPPORTED\020#\022&\n\"SOURCE_FORWARDING" + + "_RULE_UNSUPPORTED\020\025\022\033\n\027NON_ROUTABLE_IP_A" + + "DDRESS\020\026\022+\n\'UNKNOWN_ISSUE_IN_GOOGLE_MANA" + + "GED_PROJECT\020\036\022-\n)UNSUPPORTED_GOOGLE_MANA" + + "GED_PROJECT_CONFIG\020\037\"\237\032\n\010DropInfo\022E\n\005cau" + + "se\030\001 \001(\01626.google.cloud.networkmanagemen" + + "t.v1beta1.DropInfo.Cause\022\024\n\014resource_uri" + + "\030\002 \001(\t\022\021\n\tsource_ip\030\003 \001(\t\022\026\n\016destination" + + "_ip\030\004 \001(\t\022\016\n\006region\030\005 \001(\t\"\372\030\n\005Cause\022\025\n\021C" + + "AUSE_UNSPECIFIED\020\000\022\034\n\030UNKNOWN_EXTERNAL_A" + + "DDRESS\020\001\022\031\n\025FOREIGN_IP_DISALLOWED\020\002\022\021\n\rF" + + "IREWALL_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_BL" + + "ACKHOLE\020\005\022\027\n\023ROUTE_WRONG_NETWORK\020\006\022*\n&RO" + + "UTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED\020*\022%" + + "\n!ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND\020+\022)\n" + + "%ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK\0201" + + "\022*\n&ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY_" + + "IP\0202\022.\n*ROUTE_NEXT_HOP_FORWARDING_RULE_I" + + "P_MISMATCH\0203\022-\n)ROUTE_NEXT_HOP_VPN_TUNNE" + + "L_NOT_ESTABLISHED\0204\022/\n+ROUTE_NEXT_HOP_FO" + + "RWARDING_RULE_TYPE_INVALID\0205\0222\n.NO_ROUTE" + + "_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020," + + "\022&\n\"VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH\020-" + + "\022\'\n#VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH\020" + + ".\022\037\n\033PRIVATE_TRAFFIC_TO_INTERNET\020\007\022$\n PR" + + "IVATE_GOOGLE_ACCESS_DISALLOWED\020\010\0224\n0PRIV" + + "ATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPO" + + "RTED\020/\022\027\n\023NO_EXTERNAL_ADDRESS\020\t\022\034\n\030UNKNO" + + "WN_INTERNAL_ADDRESS\020\n\022\034\n\030FORWARDING_RULE" + + "_MISMATCH\020\013\022 \n\034FORWARDING_RULE_NO_INSTAN" + + "CES\020\014\0228\n4FIREWALL_BLOCKING_LOAD_BALANCER" + + "_BACKEND_HEALTH_CHECK\020\r\022\030\n\024INSTANCE_NOT_" + + "RUNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_RUNNING\020\033\022\"" + + "\n\036CLOUD_SQL_INSTANCE_NOT_RUNNING\020\034\022\036\n\032RE" + + "DIS_INSTANCE_NOT_RUNNING\020D\022\035\n\031REDIS_CLUS" + + "TER_NOT_RUNNING\020E\022\030\n\024TRAFFIC_TYPE_BLOCKE" + + "D\020\017\022\"\n\036GKE_MASTER_UNAUTHORIZED_ACCESS\020\020\022" + + "*\n&CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCES" + + "S\020\021\022\036\n\032DROPPED_INSIDE_GKE_SERVICE\020\022\022$\n D" + + "ROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022%\n!GOO" + + "GLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n&GOOG" + + "LE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n\030" + + "GKE_PSC_ENDPOINT_MISSING\020$\022$\n CLOUD_SQL_" + + "INSTANCE_NO_IP_ADDRESS\020\025\022%\n!GKE_CONTROL_" + + "PLANE_REGION_MISMATCH\020\036\0223\n/PUBLIC_GKE_CO" + + "NTROL_PLANE_TO_PRIVATE_DESTINATION\020\037\022\036\n\032" + + "GKE_CONTROL_PLANE_NO_ROUTE\020 \022:\n6CLOUD_SQ" + + "L_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_T" + + "RAFFIC\020!\0224\n0PUBLIC_CLOUD_SQL_INSTANCE_TO" + + "_PRIVATE_DESTINATION\020\"\022\037\n\033CLOUD_SQL_INST" + + "ANCE_NO_ROUTE\020#\022 \n\034CLOUD_SQL_CONNECTOR_R" + + "EQUIRED\020?\022\035\n\031CLOUD_FUNCTION_NOT_ACTIVE\020\026" + + "\022\031\n\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n\031VPC_CONNE" + + "CTOR_NOT_RUNNING\020\030\022,\n(VPC_CONNECTOR_SERV" + + "ERLESS_TRAFFIC_BLOCKED\020<\022.\n*VPC_CONNECTO" + + "R_HEALTH_CHECK_TRAFFIC_BLOCKED\020=\022#\n\037FORW" + + "ARDING_RULE_REGION_MISMATCH\020\031\022\037\n\033PSC_CON" + + "NECTION_NOT_ACCEPTED\020\032\022-\n)PSC_ENDPOINT_A" + + "CCESSED_FROM_PEERED_NETWORK\020)\022.\n*PSC_NEG" + + "_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS\0200\0223\n" + + "/PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIP" + + "LE_PORTS\0206\022!\n\035CLOUD_SQL_PSC_NEG_UNSUPPOR" + + "TED\020:\022-\n)NO_NAT_SUBNETS_FOR_PSC_SERVICE_" + + "ATTACHMENT\0209\022#\n\037PSC_TRANSITIVITY_NOT_PRO" + + "PAGATED\020@\022(\n$HYBRID_NEG_NON_DYNAMIC_ROUT" + + "E_MATCHED\0207\022.\n*HYBRID_NEG_NON_LOCAL_DYNA" + + "MIC_ROUTE_MATCHED\0208\022 \n\034CLOUD_RUN_REVISIO" + + "N_NOT_READY\020\035\022\'\n#DROPPED_INSIDE_PSC_SERV" + + "ICE_PRODUCER\020%\022%\n!LOAD_BALANCER_HAS_NO_P" + + "ROXY_SUBNET\020\'\022\032\n\026CLOUD_NAT_NO_ADDRESSES\020" + + "(\022\020\n\014ROUTING_LOOP\020;\022)\n%DROPPED_INSIDE_GO" + + "OGLE_MANAGED_SERVICE\020>\022)\n%LOAD_BALANCER_" + + "BACKEND_INVALID_NETWORK\020A\022*\n&BACKEND_SER" + + "VICE_NAMED_PORT_NOT_DEFINED\020B\022\'\n#DESTINA" + + "TION_IS_PRIVATE_NAT_IP_RANGE\020C\022)\n%DROPPE" + + "D_INSIDE_REDIS_INSTANCE_SERVICE\020F\022#\n\037RED" + + "IS_INSTANCE_UNSUPPORTED_PORT\020G\022/\n+REDIS_" + + "INSTANCE_CONNECTING_FROM_PUPI_ADDRESS\020H\022" + + "2\n.REDIS_INSTANCE_NO_ROUTE_TO_DESTINATIO" + + "N_NETWORK\020I\022!\n\035REDIS_INSTANCE_NO_EXTERNA" + + "L_IP\020J\022\'\n#REDIS_INSTANCE_UNSUPPORTED_PRO" + + "TOCOL\020N\022(\n$DROPPED_INSIDE_REDIS_CLUSTER_" + + "SERVICE\020K\022\"\n\036REDIS_CLUSTER_UNSUPPORTED_P" + + "ORT\020L\022 \n\034REDIS_CLUSTER_NO_EXTERNAL_IP\020M\022" + + "&\n\"REDIS_CLUSTER_UNSUPPORTED_PROTOCOL\020O\022" + + "*\n&NO_ADVERTISED_ROUTE_TO_GCP_DESTINATIO" + + "N\020P\022*\n&NO_TRAFFIC_SELECTOR_TO_GCP_DESTIN" + + "ATION\020Q\0225\n1NO_KNOWN_ROUTE_FROM_PEERED_NE" + + "TWORK_TO_DESTINATION\020R\"k\n\rGKEMasterInfo\022" + + "\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023cluster_network_" + + "uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013extern" + + "al_ip\030\006 \001(\t\"\210\001\n\024CloudSQLInstanceInfo\022\024\n\014" + + "display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013netwo" + "rk_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013ext" - + "ernal_ip\030\006 \001(\t\022\024\n\014network_tags\030\007 \003(\t\022\033\n\017" - + "service_account\030\010 \001(\tB\002\030\001\"J\n\013NetworkInfo" - + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020m" - + "atched_ip_range\030\004 \001(\t\"\362\004\n\014FirewallInfo\022\024" - + "\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdir" - + "ection\030\003 \001(\t\022\016\n\006action\030\004 \001(\t\022\020\n\010priority" - + "\030\005 \001(\005\022\023\n\013network_uri\030\006 \001(\t\022\023\n\013target_ta" - + "gs\030\007 \003(\t\022\037\n\027target_service_accounts\030\010 \003(" - + "\t\022\016\n\006policy\030\t \001(\t\022a\n\022firewall_rule_type\030" - + "\n \001(\0162E.google.cloud.networkmanagement.v" - + "1beta1.FirewallInfo.FirewallRuleType\"\313\002\n" - + "\020FirewallRuleType\022\"\n\036FIREWALL_RULE_TYPE_" - + "UNSPECIFIED\020\000\022%\n!HIERARCHICAL_FIREWALL_P" - + "OLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002\022\035\n\031I" - + "MPLIED_VPC_FIREWALL_RULE\020\003\022/\n+SERVERLESS" - + "_VPC_ACCESS_MANAGED_FIREWALL_RULE\020\004\022 \n\034N" - + "ETWORK_FIREWALL_POLICY_RULE\020\005\022)\n%NETWORK" - + "_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n UNSU" - + "PPORTED_FIREWALL_POLICY_RULE\020d\022\022\n\016TRACKI" - + "NG_STATE\020e\"\365\010\n\tRouteInfo\022O\n\nroute_type\030\010" - + " \001(\0162;.google.cloud.networkmanagement.v1" - + "beta1.RouteInfo.RouteType\022T\n\rnext_hop_ty" - + "pe\030\t \001(\0162=.google.cloud.networkmanagemen" - + "t.v1beta1.RouteInfo.NextHopType\022Q\n\013route" - + "_scope\030\016 \001(\0162<.google.cloud.networkmanag" - + "ement.v1beta1.RouteInfo.RouteScope\022\024\n\014di" - + "splay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\025\n\rdest_ip" - + "_range\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013networ" - + "k_uri\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\rinstanc" - + "e_tags\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t\022\030\n\020de" - + "st_port_ranges\030\013 \003(\t\022\027\n\017src_port_ranges\030" - + "\014 \003(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hub_uri\030" - + "\017 \001(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH\001\210\001\001\"\233" - + "\001\n\tRouteType\022\032\n\026ROUTE_TYPE_UNSPECIFIED\020\000" - + "\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMIC\020\003\022\022\n" - + "\016PEERING_SUBNET\020\004\022\022\n\016PEERING_STATIC\020\005\022\023\n" - + "\017PEERING_DYNAMIC\020\006\022\020\n\014POLICY_BASED\020\007\"\314\002\n" - + "\013NextHopType\022\035\n\031NEXT_HOP_TYPE_UNSPECIFIE" - + "D\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_INSTANC" - + "E\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_HOP_PE" - + "ERING\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005\022\027\n\023NE" - + "XT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VPN_GATE" - + "WAY\020\007\022\035\n\031NEXT_HOP_INTERNET_GATEWAY\020\010\022\026\n\022" - + "NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_ILB\020\n\022\035" - + "\n\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n\020NEXT_HO" - + "P_NCC_HUB\020\014\"C\n\nRouteScope\022\033\n\027ROUTE_SCOPE" - + "_UNSPECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC_HUB\020\002" - + "B\016\n\014_ncc_hub_uriB\020\n\016_ncc_spoke_uri\"\304\002\n\021G" - + "oogleServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022h\n\023g" - + "oogle_service_type\030\002 \001(\0162K.google.cloud." - + "networkmanagement.v1beta1.GoogleServiceI" - + "nfo.GoogleServiceType\"\261\001\n\021GoogleServiceT" - + "ype\022#\n\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000" - + "\022\007\n\003IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_CHECK_P" - + "ROBER\020\002\022\r\n\tCLOUD_DNS\020\003\022\016\n\nGOOGLE_API\020\004\022\022" - + "\n\016GOOGLE_API_PSC\020\005\022\025\n\021GOOGLE_API_VPC_SC\020" - + "\006\"\237\001\n\022ForwardingRuleInfo\022\024\n\014display_name" - + "\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020matched_protocol\030" - + "\003 \001(\t\022\032\n\022matched_port_range\030\006 \001(\t\022\013\n\003vip" - + "\030\004 \001(\t\022\016\n\006target\030\005 \001(\t\022\023\n\013network_uri\030\007 " - + "\001(\t\"\321\004\n\020LoadBalancerInfo\022e\n\022load_balance" - + "r_type\030\001 \001(\0162I.google.cloud.networkmanag" - + "ement.v1beta1.LoadBalancerInfo.LoadBalan" - + "cerType\022\034\n\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n" - + "\010backends\030\003 \003(\0132;.google.cloud.networkma" - + "nagement.v1beta1.LoadBalancerBackend\022Z\n\014" - + "backend_type\030\004 \001(\0162D.google.cloud.networ" - + "kmanagement.v1beta1.LoadBalancerInfo.Bac" - + "kendType\022\023\n\013backend_uri\030\005 \001(\t\"\217\001\n\020LoadBa" - + "lancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPECI" - + "FIED\020\000\022\024\n\020INTERNAL_TCP_UDP\020\001\022\023\n\017NETWORK_" - + "TCP_UDP\020\002\022\016\n\nHTTP_PROXY\020\003\022\r\n\tTCP_PROXY\020\004" - + "\022\r\n\tSSL_PROXY\020\005\"f\n\013BackendType\022\034\n\030BACKEN" - + "D_TYPE_UNSPECIFIED\020\000\022\023\n\017BACKEND_SERVICE\020" - + "\001\022\017\n\013TARGET_POOL\020\002\022\023\n\017TARGET_INSTANCE\020\003\"" - + "\373\002\n\023LoadBalancerBackend\022\024\n\014display_name\030" - + "\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022y\n\033health_check_firew" - + "all_state\030\003 \001(\0162T.google.cloud.networkma" - + "nagement.v1beta1.LoadBalancerBackend.Hea" - + "lthCheckFirewallState\022,\n$health_check_al" - + "lowing_firewall_rules\030\004 \003(\t\022,\n$health_ch" - + "eck_blocking_firewall_rules\030\005 \003(\t\"j\n\030Hea" - + "lthCheckFirewallState\022+\n\'HEALTH_CHECK_FI" - + "REWALL_STATE_UNSPECIFIED\020\000\022\016\n\nCONFIGURED" - + "\020\001\022\021\n\rMISCONFIGURED\020\002\"\204\001\n\016VpnGatewayInfo" + + "ernal_ip\030\006 \001(\t\022\016\n\006region\030\007 \001(\t\"\222\001\n\021Redis" + + "InstanceInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003ur" + + "i\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\033\n\023primary_" + + "endpoint_ip\030\004 \001(\t\022\030\n\020read_endpoint_ip\030\005 " + + "\001(\t\022\016\n\006region\030\006 \001(\t\"\276\001\n\020RedisClusterInfo" + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013n" - + "etwork_uri\030\003 \001(\t\022\022\n\nip_address\030\004 \001(\t\022\026\n\016" - + "vpn_tunnel_uri\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\363\002\n" - + "\rVpnTunnelInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003" - + "uri\030\002 \001(\t\022\026\n\016source_gateway\030\003 \001(\t\022\026\n\016rem" - + "ote_gateway\030\004 \001(\t\022\031\n\021remote_gateway_ip\030\005" - + " \001(\t\022\031\n\021source_gateway_ip\030\006 \001(\t\022\023\n\013netwo" - + "rk_uri\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022W\n\014routing_" - + "type\030\t \001(\0162A.google.cloud.networkmanagem" - + "ent.v1beta1.VpnTunnelInfo.RoutingType\"[\n" - + "\013RoutingType\022\034\n\030ROUTING_TYPE_UNSPECIFIED" - + "\020\000\022\017\n\013ROUTE_BASED\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n" - + "\007DYNAMIC\020\003\"\321\001\n\014EndpointInfo\022\021\n\tsource_ip" - + "\030\001 \001(\t\022\026\n\016destination_ip\030\002 \001(\t\022\020\n\010protoc" - + "ol\030\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022\030\n\020destina" - + "tion_port\030\005 \001(\005\022\032\n\022source_network_uri\030\006 " - + "\001(\t\022\037\n\027destination_network_uri\030\007 \001(\t\022\030\n\020" - + "source_agent_uri\030\010 \001(\t\"\304\003\n\013DeliverInfo\022J" - + "\n\006target\030\001 \001(\0162:.google.cloud.networkman" - + "agement.v1beta1.DeliverInfo.Target\022\024\n\014re" - + "source_uri\030\002 \001(\t\022\034\n\nip_address\030\003 \001(\tB\010\342\214" - + "\317\327\010\002\010\004\"\264\002\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020" - + "\000\022\014\n\010INSTANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOGLE_" - + "API\020\003\022\016\n\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_INSTA" - + "NCE\020\005\022\031\n\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016PSC_" - + "GOOGLE_API\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVERLE" - + "SS_NEG\020\t\022\022\n\016STORAGE_BUCKET\020\n\022\023\n\017PRIVATE_" - + "NETWORK\020\013\022\022\n\016CLOUD_FUNCTION\020\014\022\026\n\022APP_ENG" - + "INE_VERSION\020\r\022\026\n\022CLOUD_RUN_REVISION\020\016\"\360\002" - + "\n\013ForwardInfo\022J\n\006target\030\001 \001(\0162:.google.c" - + "loud.networkmanagement.v1beta1.ForwardIn" - + "fo.Target\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\nip_ad" - + "dress\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001\n\006Target\022\026\n\022TARG" - + "ET_UNSPECIFIED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n\013VPN" - + "_GATEWAY\020\002\022\020\n\014INTERCONNECT\020\003\022\022\n\nGKE_MAST" - + "ER\020\004\032\002\010\001\022\"\n\036IMPORTED_CUSTOM_ROUTE_NEXT_H" - + "OP\020\005\022\032\n\022CLOUD_SQL_INSTANCE\020\006\032\002\010\001\022\023\n\017ANOT" - + "HER_PROJECT\020\007\022\013\n\007NCC_HUB\020\010\022\024\n\020ROUTER_APP" - + "LIANCE\020\t\"\272\t\n\tAbortInfo\022F\n\005cause\030\001 \001(\01627." - + "google.cloud.networkmanagement.v1beta1.A" - + "bortInfo.Cause\022\024\n\014resource_uri\030\002 \001(\t\022\034\n\n" - + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n\033projects_m" - + "issing_permission\030\003 \003(\t\"\213\010\n\005Cause\022\025\n\021CAU" - + "SE_UNSPECIFIED\020\000\022\027\n\017UNKNOWN_NETWORK\020\001\032\002\010" - + "\001\022\027\n\017UNKNOWN_PROJECT\020\003\032\002\010\001\022\026\n\016NO_EXTERNA" - + "L_IP\020\007\032\002\010\001\022\036\n\026UNINTENDED_DESTINATION\020\010\032\002" - + "\010\001\022!\n\031SOURCE_ENDPOINT_NOT_FOUND\020\013\032\002\010\001\022!\n" - + "\031MISMATCHED_SOURCE_NETWORK\020\014\032\002\010\001\022&\n\036DEST" - + "INATION_ENDPOINT_NOT_FOUND\020\r\032\002\010\001\022&\n\036MISM" - + "ATCHED_DESTINATION_NETWORK\020\016\032\002\010\001\022\016\n\nUNKN" - + "OWN_IP\020\002\022+\n\'SOURCE_IP_ADDRESS_NOT_IN_SOU" - + "RCE_NETWORK\020\027\022\025\n\021PERMISSION_DENIED\020\004\022*\n&" - + "PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS\020\034" - + "\022-\n)PERMISSION_DENIED_NO_NEG_ENDPOINT_CO" - + "NFIGS\020\035\022\026\n\022NO_SOURCE_LOCATION\020\005\022\024\n\020INVAL" - + "ID_ARGUMENT\020\006\022\022\n\016TRACE_TOO_LONG\020\t\022\022\n\016INT" - + "ERNAL_ERROR\020\n\022\017\n\013UNSUPPORTED\020\017\022\031\n\025MISMAT" - + "CHED_IP_VERSION\020\020\022&\n\"GKE_KONNECTIVITY_PR" - + "OXY_UNSUPPORTED\020\021\022\035\n\031RESOURCE_CONFIG_NOT" - + "_FOUND\020\022\022 \n\034VM_INSTANCE_CONFIG_NOT_FOUND" - + "\020\030\022\034\n\030NETWORK_CONFIG_NOT_FOUND\020\031\022\035\n\031FIRE" - + "WALL_CONFIG_NOT_FOUND\020\032\022\032\n\026ROUTE_CONFIG_" - + "NOT_FOUND\020\033\0221\n-GOOGLE_MANAGED_SERVICE_AM" - + "BIGUOUS_PSC_ENDPOINT\020\023\022$\n SOURCE_PSC_CLO" - + "UD_SQL_UNSUPPORTED\020\024\022&\n\"SOURCE_FORWARDIN" - + "G_RULE_UNSUPPORTED\020\025\022\033\n\027NON_ROUTABLE_IP_" - + "ADDRESS\020\026\022+\n\'UNKNOWN_ISSUE_IN_GOOGLE_MAN" - + "AGED_PROJECT\020\036\022-\n)UNSUPPORTED_GOOGLE_MAN" - + "AGED_PROJECT_CONFIG\020\037\"\350\022\n\010DropInfo\022E\n\005ca" - + "use\030\001 \001(\01626.google.cloud.networkmanageme" - + "nt.v1beta1.DropInfo.Cause\022\024\n\014resource_ur" - + "i\030\002 \001(\t\022\021\n\tsource_ip\030\003 \001(\t\022\026\n\016destinatio" - + "n_ip\030\004 \001(\t\022\016\n\006region\030\005 \001(\t\"\303\021\n\005Cause\022\025\n\021" - + "CAUSE_UNSPECIFIED\020\000\022\034\n\030UNKNOWN_EXTERNAL_" - + "ADDRESS\020\001\022\031\n\025FOREIGN_IP_DISALLOWED\020\002\022\021\n\r" - + "FIREWALL_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_B" - + "LACKHOLE\020\005\022\027\n\023ROUTE_WRONG_NETWORK\020\006\022*\n&R" - + "OUTE_NEXT_HOP_IP_ADDRESS_NOT_RESOLVED\020*\022" - + "%\n!ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND\020+\022)" - + "\n%ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK\020" - + "1\022*\n&ROUTE_NEXT_HOP_INSTANCE_NON_PRIMARY" - + "_IP\0202\022.\n*ROUTE_NEXT_HOP_FORWARDING_RULE_" - + "IP_MISMATCH\0203\022-\n)ROUTE_NEXT_HOP_VPN_TUNN" - + "EL_NOT_ESTABLISHED\0204\022/\n+ROUTE_NEXT_HOP_F" - + "ORWARDING_RULE_TYPE_INVALID\0205\0222\n.NO_ROUT" - + "E_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020" - + ",\022&\n\"VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH\020" - + "-\022\'\n#VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH" - + "\020.\022\037\n\033PRIVATE_TRAFFIC_TO_INTERNET\020\007\022$\n P" - + "RIVATE_GOOGLE_ACCESS_DISALLOWED\020\010\0224\n0PRI" - + "VATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPP" - + "ORTED\020/\022\027\n\023NO_EXTERNAL_ADDRESS\020\t\022\034\n\030UNKN" - + "OWN_INTERNAL_ADDRESS\020\n\022\034\n\030FORWARDING_RUL" - + "E_MISMATCH\020\013\022 \n\034FORWARDING_RULE_NO_INSTA" - + "NCES\020\014\0228\n4FIREWALL_BLOCKING_LOAD_BALANCE" - + "R_BACKEND_HEALTH_CHECK\020\r\022\030\n\024INSTANCE_NOT" - + "_RUNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_RUNNING\020\033\022" - + "\"\n\036CLOUD_SQL_INSTANCE_NOT_RUNNING\020\034\022\030\n\024T" - + "RAFFIC_TYPE_BLOCKED\020\017\022\"\n\036GKE_MASTER_UNAU" - + "THORIZED_ACCESS\020\020\022*\n&CLOUD_SQL_INSTANCE_" - + "UNAUTHORIZED_ACCESS\020\021\022\036\n\032DROPPED_INSIDE_" - + "GKE_SERVICE\020\022\022$\n DROPPED_INSIDE_CLOUD_SQ" - + "L_SERVICE\020\023\022%\n!GOOGLE_MANAGED_SERVICE_NO" - + "_PEERING\020\024\022*\n&GOOGLE_MANAGED_SERVICE_NO_" - + "PSC_ENDPOINT\020&\022\034\n\030GKE_PSC_ENDPOINT_MISSI" - + "NG\020$\022$\n CLOUD_SQL_INSTANCE_NO_IP_ADDRESS" - + "\020\025\022%\n!GKE_CONTROL_PLANE_REGION_MISMATCH\020" - + "\036\0223\n/PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE" - + "_DESTINATION\020\037\022\036\n\032GKE_CONTROL_PLANE_NO_R" - + "OUTE\020 \022:\n6CLOUD_SQL_INSTANCE_NOT_CONFIGU" - + "RED_FOR_EXTERNAL_TRAFFIC\020!\0224\n0PUBLIC_CLO" - + "UD_SQL_INSTANCE_TO_PRIVATE_DESTINATION\020\"" - + "\022\037\n\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022\035\n\031CLO" - + "UD_FUNCTION_NOT_ACTIVE\020\026\022\031\n\025VPC_CONNECTO" - + "R_NOT_SET\020\027\022\035\n\031VPC_CONNECTOR_NOT_RUNNING" - + "\020\030\022#\n\037FORWARDING_RULE_REGION_MISMATCH\020\031\022" - + "\037\n\033PSC_CONNECTION_NOT_ACCEPTED\020\032\022-\n)PSC_" - + "ENDPOINT_ACCESSED_FROM_PEERED_NETWORK\020)\022" - + ".\n*PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_A" - + "CCESS\0200\0223\n/PSC_NEG_PRODUCER_FORWARDING_R" - + "ULE_MULTIPLE_PORTS\0206\022!\n\035CLOUD_SQL_PSC_NE" - + "G_UNSUPPORTED\020:\022-\n)NO_NAT_SUBNETS_FOR_PS" - + "C_SERVICE_ATTACHMENT\0209\022(\n$HYBRID_NEG_NON" - + "_DYNAMIC_ROUTE_MATCHED\0207\022.\n*HYBRID_NEG_N" - + "ON_LOCAL_DYNAMIC_ROUTE_MATCHED\0208\022 \n\034CLOU" - + "D_RUN_REVISION_NOT_READY\020\035\022\'\n#DROPPED_IN" - + "SIDE_PSC_SERVICE_PRODUCER\020%\022%\n!LOAD_BALA" - + "NCER_HAS_NO_PROXY_SUBNET\020\'\022\032\n\026CLOUD_NAT_" - + "NO_ADDRESSES\020(\022\020\n\014ROUTING_LOOP\020;\"k\n\rGKEM" - + "asterInfo\022\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023cluste" - + "r_network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t" - + "\022\023\n\013external_ip\030\006 \001(\t\"\210\001\n\024CloudSQLInstan" - + "ceInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(" - + "\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 " - + "\001(\t\022\023\n\013external_ip\030\006 \001(\t\022\016\n\006region\030\007 \001(\t" - + "\"\\\n\021CloudFunctionInfo\022\024\n\014display_name\030\001 " - + "\001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\022\022\n\nve" - + "rsion_id\030\004 \001(\003\"`\n\024CloudRunRevisionInfo\022\024" - + "\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010loc" - + "ation\030\004 \001(\t\022\023\n\013service_uri\030\005 \001(\t\"_\n\024AppE" - + "ngineVersionInfo\022\024\n\014display_name\030\001 \001(\t\022\013" - + "\n\003uri\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t\022\023\n\013environm" - + "ent\030\004 \001(\t\"G\n\020VpcConnectorInfo\022\024\n\014display" - + "_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001" - + "(\t\"\364\003\n\007NatInfo\022B\n\004type\030\001 \001(\01624.google.cl" - + "oud.networkmanagement.v1beta1.NatInfo.Ty" - + "pe\022\020\n\010protocol\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(" - + "\t\022\025\n\rold_source_ip\030\004 \001(\t\022\025\n\rnew_source_i" - + "p\030\005 \001(\t\022\032\n\022old_destination_ip\030\006 \001(\t\022\032\n\022n" - + "ew_destination_ip\030\007 \001(\t\022\027\n\017old_source_po" - + "rt\030\010 \001(\005\022\027\n\017new_source_port\030\t \001(\005\022\034\n\024old" - + "_destination_port\030\n \001(\005\022\034\n\024new_destinati" - + "on_port\030\013 \001(\005\022\022\n\nrouter_uri\030\014 \001(\t\022\030\n\020nat" - + "_gateway_name\030\r \001(\t\"|\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\030\n\024INTERNAL_TO_EXTERNAL\020\001\022\030\n\024E" - + "XTERNAL_TO_INTERNAL\020\002\022\r\n\tCLOUD_NAT\020\003\022\033\n\027" - + "PRIVATE_SERVICE_CONNECT\020\004\"\244\002\n\023ProxyConne" - + "ctionInfo\022\020\n\010protocol\030\001 \001(\t\022\025\n\rold_sourc" - + "e_ip\030\002 \001(\t\022\025\n\rnew_source_ip\030\003 \001(\t\022\032\n\022old" - + "_destination_ip\030\004 \001(\t\022\032\n\022new_destination" - + "_ip\030\005 \001(\t\022\027\n\017old_source_port\030\006 \001(\005\022\027\n\017ne" - + "w_source_port\030\007 \001(\005\022\034\n\024old_destination_p" - + "ort\030\010 \001(\005\022\034\n\024new_destination_port\030\t \001(\005\022" - + "\022\n\nsubnet_uri\030\n \001(\t\022\023\n\013network_uri\030\013 \001(\t" - + "\"\367\004\n\027LoadBalancerBackendInfo\022\014\n\004name\030\001 \001" - + "(\t\022\024\n\014instance_uri\030\002 \001(\t\022\033\n\023backend_serv" - + "ice_uri\030\003 \001(\t\022\032\n\022instance_group_uri\030\004 \001(" - + "\t\022\"\n\032network_endpoint_group_uri\030\005 \001(\t\022\032\n" - + "\022backend_bucket_uri\030\010 \001(\t\022\"\n\032psc_service" - + "_attachment_uri\030\t \001(\t\022\035\n\025psc_google_api_" - + "target\030\n \001(\t\022\030\n\020health_check_uri\030\006 \001(\t\022\221" - + "\001\n#health_check_firewalls_config_state\030\007" - + " \001(\0162_.google.cloud.networkmanagement.v1" - + "beta1.LoadBalancerBackendInfo.HealthChec" - + "kFirewallsConfigStateB\003\340A\003\"\315\001\n\037HealthChe" - + "ckFirewallsConfigState\0223\n/HEALTH_CHECK_F" - + "IREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n\024F" - + "IREWALLS_CONFIGURED\020\001\022\"\n\036FIREWALLS_PARTI" - + "ALLY_CONFIGURED\020\002\022\034\n\030FIREWALLS_NOT_CONFI" - + "GURED\020\003\022\031\n\025FIREWALLS_UNSUPPORTED\020\004\"#\n\021St" - + "orageBucketInfo\022\016\n\006bucket\030\001 \001(\t*\366\002\n\020Load" - + "BalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPE" - + "CIFIED\020\000\022 \n\034HTTPS_ADVANCED_LOAD_BALANCER" - + "\020\001\022\027\n\023HTTPS_LOAD_BALANCER\020\002\022 \n\034REGIONAL_" - + "HTTPS_LOAD_BALANCER\020\003\022 \n\034INTERNAL_HTTPS_" - + "LOAD_BALANCER\020\004\022\033\n\027SSL_PROXY_LOAD_BALANC" - + "ER\020\005\022\033\n\027TCP_PROXY_LOAD_BALANCER\020\006\022$\n INT" - + "ERNAL_TCP_PROXY_LOAD_BALANCER\020\007\022\031\n\025NETWO" - + "RK_LOAD_BALANCER\020\010\022 \n\034LEGACY_NETWORK_LOA" - + "D_BALANCER\020\t\022\"\n\036TCP_UDP_INTERNAL_LOAD_BA" - + "LANCER\020\nB\222\002\n*com.google.cloud.networkman" - + "agement.v1beta1B\nTraceProtoP\001ZXcloud.goo" - + "gle.com/go/networkmanagement/apiv1beta1/" - + "networkmanagementpb;networkmanagementpb\252" - + "\002&Google.Cloud.NetworkManagement.V1Beta1" - + "\312\002&Google\\Cloud\\NetworkManagement\\V1beta" - + "1\352\002)Google::Cloud::NetworkManagement::V1" - + "beta1b\006proto3" + + "etwork_uri\030\003 \001(\t\022/\n\035discovery_endpoint_i" + + "p_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022/\n\035secondary_e" + + "ndpoint_ip_address\030\005 \001(\tB\010\342\214\317\327\010\002\010\004\022\020\n\010lo" + + "cation\030\006 \001(\t\"\\\n\021CloudFunctionInfo\022\024\n\014dis" + + "play_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location" + + "\030\003 \001(\t\022\022\n\nversion_id\030\004 \001(\003\"`\n\024CloudRunRe" + + "visionInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030" + + "\002 \001(\t\022\020\n\010location\030\004 \001(\t\022\023\n\013service_uri\030\005" + + " \001(\t\"_\n\024AppEngineVersionInfo\022\024\n\014display_" + + "name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t" + + "\022\023\n\013environment\030\004 \001(\t\"G\n\020VpcConnectorInf" + + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010" + + "location\030\003 \001(\t\"\364\003\n\007NatInfo\022B\n\004type\030\001 \001(\016" + + "24.google.cloud.networkmanagement.v1beta" + + "1.NatInfo.Type\022\020\n\010protocol\030\002 \001(\t\022\023\n\013netw" + + "ork_uri\030\003 \001(\t\022\025\n\rold_source_ip\030\004 \001(\t\022\025\n\r" + + "new_source_ip\030\005 \001(\t\022\032\n\022old_destination_i" + + "p\030\006 \001(\t\022\032\n\022new_destination_ip\030\007 \001(\t\022\027\n\017o" + + "ld_source_port\030\010 \001(\005\022\027\n\017new_source_port\030" + + "\t \001(\005\022\034\n\024old_destination_port\030\n \001(\005\022\034\n\024n" + + "ew_destination_port\030\013 \001(\005\022\022\n\nrouter_uri\030" + + "\014 \001(\t\022\030\n\020nat_gateway_name\030\r \001(\t\"|\n\004Type\022" + + "\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024INTERNAL_TO_EXT" + + "ERNAL\020\001\022\030\n\024EXTERNAL_TO_INTERNAL\020\002\022\r\n\tCLO" + + "UD_NAT\020\003\022\033\n\027PRIVATE_SERVICE_CONNECT\020\004\"\244\002" + + "\n\023ProxyConnectionInfo\022\020\n\010protocol\030\001 \001(\t\022" + + "\025\n\rold_source_ip\030\002 \001(\t\022\025\n\rnew_source_ip\030" + + "\003 \001(\t\022\032\n\022old_destination_ip\030\004 \001(\t\022\032\n\022new" + + "_destination_ip\030\005 \001(\t\022\027\n\017old_source_port" + + "\030\006 \001(\005\022\027\n\017new_source_port\030\007 \001(\005\022\034\n\024old_d" + + "estination_port\030\010 \001(\005\022\034\n\024new_destination" + + "_port\030\t \001(\005\022\022\n\nsubnet_uri\030\n \001(\t\022\023\n\013netwo" + + "rk_uri\030\013 \001(\t\"\367\004\n\027LoadBalancerBackendInfo" + + "\022\014\n\004name\030\001 \001(\t\022\024\n\014instance_uri\030\002 \001(\t\022\033\n\023" + + "backend_service_uri\030\003 \001(\t\022\032\n\022instance_gr" + + "oup_uri\030\004 \001(\t\022\"\n\032network_endpoint_group_" + + "uri\030\005 \001(\t\022\032\n\022backend_bucket_uri\030\010 \001(\t\022\"\n" + + "\032psc_service_attachment_uri\030\t \001(\t\022\035\n\025psc" + + "_google_api_target\030\n \001(\t\022\030\n\020health_check" + + "_uri\030\006 \001(\t\022\221\001\n#health_check_firewalls_co" + + "nfig_state\030\007 \001(\0162_.google.cloud.networkm", + "anagement.v1beta1.LoadBalancerBackendInf" + + "o.HealthCheckFirewallsConfigStateB\003\340A\003\"\315" + + "\001\n\037HealthCheckFirewallsConfigState\0223\n/HE" + + "ALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPEC" + + "IFIED\020\000\022\030\n\024FIREWALLS_CONFIGURED\020\001\022\"\n\036FIR" + + "EWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n\030FIREWAL" + + "LS_NOT_CONFIGURED\020\003\022\031\n\025FIREWALLS_UNSUPPO" + + "RTED\020\004\"#\n\021StorageBucketInfo\022\016\n\006bucket\030\001 " + + "\001(\t\"$\n\021ServerlessNegInfo\022\017\n\007neg_uri\030\001 \001(" + + "\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + + "TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVANCED_LOA" + + "D_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANCER\020\002\022 \n" + + "\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n\034INTER" + + "NAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_PROXY_L" + + "OAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_BALANCE" + + "R\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BALANCER\020" + + "\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034LEGACY_N" + + "ETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP_INTERN" + + "AL_LOAD_BALANCER\020\nB\222\002\n*com.google.cloud." + + "networkmanagement.v1beta1B\nTraceProtoP\001Z" + + "Xcloud.google.com/go/networkmanagement/a" + + "piv1beta1/networkmanagementpb;networkman" + + "agementpb\252\002&Google.Cloud.NetworkManageme" + + "nt.V1Beta1\312\002&Google\\Cloud\\NetworkManagem" + + "ent\\V1beta1\352\002)Google::Cloud::NetworkMana" + + "gement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -555,6 +626,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "GkeMaster", "CloudSqlInstance", + "RedisInstance", + "RedisCluster", "CloudFunction", "AppEngineVersion", "CloudRunRevision", @@ -562,6 +635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProxyConnection", "LoadBalancerBackendInfo", "StorageBucket", + "ServerlessNeg", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1beta1_InstanceInfo_descriptor = @@ -578,6 +652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalIp", "NetworkTags", "ServiceAccount", + "PscNetworkAttachmentUri", }); internal_static_google_cloud_networkmanagement_v1beta1_NetworkInfo_descriptor = getDescriptor().getMessageTypes().get(3); @@ -585,7 +660,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_NetworkInfo_descriptor, new java.lang.String[] { - "DisplayName", "Uri", "MatchedIpRange", + "DisplayName", "Uri", "MatchedSubnetUri", "MatchedIpRange", "Region", }); internal_static_google_cloud_networkmanagement_v1beta1_FirewallInfo_descriptor = getDescriptor().getMessageTypes().get(4); @@ -602,6 +677,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTags", "TargetServiceAccounts", "Policy", + "PolicyUri", "FirewallRuleType", }); internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor = @@ -615,6 +691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RouteScope", "DisplayName", "Uri", + "Region", "DestIpRange", "NextHop", "NetworkUri", @@ -626,6 +703,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Protocols", "NccHubUri", "NccSpokeUri", + "AdvertisedRouteSourceRouterUri", + "AdvertisedRouteNextHopUri", }); internal_static_google_cloud_networkmanagement_v1beta1_GoogleServiceInfo_descriptor = getDescriptor().getMessageTypes().get(6); @@ -648,6 +727,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vip", "Target", "NetworkUri", + "Region", + "LoadBalancerName", + "PscServiceAttachmentUri", + "PscGoogleApiTarget", }); internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerInfo_descriptor = getDescriptor().getMessageTypes().get(8); @@ -714,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_DeliverInfo_descriptor, new java.lang.String[] { - "Target", "ResourceUri", "IpAddress", + "Target", "ResourceUri", "IpAddress", "StorageBucket", "PscGoogleApiTarget", }); internal_static_google_cloud_networkmanagement_v1beta1_ForwardInfo_descriptor = getDescriptor().getMessageTypes().get(14); @@ -756,8 +839,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region", }); - internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_descriptor = + internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor, + new java.lang.String[] { + "DisplayName", "Uri", "NetworkUri", "PrimaryEndpointIp", "ReadEndpointIp", "Region", + }); + internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor, + new java.lang.String[] { + "DisplayName", + "Uri", + "NetworkUri", + "DiscoveryEndpointIpAddress", + "SecondaryEndpointIpAddress", + "Location", + }); + internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_descriptor = + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_descriptor, @@ -765,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "VersionId", }); internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_descriptor, @@ -773,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "ServiceUri", }); internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_descriptor, @@ -781,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Runtime", "Environment", }); internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_descriptor, @@ -789,7 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", }); internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor, @@ -809,7 +913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatGatewayName", }); internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor, @@ -827,7 +931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", }); internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor, @@ -844,13 +948,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckFirewallsConfigState", }); internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor, new java.lang.String[] { "Bucket", }); + internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor, + new java.lang.String[] { + "NegUri", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto index 3ba30550e1ee..f19aa2940089 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto @@ -37,9 +37,9 @@ message ConnectivityTest { pattern: "projects/{project}/locations/global/connectivityTests/{test}" }; - // Required. Unique name of the resource using the form: + // Identifier. Unique name of the resource using the form: // `projects/{project_id}/locations/global/connectivityTests/{test}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The user-supplied description of the Connectivity Test. // Maximum of 512 characters. @@ -227,6 +227,14 @@ message Endpoint { // A [Cloud SQL](https://cloud.google.com/sql) instance URI. string cloud_sql_instance = 8; + // A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) + // URI. + string redis_instance = 17; + + // A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) + // URI. + string redis_cluster = 18; + // A [Cloud Function](https://cloud.google.com/functions). CloudFunctionEndpoint cloud_function = 10; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/reachability.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/reachability.proto index 8fbb70c48404..d888696545b1 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/reachability.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/reachability.proto @@ -103,7 +103,7 @@ service ReachabilityService { // // If the endpoint specifications in `ConnectivityTest` are incomplete, the // reachability result returns a value of `AMBIGUOUS`. See the documentation - // in `ConnectivityTest` for for more details. + // in `ConnectivityTest` for more details. rpc UpdateConnectivityTest(UpdateConnectivityTestRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -157,7 +157,12 @@ service ReachabilityService { message ListConnectivityTestsRequest { // Required. The parent resource of the Connectivity Tests: // `projects/{project_id}/locations/global` - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Number of `ConnectivityTests` to return. int32 page_size = 2; @@ -205,14 +210,24 @@ message ListConnectivityTestsResponse { message GetConnectivityTestRequest { // Required. `ConnectivityTest` resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Request for the `CreateConnectivityTest` method. message CreateConnectivityTestRequest { // Required. The parent resource of the Connectivity Test to create: // `projects/{project_id}/locations/global` - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. The logical name of the Connectivity Test in your project // with the following restrictions: @@ -243,14 +258,24 @@ message UpdateConnectivityTestRequest { message DeleteConnectivityTestRequest { // Required. Connectivity Test resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Request for the `RerunConnectivityTest` method. message RerunConnectivityTestRequest { // Required. Connectivity Test resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/ConnectivityTest" + } + ]; } // Metadata describing an [Operation][google.longrunning.Operation] diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index 33f76c55aa99..8c772c7f0f43 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -94,6 +94,14 @@ message Step { // A CloudSQLInstanceInfo is populated with starting instance information. START_FROM_CLOUD_SQL_INSTANCE = 22; + // Initial state: packet originating from a Redis instance. + // A RedisInstanceInfo is populated with starting instance information. + START_FROM_REDIS_INSTANCE = 32; + + // Initial state: packet originating from a Redis Cluster. + // A RedisClusterInfo is populated with starting Cluster information. + START_FROM_REDIS_CLUSTER = 33; + // Initial state: packet originating from a Cloud Function. // A CloudFunctionInfo is populated with starting function information. START_FROM_CLOUD_FUNCTION = 23; @@ -115,6 +123,11 @@ message Step { // Private Service Connect. Used only for return traces. START_FROM_PSC_PUBLISHED_SERVICE = 30; + // Initial state: packet originating from a serverless network endpoint + // group backend. Used only for return traces. + // The serverless_neg information is populated. + START_FROM_SERVERLESS_NEG = 31; + // Config checking state: verify ingress firewall rule. APPLY_INGRESS_FIREWALL_RULE = 4; @@ -254,6 +267,12 @@ message Step { // Display information of a Cloud SQL instance. CloudSQLInstanceInfo cloud_sql_instance = 19; + // Display information of a Redis Instance. + RedisInstanceInfo redis_instance = 30; + + // Display information of a Redis Cluster. + RedisClusterInfo redis_cluster = 31; + // Display information of a Cloud Function. CloudFunctionInfo cloud_function = 20; @@ -274,6 +293,10 @@ message Step { // Display information of a Storage Bucket. Used only for return traces. StorageBucketInfo storage_bucket = 28; + + // Display information of a Serverless network endpoint group backend. Used + // only for return traces. + ServerlessNegInfo serverless_neg = 29; } } @@ -302,9 +325,13 @@ message InstanceInfo { // Service account authorized for the instance. string service_account = 8 [deprecated = true]; + + // URI of the PSC network attachment the NIC is attached to (if relevant). + string psc_network_attachment_uri = 9; } // For display only. Metadata associated with a Compute Engine network. +// Next ID: 7 message NetworkInfo { // Name of a Compute Engine network. string display_name = 1; @@ -312,12 +339,18 @@ message NetworkInfo { // URI of a Compute Engine network. string uri = 2; - // The IP range that matches the test. + // URI of the subnet matching the source IP address of the test. + string matched_subnet_uri = 5; + + // The IP range of the subnet matching the source IP address of the test. string matched_ip_range = 4; + + // The region of the subnet matching the source IP address of the test. + string region = 6; } // For display only. Metadata associated with a VPC firewall rule, an implied -// VPC firewall rule, or a hierarchical firewall policy rule. +// VPC firewall rule, or a firewall policy rule. message FirewallInfo { // The firewall rule's type. enum FirewallRuleType { @@ -368,12 +401,12 @@ message FirewallInfo { TRACKING_STATE = 101; } - // The display name of the VPC firewall rule. This field is not applicable - // to hierarchical firewall policy rules. + // The display name of the firewall rule. This field might be empty for + // firewall policy rules. string display_name = 1; - // The URI of the VPC firewall rule. This field is not applicable to - // implied firewall rules or hierarchical firewall policy rules. + // The URI of the firewall rule. This field is not applicable to implied + // VPC firewall rules. string uri = 2; // Possible values: INGRESS, EGRESS @@ -390,16 +423,22 @@ message FirewallInfo { string network_uri = 6; // The target tags defined by the VPC firewall rule. This field is not - // applicable to hierarchical firewall policy rules. + // applicable to firewall policy rules. repeated string target_tags = 7; // The target service accounts specified by the firewall rule. repeated string target_service_accounts = 8; - // The hierarchical firewall policy that this rule is associated with. - // This field is not applicable to VPC firewall rules. + // The name of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. string policy = 9; + // The URI of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. + string policy_uri = 11; + // The firewall rule's type. FirewallRuleType firewall_rule_type = 10; } @@ -432,6 +471,10 @@ message RouteInfo { // Policy based route. POLICY_BASED = 7; + + // Advertised route. Synthetic route which is used to transition from the + // StartFromPrivateNetwork state in Connectivity tests. + ADVERTISED = 101; } // Type of next hop: @@ -506,12 +549,12 @@ message RouteInfo { // Name of a route. string display_name = 1; - // URI of a route. - // Dynamic, peering static and peering dynamic routes do not have an URI. - // Advertised route from Google Cloud VPC to on-premises network also does - // not have an URI. + // URI of a route (if applicable). string uri = 2; + // Region of the route (if applicable). + string region = 19; + // Destination IP range of the route. string dest_ip_range = 3; @@ -544,6 +587,16 @@ message RouteInfo { // URI of a NCC Spoke. NCC_HUB routes only. optional string ncc_spoke_uri = 16; + + // For advertised dynamic routes, the URI of the Cloud Router that advertised + // the corresponding IP prefix. + optional string advertised_route_source_router_uri = 17; + + // For advertised routes, the URI of their next hop, i.e. the URI of the + // hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) + // the advertised prefix is advertised through, or URI of the source peered + // network. + optional string advertised_route_next_hop_uri = 18; } // For display only. Details of a Google Service sending packets to a @@ -594,16 +647,16 @@ message GoogleServiceInfo { // For display only. Metadata associated with a Compute Engine forwarding rule. message ForwardingRuleInfo { - // Name of a Compute Engine forwarding rule. + // Name of the forwarding rule. string display_name = 1; - // URI of a Compute Engine forwarding rule. + // URI of the forwarding rule. string uri = 2; - // Protocol defined in the forwarding rule that matches the test. + // Protocol defined in the forwarding rule that matches the packet. string matched_protocol = 3; - // Port range defined in the forwarding rule that matches the test. + // Port range defined in the forwarding rule that matches the packet. string matched_port_range = 6; // VIP of the forwarding rule. @@ -612,8 +665,22 @@ message ForwardingRuleInfo { // Target type of the forwarding rule. string target = 5; - // Network URI. Only valid for Internal Load Balancer. + // Network URI. string network_uri = 7; + + // Region of the forwarding rule. Set only for regional forwarding rules. + string region = 8; + + // Name of the load balancer the forwarding rule belongs to. Empty for + // forwarding rules not related to load balancers (like PSC forwarding rules). + string load_balancer_name = 9; + + // URI of the PSC service attachment this forwarding rule targets (if + // applicable). + string psc_service_attachment_uri = 10; + + // PSC Google API target this forwarding rule targets (if applicable). + string psc_google_api_target = 11; } // For display only. Metadata associated with a load balancer. @@ -831,7 +898,7 @@ message DeliverInfo { // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). PSC_PUBLISHED_SERVICE = 6; - // Target is all Google APIs that use [Private Service + // Target is Google APIs that use [Private Service // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis). PSC_GOOGLE_API = 7; @@ -856,6 +923,15 @@ message DeliverInfo { // Target is a Cloud Run revision. Used only for return traces. CLOUD_RUN_REVISION = 14; + + // Target is a Google-managed service. Used only for return traces. + GOOGLE_MANAGED_SERVICE = 15; + + // Target is a Redis Instance. + REDIS_INSTANCE = 16; + + // Target is a Redis Cluster. + REDIS_CLUSTER = 17; } // Target type where the packet is delivered to. @@ -866,6 +942,13 @@ message DeliverInfo { // IP address of the target (if applicable). string ip_address = 3 [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Name of the Cloud Storage Bucket the packet is delivered to (if + // applicable). + string storage_bucket = 4; + + // PSC Google API target the packet is delivered to (if applicable). + string psc_google_api_target = 5; } // Details of the final state "forward" and associated resource. @@ -956,6 +1039,10 @@ message AbortInfo { // found. UNKNOWN_IP = 2; + // Aborted because no endpoint with the packet's destination IP is found in + // the Google-managed project. + GOOGLE_MANAGED_SERVICE_UNKNOWN_IP = 32; + // Aborted because the source IP address doesn't belong to any of the // subnets of the source VPC network. SOURCE_IP_ADDRESS_NOT_IN_SOURCE_NETWORK = 23; @@ -972,6 +1059,10 @@ message AbortInfo { // endpoint configs required to run the test. PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS = 29; + // Aborted because user lacks permission to access Cloud Router configs + // required to run the test. + PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS = 36; + // Aborted because no valid source or destination endpoint is derived from // the input test request. NO_SOURCE_LOCATION = 5; @@ -1027,6 +1118,13 @@ message AbortInfo { // not supported. SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; + // Aborted because tests with a Redis Cluster as a source are not supported. + SOURCE_REDIS_CLUSTER_UNSUPPORTED = 34; + + // Aborted because tests with a Redis Instance as a source are not + // supported. + SOURCE_REDIS_INSTANCE_UNSUPPORTED = 35; + // Aborted because tests with a forwarding rule as a source are not // supported. SOURCE_FORWARDING_RULE_UNSUPPORTED = 21; @@ -1165,6 +1263,12 @@ message DropInfo { // Packet sent from or to a Cloud SQL instance that is not in running state. CLOUD_SQL_INSTANCE_NOT_RUNNING = 28; + // Packet sent from or to a Redis Instance that is not in running state. + REDIS_INSTANCE_NOT_RUNNING = 68; + + // Packet sent from or to a Redis Cluster that is not in running state. + REDIS_CLUSTER_NOT_RUNNING = 69; + // The type of traffic is blocked and the user cannot configure a firewall // rule to enable it. See [Always blocked // traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for @@ -1230,6 +1334,11 @@ message DropInfo { // instance to a destination network. CLOUD_SQL_INSTANCE_NO_ROUTE = 35; + // Packet was dropped because the Cloud SQL instance requires all + // connections to use Cloud SQL connectors and to target the Cloud SQL proxy + // port (3307). + CLOUD_SQL_CONNECTOR_REQUIRED = 63; + // Packet could be dropped because the Cloud Function is not in an active // status. CLOUD_FUNCTION_NOT_ACTIVE = 22; @@ -1241,6 +1350,14 @@ message DropInfo { // state. VPC_CONNECTOR_NOT_RUNNING = 24; + // Packet could be dropped because the traffic from the serverless service + // to the VPC connector is not allowed. + VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED = 60; + + // Packet could be dropped because the health check traffic to the VPC + // connector is not allowed. + VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED = 61; + // Packet could be dropped because it was sent from a different region // to a regional forwarding without global access. FORWARDING_RULE_REGION_MISMATCH = 25; @@ -1272,6 +1389,10 @@ message DropInfo { // No NAT subnets are defined for the PSC service attachment. NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT = 57; + // PSC endpoint is accessed via NCC, but PSC transitivity configuration is + // not yet propagated. + PSC_TRANSITIVITY_NOT_PROPAGATED = 64; + // The packet sent from the hybrid NEG proxy matches a non-dynamic route, // but such a configuration is not supported. HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED = 55; @@ -1296,6 +1417,75 @@ message DropInfo { // Packet is stuck in a routing loop. ROUTING_LOOP = 59; + + // Packet is dropped inside a Google-managed service due to being delivered + // in return trace to an endpoint that doesn't match the endpoint the packet + // was sent from in forward trace. Used only for return traces. + DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE = 62; + + // Packet is dropped due to a load balancer backend instance not having a + // network interface in the network expected by the load balancer. + LOAD_BALANCER_BACKEND_INVALID_NETWORK = 65; + + // Packet is dropped due to a backend service named port not being defined + // on the instance group level. + BACKEND_SERVICE_NAMED_PORT_NOT_DEFINED = 66; + + // Packet is dropped due to a destination IP range being part of a Private + // NAT IP range. + DESTINATION_IS_PRIVATE_NAT_IP_RANGE = 67; + + // Generic drop cause for a packet being dropped inside a Redis Instance + // service project. + DROPPED_INSIDE_REDIS_INSTANCE_SERVICE = 70; + + // Packet is dropped due to an unsupported port being used to connect to a + // Redis Instance. Port 6379 should be used to connect to a Redis Instance. + REDIS_INSTANCE_UNSUPPORTED_PORT = 71; + + // Packet is dropped due to connecting from PUPI address to a PSA based + // Redis Instance. + REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS = 72; + + // Packet is dropped due to no route to the destination network. + REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK = 73; + + // Redis Instance does not have an external IP address. + REDIS_INSTANCE_NO_EXTERNAL_IP = 74; + + // Packet is dropped due to an unsupported protocol being used to connect to + // a Redis Instance. Only TCP connections are accepted by a Redis Instance. + REDIS_INSTANCE_UNSUPPORTED_PROTOCOL = 78; + + // Generic drop cause for a packet being dropped inside a Redis Cluster + // service project. + DROPPED_INSIDE_REDIS_CLUSTER_SERVICE = 75; + + // Packet is dropped due to an unsupported port being used to connect to a + // Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to + // a Redis Cluster. + REDIS_CLUSTER_UNSUPPORTED_PORT = 76; + + // Redis Cluster does not have an external IP address. + REDIS_CLUSTER_NO_EXTERNAL_IP = 77; + + // Packet is dropped due to an unsupported protocol being used to connect to + // a Redis Cluster. Only TCP connections are accepted by a Redis Cluster. + REDIS_CLUSTER_UNSUPPORTED_PROTOCOL = 79; + + // Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + // to the destination IP address not belonging to any IP prefix advertised + // via BGP by the Cloud Router. + NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION = 80; + + // Packet from the non-GCP (on-prem) or unknown GCP network is dropped due + // to the destination IP address not belonging to any IP prefix included to + // the local traffic selector of the VPN tunnel. + NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION = 81; + + // Packet from the unknown peered network is dropped due to no known route + // from the source network to the destination IP address. + NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION = 82; } // Cause that the packet is dropped. @@ -1352,6 +1542,53 @@ message CloudSQLInstanceInfo { string region = 7; } +// For display only. Metadata associated with a Cloud Redis Instance. +message RedisInstanceInfo { + // Name of a Cloud Redis Instance. + string display_name = 1; + + // URI of a Cloud Redis Instance. + string uri = 2; + + // URI of a Cloud Redis Instance network. + string network_uri = 3; + + // Primary endpoint IP address of a Cloud Redis Instance. + string primary_endpoint_ip = 4; + + // Read endpoint IP address of a Cloud Redis Instance (if applicable). + string read_endpoint_ip = 5; + + // Region in which the Cloud Redis Instance is defined. + string region = 6; +} + +// For display only. Metadata associated with a Redis Cluster. +message RedisClusterInfo { + // Name of a Redis Cluster. + string display_name = 1; + + // URI of a Redis Cluster in format + // "projects/{project_id}/locations/{location}/clusters/{cluster_id}" + string uri = 2; + + // URI of a Redis Cluster network in format + // "projects/{project_id}/global/networks/{network_id}". + string network_uri = 3; + + // Discovery endpoint IP address of a Redis Cluster. + string discovery_endpoint_ip_address = 4 + [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Secondary endpoint IP address of a Redis Cluster. + string secondary_endpoint_ip_address = 5 + [(google.api.field_info).format = IPV4_OR_IPV6]; + + // Name of the region in which the Redis Cluster is defined. For example, + // "us-central1". + string location = 6; +} + // For display only. Metadata associated with a Cloud Function. message CloudFunctionInfo { // Name of a Cloud Function. @@ -1623,3 +1860,10 @@ message StorageBucketInfo { // Cloud Storage Bucket name. string bucket = 1; } + +// For display only. Metadata associated with the serverless network endpoint +// group backend. +message ServerlessNegInfo { + // URI of the serverless network endpoint group. + string neg_uri = 1; +} diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a7ae9405bddc..000000000000 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networkmanagement.v1.samples; - -// [START networkmanagement_v1_generated_ReachabilityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; -import com.google.cloud.networkmanagement.v1.ReachabilityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ReachabilityServiceSettings reachabilityServiceSettings = - ReachabilityServiceSettings.newHttpJsonBuilder().build(); - ReachabilityServiceClient reachabilityServiceClient = - ReachabilityServiceClient.create(reachabilityServiceSettings); - } -} -// [END networkmanagement_v1_generated_ReachabilityService_Create_SetCredentialsProvider1_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0d44e1cc8185 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_ReachabilityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; +import com.google.cloud.networkmanagement.v1.ReachabilityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReachabilityServiceSettings reachabilityServiceSettings = + ReachabilityServiceSettings.newHttpJsonBuilder().build(); + ReachabilityServiceClient reachabilityServiceClient = + ReachabilityServiceClient.create(reachabilityServiceSettings); + } +} +// [END networkmanagement_v1_generated_ReachabilityService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java index b934f7a7cb7f..b8be8a2bdae9 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.longrunning.Operation; @@ -38,7 +39,7 @@ public static void asyncCreateConnectivityTest() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java index 183e3428c548..feecfb8c318b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java @@ -21,6 +21,7 @@ import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class AsyncCreateConnectivityTestLRO { @@ -38,7 +39,7 @@ public static void asyncCreateConnectivityTestLRO() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java index 0ffa65622126..459a4b4f846e 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class SyncCreateConnectivityTest { @@ -36,7 +37,7 @@ public static void syncCreateConnectivityTest() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestProjectnameStringConnectivitytest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestProjectnameStringConnectivitytest.java new file mode 100644 index 000000000000..791929f3ddb2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestProjectnameStringConnectivitytest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_ProjectnameStringConnectivitytest_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ProjectName; +import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; + +public class SyncCreateConnectivityTestProjectnameStringConnectivitytest { + + public static void main(String[] args) throws Exception { + syncCreateConnectivityTestProjectnameStringConnectivitytest(); + } + + public static void syncCreateConnectivityTestProjectnameStringConnectivitytest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + String testId = "testId-877170355"; + ConnectivityTest resource = ConnectivityTest.newBuilder().build(); + ConnectivityTest response = + reachabilityServiceClient.createConnectivityTestAsync(parent, testId, resource).get(); + } + } +} +// [END networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_ProjectnameStringConnectivitytest_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestStringStringConnectivitytest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestStringStringConnectivitytest.java index 96aba4decb84..efa18e8fb372 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestStringStringConnectivitytest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTestStringStringConnectivitytest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_StringStringConnectivitytest_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class SyncCreateConnectivityTestStringStringConnectivitytest { @@ -33,7 +34,7 @@ public static void syncCreateConnectivityTestStringStringConnectivitytest() thro // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - String parent = "parent-995424086"; + String parent = ProjectName.of("[PROJECT]").toString(); String testId = "testId-877170355"; ConnectivityTest resource = ConnectivityTest.newBuilder().build(); ConnectivityTest response = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java index 3cb473d2b14d..e9fb7578d253 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.longrunning.Operation; @@ -36,7 +37,9 @@ public static void asyncDeleteConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.deleteConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java index df5fdd948534..365fa5711c50 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.OperationMetadata; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; @@ -37,7 +38,9 @@ public static void asyncDeleteConnectivityTestLRO() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); OperationFuture future = reachabilityServiceClient.deleteConnectivityTestOperationCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java index 05d9f7f6ed47..def1c26f3583 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1.samples; // [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.protobuf.Empty; @@ -35,7 +36,9 @@ public static void syncDeleteConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); reachabilityServiceClient.deleteConnectivityTestAsync(request).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestConnectivitytestname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestConnectivitytestname.java new file mode 100644 index 000000000000..872a7beeda5d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestConnectivitytestname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_Connectivitytestname_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectivityTestConnectivitytestname { + + public static void main(String[] args) throws Exception { + syncDeleteConnectivityTestConnectivitytestname(); + } + + public static void syncDeleteConnectivityTestConnectivitytestname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + reachabilityServiceClient.deleteConnectivityTestAsync(name).get(); + } + } +} +// [END networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_Connectivitytestname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestString.java index 1127582dccdb..8119d6952a6a 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTestString.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1.samples; // [START networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_String_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.protobuf.Empty; @@ -33,7 +34,7 @@ public static void syncDeleteConnectivityTestString() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - String name = "name3373707"; + String name = ConnectivityTestName.of("[PROJECT]", "[TEST]").toString(); reachabilityServiceClient.deleteConnectivityTestAsync(name).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java index 0c26b0fdc577..d8a41097101c 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async] import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; @@ -36,7 +37,9 @@ public static void asyncGetConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.getConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java index 44a87aafbbca..519ae59e4fe9 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; @@ -35,7 +36,9 @@ public static void syncGetConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestConnectivitytestname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestConnectivitytestname.java new file mode 100644 index 000000000000..ac3b30393a37 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestConnectivitytestname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_Connectivitytestname_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; + +public class SyncGetConnectivityTestConnectivitytestname { + + public static void main(String[] args) throws Exception { + syncGetConnectivityTestConnectivitytestname(); + } + + public static void syncGetConnectivityTestConnectivitytestname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { + ConnectivityTestName name = ConnectivityTestName.of("[PROJECT]", "[TEST]"); + ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name); + } + } +} +// [END networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_Connectivitytestname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestString.java index 0f7006eff4df..e7c75d2d84bb 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTestString.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_String_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class SyncGetConnectivityTestString { @@ -33,7 +34,7 @@ public static void syncGetConnectivityTestString() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - String name = "name3373707"; + String name = ConnectivityTestName.of("[PROJECT]", "[TEST]").toString(); ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java index 7e97b7befa37..9b5c9cf0a29e 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_GetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -38,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java index 703747a461cd..3ab8bda9d8fa 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1.samples; // [START networkmanagement_v1_generated_ReachabilityService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -37,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = reachabilityServiceClient.getIamPolicy(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java index 27de49f52bbd..44e85a2bed6f 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class AsyncListConnectivityTests { @@ -37,7 +38,7 @@ public static void asyncListConnectivityTests() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java index 0884525ac283..fcaa02e16b5c 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java @@ -20,6 +20,7 @@ import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest; import com.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.common.base.Strings; @@ -38,7 +39,7 @@ public static void asyncListConnectivityTestsPaged() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java index ee01681562c8..3c6eab693710 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; import com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class SyncListConnectivityTests { @@ -36,7 +37,7 @@ public static void syncListConnectivityTests() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsProjectname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsProjectname.java new file mode 100644 index 000000000000..093c7c6d2105 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsProjectname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_Projectname_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ProjectName; +import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; + +public class SyncListConnectivityTestsProjectname { + + public static void main(String[] args) throws Exception { + syncListConnectivityTestsProjectname(); + } + + public static void syncListConnectivityTestsProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (ConnectivityTest element : + reachabilityServiceClient.listConnectivityTests(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_Projectname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsString.java index d66cf208cb54..2051a3a0d7ce 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/listconnectivitytests/SyncListConnectivityTestsString.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_String_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ProjectName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; public class SyncListConnectivityTestsString { @@ -33,7 +34,7 @@ public static void syncListConnectivityTestsString() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { - String parent = "parent-995424086"; + String parent = ProjectName.of("[PROJECT]").toString(); for (ConnectivityTest element : reachabilityServiceClient.listConnectivityTests(parent).iterateAll()) { // doThingsWith(element); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java index eda2f74c6357..73386abd7530 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest; import com.google.longrunning.Operation; @@ -36,7 +37,9 @@ public static void asyncRerunConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.rerunConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java index 80eaf015be91..e481b2c7d54b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.OperationMetadata; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest; @@ -37,7 +38,9 @@ public static void asyncRerunConnectivityTestLRO() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); OperationFuture future = reachabilityServiceClient.rerunConnectivityTestOperationCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java index 9c921319a6af..727316b67d1e 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync] import com.google.cloud.networkmanagement.v1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest; @@ -35,7 +36,9 @@ public static void syncRerunConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest response = reachabilityServiceClient.rerunConnectivityTestAsync(request).get(); } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java index 907fd875992a..7a6ced2cc9ce 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_SetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -38,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java index a87a33d90b72..8153c284fe04 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1.samples; // [START networkmanagement_v1_generated_ReachabilityService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -37,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java index d483cc0e4974..3e5173edde83 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1_generated_ReachabilityService_TestIamPermissions_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -38,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java index 0750e10c62f2..082675591f47 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1.samples; // [START networkmanagement_v1_generated_ReachabilityService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1.ReachabilityServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -37,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = reachabilityServiceClient.testIamPermissions(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index aacc13a14745..000000000000 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networkmanagement.v1beta1.samples; - -// [START networkmanagement_v1beta1_generated_ReachabilityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; -import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ReachabilityServiceSettings reachabilityServiceSettings = - ReachabilityServiceSettings.newHttpJsonBuilder().build(); - ReachabilityServiceClient reachabilityServiceClient = - ReachabilityServiceClient.create(reachabilityServiceSettings); - } -} -// [END networkmanagement_v1beta1_generated_ReachabilityService_Create_SetCredentialsProvider1_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..942f0045a8ad --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_ReachabilityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; +import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReachabilityServiceSettings reachabilityServiceSettings = + ReachabilityServiceSettings.newHttpJsonBuilder().build(); + ReachabilityServiceClient reachabilityServiceClient = + ReachabilityServiceClient.create(reachabilityServiceSettings); + } +} +// [END networkmanagement_v1beta1_generated_ReachabilityService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java index de6856307656..60c316261a46 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTest.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.longrunning.Operation; @@ -38,7 +39,7 @@ public static void asyncCreateConnectivityTest() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java index 09f2666d7a53..f79f9b77ed2e 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/AsyncCreateConnectivityTestLRO.java @@ -21,6 +21,7 @@ import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; public class AsyncCreateConnectivityTestLRO { @@ -38,7 +39,7 @@ public static void asyncCreateConnectivityTestLRO() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java index 4f91b1d6a209..810b672dcaf3 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/createconnectivitytest/SyncCreateConnectivityTest.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_CreateConnectivityTest_sync] import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; public class SyncCreateConnectivityTest { @@ -36,7 +37,7 @@ public static void syncCreateConnectivityTest() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setTestId("testId-877170355") .setResource(ConnectivityTest.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java index e93250a2490b..b6a6eafdb6b8 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_DeleteConnectivityTest_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.longrunning.Operation; @@ -36,7 +37,9 @@ public static void asyncDeleteConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.deleteConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java index b35fcdd9f138..8990c631ec33 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/AsyncDeleteConnectivityTestLRO.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_DeleteConnectivityTest_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; @@ -37,7 +38,9 @@ public static void asyncDeleteConnectivityTestLRO() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); OperationFuture future = reachabilityServiceClient.deleteConnectivityTestOperationCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java index 6ce4c7c27b31..c356bdb38e20 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/deleteconnectivitytest/SyncDeleteConnectivityTest.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_ReachabilityService_DeleteConnectivityTest_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.DeleteConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.protobuf.Empty; @@ -35,7 +36,9 @@ public static void syncDeleteConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { DeleteConnectivityTestRequest request = - DeleteConnectivityTestRequest.newBuilder().setName("name3373707").build(); + DeleteConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); reachabilityServiceClient.deleteConnectivityTestAsync(request).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java index 11412a042f6f..cc314e36b7c7 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/AsyncGetConnectivityTest.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_GetConnectivityTest_async] import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.GetConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; @@ -36,7 +37,9 @@ public static void asyncGetConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.getConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java index a02ba78c8f75..f6ffdbf00175 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getconnectivitytest/SyncGetConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_GetConnectivityTest_sync] import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.GetConnectivityTestRequest; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; @@ -35,7 +36,9 @@ public static void syncGetConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetConnectivityTestRequest request = - GetConnectivityTestRequest.newBuilder().setName("name3373707").build(); + GetConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java index 05357168d130..2bc1c5dd759b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/AsyncGetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_GetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -38,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java index d3dbe7256e8c..2e50a824388b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/getiampolicy/SyncGetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_ReachabilityService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -37,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = reachabilityServiceClient.getIamPolicy(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java index 4b599286dfdf..13ece61778ab 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTests.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsRequest; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; public class AsyncListConnectivityTests { @@ -37,7 +38,7 @@ public static void asyncListConnectivityTests() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java index 825f0ee5c3e3..b2236c397987 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/AsyncListConnectivityTestsPaged.java @@ -20,6 +20,7 @@ import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsRequest; import com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsResponse; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.common.base.Strings; @@ -38,7 +39,7 @@ public static void asyncListConnectivityTestsPaged() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java index 2e6d4f1feb85..02cd305c87b9 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/listconnectivitytests/SyncListConnectivityTests.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_ListConnectivityTests_sync] import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; import com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsRequest; +import com.google.cloud.networkmanagement.v1beta1.ProjectName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; public class SyncListConnectivityTests { @@ -36,7 +37,7 @@ public static void syncListConnectivityTests() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() - .setParent("parent-995424086") + .setParent(ProjectName.of("[PROJECT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java index a8ce901e816c..081806fadf5c 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_RerunConnectivityTest_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest; import com.google.longrunning.Operation; @@ -36,7 +37,9 @@ public static void asyncRerunConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ApiFuture future = reachabilityServiceClient.rerunConnectivityTestCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java index b259a6e5fa2f..367e42bb257b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/AsyncRerunConnectivityTestLRO.java @@ -19,6 +19,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_RerunConnectivityTest_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest; @@ -37,7 +38,9 @@ public static void asyncRerunConnectivityTestLRO() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); OperationFuture future = reachabilityServiceClient.rerunConnectivityTestOperationCallable().futureCall(request); // Do something. diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java index fdfc30cd3ff9..234b3a809488 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/rerunconnectivitytest/SyncRerunConnectivityTest.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_RerunConnectivityTest_sync] import com.google.cloud.networkmanagement.v1beta1.ConnectivityTest; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest; @@ -35,7 +36,9 @@ public static void syncRerunConnectivityTest() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { RerunConnectivityTestRequest request = - RerunConnectivityTestRequest.newBuilder().setName("name3373707").build(); + RerunConnectivityTestRequest.newBuilder() + .setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .build(); ConnectivityTest response = reachabilityServiceClient.rerunConnectivityTestAsync(request).get(); } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java index 0abeaae1b196..26bb7decb2eb 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/AsyncSetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_SetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -38,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java index f597ce256afd..828e858804d9 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/setiampolicy/SyncSetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_ReachabilityService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -37,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java index 855e2fcb50a9..e339b533b831 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/AsyncTestIamPermissions.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_ReachabilityService_TestIamPermissions_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -38,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java index d033daff16c3..43ac82bfc56e 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/reachabilityservice/testiampermissions/SyncTestIamPermissions.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_ReachabilityService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -37,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = reachabilityServiceClient.testIamPermissions(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider1.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f8edc124f1d3..000000000000 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networkmanagement.v1beta1.samples; - -// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; -import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = - VpcFlowLogsServiceSettings.newHttpJsonBuilder().build(); - VpcFlowLogsServiceClient vpcFlowLogsServiceClient = - VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings); - } -} -// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_Create_SetCredentialsProvider1_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ef80a6920cb2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = + VpcFlowLogsServiceSettings.newHttpJsonBuilder().build(); + VpcFlowLogsServiceClient vpcFlowLogsServiceClient = + VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java index 941b7979c121..4d329360d536 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_GetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -38,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java index e2cd069737bd..f565e8012b8a 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -37,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource("GetIamPolicyRequest-1527610370".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = vpcFlowLogsServiceClient.getIamPolicy(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java index 805bb3f50a7e..0be2c468bcd8 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_SetIamPolicy_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -38,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java index b8d056b00b9c..ab6773d0828c 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -37,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource("SetIamPolicyRequest1223629066".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java index fab99c911c1c..7dbc3bf32684 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java @@ -18,6 +18,7 @@ // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_TestIamPermissions_async] import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -38,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java index f688985d64d8..e444ab94dcf0 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1.samples; // [START networkmanagement_v1beta1_generated_VpcFlowLogsService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -37,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource("TestIamPermissionsRequest942398222".toString()) + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = vpcFlowLogsServiceClient.testIamPermissions(request); diff --git a/java-network-security/README.md b/java-network-security/README.md index 6a8c46f64e2b..3e81b4cc331d 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.55.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json index 9c928254145e..7d570271f351 100644 --- a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json +++ b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json index f4673ba4d693..2b44c1246f4b 100644 --- a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json +++ b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateSetCredentialsProvider1.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9784f40a765e..000000000000 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networksecurity.v1beta1.samples; - -// [START networksecurity_v1beta1_generated_NetworkSecurity_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; -import com.google.cloud.networksecurity.v1beta1.NetworkSecuritySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - NetworkSecuritySettings networkSecuritySettings = - NetworkSecuritySettings.newHttpJsonBuilder().build(); - NetworkSecurityClient networkSecurityClient = - NetworkSecurityClient.create(networkSecuritySettings); - } -} -// [END networksecurity_v1beta1_generated_NetworkSecurity_Create_SetCredentialsProvider1_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateUseHttpJsonTransport.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9f0cbb264943 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurity/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networksecurity.v1beta1.samples; + +// [START networksecurity_v1beta1_generated_NetworkSecurity_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networksecurity.v1beta1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1beta1.NetworkSecuritySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NetworkSecuritySettings networkSecuritySettings = + NetworkSecuritySettings.newHttpJsonBuilder().build(); + NetworkSecurityClient networkSecurityClient = + NetworkSecurityClient.create(networkSecuritySettings); + } +} +// [END networksecurity_v1beta1_generated_NetworkSecurity_Create_UseHttpJsonTransport_sync] diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 67dc0d687992..d671e56b5e0c 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json index 1d3aff1a09c9..45f3047ed68c 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1alpha1/reflect-config.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1alpha1/reflect-config.json index 5852b5027b34..3f0bb5e778aa 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1alpha1/reflect-config.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 023db3be494e..5ad09aa327cc 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json index a566998f79b8..3825977435a0 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json +++ b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateSetCredentialsProvider1.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bb8ed12d7c0c..000000000000 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networkservices.v1.samples; - -// [START networkservices_v1_generated_DepService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networkservices.v1.DepServiceClient; -import com.google.cloud.networkservices.v1.DepServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DepServiceSettings depServiceSettings = DepServiceSettings.newHttpJsonBuilder().build(); - DepServiceClient depServiceClient = DepServiceClient.create(depServiceSettings); - } -} -// [END networkservices_v1_generated_DepService_Create_SetCredentialsProvider1_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateUseHttpJsonTransport.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7d42dcaae221 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_DepService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.DepServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DepServiceSettings depServiceSettings = DepServiceSettings.newHttpJsonBuilder().build(); + DepServiceClient depServiceClient = DepServiceClient.create(depServiceSettings); + } +} +// [END networkservices_v1_generated_DepService_Create_UseHttpJsonTransport_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateSetCredentialsProvider1.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ef43a71522a8..000000000000 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.networkservices.v1.samples; - -// [START networkservices_v1_generated_NetworkServices_Create_SetCredentialsProvider1_sync] -import com.google.cloud.networkservices.v1.NetworkServicesClient; -import com.google.cloud.networkservices.v1.NetworkServicesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - NetworkServicesSettings networkServicesSettings = - NetworkServicesSettings.newHttpJsonBuilder().build(); - NetworkServicesClient networkServicesClient = - NetworkServicesClient.create(networkServicesSettings); - } -} -// [END networkservices_v1_generated_NetworkServices_Create_SetCredentialsProvider1_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateUseHttpJsonTransport.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7ae45c569b85 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.NetworkServicesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NetworkServicesSettings networkServicesSettings = + NetworkServicesSettings.newHttpJsonBuilder().build(); + NetworkServicesClient networkServicesClient = + NetworkServicesClient.create(networkServicesSettings); + } +} +// [END networkservices_v1_generated_NetworkServices_Create_UseHttpJsonTransport_sync] diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 449e903ea010..615e6856c657 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1/reflect-config.json b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1/reflect-config.json index 931231a75e8b..a98ba3d604f9 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1/reflect-config.json +++ b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1beta1/reflect-config.json b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1beta1/reflect-config.json index b72967c5a4a3..b29dd0a6c5ca 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1beta1/reflect-config.json +++ b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v2/reflect-config.json b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v2/reflect-config.json index 16b767f73c0f..02797a7e3462 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v2/reflect-config.json +++ b/java-notebooks/google-cloud-notebooks/src/main/resources/META-INF/native-image/com.google.cloud.notebooks.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateSetCredentialsProvider1.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 163032d48f4a..000000000000 --- a/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.notebooks.v2.samples; - -// [START notebooks_v2_generated_NotebookService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.notebooks.v2.NotebookServiceClient; -import com.google.cloud.notebooks.v2.NotebookServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - NotebookServiceSettings notebookServiceSettings = - NotebookServiceSettings.newHttpJsonBuilder().build(); - NotebookServiceClient notebookServiceClient = - NotebookServiceClient.create(notebookServiceSettings); - } -} -// [END notebooks_v2_generated_NotebookService_Create_SetCredentialsProvider1_sync] diff --git a/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateUseHttpJsonTransport.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d9b0d4ff9585 --- /dev/null +++ b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v2/notebookservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v2.samples; + +// [START notebooks_v2_generated_NotebookService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.notebooks.v2.NotebookServiceClient; +import com.google.cloud.notebooks.v2.NotebookServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NotebookServiceSettings notebookServiceSettings = + NotebookServiceSettings.newHttpJsonBuilder().build(); + NotebookServiceClient notebookServiceClient = + NotebookServiceClient.create(notebookServiceSettings); + } +} +// [END notebooks_v2_generated_NotebookService_Create_UseHttpJsonTransport_sync] diff --git a/java-optimization/README.md b/java-optimization/README.md index c33c3e6cee54..5471630f4abf 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json b/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json index 4490023e89fa..c609ffff5a66 100644 --- a/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json +++ b/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.optimization.v1.AggregatedMetrics", "queryAllDeclaredConstructors": true, diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 917bd6b220fd..000000000000 --- a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.optimization.v1.samples; - -// [START cloudoptimization_v1_generated_FleetRouting_Create_SetCredentialsProvider1_sync] -import com.google.cloud.optimization.v1.FleetRoutingClient; -import com.google.cloud.optimization.v1.FleetRoutingSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FleetRoutingSettings fleetRoutingSettings = FleetRoutingSettings.newHttpJsonBuilder().build(); - FleetRoutingClient fleetRoutingClient = FleetRoutingClient.create(fleetRoutingSettings); - } -} -// [END cloudoptimization_v1_generated_FleetRouting_Create_SetCredentialsProvider1_sync] diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateUseHttpJsonTransport.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a79c62cc37fe --- /dev/null +++ b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.optimization.v1.samples; + +// [START cloudoptimization_v1_generated_FleetRouting_Create_UseHttpJsonTransport_sync] +import com.google.cloud.optimization.v1.FleetRoutingClient; +import com.google.cloud.optimization.v1.FleetRoutingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FleetRoutingSettings fleetRoutingSettings = FleetRoutingSettings.newHttpJsonBuilder().build(); + FleetRoutingClient fleetRoutingClient = FleetRoutingClient.create(fleetRoutingSettings); + } +} +// [END cloudoptimization_v1_generated_FleetRouting_Create_UseHttpJsonTransport_sync] diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index f290a93c4646..cd857c6e3165 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.1.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json index e173b7ee8123..bfce7f827f69 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 00c9b49304fc..233887e704c5 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1/reflect-config.json b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1/reflect-config.json index 7bb12de7ecb8..aed2b4866973 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1/reflect-config.json +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig", "queryAllDeclaredConstructors": true, diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json index b42236df7891..9236bafb5842 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig", "queryAllDeclaredConstructors": true, diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateSetCredentialsProvider1.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a17d7e2db211..000000000000 --- a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.orchestration.airflow.service.v1.samples; - -// [START composer_v1_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient; -import com.google.cloud.orchestration.airflow.service.v1.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END composer_v1_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateUseHttpJsonTransport.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f7ae23ac12dd --- /dev/null +++ b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.orchestration.airflow.service.v1.samples; + +// [START composer_v1_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient; +import com.google.cloud.orchestration.airflow.service.v1.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END composer_v1_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateSetCredentialsProvider1.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1a2e7a949dc6..000000000000 --- a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.orchestration.airflow.service.v1.samples; - -// [START composer_v1_generated_ImageVersions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.orchestration.airflow.service.v1.ImageVersionsClient; -import com.google.cloud.orchestration.airflow.service.v1.ImageVersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageVersionsSettings imageVersionsSettings = - ImageVersionsSettings.newHttpJsonBuilder().build(); - ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings); - } -} -// [END composer_v1_generated_ImageVersions_Create_SetCredentialsProvider1_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateUseHttpJsonTransport.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f22c032a0520 --- /dev/null +++ b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1/imageversions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.orchestration.airflow.service.v1.samples; + +// [START composer_v1_generated_ImageVersions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.orchestration.airflow.service.v1.ImageVersionsClient; +import com.google.cloud.orchestration.airflow.service.v1.ImageVersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageVersionsSettings imageVersionsSettings = + ImageVersionsSettings.newHttpJsonBuilder().build(); + ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings); + } +} +// [END composer_v1_generated_ImageVersions_Create_UseHttpJsonTransport_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateSetCredentialsProvider1.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index de78aea9b5bf..000000000000 --- a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.orchestration.airflow.service.v1beta1.samples; - -// [START composer_v1beta1_generated_Environments_Create_SetCredentialsProvider1_sync] -import com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient; -import com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); - EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); - } -} -// [END composer_v1beta1_generated_Environments_Create_SetCredentialsProvider1_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateUseHttpJsonTransport.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..165186523e6a --- /dev/null +++ b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/environments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.orchestration.airflow.service.v1beta1.samples; + +// [START composer_v1beta1_generated_Environments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient; +import com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EnvironmentsSettings environmentsSettings = EnvironmentsSettings.newHttpJsonBuilder().build(); + EnvironmentsClient environmentsClient = EnvironmentsClient.create(environmentsSettings); + } +} +// [END composer_v1beta1_generated_Environments_Create_UseHttpJsonTransport_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateSetCredentialsProvider1.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 62d114549057..000000000000 --- a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.orchestration.airflow.service.v1beta1.samples; - -// [START composer_v1beta1_generated_ImageVersions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsClient; -import com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageVersionsSettings imageVersionsSettings = - ImageVersionsSettings.newHttpJsonBuilder().build(); - ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings); - } -} -// [END composer_v1beta1_generated_ImageVersions_Create_SetCredentialsProvider1_sync] diff --git a/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateUseHttpJsonTransport.java b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..441568829f10 --- /dev/null +++ b/java-orchestration-airflow/samples/snippets/generated/com/google/cloud/orchestration/airflow/service/v1beta1/imageversions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.orchestration.airflow.service.v1beta1.samples; + +// [START composer_v1beta1_generated_ImageVersions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsClient; +import com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageVersionsSettings imageVersionsSettings = + ImageVersionsSettings.newHttpJsonBuilder().build(); + ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings); + } +} +// [END composer_v1beta1_generated_ImageVersions_Create_UseHttpJsonTransport_sync] diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 8635b64895a2..5ac8fa3d4066 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/resources/META-INF/native-image/com.google.cloud.orgpolicy.v2/reflect-config.json b/java-orgpolicy/google-cloud-orgpolicy/src/main/resources/META-INF/native-image/com.google.cloud.orgpolicy.v2/reflect-config.json index 084d7a5e03b7..475057fcdc00 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/resources/META-INF/native-image/com.google.cloud.orgpolicy.v2/reflect-config.json +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/resources/META-INF/native-image/com.google.cloud.orgpolicy.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.orgpolicy.v2.AlternatePolicySpec", "queryAllDeclaredConstructors": true, diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateSetCredentialsProvider1.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e93d9816bc53..000000000000 --- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.orgpolicy.v2.samples; - -// [START orgpolicy_v2_generated_OrgPolicy_Create_SetCredentialsProvider1_sync] -import com.google.cloud.orgpolicy.v2.OrgPolicyClient; -import com.google.cloud.orgpolicy.v2.OrgPolicySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OrgPolicySettings orgPolicySettings = OrgPolicySettings.newHttpJsonBuilder().build(); - OrgPolicyClient orgPolicyClient = OrgPolicyClient.create(orgPolicySettings); - } -} -// [END orgpolicy_v2_generated_OrgPolicy_Create_SetCredentialsProvider1_sync] diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateUseHttpJsonTransport.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4347ba2aab15 --- /dev/null +++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicy/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.orgpolicy.v2.samples; + +// [START orgpolicy_v2_generated_OrgPolicy_Create_UseHttpJsonTransport_sync] +import com.google.cloud.orgpolicy.v2.OrgPolicyClient; +import com.google.cloud.orgpolicy.v2.OrgPolicySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrgPolicySettings orgPolicySettings = OrgPolicySettings.newHttpJsonBuilder().build(); + OrgPolicyClient orgPolicyClient = OrgPolicyClient.create(orgPolicySettings); + } +} +// [END orgpolicy_v2_generated_OrgPolicy_Create_UseHttpJsonTransport_sync] diff --git a/java-os-config/README.md b/java-os-config/README.md index f9958225d16d..e68fc9b40b1e 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1/reflect-config.json b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1/reflect-config.json index ddacb92b9daf..7dc922a501d1 100644 --- a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1/reflect-config.json +++ b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.osconfig.v1.CVSSv3", "queryAllDeclaredConstructors": true, diff --git a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1alpha/reflect-config.json b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1alpha/reflect-config.json index 0584e443101e..bcd6d263821f 100644 --- a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1alpha/reflect-config.json +++ b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.osconfig.v1alpha.CVSSv3", "queryAllDeclaredConstructors": true, diff --git a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1beta/reflect-config.json b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1beta/reflect-config.json index b7923cb438b7..7ed3b2e661b3 100644 --- a/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1beta/reflect-config.json +++ b/java-os-config/google-cloud-os-config/src/main/resources/META-INF/native-image/com.google.cloud.osconfig.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.osconfig.v1beta.Common$FixedOrPercent", "queryAllDeclaredConstructors": true, diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 74f52c5fc0c3..000000000000 --- a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.osconfig.v1.samples; - -// [START osconfig_v1_generated_OsConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.osconfig.v1.OsConfigServiceClient; -import com.google.cloud.osconfig.v1.OsConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OsConfigServiceSettings osConfigServiceSettings = - OsConfigServiceSettings.newHttpJsonBuilder().build(); - OsConfigServiceClient osConfigServiceClient = - OsConfigServiceClient.create(osConfigServiceSettings); - } -} -// [END osconfig_v1_generated_OsConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2126dea51de0 --- /dev/null +++ b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.osconfig.v1.samples; + +// [START osconfig_v1_generated_OsConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.osconfig.v1.OsConfigServiceClient; +import com.google.cloud.osconfig.v1.OsConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OsConfigServiceSettings osConfigServiceSettings = + OsConfigServiceSettings.newHttpJsonBuilder().build(); + OsConfigServiceClient osConfigServiceClient = + OsConfigServiceClient.create(osConfigServiceSettings); + } +} +// [END osconfig_v1_generated_OsConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a5b97741bd53..000000000000 --- a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.osconfig.v1.samples; - -// [START osconfig_v1_generated_OsConfigZonalService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.osconfig.v1.OsConfigZonalServiceClient; -import com.google.cloud.osconfig.v1.OsConfigZonalServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OsConfigZonalServiceSettings osConfigZonalServiceSettings = - OsConfigZonalServiceSettings.newHttpJsonBuilder().build(); - OsConfigZonalServiceClient osConfigZonalServiceClient = - OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); - } -} -// [END osconfig_v1_generated_OsConfigZonalService_Create_SetCredentialsProvider1_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..17285f6f566a --- /dev/null +++ b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.osconfig.v1.samples; + +// [START osconfig_v1_generated_OsConfigZonalService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.osconfig.v1.OsConfigZonalServiceClient; +import com.google.cloud.osconfig.v1.OsConfigZonalServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OsConfigZonalServiceSettings osConfigZonalServiceSettings = + OsConfigZonalServiceSettings.newHttpJsonBuilder().build(); + OsConfigZonalServiceClient osConfigZonalServiceClient = + OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); + } +} +// [END osconfig_v1_generated_OsConfigZonalService_Create_UseHttpJsonTransport_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2e88bdac59ef..000000000000 --- a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.osconfig.v1alpha.samples; - -// [START osconfig_v1alpha_generated_OsConfigZonalService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient; -import com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OsConfigZonalServiceSettings osConfigZonalServiceSettings = - OsConfigZonalServiceSettings.newHttpJsonBuilder().build(); - OsConfigZonalServiceClient osConfigZonalServiceClient = - OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); - } -} -// [END osconfig_v1alpha_generated_OsConfigZonalService_Create_SetCredentialsProvider1_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..88052984b5ed --- /dev/null +++ b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1alpha/osconfigzonalservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.osconfig.v1alpha.samples; + +// [START osconfig_v1alpha_generated_OsConfigZonalService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient; +import com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OsConfigZonalServiceSettings osConfigZonalServiceSettings = + OsConfigZonalServiceSettings.newHttpJsonBuilder().build(); + OsConfigZonalServiceClient osConfigZonalServiceClient = + OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); + } +} +// [END osconfig_v1alpha_generated_OsConfigZonalService_Create_UseHttpJsonTransport_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 133fef4a236d..000000000000 --- a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.osconfig.v1beta.samples; - -// [START osconfig_v1beta_generated_OsConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.osconfig.v1beta.OsConfigServiceClient; -import com.google.cloud.osconfig.v1beta.OsConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OsConfigServiceSettings osConfigServiceSettings = - OsConfigServiceSettings.newHttpJsonBuilder().build(); - OsConfigServiceClient osConfigServiceClient = - OsConfigServiceClient.create(osConfigServiceSettings); - } -} -// [END osconfig_v1beta_generated_OsConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f35191b0a952 --- /dev/null +++ b/java-os-config/samples/snippets/generated/com/google/cloud/osconfig/v1beta/osconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.osconfig.v1beta.samples; + +// [START osconfig_v1beta_generated_OsConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.osconfig.v1beta.OsConfigServiceClient; +import com.google.cloud.osconfig.v1beta.OsConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OsConfigServiceSettings osConfigServiceSettings = + OsConfigServiceSettings.newHttpJsonBuilder().build(); + OsConfigServiceClient osConfigServiceClient = + OsConfigServiceClient.create(osConfigServiceSettings); + } +} +// [END osconfig_v1beta_generated_OsConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-os-login/README.md b/java-os-login/README.md index a5659a71373f..a5027a5cc496 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/google-cloud-os-login/src/main/resources/META-INF/native-image/com.google.cloud.oslogin.v1/reflect-config.json b/java-os-login/google-cloud-os-login/src/main/resources/META-INF/native-image/com.google.cloud.oslogin.v1/reflect-config.json index 23c7332b60ee..d1e4f7e27604 100644 --- a/java-os-login/google-cloud-os-login/src/main/resources/META-INF/native-image/com.google.cloud.oslogin.v1/reflect-config.json +++ b/java-os-login/google-cloud-os-login/src/main/resources/META-INF/native-image/com.google.cloud.oslogin.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oslogin.common.OsLoginProto$OperatingSystemType", "queryAllDeclaredConstructors": true, diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index eadc7b47e34b..de8145905409 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1/reflect-config.json b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1/reflect-config.json index 04ba604725cb..abd5482c0674 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1/reflect-config.json +++ b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json index c6bdd186059f..114c935176c6 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json +++ b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateSetCredentialsProvider1.java b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 61116d1a2293..000000000000 --- a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.parallelstore.v1.samples; - -// [START parallelstore_v1_generated_Parallelstore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.parallelstore.v1.ParallelstoreClient; -import com.google.cloud.parallelstore.v1.ParallelstoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ParallelstoreSettings parallelstoreSettings = - ParallelstoreSettings.newHttpJsonBuilder().build(); - ParallelstoreClient parallelstoreClient = ParallelstoreClient.create(parallelstoreSettings); - } -} -// [END parallelstore_v1_generated_Parallelstore_Create_SetCredentialsProvider1_sync] diff --git a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateUseHttpJsonTransport.java b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e16e94782cbe --- /dev/null +++ b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1/parallelstore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.parallelstore.v1.samples; + +// [START parallelstore_v1_generated_Parallelstore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.parallelstore.v1.ParallelstoreClient; +import com.google.cloud.parallelstore.v1.ParallelstoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ParallelstoreSettings parallelstoreSettings = + ParallelstoreSettings.newHttpJsonBuilder().build(); + ParallelstoreClient parallelstoreClient = ParallelstoreClient.create(parallelstoreSettings); + } +} +// [END parallelstore_v1_generated_Parallelstore_Create_UseHttpJsonTransport_sync] diff --git a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateSetCredentialsProvider1.java b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 10d6886baf92..000000000000 --- a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.parallelstore.v1beta.samples; - -// [START parallelstore_v1beta_generated_Parallelstore_Create_SetCredentialsProvider1_sync] -import com.google.cloud.parallelstore.v1beta.ParallelstoreClient; -import com.google.cloud.parallelstore.v1beta.ParallelstoreSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ParallelstoreSettings parallelstoreSettings = - ParallelstoreSettings.newHttpJsonBuilder().build(); - ParallelstoreClient parallelstoreClient = ParallelstoreClient.create(parallelstoreSettings); - } -} -// [END parallelstore_v1beta_generated_Parallelstore_Create_SetCredentialsProvider1_sync] diff --git a/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateUseHttpJsonTransport.java b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..166d2f6adaa4 --- /dev/null +++ b/java-parallelstore/samples/snippets/generated/com/google/cloud/parallelstore/v1beta/parallelstore/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.parallelstore.v1beta.samples; + +// [START parallelstore_v1beta_generated_Parallelstore_Create_UseHttpJsonTransport_sync] +import com.google.cloud.parallelstore.v1beta.ParallelstoreClient; +import com.google.cloud.parallelstore.v1beta.ParallelstoreSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ParallelstoreSettings parallelstoreSettings = + ParallelstoreSettings.newHttpJsonBuilder().build(); + ParallelstoreClient parallelstoreClient = ParallelstoreClient.create(parallelstoreSettings); + } +} +// [END parallelstore_v1beta_generated_Parallelstore_Create_UseHttpJsonTransport_sync] diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 4311f2106d6b..dea6be5b819a 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.83.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/resources/META-INF/native-image/com.google.cloud.phishingprotection.v1beta1/reflect-config.json b/java-phishingprotection/google-cloud-phishingprotection/src/main/resources/META-INF/native-image/com.google.cloud.phishingprotection.v1beta1/reflect-config.json index b9303b323165..195c17d6ab20 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/resources/META-INF/native-image/com.google.cloud.phishingprotection.v1beta1/reflect-config.json +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/resources/META-INF/native-image/com.google.cloud.phishingprotection.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.phishingprotection.v1beta1.ReportPhishingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0de58f7e59eb..000000000000 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.phishingprotection.v1beta1.samples; - -// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync] -import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; -import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings = - PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build(); - PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = - PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); - } -} -// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateUseHttpJsonTransport.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8babb80d4b07 --- /dev/null +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.phishingprotection.v1beta1.samples; + +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_UseHttpJsonTransport_sync] +import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; +import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings = + PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build(); + PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = + PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); + } +} +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_UseHttpJsonTransport_sync] diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 34c022607c66..64b8571308bf 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.iam.v3/reflect-config.json b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.iam.v3/reflect-config.json index 8f395c42dc8d..411d27693a6a 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.iam.v3/reflect-config.json +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.iam.v3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.policytroubleshooter.iam.v3.AccessTuple", "queryAllDeclaredConstructors": true, diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.v1/reflect-config.json b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.v1/reflect-config.json index a5301a501164..b229eee02d0e 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.v1/reflect-config.json +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/resources/META-INF/native-image/com.google.cloud.policytroubleshooter.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateSetCredentialsProvider1.java b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4fb5cd8379a5..000000000000 --- a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.policytroubleshooter.iam.v3.samples; - -// [START policytroubleshooter_v3_generated_PolicyTroubleshooter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterClient; -import com.google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTroubleshooterSettings policyTroubleshooterSettings = - PolicyTroubleshooterSettings.newHttpJsonBuilder().build(); - PolicyTroubleshooterClient policyTroubleshooterClient = - PolicyTroubleshooterClient.create(policyTroubleshooterSettings); - } -} -// [END policytroubleshooter_v3_generated_PolicyTroubleshooter_Create_SetCredentialsProvider1_sync] diff --git a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateUseHttpJsonTransport.java b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..64f7db1ae781 --- /dev/null +++ b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/iam/v3/policytroubleshooter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.policytroubleshooter.iam.v3.samples; + +// [START policytroubleshooter_v3_generated_PolicyTroubleshooter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterClient; +import com.google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyTroubleshooterSettings policyTroubleshooterSettings = + PolicyTroubleshooterSettings.newHttpJsonBuilder().build(); + PolicyTroubleshooterClient policyTroubleshooterClient = + PolicyTroubleshooterClient.create(policyTroubleshooterSettings); + } +} +// [END policytroubleshooter_v3_generated_PolicyTroubleshooter_Create_UseHttpJsonTransport_sync] diff --git a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateSetCredentialsProvider1.java b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9459ef4ce3bc..000000000000 --- a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.policytroubleshooter.v1.samples; - -// [START policytroubleshooter_v1_generated_IamChecker_Create_SetCredentialsProvider1_sync] -import com.google.cloud.policytroubleshooter.v1.IamCheckerClient; -import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - IamCheckerSettings iamCheckerSettings = IamCheckerSettings.newHttpJsonBuilder().build(); - IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings); - } -} -// [END policytroubleshooter_v1_generated_IamChecker_Create_SetCredentialsProvider1_sync] diff --git a/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateUseHttpJsonTransport.java b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..06ede6664540 --- /dev/null +++ b/java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamchecker/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.policytroubleshooter.v1.samples; + +// [START policytroubleshooter_v1_generated_IamChecker_Create_UseHttpJsonTransport_sync] +import com.google.cloud.policytroubleshooter.v1.IamCheckerClient; +import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IamCheckerSettings iamCheckerSettings = IamCheckerSettings.newHttpJsonBuilder().build(); + IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings); + } +} +// [END policytroubleshooter_v1_generated_IamChecker_Create_UseHttpJsonTransport_sync] diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index c8d27fbb60cd..90cf8c0678db 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.31.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/resources/META-INF/native-image/com.google.cloud.policysimulator.v1/reflect-config.json b/java-policysimulator/google-cloud-policysimulator/src/main/resources/META-INF/native-image/com.google.cloud.policysimulator.v1/reflect-config.json index 1f18dd8c2c0f..7dc1e68f96a6 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/resources/META-INF/native-image/com.google.cloud.policysimulator.v1/reflect-config.json +++ b/java-policysimulator/google-cloud-policysimulator/src/main/resources/META-INF/native-image/com.google.cloud.policysimulator.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.policysimulator.v1.AccessState", "queryAllDeclaredConstructors": true, diff --git a/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateSetCredentialsProvider1.java b/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 82942b493e1a..000000000000 --- a/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.policysimulator.v1.samples; - -// [START policysimulator_v1_generated_Simulator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.policysimulator.v1.SimulatorClient; -import com.google.cloud.policysimulator.v1.SimulatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SimulatorSettings simulatorSettings = SimulatorSettings.newHttpJsonBuilder().build(); - SimulatorClient simulatorClient = SimulatorClient.create(simulatorSettings); - } -} -// [END policysimulator_v1_generated_Simulator_Create_SetCredentialsProvider1_sync] diff --git a/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateUseHttpJsonTransport.java b/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..97a875ee869b --- /dev/null +++ b/java-policysimulator/samples/snippets/generated/com/google/cloud/policysimulator/v1/simulator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.policysimulator.v1.samples; + +// [START policysimulator_v1_generated_Simulator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.policysimulator.v1.SimulatorClient; +import com.google.cloud.policysimulator.v1.SimulatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SimulatorSettings simulatorSettings = SimulatorSettings.newHttpJsonBuilder().build(); + SimulatorClient simulatorClient = SimulatorClient.create(simulatorSettings); + } +} +// [END policysimulator_v1_generated_Simulator_Create_UseHttpJsonTransport_sync] diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index ef33ed56ba48..85b0570184eb 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.54.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/resources/META-INF/native-image/com.google.cloud.privatecatalog.v1beta1/reflect-config.json b/java-private-catalog/google-cloud-private-catalog/src/main/resources/META-INF/native-image/com.google.cloud.privatecatalog.v1beta1/reflect-config.json index aee48a7082fd..cbeff00ef920 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/resources/META-INF/native-image/com.google.cloud.privatecatalog.v1beta1/reflect-config.json +++ b/java-private-catalog/google-cloud-private-catalog/src/main/resources/META-INF/native-image/com.google.cloud.privatecatalog.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.privatecatalog.v1beta1.AssetReference", "queryAllDeclaredConstructors": true, diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateSetCredentialsProvider1.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6aac89cf9751..000000000000 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.privatecatalog.v1beta1.samples; - -// [START cloudprivatecatalog_v1beta1_generated_PrivateCatalog_Create_SetCredentialsProvider1_sync] -import com.google.cloud.privatecatalog.v1beta1.PrivateCatalogClient; -import com.google.cloud.privatecatalog.v1beta1.PrivateCatalogSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PrivateCatalogSettings privateCatalogSettings = - PrivateCatalogSettings.newHttpJsonBuilder().build(); - PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create(privateCatalogSettings); - } -} -// [END cloudprivatecatalog_v1beta1_generated_PrivateCatalog_Create_SetCredentialsProvider1_sync] diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateUseHttpJsonTransport.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c8a2922032c0 --- /dev/null +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalog/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.privatecatalog.v1beta1.samples; + +// [START cloudprivatecatalog_v1beta1_generated_PrivateCatalog_Create_UseHttpJsonTransport_sync] +import com.google.cloud.privatecatalog.v1beta1.PrivateCatalogClient; +import com.google.cloud.privatecatalog.v1beta1.PrivateCatalogSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PrivateCatalogSettings privateCatalogSettings = + PrivateCatalogSettings.newHttpJsonBuilder().build(); + PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create(privateCatalogSettings); + } +} +// [END cloudprivatecatalog_v1beta1_generated_PrivateCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 8181efe9077b..76d3df1d8be5 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.6.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/resources/META-INF/native-image/com.google.cloud.privilegedaccessmanager.v1/reflect-config.json b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/resources/META-INF/native-image/com.google.cloud.privilegedaccessmanager.v1/reflect-config.json index 34869c78a51d..d637f65b7eab 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/resources/META-INF/native-image/com.google.cloud.privilegedaccessmanager.v1/reflect-config.json +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/resources/META-INF/native-image/com.google.cloud.privilegedaccessmanager.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateSetCredentialsProvider1.java b/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 015517828753..000000000000 --- a/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.privilegedaccessmanager.v1.samples; - -// [START privilegedaccessmanager_v1_generated_PrivilegedAccessManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient; -import com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PrivilegedAccessManagerSettings privilegedAccessManagerSettings = - PrivilegedAccessManagerSettings.newHttpJsonBuilder().build(); - PrivilegedAccessManagerClient privilegedAccessManagerClient = - PrivilegedAccessManagerClient.create(privilegedAccessManagerSettings); - } -} -// [END privilegedaccessmanager_v1_generated_PrivilegedAccessManager_Create_SetCredentialsProvider1_sync] diff --git a/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateUseHttpJsonTransport.java b/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..935eefc51726 --- /dev/null +++ b/java-privilegedaccessmanager/samples/snippets/generated/com/google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.privilegedaccessmanager.v1.samples; + +// [START privilegedaccessmanager_v1_generated_PrivilegedAccessManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient; +import com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PrivilegedAccessManagerSettings privilegedAccessManagerSettings = + PrivilegedAccessManagerSettings.newHttpJsonBuilder().build(); + PrivilegedAccessManagerClient privilegedAccessManagerClient = + PrivilegedAccessManagerClient.create(privilegedAccessManagerSettings); + } +} +// [END privilegedaccessmanager_v1_generated_PrivilegedAccessManager_Create_UseHttpJsonTransport_sync] diff --git a/java-profiler/README.md b/java-profiler/README.md index c5c0ee2be685..5eb2d6d081ab 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json b/java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json index 26f4a760ba6b..380cda14370a 100644 --- a/java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json +++ b/java-profiler/google-cloud-profiler/src/main/resources/META-INF/native-image/com.google.devtools.cloudprofiler.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest", "queryAllDeclaredConstructors": true, diff --git a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateSetCredentialsProvider1.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 36d07ca236b5..000000000000 --- a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.cloudprofiler.v2.samples; - -// [START cloudprofiler_v2_generated_ExportService_Create_SetCredentialsProvider1_sync] -import com.google.devtools.cloudprofiler.v2.ExportServiceClient; -import com.google.devtools.cloudprofiler.v2.ExportServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExportServiceSettings exportServiceSettings = - ExportServiceSettings.newHttpJsonBuilder().build(); - ExportServiceClient exportServiceClient = ExportServiceClient.create(exportServiceSettings); - } -} -// [END cloudprofiler_v2_generated_ExportService_Create_SetCredentialsProvider1_sync] diff --git a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateUseHttpJsonTransport.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..11a6c745665a --- /dev/null +++ b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/exportservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.cloudprofiler.v2.samples; + +// [START cloudprofiler_v2_generated_ExportService_Create_UseHttpJsonTransport_sync] +import com.google.devtools.cloudprofiler.v2.ExportServiceClient; +import com.google.devtools.cloudprofiler.v2.ExportServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExportServiceSettings exportServiceSettings = + ExportServiceSettings.newHttpJsonBuilder().build(); + ExportServiceClient exportServiceClient = ExportServiceClient.create(exportServiceSettings); + } +} +// [END cloudprofiler_v2_generated_ExportService_Create_UseHttpJsonTransport_sync] diff --git a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6664b466c644..000000000000 --- a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.devtools.cloudprofiler.v2.samples; - -// [START cloudprofiler_v2_generated_ProfilerService_Create_SetCredentialsProvider1_sync] -import com.google.devtools.cloudprofiler.v2.ProfilerServiceClient; -import com.google.devtools.cloudprofiler.v2.ProfilerServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProfilerServiceSettings profilerServiceSettings = - ProfilerServiceSettings.newHttpJsonBuilder().build(); - ProfilerServiceClient profilerServiceClient = - ProfilerServiceClient.create(profilerServiceSettings); - } -} -// [END cloudprofiler_v2_generated_ProfilerService_Create_SetCredentialsProvider1_sync] diff --git a/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateUseHttpJsonTransport.java b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c94e8bc6fb6c --- /dev/null +++ b/java-profiler/samples/snippets/generated/com/google/devtools/cloudprofiler/v2/profilerservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.cloudprofiler.v2.samples; + +// [START cloudprofiler_v2_generated_ProfilerService_Create_UseHttpJsonTransport_sync] +import com.google.devtools.cloudprofiler.v2.ProfilerServiceClient; +import com.google.devtools.cloudprofiler.v2.ProfilerServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProfilerServiceSettings profilerServiceSettings = + ProfilerServiceSettings.newHttpJsonBuilder().build(); + ProfilerServiceClient profilerServiceClient = + ProfilerServiceClient.create(profilerServiceSettings); + } +} +// [END cloudprofiler_v2_generated_ProfilerService_Create_UseHttpJsonTransport_sync] diff --git a/java-publicca/README.md b/java-publicca/README.md index 0ba2bc209042..a945b13b4d72 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1/reflect-config.json b/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1/reflect-config.json index 3946b7c946fd..988200489dc3 100644 --- a/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1/reflect-config.json +++ b/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1beta1/reflect-config.json b/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1beta1/reflect-config.json index 992f5b7523bb..3fa6f287d2fe 100644 --- a/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1beta1/reflect-config.json +++ b/java-publicca/google-cloud-publicca/src/main/resources/META-INF/native-image/com.google.cloud.security.publicca.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cce0b032f6d3..000000000000 --- a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.security.publicca.v1.samples; - -// [START publicca_v1_generated_PublicCertificateAuthorityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.security.publicca.v1.PublicCertificateAuthorityServiceClient; -import com.google.cloud.security.publicca.v1.PublicCertificateAuthorityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings = - PublicCertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); - PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = - PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings); - } -} -// [END publicca_v1_generated_PublicCertificateAuthorityService_Create_SetCredentialsProvider1_sync] diff --git a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..003360a8402c --- /dev/null +++ b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.security.publicca.v1.samples; + +// [START publicca_v1_generated_PublicCertificateAuthorityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.security.publicca.v1.PublicCertificateAuthorityServiceClient; +import com.google.cloud.security.publicca.v1.PublicCertificateAuthorityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings = + PublicCertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = + PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings); + } +} +// [END publicca_v1_generated_PublicCertificateAuthorityService_Create_UseHttpJsonTransport_sync] diff --git a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 70a9d5e0e2a7..000000000000 --- a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.security.publicca.v1beta1.samples; - -// [START publicca_v1beta1_generated_PublicCertificateAuthorityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityServiceClient; -import com.google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings = - PublicCertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); - PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = - PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings); - } -} -// [END publicca_v1beta1_generated_PublicCertificateAuthorityService_Create_SetCredentialsProvider1_sync] diff --git a/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..42e080af0dff --- /dev/null +++ b/java-publicca/samples/snippets/generated/com/google/cloud/security/publicca/v1beta1/publiccertificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.security.publicca.v1beta1.samples; + +// [START publicca_v1beta1_generated_PublicCertificateAuthorityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityServiceClient; +import com.google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings = + PublicCertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = + PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings); + } +} +// [END publicca_v1beta1_generated_PublicCertificateAuthorityService_Create_UseHttpJsonTransport_sync] diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 0b469b746ba3..d979313502d0 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.35.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/resources/META-INF/native-image/com.google.cloud.rapidmigrationassessment.v1/reflect-config.json b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/resources/META-INF/native-image/com.google.cloud.rapidmigrationassessment.v1/reflect-config.json index 002f8b6efab2..4e648e35370d 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/resources/META-INF/native-image/com.google.cloud.rapidmigrationassessment.v1/reflect-config.json +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/resources/META-INF/native-image/com.google.cloud.rapidmigrationassessment.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateSetCredentialsProvider1.java b/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2f7f66bc620c..000000000000 --- a/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.rapidmigrationassessment.v1.samples; - -// [START rapidmigrationassessment_v1_generated_RapidMigrationAssessment_Create_SetCredentialsProvider1_sync] -import com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient; -import com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RapidMigrationAssessmentSettings rapidMigrationAssessmentSettings = - RapidMigrationAssessmentSettings.newHttpJsonBuilder().build(); - RapidMigrationAssessmentClient rapidMigrationAssessmentClient = - RapidMigrationAssessmentClient.create(rapidMigrationAssessmentSettings); - } -} -// [END rapidmigrationassessment_v1_generated_RapidMigrationAssessment_Create_SetCredentialsProvider1_sync] diff --git a/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateUseHttpJsonTransport.java b/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9d3c975a3d6d --- /dev/null +++ b/java-rapidmigrationassessment/samples/snippets/generated/com/google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.rapidmigrationassessment.v1.samples; + +// [START rapidmigrationassessment_v1_generated_RapidMigrationAssessment_Create_UseHttpJsonTransport_sync] +import com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient; +import com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RapidMigrationAssessmentSettings rapidMigrationAssessmentSettings = + RapidMigrationAssessmentSettings.newHttpJsonBuilder().build(); + RapidMigrationAssessmentClient rapidMigrationAssessmentClient = + RapidMigrationAssessmentClient.create(rapidMigrationAssessmentSettings); + } +} +// [END rapidmigrationassessment_v1_generated_RapidMigrationAssessment_Create_UseHttpJsonTransport_sync] diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 4935d7443d49..ad65ab347976 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.49.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json index 867d64eae8ca..79c57d8c5eb4 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json index 0a29baf1144a..560e04d3fd0c 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5aabac7446ef..000000000000 --- a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recaptchaenterprise.v1beta1.samples; - -// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client; -import com.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = - RecaptchaEnterpriseServiceV1Beta1Settings.newHttpJsonBuilder().build(); - RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = - RecaptchaEnterpriseServiceV1Beta1Client.create(recaptchaEnterpriseServiceV1Beta1Settings); - } -} -// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateUseHttpJsonTransport.java b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b523631600b1 --- /dev/null +++ b/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recaptchaenterprise.v1beta1.samples; + +// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client; +import com.google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = + RecaptchaEnterpriseServiceV1Beta1Settings.newHttpJsonBuilder().build(); + RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = + RecaptchaEnterpriseServiceV1Beta1Client.create(recaptchaEnterpriseServiceV1Beta1Settings); + } +} +// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_Create_UseHttpJsonTransport_sync] diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 715aa604dc97..f65d500e251c 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -41,7 +41,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -62,7 +61,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.59.0" ``` - ## Authentication @@ -203,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/resources/META-INF/native-image/com.google.cloud.recommendationengine.v1beta1/reflect-config.json b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/resources/META-INF/native-image/com.google.cloud.recommendationengine.v1beta1/reflect-config.json index 4dbf60d46783..94ebd22a5c9b 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/resources/META-INF/native-image/com.google.cloud.recommendationengine.v1beta1/reflect-config.json +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/resources/META-INF/native-image/com.google.cloud.recommendationengine.v1beta1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource", "queryAllDeclaredConstructors": true, diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 19d9ee101cf7..000000000000 --- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommendationengine.v1beta1.samples; - -// [START recommendationengine_v1beta1_generated_CatalogService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; -import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CatalogServiceSettings catalogServiceSettings = - CatalogServiceSettings.newHttpJsonBuilder().build(); - CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); - } -} -// [END recommendationengine_v1beta1_generated_CatalogService_Create_SetCredentialsProvider1_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f1eb34189a4c --- /dev/null +++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_CatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newHttpJsonBuilder().build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_CatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 09f2f31a4daf..000000000000 --- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommendationengine.v1beta1.samples; - -// [START recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; -import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = - PredictionApiKeyRegistrySettings.newHttpJsonBuilder().build(); - PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = - PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); - } -} -// [END recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_Create_SetCredentialsProvider1_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateUseHttpJsonTransport.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..828d61c8c6b7 --- /dev/null +++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistry/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = + PredictionApiKeyRegistrySettings.newHttpJsonBuilder().build(); + PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); + } +} +// [END recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_Create_UseHttpJsonTransport_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 19bd10f17178..000000000000 --- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommendationengine.v1beta1.samples; - -// [START recommendationengine_v1beta1_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; -import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END recommendationengine_v1beta1_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..75b8f14b8e18 --- /dev/null +++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c8b952a93922..000000000000 --- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommendationengine.v1beta1.samples; - -// [START recommendationengine_v1beta1_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; -import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END recommendationengine_v1beta1_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..177337e89ebd --- /dev/null +++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-recommender/README.md b/java-recommender/README.md index b71f5c0fd235..581d2ba8103b 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1/reflect-config.json b/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1/reflect-config.json index e7ef50ef739e..0899280fc66f 100644 --- a/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1/reflect-config.json +++ b/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.recommender.v1.CostProjection", "queryAllDeclaredConstructors": true, diff --git a/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1beta1/reflect-config.json b/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1beta1/reflect-config.json index 58c09af42e11..6e9b6b8bec64 100644 --- a/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1beta1/reflect-config.json +++ b/java-recommender/google-cloud-recommender/src/main/resources/META-INF/native-image/com.google.cloud.recommender.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.recommender.v1beta1.CostProjection", "queryAllDeclaredConstructors": true, diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateSetCredentialsProvider1.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index acedf819523f..000000000000 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommender.v1.samples; - -// [START recommender_v1_generated_Recommender_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommender.v1.RecommenderClient; -import com.google.cloud.recommender.v1.RecommenderSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build(); - RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); - } -} -// [END recommender_v1_generated_Recommender_Create_SetCredentialsProvider1_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateUseHttpJsonTransport.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f3666a952bac --- /dev/null +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommender/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommender.v1.samples; + +// [START recommender_v1_generated_Recommender_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommender.v1.RecommenderClient; +import com.google.cloud.recommender.v1.RecommenderSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build(); + RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); + } +} +// [END recommender_v1_generated_Recommender_Create_UseHttpJsonTransport_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateSetCredentialsProvider1.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8b241f3c4825..000000000000 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.recommender.v1beta1.samples; - -// [START recommender_v1beta1_generated_Recommender_Create_SetCredentialsProvider1_sync] -import com.google.cloud.recommender.v1beta1.RecommenderClient; -import com.google.cloud.recommender.v1beta1.RecommenderSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build(); - RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); - } -} -// [END recommender_v1beta1_generated_Recommender_Create_SetCredentialsProvider1_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateUseHttpJsonTransport.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2f770199b872 --- /dev/null +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommender/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommender.v1beta1.samples; + +// [START recommender_v1beta1_generated_Recommender_Create_UseHttpJsonTransport_sync] +import com.google.cloud.recommender.v1beta1.RecommenderClient; +import com.google.cloud.recommender.v1beta1.RecommenderSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommenderSettings recommenderSettings = RecommenderSettings.newHttpJsonBuilder().build(); + RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); + } +} +// [END recommender_v1beta1_generated_Recommender_Create_UseHttpJsonTransport_sync] diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index eb07ee7de6fc..41774f839398 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.24.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json index 8e4c968f4e7a..8d392a4568a7 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json index b4c5a0273123..587fb56e0af4 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c456880cea03..000000000000 --- a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.redis.cluster.v1.samples; - -// [START redis_v1_generated_CloudRedisCluster_Create_SetCredentialsProvider1_sync] -import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; -import com.google.cloud.redis.cluster.v1.CloudRedisClusterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudRedisClusterSettings cloudRedisClusterSettings = - CloudRedisClusterSettings.newHttpJsonBuilder().build(); - CloudRedisClusterClient cloudRedisClusterClient = - CloudRedisClusterClient.create(cloudRedisClusterSettings); - } -} -// [END redis_v1_generated_CloudRedisCluster_Create_SetCredentialsProvider1_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..04ff1da4a0ca --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_Create_UseHttpJsonTransport_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudRedisClusterSettings cloudRedisClusterSettings = + CloudRedisClusterSettings.newHttpJsonBuilder().build(); + CloudRedisClusterClient cloudRedisClusterClient = + CloudRedisClusterClient.create(cloudRedisClusterSettings); + } +} +// [END redis_v1_generated_CloudRedisCluster_Create_UseHttpJsonTransport_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 615eb4d6ce93..000000000000 --- a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.redis.cluster.v1beta1.samples; - -// [START redis_v1beta1_generated_CloudRedisCluster_Create_SetCredentialsProvider1_sync] -import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; -import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudRedisClusterSettings cloudRedisClusterSettings = - CloudRedisClusterSettings.newHttpJsonBuilder().build(); - CloudRedisClusterClient cloudRedisClusterClient = - CloudRedisClusterClient.create(cloudRedisClusterSettings); - } -} -// [END redis_v1beta1_generated_CloudRedisCluster_Create_SetCredentialsProvider1_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e4dde867510b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_Create_UseHttpJsonTransport_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudRedisClusterSettings cloudRedisClusterSettings = + CloudRedisClusterSettings.newHttpJsonBuilder().build(); + CloudRedisClusterClient cloudRedisClusterClient = + CloudRedisClusterClient.create(cloudRedisClusterSettings); + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_Create_UseHttpJsonTransport_sync] diff --git a/java-redis/README.md b/java-redis/README.md index 0428b80e010b..762af76aeda6 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.55.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1/reflect-config.json b/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1/reflect-config.json index f8f4ccdb4af6..bdb1048bc790 100644 --- a/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1/reflect-config.json +++ b/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1beta1/reflect-config.json b/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1beta1/reflect-config.json index 117c9b06a34d..730dab76983b 100644 --- a/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1beta1/reflect-config.json +++ b/java-redis/google-cloud-redis/src/main/resources/META-INF/native-image/com.google.cloud.redis.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.v1beta1.CreateInstanceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateSetCredentialsProvider1.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 001ee0caef96..000000000000 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.redis.v1.samples; - -// [START redis_v1_generated_CloudRedis_Create_SetCredentialsProvider1_sync] -import com.google.cloud.redis.v1.CloudRedisClient; -import com.google.cloud.redis.v1.CloudRedisSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newHttpJsonBuilder().build(); - CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); - } -} -// [END redis_v1_generated_CloudRedis_Create_SetCredentialsProvider1_sync] diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateUseHttpJsonTransport.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2d5ab951a102 --- /dev/null +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredis/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.v1.samples; + +// [START redis_v1_generated_CloudRedis_Create_UseHttpJsonTransport_sync] +import com.google.cloud.redis.v1.CloudRedisClient; +import com.google.cloud.redis.v1.CloudRedisSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newHttpJsonBuilder().build(); + CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); + } +} +// [END redis_v1_generated_CloudRedis_Create_UseHttpJsonTransport_sync] diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 804389bf6701..000000000000 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.redis.v1beta1.samples; - -// [START redis_v1beta1_generated_CloudRedis_Create_SetCredentialsProvider1_sync] -import com.google.cloud.redis.v1beta1.CloudRedisClient; -import com.google.cloud.redis.v1beta1.CloudRedisSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newHttpJsonBuilder().build(); - CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); - } -} -// [END redis_v1beta1_generated_CloudRedis_Create_SetCredentialsProvider1_sync] diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateUseHttpJsonTransport.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..13d6330aef5b --- /dev/null +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedis_Create_UseHttpJsonTransport_sync] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CloudRedisSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newHttpJsonBuilder().build(); + CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); + } +} +// [END redis_v1beta1_generated_CloudRedis_Create_UseHttpJsonTransport_sync] diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index d4c44ebe8941..ddd19b37eb87 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resource-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resource-settings/google-cloud-resource-settings/src/main/resources/META-INF/native-image/com.google.cloud.resourcesettings.v1/reflect-config.json b/java-resource-settings/google-cloud-resource-settings/src/main/resources/META-INF/native-image/com.google.cloud.resourcesettings.v1/reflect-config.json index 872e0a1a89ec..60e0561e4466 100644 --- a/java-resource-settings/google-cloud-resource-settings/src/main/resources/META-INF/native-image/com.google.cloud.resourcesettings.v1/reflect-config.json +++ b/java-resource-settings/google-cloud-resource-settings/src/main/resources/META-INF/native-image/com.google.cloud.resourcesettings.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.resourcesettings.v1.GetSettingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateSetCredentialsProvider1.java b/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bda4b267fc3c..000000000000 --- a/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcesettings.v1.samples; - -// [START resourcesettings_v1_generated_ResourceSettingsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClient; -import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ResourceSettingsServiceSettings resourceSettingsServiceSettings = - ResourceSettingsServiceSettings.newHttpJsonBuilder().build(); - ResourceSettingsServiceClient resourceSettingsServiceClient = - ResourceSettingsServiceClient.create(resourceSettingsServiceSettings); - } -} -// [END resourcesettings_v1_generated_ResourceSettingsService_Create_SetCredentialsProvider1_sync] diff --git a/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..df4c399afc21 --- /dev/null +++ b/java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcesettings.v1.samples; + +// [START resourcesettings_v1_generated_ResourceSettingsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClient; +import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ResourceSettingsServiceSettings resourceSettingsServiceSettings = + ResourceSettingsServiceSettings.newHttpJsonBuilder().build(); + ResourceSettingsServiceClient resourceSettingsServiceClient = + ResourceSettingsServiceClient.create(resourceSettingsServiceSettings); + } +} +// [END resourcesettings_v1_generated_ResourceSettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 70f1e94e222d..a0a53e8482dd 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.54.0" ``` - ## Authentication @@ -337,7 +335,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.resourcemanager.v3/reflect-config.json b/java-resourcemanager/google-cloud-resourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.resourcemanager.v3/reflect-config.json index b81515e03cc2..0e54cf8958bf 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.resourcemanager.v3/reflect-config.json +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.resourcemanager.v3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.resourcemanager.v3.CreateFolderMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fffdc7f7dc95..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_Folders_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.FoldersClient; -import com.google.cloud.resourcemanager.v3.FoldersSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FoldersSettings foldersSettings = FoldersSettings.newHttpJsonBuilder().build(); - FoldersClient foldersClient = FoldersClient.create(foldersSettings); - } -} -// [END cloudresourcemanager_v3_generated_Folders_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f4a1903ef76b --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/folders/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_Folders_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.FoldersClient; +import com.google.cloud.resourcemanager.v3.FoldersSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FoldersSettings foldersSettings = FoldersSettings.newHttpJsonBuilder().build(); + FoldersClient foldersClient = FoldersClient.create(foldersSettings); + } +} +// [END cloudresourcemanager_v3_generated_Folders_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8799162ea9fa..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_Organizations_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.OrganizationsClient; -import com.google.cloud.resourcemanager.v3.OrganizationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OrganizationsSettings organizationsSettings = - OrganizationsSettings.newHttpJsonBuilder().build(); - OrganizationsClient organizationsClient = OrganizationsClient.create(organizationsSettings); - } -} -// [END cloudresourcemanager_v3_generated_Organizations_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f347c356642e --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/organizations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_Organizations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.OrganizationsClient; +import com.google.cloud.resourcemanager.v3.OrganizationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationsSettings organizationsSettings = + OrganizationsSettings.newHttpJsonBuilder().build(); + OrganizationsClient organizationsClient = OrganizationsClient.create(organizationsSettings); + } +} +// [END cloudresourcemanager_v3_generated_Organizations_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 909a937816c9..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_Projects_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.ProjectsClient; -import com.google.cloud.resourcemanager.v3.ProjectsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectsSettings projectsSettings = ProjectsSettings.newHttpJsonBuilder().build(); - ProjectsClient projectsClient = ProjectsClient.create(projectsSettings); - } -} -// [END cloudresourcemanager_v3_generated_Projects_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3b967242d439 --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/projects/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_Projects_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.ProjectsClient; +import com.google.cloud.resourcemanager.v3.ProjectsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectsSettings projectsSettings = ProjectsSettings.newHttpJsonBuilder().build(); + ProjectsClient projectsClient = ProjectsClient.create(projectsSettings); + } +} +// [END cloudresourcemanager_v3_generated_Projects_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 30c0ff09e15d..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_TagBindings_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.TagBindingsClient; -import com.google.cloud.resourcemanager.v3.TagBindingsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TagBindingsSettings tagBindingsSettings = TagBindingsSettings.newHttpJsonBuilder().build(); - TagBindingsClient tagBindingsClient = TagBindingsClient.create(tagBindingsSettings); - } -} -// [END cloudresourcemanager_v3_generated_TagBindings_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4b60b79c83df --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagbindings/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_TagBindings_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.TagBindingsClient; +import com.google.cloud.resourcemanager.v3.TagBindingsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TagBindingsSettings tagBindingsSettings = TagBindingsSettings.newHttpJsonBuilder().build(); + TagBindingsClient tagBindingsClient = TagBindingsClient.create(tagBindingsSettings); + } +} +// [END cloudresourcemanager_v3_generated_TagBindings_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 75b6faeb7771..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_TagHolds_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.TagHoldsClient; -import com.google.cloud.resourcemanager.v3.TagHoldsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TagHoldsSettings tagHoldsSettings = TagHoldsSettings.newHttpJsonBuilder().build(); - TagHoldsClient tagHoldsClient = TagHoldsClient.create(tagHoldsSettings); - } -} -// [END cloudresourcemanager_v3_generated_TagHolds_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0c1785b1ec35 --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagholds/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_TagHolds_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.TagHoldsClient; +import com.google.cloud.resourcemanager.v3.TagHoldsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TagHoldsSettings tagHoldsSettings = TagHoldsSettings.newHttpJsonBuilder().build(); + TagHoldsClient tagHoldsClient = TagHoldsClient.create(tagHoldsSettings); + } +} +// [END cloudresourcemanager_v3_generated_TagHolds_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 414228904a3e..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_TagKeys_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.TagKeysClient; -import com.google.cloud.resourcemanager.v3.TagKeysSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TagKeysSettings tagKeysSettings = TagKeysSettings.newHttpJsonBuilder().build(); - TagKeysClient tagKeysClient = TagKeysClient.create(tagKeysSettings); - } -} -// [END cloudresourcemanager_v3_generated_TagKeys_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5b5e33234fee --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagkeys/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_TagKeys_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.TagKeysClient; +import com.google.cloud.resourcemanager.v3.TagKeysSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TagKeysSettings tagKeysSettings = TagKeysSettings.newHttpJsonBuilder().build(); + TagKeysClient tagKeysClient = TagKeysClient.create(tagKeysSettings); + } +} +// [END cloudresourcemanager_v3_generated_TagKeys_Create_UseHttpJsonTransport_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateSetCredentialsProvider1.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c7b3301903ba..000000000000 --- a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.resourcemanager.v3.samples; - -// [START cloudresourcemanager_v3_generated_TagValues_Create_SetCredentialsProvider1_sync] -import com.google.cloud.resourcemanager.v3.TagValuesClient; -import com.google.cloud.resourcemanager.v3.TagValuesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TagValuesSettings tagValuesSettings = TagValuesSettings.newHttpJsonBuilder().build(); - TagValuesClient tagValuesClient = TagValuesClient.create(tagValuesSettings); - } -} -// [END cloudresourcemanager_v3_generated_TagValues_Create_SetCredentialsProvider1_sync] diff --git a/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateUseHttpJsonTransport.java b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7b7e5269b661 --- /dev/null +++ b/java-resourcemanager/samples/snippets/generated/com/google/cloud/resourcemanager/v3/tagvalues/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.resourcemanager.v3.samples; + +// [START cloudresourcemanager_v3_generated_TagValues_Create_UseHttpJsonTransport_sync] +import com.google.cloud.resourcemanager.v3.TagValuesClient; +import com.google.cloud.resourcemanager.v3.TagValuesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TagValuesSettings tagValuesSettings = TagValuesSettings.newHttpJsonBuilder().build(); + TagValuesClient tagValuesClient = TagValuesClient.create(tagValuesSettings); + } +} +// [END cloudresourcemanager_v3_generated_TagValues_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/README.md b/java-retail/README.md index 3e45d89e38ca..de709f9685b8 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json index 143e1a5d7a63..35eef138a0c1 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json index 937c701d1e8b..f3285fe8a21a 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json index dc7da4b60fb6..5539f45da739 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d305520366a0..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.AnalyticsServiceClient; -import com.google.cloud.retail.v2.AnalyticsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsServiceSettings analyticsServiceSettings = - AnalyticsServiceSettings.newHttpJsonBuilder().build(); - AnalyticsServiceClient analyticsServiceClient = - AnalyticsServiceClient.create(analyticsServiceSettings); - } -} -// [END retail_v2_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f58f92bae030 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/analyticsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.AnalyticsServiceClient; +import com.google.cloud.retail.v2.AnalyticsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsServiceSettings analyticsServiceSettings = + AnalyticsServiceSettings.newHttpJsonBuilder().build(); + AnalyticsServiceClient analyticsServiceClient = + AnalyticsServiceClient.create(analyticsServiceSettings); + } +} +// [END retail_v2_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c5d47a189575..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_CatalogService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.CatalogServiceClient; -import com.google.cloud.retail.v2.CatalogServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CatalogServiceSettings catalogServiceSettings = - CatalogServiceSettings.newHttpJsonBuilder().build(); - CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); - } -} -// [END retail_v2_generated_CatalogService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b94066927e3a --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/catalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_CatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.CatalogServiceClient; +import com.google.cloud.retail.v2.CatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newHttpJsonBuilder().build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END retail_v2_generated_CatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fac944b334cb..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.CompletionServiceClient; -import com.google.cloud.retail.v2.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END retail_v2_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..902fb1143b15 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.CompletionServiceClient; +import com.google.cloud.retail.v2.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END retail_v2_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7e1dc83cf010..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.ControlServiceClient; -import com.google.cloud.retail.v2.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END retail_v2_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b50d6e3fae76 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.ControlServiceClient; +import com.google.cloud.retail.v2.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END retail_v2_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9848de4563d1..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.GenerativeQuestionServiceClient; -import com.google.cloud.retail.v2.GenerativeQuestionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GenerativeQuestionServiceSettings generativeQuestionServiceSettings = - GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); - GenerativeQuestionServiceClient generativeQuestionServiceClient = - GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); - } -} -// [END retail_v2_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e8785ead50ae --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.GenerativeQuestionServiceClient; +import com.google.cloud.retail.v2.GenerativeQuestionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GenerativeQuestionServiceSettings generativeQuestionServiceSettings = + GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); + GenerativeQuestionServiceClient generativeQuestionServiceClient = + GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); + } +} +// [END retail_v2_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 773285dacf37..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_ModelService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.ModelServiceClient; -import com.google.cloud.retail.v2.ModelServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); - ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); - } -} -// [END retail_v2_generated_ModelService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0207ddad71d6 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/modelservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ModelService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.ModelServiceClient; +import com.google.cloud.retail.v2.ModelServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); + ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); + } +} +// [END retail_v2_generated_ModelService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9a2b1b4e396f..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.PredictionServiceClient; -import com.google.cloud.retail.v2.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END retail_v2_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..67d6a063c731 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.PredictionServiceClient; +import com.google.cloud.retail.v2.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END retail_v2_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4166be47f13f..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_ProductService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.ProductServiceClient; -import com.google.cloud.retail.v2.ProductServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductServiceSettings productServiceSettings = - ProductServiceSettings.newHttpJsonBuilder().build(); - ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); - } -} -// [END retail_v2_generated_ProductService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c04f02f4d96c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ProductService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.ProductServiceClient; +import com.google.cloud.retail.v2.ProductServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductServiceSettings productServiceSettings = + ProductServiceSettings.newHttpJsonBuilder().build(); + ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); + } +} +// [END retail_v2_generated_ProductService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4d1593f9e69e..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.SearchServiceClient; -import com.google.cloud.retail.v2.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END retail_v2_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..596c8e080711 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.SearchServiceClient; +import com.google.cloud.retail.v2.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END retail_v2_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1062fd4372df..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.ServingConfigServiceClient; -import com.google.cloud.retail.v2.ServingConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServingConfigServiceSettings servingConfigServiceSettings = - ServingConfigServiceSettings.newHttpJsonBuilder().build(); - ServingConfigServiceClient servingConfigServiceClient = - ServingConfigServiceClient.create(servingConfigServiceSettings); - } -} -// [END retail_v2_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f91d2a7df65f --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.ServingConfigServiceClient; +import com.google.cloud.retail.v2.ServingConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END retail_v2_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 164203ee364a..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2.samples; - -// [START retail_v2_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2.UserEventServiceClient; -import com.google.cloud.retail.v2.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END retail_v2_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1bd70418c1bc --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.UserEventServiceClient; +import com.google.cloud.retail.v2.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END retail_v2_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index af8c143aeb41..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.AnalyticsServiceClient; -import com.google.cloud.retail.v2alpha.AnalyticsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsServiceSettings analyticsServiceSettings = - AnalyticsServiceSettings.newHttpJsonBuilder().build(); - AnalyticsServiceClient analyticsServiceClient = - AnalyticsServiceClient.create(analyticsServiceSettings); - } -} -// [END retail_v2alpha_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..004c604d3c65 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/analyticsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.AnalyticsServiceClient; +import com.google.cloud.retail.v2alpha.AnalyticsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsServiceSettings analyticsServiceSettings = + AnalyticsServiceSettings.newHttpJsonBuilder().build(); + AnalyticsServiceClient analyticsServiceClient = + AnalyticsServiceClient.create(analyticsServiceSettings); + } +} +// [END retail_v2alpha_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5e9a32639df9..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.BranchServiceClient; -import com.google.cloud.retail.v2alpha.BranchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BranchServiceSettings branchServiceSettings = - BranchServiceSettings.newHttpJsonBuilder().build(); - BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings); - } -} -// [END retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d23296e00757 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceSettings branchServiceSettings = + BranchServiceSettings.newHttpJsonBuilder().build(); + BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings); + } +} +// [END retail_v2alpha_generated_BranchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 258761b17c84..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_CatalogService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.CatalogServiceClient; -import com.google.cloud.retail.v2alpha.CatalogServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CatalogServiceSettings catalogServiceSettings = - CatalogServiceSettings.newHttpJsonBuilder().build(); - CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); - } -} -// [END retail_v2alpha_generated_CatalogService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..138941d1f1f5 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/catalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_CatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.CatalogServiceClient; +import com.google.cloud.retail.v2alpha.CatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newHttpJsonBuilder().build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END retail_v2alpha_generated_CatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8503cb9d4ff9..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.CompletionServiceClient; -import com.google.cloud.retail.v2alpha.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END retail_v2alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4030abf39bec --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.CompletionServiceClient; +import com.google.cloud.retail.v2alpha.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END retail_v2alpha_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1b3bc4903936..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.ControlServiceClient; -import com.google.cloud.retail.v2alpha.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END retail_v2alpha_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..10c5dabeb8b4 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.ControlServiceClient; +import com.google.cloud.retail.v2alpha.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END retail_v2alpha_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 31aac7edfc35..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.GenerativeQuestionServiceClient; -import com.google.cloud.retail.v2alpha.GenerativeQuestionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GenerativeQuestionServiceSettings generativeQuestionServiceSettings = - GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); - GenerativeQuestionServiceClient generativeQuestionServiceClient = - GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); - } -} -// [END retail_v2alpha_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fef5045d7f67 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.GenerativeQuestionServiceClient; +import com.google.cloud.retail.v2alpha.GenerativeQuestionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GenerativeQuestionServiceSettings generativeQuestionServiceSettings = + GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); + GenerativeQuestionServiceClient generativeQuestionServiceClient = + GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); + } +} +// [END retail_v2alpha_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 49d138b8eb63..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_MerchantCenterAccountLinkService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceClient; -import com.google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - MerchantCenterAccountLinkServiceSettings merchantCenterAccountLinkServiceSettings = - MerchantCenterAccountLinkServiceSettings.newHttpJsonBuilder().build(); - MerchantCenterAccountLinkServiceClient merchantCenterAccountLinkServiceClient = - MerchantCenterAccountLinkServiceClient.create(merchantCenterAccountLinkServiceSettings); - } -} -// [END retail_v2alpha_generated_MerchantCenterAccountLinkService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a620b27efb93 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/merchantcenteraccountlinkservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_MerchantCenterAccountLinkService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceClient; +import com.google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MerchantCenterAccountLinkServiceSettings merchantCenterAccountLinkServiceSettings = + MerchantCenterAccountLinkServiceSettings.newHttpJsonBuilder().build(); + MerchantCenterAccountLinkServiceClient merchantCenterAccountLinkServiceClient = + MerchantCenterAccountLinkServiceClient.create(merchantCenterAccountLinkServiceSettings); + } +} +// [END retail_v2alpha_generated_MerchantCenterAccountLinkService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9f3ff29655cf..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_ModelService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.ModelServiceClient; -import com.google.cloud.retail.v2alpha.ModelServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); - ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); - } -} -// [END retail_v2alpha_generated_ModelService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3b09aa2f8c8c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/modelservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ModelService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.ModelServiceClient; +import com.google.cloud.retail.v2alpha.ModelServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); + ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); + } +} +// [END retail_v2alpha_generated_ModelService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b8b41611c09f..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.PredictionServiceClient; -import com.google.cloud.retail.v2alpha.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END retail_v2alpha_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e68503af3016 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.PredictionServiceClient; +import com.google.cloud.retail.v2alpha.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END retail_v2alpha_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 73416a8f2361..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_ProductService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.ProductServiceClient; -import com.google.cloud.retail.v2alpha.ProductServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductServiceSettings productServiceSettings = - ProductServiceSettings.newHttpJsonBuilder().build(); - ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); - } -} -// [END retail_v2alpha_generated_ProductService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..06e1ba7244fe --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/productservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProductService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.ProductServiceClient; +import com.google.cloud.retail.v2alpha.ProductServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductServiceSettings productServiceSettings = + ProductServiceSettings.newHttpJsonBuilder().build(); + ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); + } +} +// [END retail_v2alpha_generated_ProductService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1ccb6159454d..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.ProjectServiceClient; -import com.google.cloud.retail.v2alpha.ProjectServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectServiceSettings projectServiceSettings = - ProjectServiceSettings.newHttpJsonBuilder().build(); - ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); - } -} -// [END retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..61878671e1c4 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.ProjectServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END retail_v2alpha_generated_ProjectService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0ac00f2243d2..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.SearchServiceClient; -import com.google.cloud.retail.v2alpha.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END retail_v2alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..43891e2a3121 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.SearchServiceClient; +import com.google.cloud.retail.v2alpha.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END retail_v2alpha_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a2a9d3943862..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.ServingConfigServiceClient; -import com.google.cloud.retail.v2alpha.ServingConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServingConfigServiceSettings servingConfigServiceSettings = - ServingConfigServiceSettings.newHttpJsonBuilder().build(); - ServingConfigServiceClient servingConfigServiceClient = - ServingConfigServiceClient.create(servingConfigServiceSettings); - } -} -// [END retail_v2alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e584141a2495 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.ServingConfigServiceClient; +import com.google.cloud.retail.v2alpha.ServingConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END retail_v2alpha_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1ef8cf4c81b1..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2alpha.samples; - -// [START retail_v2alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2alpha.UserEventServiceClient; -import com.google.cloud.retail.v2alpha.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END retail_v2alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a116b2940b04 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2alpha.UserEventServiceClient; +import com.google.cloud.retail.v2alpha.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END retail_v2alpha_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index dc1f4f96b1c8..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.AnalyticsServiceClient; -import com.google.cloud.retail.v2beta.AnalyticsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AnalyticsServiceSettings analyticsServiceSettings = - AnalyticsServiceSettings.newHttpJsonBuilder().build(); - AnalyticsServiceClient analyticsServiceClient = - AnalyticsServiceClient.create(analyticsServiceSettings); - } -} -// [END retail_v2beta_generated_AnalyticsService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8b1a6ace1b47 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/analyticsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.AnalyticsServiceClient; +import com.google.cloud.retail.v2beta.AnalyticsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AnalyticsServiceSettings analyticsServiceSettings = + AnalyticsServiceSettings.newHttpJsonBuilder().build(); + AnalyticsServiceClient analyticsServiceClient = + AnalyticsServiceClient.create(analyticsServiceSettings); + } +} +// [END retail_v2beta_generated_AnalyticsService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 45059d7cb99f..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_CatalogService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.CatalogServiceClient; -import com.google.cloud.retail.v2beta.CatalogServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CatalogServiceSettings catalogServiceSettings = - CatalogServiceSettings.newHttpJsonBuilder().build(); - CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); - } -} -// [END retail_v2beta_generated_CatalogService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4c96735acb09 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/catalogservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_CatalogService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.CatalogServiceClient; +import com.google.cloud.retail.v2beta.CatalogServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newHttpJsonBuilder().build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END retail_v2beta_generated_CatalogService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1cff5e1a5240..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_CompletionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.CompletionServiceClient; -import com.google.cloud.retail.v2beta.CompletionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionServiceSettings completionServiceSettings = - CompletionServiceSettings.newHttpJsonBuilder().build(); - CompletionServiceClient completionServiceClient = - CompletionServiceClient.create(completionServiceSettings); - } -} -// [END retail_v2beta_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..799f6a737a65 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_CompletionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.CompletionServiceClient; +import com.google.cloud.retail.v2beta.CompletionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END retail_v2beta_generated_CompletionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 196873e7b39a..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_ControlService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.ControlServiceClient; -import com.google.cloud.retail.v2beta.ControlServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ControlServiceSettings controlServiceSettings = - ControlServiceSettings.newHttpJsonBuilder().build(); - ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); - } -} -// [END retail_v2beta_generated_ControlService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..195441f79234 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/controlservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ControlService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ControlServiceClient; +import com.google.cloud.retail.v2beta.ControlServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ControlServiceSettings controlServiceSettings = + ControlServiceSettings.newHttpJsonBuilder().build(); + ControlServiceClient controlServiceClient = ControlServiceClient.create(controlServiceSettings); + } +} +// [END retail_v2beta_generated_ControlService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 71e371a065b0..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.GenerativeQuestionServiceClient; -import com.google.cloud.retail.v2beta.GenerativeQuestionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - GenerativeQuestionServiceSettings generativeQuestionServiceSettings = - GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); - GenerativeQuestionServiceClient generativeQuestionServiceClient = - GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); - } -} -// [END retail_v2beta_generated_GenerativeQuestionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..993e2735f8c3 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/generativequestionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.GenerativeQuestionServiceClient; +import com.google.cloud.retail.v2beta.GenerativeQuestionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GenerativeQuestionServiceSettings generativeQuestionServiceSettings = + GenerativeQuestionServiceSettings.newHttpJsonBuilder().build(); + GenerativeQuestionServiceClient generativeQuestionServiceClient = + GenerativeQuestionServiceClient.create(generativeQuestionServiceSettings); + } +} +// [END retail_v2beta_generated_GenerativeQuestionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 05d8ca814cf0..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_ModelService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.ModelServiceClient; -import com.google.cloud.retail.v2beta.ModelServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); - ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); - } -} -// [END retail_v2beta_generated_ModelService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0cabcc6ddb69 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/modelservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ModelService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ModelServiceClient; +import com.google.cloud.retail.v2beta.ModelServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ModelServiceSettings modelServiceSettings = ModelServiceSettings.newHttpJsonBuilder().build(); + ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings); + } +} +// [END retail_v2beta_generated_ModelService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b88a59aadc12..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_PredictionService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.PredictionServiceClient; -import com.google.cloud.retail.v2beta.PredictionServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PredictionServiceSettings predictionServiceSettings = - PredictionServiceSettings.newHttpJsonBuilder().build(); - PredictionServiceClient predictionServiceClient = - PredictionServiceClient.create(predictionServiceSettings); - } -} -// [END retail_v2beta_generated_PredictionService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..baa60abf846e --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/predictionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_PredictionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.PredictionServiceClient; +import com.google.cloud.retail.v2beta.PredictionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newHttpJsonBuilder().build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END retail_v2beta_generated_PredictionService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 19f2360ff753..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_ProductService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.ProductServiceClient; -import com.google.cloud.retail.v2beta.ProductServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductServiceSettings productServiceSettings = - ProductServiceSettings.newHttpJsonBuilder().build(); - ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); - } -} -// [END retail_v2beta_generated_ProductService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ce8b9918455c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ProductService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ProductServiceClient; +import com.google.cloud.retail.v2beta.ProductServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductServiceSettings productServiceSettings = + ProductServiceSettings.newHttpJsonBuilder().build(); + ProductServiceClient productServiceClient = ProductServiceClient.create(productServiceSettings); + } +} +// [END retail_v2beta_generated_ProductService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 67a3255b0463..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_ProjectService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.ProjectServiceClient; -import com.google.cloud.retail.v2beta.ProjectServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProjectServiceSettings projectServiceSettings = - ProjectServiceSettings.newHttpJsonBuilder().build(); - ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); - } -} -// [END retail_v2beta_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1df1b4f87e7d --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/projectservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ProjectService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ProjectServiceClient; +import com.google.cloud.retail.v2beta.ProjectServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END retail_v2beta_generated_ProjectService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index af95d55ae9f0..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_SearchService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.SearchServiceClient; -import com.google.cloud.retail.v2beta.SearchServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SearchServiceSettings searchServiceSettings = - SearchServiceSettings.newHttpJsonBuilder().build(); - SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); - } -} -// [END retail_v2beta_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..06239dc67921 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/searchservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_SearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.SearchServiceClient; +import com.google.cloud.retail.v2beta.SearchServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END retail_v2beta_generated_SearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 974cf06ec88b..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.ServingConfigServiceClient; -import com.google.cloud.retail.v2beta.ServingConfigServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServingConfigServiceSettings servingConfigServiceSettings = - ServingConfigServiceSettings.newHttpJsonBuilder().build(); - ServingConfigServiceClient servingConfigServiceClient = - ServingConfigServiceClient.create(servingConfigServiceSettings); - } -} -// [END retail_v2beta_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..42fdd8c144c9 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/servingconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ServingConfigServiceClient; +import com.google.cloud.retail.v2beta.ServingConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END retail_v2beta_generated_ServingConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1fea9d992fdc..000000000000 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.retail.v2beta.samples; - -// [START retail_v2beta_generated_UserEventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.retail.v2beta.UserEventServiceClient; -import com.google.cloud.retail.v2beta.UserEventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserEventServiceSettings userEventServiceSettings = - UserEventServiceSettings.newHttpJsonBuilder().build(); - UserEventServiceClient userEventServiceClient = - UserEventServiceClient.create(userEventServiceSettings); - } -} -// [END retail_v2beta_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..059379e371b3 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/usereventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_UserEventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.UserEventServiceClient; +import com.google.cloud.retail.v2beta.UserEventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END retail_v2beta_generated_UserEventService_Create_UseHttpJsonTransport_sync] diff --git a/java-run/README.md b/java-run/README.md index 4a8ba9083d26..43bf6837f545 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.52.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json index 8f5b7e075138..b97f8b493694 100644 --- a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json +++ b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json @@ -431,6 +431,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b67a5481d656..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Builds_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.BuildsClient; -import com.google.cloud.run.v2.BuildsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BuildsSettings buildsSettings = BuildsSettings.newHttpJsonBuilder().build(); - BuildsClient buildsClient = BuildsClient.create(buildsSettings); - } -} -// [END run_v2_generated_Builds_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5904c7bb66e6 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Builds_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.BuildsClient; +import com.google.cloud.run.v2.BuildsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BuildsSettings buildsSettings = BuildsSettings.newHttpJsonBuilder().build(); + BuildsClient buildsClient = BuildsClient.create(buildsSettings); + } +} +// [END run_v2_generated_Builds_Create_UseHttpJsonTransport_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e6c06e7ccac5..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Executions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.ExecutionsClient; -import com.google.cloud.run.v2.ExecutionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); - ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); - } -} -// [END run_v2_generated_Executions_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..82ae996dc215 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.ExecutionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END run_v2_generated_Executions_Create_UseHttpJsonTransport_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 86e9f2340e11..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Jobs_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.JobsClient; -import com.google.cloud.run.v2.JobsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobsSettings jobsSettings = JobsSettings.newHttpJsonBuilder().build(); - JobsClient jobsClient = JobsClient.create(jobsSettings); - } -} -// [END run_v2_generated_Jobs_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e00844fec236 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.JobsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsSettings jobsSettings = JobsSettings.newHttpJsonBuilder().build(); + JobsClient jobsClient = JobsClient.create(jobsSettings); + } +} +// [END run_v2_generated_Jobs_Create_UseHttpJsonTransport_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 96a0382e7889..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Revisions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.RevisionsClient; -import com.google.cloud.run.v2.RevisionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RevisionsSettings revisionsSettings = RevisionsSettings.newHttpJsonBuilder().build(); - RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); - } -} -// [END run_v2_generated_Revisions_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4dcb97dbb700 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Revisions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.RevisionsClient; +import com.google.cloud.run.v2.RevisionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RevisionsSettings revisionsSettings = RevisionsSettings.newHttpJsonBuilder().build(); + RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); + } +} +// [END run_v2_generated_Revisions_Create_UseHttpJsonTransport_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3cc825f00849..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Services_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.ServicesClient; -import com.google.cloud.run.v2.ServicesSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); - ServicesClient servicesClient = ServicesClient.create(servicesSettings); - } -} -// [END run_v2_generated_Services_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6f22d4c99a20 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Services_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.ServicesClient; +import com.google.cloud.run.v2.ServicesSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); + ServicesClient servicesClient = ServicesClient.create(servicesSettings); + } +} +// [END run_v2_generated_Services_Create_UseHttpJsonTransport_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3050a1943163..000000000000 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.run.v2.samples; - -// [START run_v2_generated_Tasks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.run.v2.TasksClient; -import com.google.cloud.run.v2.TasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TasksSettings tasksSettings = TasksSettings.newHttpJsonBuilder().build(); - TasksClient tasksClient = TasksClient.create(tasksSettings); - } -} -// [END run_v2_generated_Tasks_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateUseHttpJsonTransport.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a9f92c1796c5 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.run.v2.TasksClient; +import com.google.cloud.run.v2.TasksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksSettings tasksSettings = TasksSettings.newHttpJsonBuilder().build(); + TasksClient tasksClient = TasksClient.create(tasksSettings); + } +} +// [END run_v2_generated_Tasks_Create_UseHttpJsonTransport_sync] diff --git a/java-scheduler/README.md b/java-scheduler/README.md index d83d36871012..03994a9192e1 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1/reflect-config.json b/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1/reflect-config.json index 4fc2a248508a..876d9e1e4590 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1/reflect-config.json +++ b/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1beta1/reflect-config.json b/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1beta1/reflect-config.json index 659b8f1d771e..fd1dc4264fb7 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1beta1/reflect-config.json +++ b/java-scheduler/google-cloud-scheduler/src/main/resources/META-INF/native-image/com.google.cloud.scheduler.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 66ad9c380973..000000000000 --- a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.scheduler.v1.samples; - -// [START cloudscheduler_v1_generated_CloudScheduler_Create_SetCredentialsProvider1_sync] -import com.google.cloud.scheduler.v1.CloudSchedulerClient; -import com.google.cloud.scheduler.v1.CloudSchedulerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudSchedulerSettings cloudSchedulerSettings = - CloudSchedulerSettings.newHttpJsonBuilder().build(); - CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create(cloudSchedulerSettings); - } -} -// [END cloudscheduler_v1_generated_CloudScheduler_Create_SetCredentialsProvider1_sync] diff --git a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4d1e9154e431 --- /dev/null +++ b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.scheduler.v1.samples; + +// [START cloudscheduler_v1_generated_CloudScheduler_Create_UseHttpJsonTransport_sync] +import com.google.cloud.scheduler.v1.CloudSchedulerClient; +import com.google.cloud.scheduler.v1.CloudSchedulerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudSchedulerSettings cloudSchedulerSettings = + CloudSchedulerSettings.newHttpJsonBuilder().build(); + CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create(cloudSchedulerSettings); + } +} +// [END cloudscheduler_v1_generated_CloudScheduler_Create_UseHttpJsonTransport_sync] diff --git a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c6220555316c..000000000000 --- a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.scheduler.v1beta1.samples; - -// [START cloudscheduler_v1beta1_generated_CloudScheduler_Create_SetCredentialsProvider1_sync] -import com.google.cloud.scheduler.v1beta1.CloudSchedulerClient; -import com.google.cloud.scheduler.v1beta1.CloudSchedulerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudSchedulerSettings cloudSchedulerSettings = - CloudSchedulerSettings.newHttpJsonBuilder().build(); - CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create(cloudSchedulerSettings); - } -} -// [END cloudscheduler_v1beta1_generated_CloudScheduler_Create_SetCredentialsProvider1_sync] diff --git a/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1ca5d1682007 --- /dev/null +++ b/java-scheduler/samples/snippets/generated/com/google/cloud/scheduler/v1beta1/cloudscheduler/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.scheduler.v1beta1.samples; + +// [START cloudscheduler_v1beta1_generated_CloudScheduler_Create_UseHttpJsonTransport_sync] +import com.google.cloud.scheduler.v1beta1.CloudSchedulerClient; +import com.google.cloud.scheduler.v1beta1.CloudSchedulerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudSchedulerSettings cloudSchedulerSettings = + CloudSchedulerSettings.newHttpJsonBuilder().build(); + CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create(cloudSchedulerSettings); + } +} +// [END cloudscheduler_v1beta1_generated_CloudScheduler_Create_UseHttpJsonTransport_sync] diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 8929b2a2e216..1029b1582ed0 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json index b9ee027d0394..f52d5172e273 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.AccessSecretVersionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1beta2/reflect-config.json b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1beta2/reflect-config.json index c3c9a837de1f..0d5ba3d3ee2e 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1beta2/reflect-config.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1beta2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 48a84f9a7873..000000000000 --- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.secretmanager.v1.samples; - -// [START secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecretManagerServiceSettings secretManagerServiceSettings = - SecretManagerServiceSettings.newHttpJsonBuilder().build(); - SecretManagerServiceClient secretManagerServiceClient = - SecretManagerServiceClient.create(secretManagerServiceSettings); - } -} -// [END secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider1_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8026f8c881e4 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretManagerService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretManagerServiceSettings secretManagerServiceSettings = + SecretManagerServiceSettings.newHttpJsonBuilder().build(); + SecretManagerServiceClient secretManagerServiceClient = + SecretManagerServiceClient.create(secretManagerServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretManagerService_Create_UseHttpJsonTransport_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e6c9694649a5..000000000000 --- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.secretmanager.v1beta2.samples; - -// [START secretmanager_v1beta2_generated_SecretManagerService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.secretmanager.v1beta2.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta2.SecretManagerServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecretManagerServiceSettings secretManagerServiceSettings = - SecretManagerServiceSettings.newHttpJsonBuilder().build(); - SecretManagerServiceClient secretManagerServiceClient = - SecretManagerServiceClient.create(secretManagerServiceSettings); - } -} -// [END secretmanager_v1beta2_generated_SecretManagerService_Create_SetCredentialsProvider1_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a21c5c5763ba --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1beta2/secretmanagerservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1beta2.samples; + +// [START secretmanager_v1beta2_generated_SecretManagerService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.secretmanager.v1beta2.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1beta2.SecretManagerServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretManagerServiceSettings secretManagerServiceSettings = + SecretManagerServiceSettings.newHttpJsonBuilder().build(); + SecretManagerServiceClient secretManagerServiceClient = + SecretManagerServiceClient.create(secretManagerServiceSettings); + } +} +// [END secretmanager_v1beta2_generated_SecretManagerService_Create_UseHttpJsonTransport_sync] diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 782b5cb8c849..05aeb9497304 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.22.0" ``` - ## Authentication @@ -197,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java index def677027dbe..541f0f598faf 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java @@ -43,6 +43,7 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -317,6 +318,104 @@ * * * + *

CreateBranchRule + *

CreateBranchRule creates a branch rule in a given repository. + * + *

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

+ *
    + *
  • createBranchRuleAsync(CreateBranchRuleRequest request) + *

+ *

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

+ *
    + *
  • createBranchRuleAsync(RepositoryName parent, BranchRule branchRule, String branchRuleId) + *

  • createBranchRuleAsync(String parent, BranchRule branchRule, String branchRuleId) + *

+ *

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

+ *
    + *
  • createBranchRuleOperationCallable() + *

  • createBranchRuleCallable() + *

+ * + * + * + *

ListBranchRules + *

ListBranchRules lists branch rules in a given repository. + * + *

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

+ *
    + *
  • listBranchRules(ListBranchRulesRequest request) + *

+ *

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

+ *
    + *
  • listBranchRules(RepositoryName parent) + *

  • listBranchRules(String parent) + *

+ *

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

+ *
    + *
  • listBranchRulesPagedCallable() + *

  • listBranchRulesCallable() + *

+ * + * + * + *

GetBranchRule + *

GetBranchRule gets a branch rule. + * + *

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

+ *
    + *
  • getBranchRule(GetBranchRuleRequest request) + *

+ *

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

+ *
    + *
  • getBranchRule(BranchRuleName name) + *

  • getBranchRule(String name) + *

+ *

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

+ *
    + *
  • getBranchRuleCallable() + *

+ * + * + * + *

UpdateBranchRule + *

UpdateBranchRule updates a branch rule. + * + *

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

+ *
    + *
  • updateBranchRuleAsync(UpdateBranchRuleRequest request) + *

+ *

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

+ *
    + *
  • updateBranchRuleAsync(BranchRule branchRule, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateBranchRuleOperationCallable() + *

  • updateBranchRuleCallable() + *

+ * + * + * + *

DeleteBranchRule + *

DeleteBranchRule deletes a branch rule. + * + *

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

+ *
    + *
  • deleteBranchRuleAsync(DeleteBranchRuleRequest request) + *

+ *

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

+ *
    + *
  • deleteBranchRuleAsync(BranchRuleName name) + *

  • deleteBranchRuleAsync(String name) + *

+ *

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

+ *
    + *
  • deleteBranchRuleOperationCallable() + *

  • deleteBranchRuleCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1196,6 +1295,7 @@ public final ListRepositoriesPagedResponse listRepositories(String parent) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); * for (Repository element : secureSourceManagerClient.listRepositories(request).iterateAll()) { * // doThingsWith(element); @@ -1231,6 +1331,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); * ApiFuture future = * secureSourceManagerClient.listRepositoriesPagedCallable().futureCall(request); @@ -1267,6 +1368,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); * while (true) { * ListRepositoriesResponse response = @@ -2100,7 +2202,7 @@ public final TestIamPermissionsResponse testIamPermissionsRepo( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * CreateBranchRule creates a branch rule in a given repository. * *

Sample code: * @@ -2111,29 +2213,33 @@ public final TestIamPermissionsResponse testIamPermissionsRepo( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : secureSourceManagerClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * BranchRule branchRule = BranchRule.newBuilder().build(); + * String branchRuleId = "branchRuleId-1052663431"; + * BranchRule response = + * secureSourceManagerClient.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent + * @param branchRule + * @param branchRuleId * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture createBranchRuleAsync( + RepositoryName parent, BranchRule branchRule, String branchRuleId) { + CreateBranchRuleRequest request = + CreateBranchRuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBranchRule(branchRule) + .setBranchRuleId(branchRuleId) + .build(); + return createBranchRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * CreateBranchRule creates a branch rule in a given repository. * *

Sample code: * @@ -2144,30 +2250,33 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * secureSourceManagerClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * BranchRule branchRule = BranchRule.newBuilder().build(); + * String branchRuleId = "branchRuleId-1052663431"; + * BranchRule response = + * secureSourceManagerClient.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); * } * } + * + * @param parent + * @param branchRule + * @param branchRuleId + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationFuture createBranchRuleAsync( + String parent, BranchRule branchRule, String branchRuleId) { + CreateBranchRuleRequest request = + CreateBranchRuleRequest.newBuilder() + .setParent(parent) + .setBranchRule(branchRule) + .setBranchRuleId(branchRuleId) + .build(); + return createBranchRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * CreateBranchRule creates a branch rule in a given repository. * *

Sample code: * @@ -2178,36 +2287,27 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateBranchRuleRequest request = + * CreateBranchRuleRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setBranchRule(BranchRule.newBuilder().build()) + * .setBranchRuleId("branchRuleId-1052663431") * .build(); - * while (true) { - * ListLocationsResponse response = - * secureSourceManagerClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * BranchRule response = secureSourceManagerClient.createBranchRuleAsync(request).get(); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final OperationFuture createBranchRuleAsync( + CreateBranchRuleRequest request) { + return createBranchRuleOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * CreateBranchRule creates a branch rule in a given repository. * *

Sample code: * @@ -2218,21 +2318,27 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = secureSourceManagerClient.getLocation(request); + * CreateBranchRuleRequest request = + * CreateBranchRuleRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setBranchRule(BranchRule.newBuilder().build()) + * .setBranchRuleId("branchRuleId-1052663431") + * .build(); + * OperationFuture future = + * secureSourceManagerClient.createBranchRuleOperationCallable().futureCall(request); + * // Do something. + * BranchRule response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final OperationCallable + createBranchRuleOperationCallable() { + return stub.createBranchRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * CreateBranchRule creates a branch rule in a given repository. * *

Sample code: * @@ -2243,23 +2349,26 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = - * secureSourceManagerClient.getLocationCallable().futureCall(request); + * CreateBranchRuleRequest request = + * CreateBranchRuleRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setBranchRule(BranchRule.newBuilder().build()) + * .setBranchRuleId("branchRuleId-1052663431") + * .build(); + * ApiFuture future = + * secureSourceManagerClient.createBranchRuleCallable().futureCall(request); * // Do something. - * Location response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final UnaryCallable createBranchRuleCallable() { + return stub.createBranchRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * ListBranchRules lists branch rules in a given repository. * *

Sample code: * @@ -2270,28 +2379,27 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Policy response = secureSourceManagerClient.setIamPolicy(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (BranchRule element : secureSourceManagerClient.listBranchRules(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final ListBranchRulesPagedResponse listBranchRules(RepositoryName parent) { + ListBranchRulesRequest request = + ListBranchRulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBranchRules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * ListBranchRules lists branch rules in a given repository. * *

Sample code: * @@ -2302,27 +2410,24 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = - * secureSourceManagerClient.setIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (BranchRule element : secureSourceManagerClient.listBranchRules(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final ListBranchRulesPagedResponse listBranchRules(String parent) { + ListBranchRulesRequest request = ListBranchRulesRequest.newBuilder().setParent(parent).build(); + return listBranchRules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * ListBranchRules lists branch rules in a given repository. * *

Sample code: * @@ -2333,26 +2438,28 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * ListBranchRulesRequest request = + * ListBranchRulesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Policy response = secureSourceManagerClient.getIamPolicy(request); + * for (BranchRule element : secureSourceManagerClient.listBranchRules(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final ListBranchRulesPagedResponse listBranchRules(ListBranchRulesRequest request) { + return listBranchRulesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * ListBranchRules lists branch rules in a given repository. * *

Sample code: * @@ -2363,30 +2470,29 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * ListBranchRulesRequest request = + * ListBranchRulesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * secureSourceManagerClient.getIamPolicyCallable().futureCall(request); + * ApiFuture future = + * secureSourceManagerClient.listBranchRulesPagedCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * for (BranchRule element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final UnaryCallable + listBranchRulesPagedCallable() { + return stub.listBranchRulesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * ListBranchRules lists branch rules in a given repository. * *

Sample code: * @@ -2397,30 +2503,36 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .addAllPermissions(new ArrayList()) + * ListBranchRulesRequest request = + * ListBranchRulesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * TestIamPermissionsResponse response = secureSourceManagerClient.testIamPermissions(request); + * while (true) { + * ListBranchRulesResponse response = + * secureSourceManagerClient.listBranchRulesCallable().call(request); + * for (BranchRule element : response.getBranchRulesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final UnaryCallable + listBranchRulesCallable() { + return stub.listBranchRulesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * GetBranchRule gets a branch rule. * *

Sample code: * @@ -2431,19 +2543,736 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * ApiFuture future = - * secureSourceManagerClient.testIamPermissionsCallable().futureCall(request); - * // Do something. - * TestIamPermissionsResponse response = future.get(); + * BranchRuleName name = + * BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + * BranchRule response = secureSourceManagerClient.getBranchRule(name); * } * } - */ - public final UnaryCallable + * + * @param name Required. Name of the repository to retrieve. The format is + * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BranchRule getBranchRule(BranchRuleName name) { + GetBranchRuleRequest request = + GetBranchRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBranchRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GetBranchRule gets a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   String name =
+   *       BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]").toString();
+   *   BranchRule response = secureSourceManagerClient.getBranchRule(name);
+   * }
+   * }
+ * + * @param name Required. Name of the repository to retrieve. The format is + * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BranchRule getBranchRule(String name) { + GetBranchRuleRequest request = GetBranchRuleRequest.newBuilder().setName(name).build(); + return getBranchRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GetBranchRule gets a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetBranchRuleRequest request =
+   *       GetBranchRuleRequest.newBuilder()
+   *           .setName(
+   *               BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]")
+   *                   .toString())
+   *           .build();
+   *   BranchRule response = secureSourceManagerClient.getBranchRule(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BranchRule getBranchRule(GetBranchRuleRequest request) { + return getBranchRuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GetBranchRule gets a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetBranchRuleRequest request =
+   *       GetBranchRuleRequest.newBuilder()
+   *           .setName(
+   *               BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.getBranchRuleCallable().futureCall(request);
+   *   // Do something.
+   *   BranchRule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBranchRuleCallable() { + return stub.getBranchRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpdateBranchRule updates a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   BranchRule branchRule = BranchRule.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   BranchRule response =
+   *       secureSourceManagerClient.updateBranchRuleAsync(branchRule, updateMask).get();
+   * }
+   * }
+ * + * @param branchRule + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * branchRule resource by the update. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. The + * special value "*" means full replacement. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBranchRuleAsync( + BranchRule branchRule, FieldMask updateMask) { + UpdateBranchRuleRequest request = + UpdateBranchRuleRequest.newBuilder() + .setBranchRule(branchRule) + .setUpdateMask(updateMask) + .build(); + return updateBranchRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpdateBranchRule updates a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   UpdateBranchRuleRequest request =
+   *       UpdateBranchRuleRequest.newBuilder()
+   *           .setBranchRule(BranchRule.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   BranchRule response = secureSourceManagerClient.updateBranchRuleAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBranchRuleAsync( + UpdateBranchRuleRequest request) { + return updateBranchRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpdateBranchRule updates a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   UpdateBranchRuleRequest request =
+   *       UpdateBranchRuleRequest.newBuilder()
+   *           .setBranchRule(BranchRule.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       secureSourceManagerClient.updateBranchRuleOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BranchRule response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBranchRuleOperationCallable() { + return stub.updateBranchRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpdateBranchRule updates a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   UpdateBranchRuleRequest request =
+   *       UpdateBranchRuleRequest.newBuilder()
+   *           .setBranchRule(BranchRule.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.updateBranchRuleCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBranchRuleCallable() { + return stub.updateBranchRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * DeleteBranchRule deletes a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   BranchRuleName name =
+   *       BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]");
+   *   secureSourceManagerClient.deleteBranchRuleAsync(name).get();
+   * }
+   * }
+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBranchRuleAsync( + BranchRuleName name) { + DeleteBranchRuleRequest request = + DeleteBranchRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBranchRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * DeleteBranchRule deletes a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   String name =
+   *       BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]").toString();
+   *   secureSourceManagerClient.deleteBranchRuleAsync(name).get();
+   * }
+   * }
+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBranchRuleAsync(String name) { + DeleteBranchRuleRequest request = DeleteBranchRuleRequest.newBuilder().setName(name).build(); + return deleteBranchRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * DeleteBranchRule deletes a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   DeleteBranchRuleRequest request =
+   *       DeleteBranchRuleRequest.newBuilder()
+   *           .setName(
+   *               BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]")
+   *                   .toString())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   secureSourceManagerClient.deleteBranchRuleAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBranchRuleAsync( + DeleteBranchRuleRequest request) { + return deleteBranchRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * DeleteBranchRule deletes a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   DeleteBranchRuleRequest request =
+   *       DeleteBranchRuleRequest.newBuilder()
+   *           .setName(
+   *               BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]")
+   *                   .toString())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       secureSourceManagerClient.deleteBranchRuleOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteBranchRuleOperationCallable() { + return stub.deleteBranchRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * DeleteBranchRule deletes a branch rule. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   DeleteBranchRuleRequest request =
+   *       DeleteBranchRuleRequest.newBuilder()
+   *           .setName(
+   *               BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]")
+   *                   .toString())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.deleteBranchRuleCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBranchRuleCallable() { + return stub.deleteBranchRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : secureSourceManagerClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         secureSourceManagerClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = secureSourceManagerClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = secureSourceManagerClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = secureSourceManagerClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = secureSourceManagerClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       secureSourceManagerClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable testIamPermissionsCallable() { return stub.testIamPermissionsCallable(); } @@ -2631,6 +3460,83 @@ protected ListRepositoriesFixedSizeCollection createCollection( } } + public static class ListBranchRulesPagedResponse + extends AbstractPagedListResponse< + ListBranchRulesRequest, + ListBranchRulesResponse, + BranchRule, + ListBranchRulesPage, + ListBranchRulesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBranchRulesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBranchRulesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBranchRulesPagedResponse(ListBranchRulesPage page) { + super(page, ListBranchRulesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBranchRulesPage + extends AbstractPage< + ListBranchRulesRequest, ListBranchRulesResponse, BranchRule, ListBranchRulesPage> { + + private ListBranchRulesPage( + PageContext context, + ListBranchRulesResponse response) { + super(context, response); + } + + private static ListBranchRulesPage createEmptyPage() { + return new ListBranchRulesPage(null, null); + } + + @Override + protected ListBranchRulesPage createPage( + PageContext context, + ListBranchRulesResponse response) { + return new ListBranchRulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBranchRulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBranchRulesRequest, + ListBranchRulesResponse, + BranchRule, + ListBranchRulesPage, + ListBranchRulesFixedSizeCollection> { + + private ListBranchRulesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBranchRulesFixedSizeCollection createEmptyCollection() { + return new ListBranchRulesFixedSizeCollection(null, 0); + } + + @Override + protected ListBranchRulesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBranchRulesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java index ff631a152493..ce53262243c1 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -215,6 +216,54 @@ public UnaryCallSettings setIamPolicyRepoSettings() return ((SecureSourceManagerStubSettings) getStubSettings()).testIamPermissionsRepoSettings(); } + /** Returns the object with the settings used for calls to createBranchRule. */ + public UnaryCallSettings createBranchRuleSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()).createBranchRuleSettings(); + } + + /** Returns the object with the settings used for calls to createBranchRule. */ + public OperationCallSettings + createBranchRuleOperationSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()) + .createBranchRuleOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBranchRules. */ + public PagedCallSettings< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()).listBranchRulesSettings(); + } + + /** Returns the object with the settings used for calls to getBranchRule. */ + public UnaryCallSettings getBranchRuleSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()).getBranchRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateBranchRule. */ + public UnaryCallSettings updateBranchRuleSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()).updateBranchRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateBranchRule. */ + public OperationCallSettings + updateBranchRuleOperationSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()) + .updateBranchRuleOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteBranchRule. */ + public UnaryCallSettings deleteBranchRuleSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()).deleteBranchRuleSettings(); + } + + /** Returns the object with the settings used for calls to deleteBranchRule. */ + public OperationCallSettings + deleteBranchRuleOperationSettings() { + return ((SecureSourceManagerStubSettings) getStubSettings()) + .deleteBranchRuleOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -440,6 +489,54 @@ public UnaryCallSettings.Builder setIamPolicyRepoSe return getStubSettingsBuilder().testIamPermissionsRepoSettings(); } + /** Returns the builder for the settings used for calls to createBranchRule. */ + public UnaryCallSettings.Builder + createBranchRuleSettings() { + return getStubSettingsBuilder().createBranchRuleSettings(); + } + + /** Returns the builder for the settings used for calls to createBranchRule. */ + public OperationCallSettings.Builder + createBranchRuleOperationSettings() { + return getStubSettingsBuilder().createBranchRuleOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBranchRules. */ + public PagedCallSettings.Builder< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings() { + return getStubSettingsBuilder().listBranchRulesSettings(); + } + + /** Returns the builder for the settings used for calls to getBranchRule. */ + public UnaryCallSettings.Builder getBranchRuleSettings() { + return getStubSettingsBuilder().getBranchRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateBranchRule. */ + public UnaryCallSettings.Builder + updateBranchRuleSettings() { + return getStubSettingsBuilder().updateBranchRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateBranchRule. */ + public OperationCallSettings.Builder + updateBranchRuleOperationSettings() { + return getStubSettingsBuilder().updateBranchRuleOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBranchRule. */ + public UnaryCallSettings.Builder + deleteBranchRuleSettings() { + return getStubSettingsBuilder().deleteBranchRuleSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBranchRule. */ + public OperationCallSettings.Builder + deleteBranchRuleOperationSettings() { + return getStubSettingsBuilder().deleteBranchRuleOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/gapic_metadata.json b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/gapic_metadata.json index 0400851d2e67..9a1bc077adaf 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/gapic_metadata.json +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/gapic_metadata.json @@ -10,18 +10,27 @@ "grpc": { "libraryClient": "SecureSourceManagerClient", "rpcs": { + "CreateBranchRule": { + "methods": ["createBranchRuleAsync", "createBranchRuleAsync", "createBranchRuleAsync", "createBranchRuleOperationCallable", "createBranchRuleCallable"] + }, "CreateInstance": { "methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"] }, "CreateRepository": { "methods": ["createRepositoryAsync", "createRepositoryAsync", "createRepositoryAsync", "createRepositoryOperationCallable", "createRepositoryCallable"] }, + "DeleteBranchRule": { + "methods": ["deleteBranchRuleAsync", "deleteBranchRuleAsync", "deleteBranchRuleAsync", "deleteBranchRuleOperationCallable", "deleteBranchRuleCallable"] + }, "DeleteInstance": { "methods": ["deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceOperationCallable", "deleteInstanceCallable"] }, "DeleteRepository": { "methods": ["deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryOperationCallable", "deleteRepositoryCallable"] }, + "GetBranchRule": { + "methods": ["getBranchRule", "getBranchRule", "getBranchRule", "getBranchRuleCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -37,6 +46,9 @@ "GetRepository": { "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] }, + "ListBranchRules": { + "methods": ["listBranchRules", "listBranchRules", "listBranchRules", "listBranchRulesPagedCallable", "listBranchRulesCallable"] + }, "ListInstances": { "methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] }, @@ -57,6 +69,9 @@ }, "TestIamPermissionsRepo": { "methods": ["testIamPermissionsRepo", "testIamPermissionsRepo", "testIamPermissionsRepo", "testIamPermissionsRepoCallable"] + }, + "UpdateBranchRule": { + "methods": ["updateBranchRuleAsync", "updateBranchRuleAsync", "updateBranchRuleOperationCallable", "updateBranchRuleCallable"] } } } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java index 141b6409343e..803507aac829 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1.stub; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -32,19 +33,26 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.CreateInstanceRequest; import com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest; import com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.GetInstanceRequest; import com.google.cloud.securesourcemanager.v1.GetRepositoryRequest; import com.google.cloud.securesourcemanager.v1.Instance; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse; import com.google.cloud.securesourcemanager.v1.ListInstancesRequest; import com.google.cloud.securesourcemanager.v1.ListInstancesResponse; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse; import com.google.cloud.securesourcemanager.v1.OperationMetadata; import com.google.cloud.securesourcemanager.v1.Repository; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -186,6 +194,62 @@ public class GrpcSecureSourceManagerStub extends SecureSourceManagerStub { ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + createBranchRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/CreateBranchRule") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateBranchRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listBranchRulesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/ListBranchRules") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBranchRulesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBranchRulesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getBranchRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/GetBranchRule") + .setRequestMarshaller( + ProtoUtils.marshaller(GetBranchRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BranchRule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBranchRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/UpdateBranchRule") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBranchRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteBranchRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/DeleteBranchRule") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteBranchRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -257,6 +321,20 @@ public class GrpcSecureSourceManagerStub extends SecureSourceManagerStub { private final UnaryCallable setIamPolicyRepoCallable; private final UnaryCallable testIamPermissionsRepoCallable; + private final UnaryCallable createBranchRuleCallable; + private final OperationCallable + createBranchRuleOperationCallable; + private final UnaryCallable + listBranchRulesCallable; + private final UnaryCallable + listBranchRulesPagedCallable; + private final UnaryCallable getBranchRuleCallable; + private final UnaryCallable updateBranchRuleCallable; + private final OperationCallable + updateBranchRuleOperationCallable; + private final UnaryCallable deleteBranchRuleCallable; + private final OperationCallable + deleteBranchRuleOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -422,6 +500,58 @@ protected GrpcSecureSourceManagerStub( return builder.build(); }) .build(); + GrpcCallSettings createBranchRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBranchRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBranchRulesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBranchRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getBranchRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBranchRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateBranchRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBranchRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "branch_rule.name", String.valueOf(request.getBranchRule().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBranchRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBranchRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -539,6 +669,42 @@ protected GrpcSecureSourceManagerStub( testIamPermissionsRepoTransportSettings, settings.testIamPermissionsRepoSettings(), clientContext); + this.createBranchRuleCallable = + callableFactory.createUnaryCallable( + createBranchRuleTransportSettings, settings.createBranchRuleSettings(), clientContext); + this.createBranchRuleOperationCallable = + callableFactory.createOperationCallable( + createBranchRuleTransportSettings, + settings.createBranchRuleOperationSettings(), + clientContext, + operationsStub); + this.listBranchRulesCallable = + callableFactory.createUnaryCallable( + listBranchRulesTransportSettings, settings.listBranchRulesSettings(), clientContext); + this.listBranchRulesPagedCallable = + callableFactory.createPagedCallable( + listBranchRulesTransportSettings, settings.listBranchRulesSettings(), clientContext); + this.getBranchRuleCallable = + callableFactory.createUnaryCallable( + getBranchRuleTransportSettings, settings.getBranchRuleSettings(), clientContext); + this.updateBranchRuleCallable = + callableFactory.createUnaryCallable( + updateBranchRuleTransportSettings, settings.updateBranchRuleSettings(), clientContext); + this.updateBranchRuleOperationCallable = + callableFactory.createOperationCallable( + updateBranchRuleTransportSettings, + settings.updateBranchRuleOperationSettings(), + clientContext, + operationsStub); + this.deleteBranchRuleCallable = + callableFactory.createUnaryCallable( + deleteBranchRuleTransportSettings, settings.deleteBranchRuleSettings(), clientContext); + this.deleteBranchRuleOperationCallable = + callableFactory.createOperationCallable( + deleteBranchRuleTransportSettings, + settings.deleteBranchRuleOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -661,6 +827,55 @@ public UnaryCallable setIamPolicyRepoCallable() { return testIamPermissionsRepoCallable; } + @Override + public UnaryCallable createBranchRuleCallable() { + return createBranchRuleCallable; + } + + @Override + public OperationCallable + createBranchRuleOperationCallable() { + return createBranchRuleOperationCallable; + } + + @Override + public UnaryCallable listBranchRulesCallable() { + return listBranchRulesCallable; + } + + @Override + public UnaryCallable + listBranchRulesPagedCallable() { + return listBranchRulesPagedCallable; + } + + @Override + public UnaryCallable getBranchRuleCallable() { + return getBranchRuleCallable; + } + + @Override + public UnaryCallable updateBranchRuleCallable() { + return updateBranchRuleCallable; + } + + @Override + public OperationCallable + updateBranchRuleOperationCallable() { + return updateBranchRuleOperationCallable; + } + + @Override + public UnaryCallable deleteBranchRuleCallable() { + return deleteBranchRuleCallable; + } + + @Override + public OperationCallable + deleteBranchRuleOperationCallable() { + return deleteBranchRuleOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java index 2e8822313823..9a3347afc9ca 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1.stub; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -40,19 +41,26 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.CreateInstanceRequest; import com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest; import com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.GetInstanceRequest; import com.google.cloud.securesourcemanager.v1.GetRepositoryRequest; import com.google.cloud.securesourcemanager.v1.Instance; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse; import com.google.cloud.securesourcemanager.v1.ListInstancesRequest; import com.google.cloud.securesourcemanager.v1.ListInstancesResponse; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse; import com.google.cloud.securesourcemanager.v1.OperationMetadata; import com.google.cloud.securesourcemanager.v1.Repository; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -80,6 +88,7 @@ public class HttpJsonSecureSourceManagerStub extends SecureSourceManagerStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() + .add(BranchRule.getDescriptor()) .add(Empty.getDescriptor()) .add(Instance.getDescriptor()) .add(Repository.getDescriptor()) @@ -266,6 +275,7 @@ public class HttpJsonSecureSourceManagerStub extends SecureSourceManagerStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "instance", request.getInstance()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -510,6 +520,206 @@ public class HttpJsonSecureSourceManagerStub extends SecureSourceManagerStub { .build()) .build(); + private static final ApiMethodDescriptor + createBranchRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/CreateBranchRule") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/branchRules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "branchRuleId", request.getBranchRuleId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("branchRule", request.getBranchRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateBranchRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listBranchRulesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/ListBranchRules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/branchRules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBranchRulesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getBranchRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/GetBranchRule") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*/branchRules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BranchRule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBranchRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/UpdateBranchRule") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{branchRule.name=projects/*/locations/*/repositories/*/branchRules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "branchRule.name", request.getBranchRule().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("branchRule", request.getBranchRule(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateBranchRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteBranchRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securesourcemanager.v1.SecureSourceManager/DeleteBranchRule") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*/branchRules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteBranchRuleRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -711,6 +921,20 @@ public class HttpJsonSecureSourceManagerStub extends SecureSourceManagerStub { private final UnaryCallable setIamPolicyRepoCallable; private final UnaryCallable testIamPermissionsRepoCallable; + private final UnaryCallable createBranchRuleCallable; + private final OperationCallable + createBranchRuleOperationCallable; + private final UnaryCallable + listBranchRulesCallable; + private final UnaryCallable + listBranchRulesPagedCallable; + private final UnaryCallable getBranchRuleCallable; + private final UnaryCallable updateBranchRuleCallable; + private final OperationCallable + updateBranchRuleOperationCallable; + private final UnaryCallable deleteBranchRuleCallable; + private final OperationCallable + deleteBranchRuleOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -916,6 +1140,63 @@ protected HttpJsonSecureSourceManagerStub( return builder.build(); }) .build(); + HttpJsonCallSettings createBranchRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBranchRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBranchRulesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBranchRulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getBranchRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBranchRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateBranchRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBranchRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "branch_rule.name", String.valueOf(request.getBranchRule().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBranchRuleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBranchRuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1039,6 +1320,42 @@ protected HttpJsonSecureSourceManagerStub( testIamPermissionsRepoTransportSettings, settings.testIamPermissionsRepoSettings(), clientContext); + this.createBranchRuleCallable = + callableFactory.createUnaryCallable( + createBranchRuleTransportSettings, settings.createBranchRuleSettings(), clientContext); + this.createBranchRuleOperationCallable = + callableFactory.createOperationCallable( + createBranchRuleTransportSettings, + settings.createBranchRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listBranchRulesCallable = + callableFactory.createUnaryCallable( + listBranchRulesTransportSettings, settings.listBranchRulesSettings(), clientContext); + this.listBranchRulesPagedCallable = + callableFactory.createPagedCallable( + listBranchRulesTransportSettings, settings.listBranchRulesSettings(), clientContext); + this.getBranchRuleCallable = + callableFactory.createUnaryCallable( + getBranchRuleTransportSettings, settings.getBranchRuleSettings(), clientContext); + this.updateBranchRuleCallable = + callableFactory.createUnaryCallable( + updateBranchRuleTransportSettings, settings.updateBranchRuleSettings(), clientContext); + this.updateBranchRuleOperationCallable = + callableFactory.createOperationCallable( + updateBranchRuleTransportSettings, + settings.updateBranchRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteBranchRuleCallable = + callableFactory.createUnaryCallable( + deleteBranchRuleTransportSettings, settings.deleteBranchRuleSettings(), clientContext); + this.deleteBranchRuleOperationCallable = + callableFactory.createOperationCallable( + deleteBranchRuleTransportSettings, + settings.deleteBranchRuleOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1078,6 +1395,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(getIamPolicyRepoMethodDescriptor); methodDescriptors.add(setIamPolicyRepoMethodDescriptor); methodDescriptors.add(testIamPermissionsRepoMethodDescriptor); + methodDescriptors.add(createBranchRuleMethodDescriptor); + methodDescriptors.add(listBranchRulesMethodDescriptor); + methodDescriptors.add(getBranchRuleMethodDescriptor); + methodDescriptors.add(updateBranchRuleMethodDescriptor); + methodDescriptors.add(deleteBranchRuleMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -1183,6 +1505,55 @@ public UnaryCallable setIamPolicyRepoCallable() { return testIamPermissionsRepoCallable; } + @Override + public UnaryCallable createBranchRuleCallable() { + return createBranchRuleCallable; + } + + @Override + public OperationCallable + createBranchRuleOperationCallable() { + return createBranchRuleOperationCallable; + } + + @Override + public UnaryCallable listBranchRulesCallable() { + return listBranchRulesCallable; + } + + @Override + public UnaryCallable + listBranchRulesPagedCallable() { + return listBranchRulesPagedCallable; + } + + @Override + public UnaryCallable getBranchRuleCallable() { + return getBranchRuleCallable; + } + + @Override + public UnaryCallable updateBranchRuleCallable() { + return updateBranchRuleCallable; + } + + @Override + public OperationCallable + updateBranchRuleOperationCallable() { + return updateBranchRuleOperationCallable; + } + + @Override + public UnaryCallable deleteBranchRuleCallable() { + return deleteBranchRuleCallable; + } + + @Override + public OperationCallable + deleteBranchRuleOperationCallable() { + return deleteBranchRuleOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java index 014d93f0bba3..beb64e66b6b3 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1.stub; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -27,19 +28,26 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.CreateInstanceRequest; import com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest; import com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.GetInstanceRequest; import com.google.cloud.securesourcemanager.v1.GetRepositoryRequest; import com.google.cloud.securesourcemanager.v1.Instance; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse; import com.google.cloud.securesourcemanager.v1.ListInstancesRequest; import com.google.cloud.securesourcemanager.v1.ListInstancesResponse; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse; import com.google.cloud.securesourcemanager.v1.OperationMetadata; import com.google.cloud.securesourcemanager.v1.Repository; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -143,6 +151,46 @@ public UnaryCallable setIamPolicyRepoCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsRepoCallable()"); } + public OperationCallable + createBranchRuleOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createBranchRuleOperationCallable()"); + } + + public UnaryCallable createBranchRuleCallable() { + throw new UnsupportedOperationException("Not implemented: createBranchRuleCallable()"); + } + + public UnaryCallable + listBranchRulesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBranchRulesPagedCallable()"); + } + + public UnaryCallable listBranchRulesCallable() { + throw new UnsupportedOperationException("Not implemented: listBranchRulesCallable()"); + } + + public UnaryCallable getBranchRuleCallable() { + throw new UnsupportedOperationException("Not implemented: getBranchRuleCallable()"); + } + + public OperationCallable + updateBranchRuleOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateBranchRuleOperationCallable()"); + } + + public UnaryCallable updateBranchRuleCallable() { + throw new UnsupportedOperationException("Not implemented: updateBranchRuleCallable()"); + } + + public OperationCallable + deleteBranchRuleOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBranchRuleOperationCallable()"); + } + + public UnaryCallable deleteBranchRuleCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBranchRuleCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java index f7f076e9b4c3..84af591f2503 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1.stub; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -54,19 +55,26 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.CreateInstanceRequest; import com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest; import com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; import com.google.cloud.securesourcemanager.v1.GetInstanceRequest; import com.google.cloud.securesourcemanager.v1.GetRepositoryRequest; import com.google.cloud.securesourcemanager.v1.Instance; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse; import com.google.cloud.securesourcemanager.v1.ListInstancesRequest; import com.google.cloud.securesourcemanager.v1.ListInstancesResponse; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse; import com.google.cloud.securesourcemanager.v1.OperationMetadata; import com.google.cloud.securesourcemanager.v1.Repository; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -191,6 +199,19 @@ public class SecureSourceManagerStubSettings extends StubSettings setIamPolicyRepoSettings; private final UnaryCallSettings testIamPermissionsRepoSettings; + private final UnaryCallSettings createBranchRuleSettings; + private final OperationCallSettings + createBranchRuleOperationSettings; + private final PagedCallSettings< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings; + private final UnaryCallSettings getBranchRuleSettings; + private final UnaryCallSettings updateBranchRuleSettings; + private final OperationCallSettings + updateBranchRuleOperationSettings; + private final UnaryCallSettings deleteBranchRuleSettings; + private final OperationCallSettings + deleteBranchRuleOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -271,6 +292,43 @@ public Iterable extractResources(ListRepositoriesResponse payload) { } }; + private static final PagedListDescriptor< + ListBranchRulesRequest, ListBranchRulesResponse, BranchRule> + LIST_BRANCH_RULES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBranchRulesRequest injectToken( + ListBranchRulesRequest payload, String token) { + return ListBranchRulesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBranchRulesRequest injectPageSize( + ListBranchRulesRequest payload, int pageSize) { + return ListBranchRulesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBranchRulesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBranchRulesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBranchRulesResponse payload) { + return payload.getBranchRulesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -341,6 +399,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + LIST_BRANCH_RULES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBranchRulesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BRANCH_RULES_PAGE_STR_DESC, request, context); + return ListBranchRulesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -441,6 +516,51 @@ public UnaryCallSettings setIamPolicyRepoSettings() return testIamPermissionsRepoSettings; } + /** Returns the object with the settings used for calls to createBranchRule. */ + public UnaryCallSettings createBranchRuleSettings() { + return createBranchRuleSettings; + } + + /** Returns the object with the settings used for calls to createBranchRule. */ + public OperationCallSettings + createBranchRuleOperationSettings() { + return createBranchRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to listBranchRules. */ + public PagedCallSettings< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings() { + return listBranchRulesSettings; + } + + /** Returns the object with the settings used for calls to getBranchRule. */ + public UnaryCallSettings getBranchRuleSettings() { + return getBranchRuleSettings; + } + + /** Returns the object with the settings used for calls to updateBranchRule. */ + public UnaryCallSettings updateBranchRuleSettings() { + return updateBranchRuleSettings; + } + + /** Returns the object with the settings used for calls to updateBranchRule. */ + public OperationCallSettings + updateBranchRuleOperationSettings() { + return updateBranchRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteBranchRule. */ + public UnaryCallSettings deleteBranchRuleSettings() { + return deleteBranchRuleSettings; + } + + /** Returns the object with the settings used for calls to deleteBranchRule. */ + public OperationCallSettings + deleteBranchRuleOperationSettings() { + return deleteBranchRuleOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -594,6 +714,14 @@ protected SecureSourceManagerStubSettings(Builder settingsBuilder) throws IOExce getIamPolicyRepoSettings = settingsBuilder.getIamPolicyRepoSettings().build(); setIamPolicyRepoSettings = settingsBuilder.setIamPolicyRepoSettings().build(); testIamPermissionsRepoSettings = settingsBuilder.testIamPermissionsRepoSettings().build(); + createBranchRuleSettings = settingsBuilder.createBranchRuleSettings().build(); + createBranchRuleOperationSettings = settingsBuilder.createBranchRuleOperationSettings().build(); + listBranchRulesSettings = settingsBuilder.listBranchRulesSettings().build(); + getBranchRuleSettings = settingsBuilder.getBranchRuleSettings().build(); + updateBranchRuleSettings = settingsBuilder.updateBranchRuleSettings().build(); + updateBranchRuleOperationSettings = settingsBuilder.updateBranchRuleOperationSettings().build(); + deleteBranchRuleSettings = settingsBuilder.deleteBranchRuleSettings().build(); + deleteBranchRuleOperationSettings = settingsBuilder.deleteBranchRuleOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -634,6 +762,24 @@ public static class Builder private final UnaryCallSettings.Builder setIamPolicyRepoSettings; private final UnaryCallSettings.Builder testIamPermissionsRepoSettings; + private final UnaryCallSettings.Builder + createBranchRuleSettings; + private final OperationCallSettings.Builder< + CreateBranchRuleRequest, BranchRule, OperationMetadata> + createBranchRuleOperationSettings; + private final PagedCallSettings.Builder< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings; + private final UnaryCallSettings.Builder getBranchRuleSettings; + private final UnaryCallSettings.Builder + updateBranchRuleSettings; + private final OperationCallSettings.Builder< + UpdateBranchRuleRequest, BranchRule, OperationMetadata> + updateBranchRuleOperationSettings; + private final UnaryCallSettings.Builder + deleteBranchRuleSettings; + private final OperationCallSettings.Builder + deleteBranchRuleOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -698,6 +844,14 @@ protected Builder(ClientContext clientContext) { getIamPolicyRepoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicyRepoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsRepoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBranchRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBranchRuleOperationSettings = OperationCallSettings.newBuilder(); + listBranchRulesSettings = PagedCallSettings.newBuilder(LIST_BRANCH_RULES_PAGE_STR_FACT); + getBranchRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBranchRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBranchRuleOperationSettings = OperationCallSettings.newBuilder(); + deleteBranchRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBranchRuleOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -717,6 +871,11 @@ protected Builder(ClientContext clientContext) { getIamPolicyRepoSettings, setIamPolicyRepoSettings, testIamPermissionsRepoSettings, + createBranchRuleSettings, + listBranchRulesSettings, + getBranchRuleSettings, + updateBranchRuleSettings, + deleteBranchRuleSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -743,6 +902,14 @@ protected Builder(SecureSourceManagerStubSettings settings) { getIamPolicyRepoSettings = settings.getIamPolicyRepoSettings.toBuilder(); setIamPolicyRepoSettings = settings.setIamPolicyRepoSettings.toBuilder(); testIamPermissionsRepoSettings = settings.testIamPermissionsRepoSettings.toBuilder(); + createBranchRuleSettings = settings.createBranchRuleSettings.toBuilder(); + createBranchRuleOperationSettings = settings.createBranchRuleOperationSettings.toBuilder(); + listBranchRulesSettings = settings.listBranchRulesSettings.toBuilder(); + getBranchRuleSettings = settings.getBranchRuleSettings.toBuilder(); + updateBranchRuleSettings = settings.updateBranchRuleSettings.toBuilder(); + updateBranchRuleOperationSettings = settings.updateBranchRuleOperationSettings.toBuilder(); + deleteBranchRuleSettings = settings.deleteBranchRuleSettings.toBuilder(); + deleteBranchRuleOperationSettings = settings.deleteBranchRuleOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -762,6 +929,11 @@ protected Builder(SecureSourceManagerStubSettings settings) { getIamPolicyRepoSettings, setIamPolicyRepoSettings, testIamPermissionsRepoSettings, + createBranchRuleSettings, + listBranchRulesSettings, + getBranchRuleSettings, + updateBranchRuleSettings, + deleteBranchRuleSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -849,6 +1021,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createBranchRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBranchRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBranchRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBranchRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBranchRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -970,6 +1167,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createBranchRuleOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BranchRule.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBranchRuleOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(BranchRule.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteBranchRuleOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1074,6 +1343,54 @@ public UnaryCallSettings.Builder setIamPolicyRepoSe return testIamPermissionsRepoSettings; } + /** Returns the builder for the settings used for calls to createBranchRule. */ + public UnaryCallSettings.Builder + createBranchRuleSettings() { + return createBranchRuleSettings; + } + + /** Returns the builder for the settings used for calls to createBranchRule. */ + public OperationCallSettings.Builder + createBranchRuleOperationSettings() { + return createBranchRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to listBranchRules. */ + public PagedCallSettings.Builder< + ListBranchRulesRequest, ListBranchRulesResponse, ListBranchRulesPagedResponse> + listBranchRulesSettings() { + return listBranchRulesSettings; + } + + /** Returns the builder for the settings used for calls to getBranchRule. */ + public UnaryCallSettings.Builder getBranchRuleSettings() { + return getBranchRuleSettings; + } + + /** Returns the builder for the settings used for calls to updateBranchRule. */ + public UnaryCallSettings.Builder + updateBranchRuleSettings() { + return updateBranchRuleSettings; + } + + /** Returns the builder for the settings used for calls to updateBranchRule. */ + public OperationCallSettings.Builder + updateBranchRuleOperationSettings() { + return updateBranchRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteBranchRule. */ + public UnaryCallSettings.Builder + deleteBranchRuleSettings() { + return deleteBranchRuleSettings; + } + + /** Returns the builder for the settings used for calls to deleteBranchRule. */ + public OperationCallSettings.Builder + deleteBranchRuleOperationSettings() { + return deleteBranchRuleOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json index 68a920234646..a720e9ab461c 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -467,6 +485,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.BranchRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.BranchRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.BranchRule$Check", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.BranchRule$Check$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.CreateInstanceRequest", "queryAllDeclaredConstructors": true, @@ -503,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest", "queryAllDeclaredConstructors": true, @@ -539,6 +629,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.GetInstanceRequest", "queryAllDeclaredConstructors": true, @@ -647,6 +755,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.ListInstancesRequest", "queryAllDeclaredConstructors": true, @@ -791,6 +935,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/MockSecureSourceManagerImpl.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/MockSecureSourceManagerImpl.java index 4c5ef8a8862a..556f62f09489 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/MockSecureSourceManagerImpl.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/MockSecureSourceManagerImpl.java @@ -294,4 +294,109 @@ public void testIamPermissionsRepo( Exception.class.getName()))); } } + + @Override + public void createBranchRule( + CreateBranchRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBranchRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBranchRules( + ListBranchRulesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBranchRulesResponse) { + requests.add(request); + responseObserver.onNext(((ListBranchRulesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBranchRules, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBranchRulesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBranchRule( + GetBranchRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BranchRule) { + requests.add(request); + responseObserver.onNext(((BranchRule) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBranchRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BranchRule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBranchRule( + UpdateBranchRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBranchRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBranchRule( + DeleteBranchRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBranchRule, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java index cc43fe6d521c..e4cb0f8db2a1 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -613,7 +614,7 @@ public void getRepositoryTest() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -665,7 +666,7 @@ public void getRepositoryTest2() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -717,7 +718,7 @@ public void createRepositoryTest() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -779,7 +780,7 @@ public void createRepositoryTest2() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -1200,6 +1201,569 @@ public void testIamPermissionsRepoExceptionTest2() throws Exception { } } + @Test + public void createBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + + BranchRule actualResponse = + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBranchRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBranchRuleTest2() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + + BranchRule actualResponse = + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBranchRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBranchRulesTest() throws Exception { + BranchRule responsesElement = BranchRule.newBuilder().build(); + ListBranchRulesResponse expectedResponse = + ListBranchRulesResponse.newBuilder() + .setNextPageToken("") + .addAllBranchRules(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListBranchRulesPagedResponse pagedListResponse = client.listBranchRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBranchRulesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBranchRulesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listBranchRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBranchRulesTest2() throws Exception { + BranchRule responsesElement = BranchRule.newBuilder().build(); + ListBranchRulesResponse expectedResponse = + ListBranchRulesResponse.newBuilder() + .setNextPageToken("") + .addAllBranchRules(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + + ListBranchRulesPagedResponse pagedListResponse = client.listBranchRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBranchRulesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBranchRulesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + client.listBranchRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + + BranchRule actualResponse = client.getBranchRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBranchRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + client.getBranchRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchRuleTest2() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9449/locations/location-9449/repositories/repositorie-9449/branchRules/branchRule-9449"; + + BranchRule actualResponse = client.getBranchRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBranchRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9449/locations/location-9449/repositories/repositorie-9449/branchRules/branchRule-9449"; + client.getBranchRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BranchRule branchRule = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BranchRule actualResponse = client.updateBranchRuleAsync(branchRule, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBranchRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchRule branchRule = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBranchRuleAsync(branchRule, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBranchRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + + client.deleteBranchRuleAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBranchRuleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + client.deleteBranchRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBranchRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9449/locations/location-9449/repositories/repositorie-9449/branchRules/branchRule-9449"; + + client.deleteBranchRuleAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBranchRuleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9449/locations/location-9449/repositories/repositorie-9449/branchRules/branchRule-9449"; + client.deleteBranchRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java index 83869a57777c..13c4ed27c215 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.securesourcemanager.v1; +import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListBranchRulesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListInstancesPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListLocationsPagedResponse; import static com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient.ListRepositoriesPagedResponse; @@ -578,7 +579,7 @@ public void getRepositoryTest() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -624,7 +625,7 @@ public void getRepositoryTest2() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -670,7 +671,7 @@ public void createRepositoryTest() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -731,7 +732,7 @@ public void createRepositoryTest2() throws Exception { Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setDescription("description-1724546052") - .setInstance("instance555127957") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setUid("uid115792") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -1106,6 +1107,493 @@ public void testIamPermissionsRepoExceptionTest2() throws Exception { } } + @Test + public void createBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecureSourceManager.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + + BranchRule actualResponse = + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBranchRuleRequest actualRequest = ((CreateBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(branchRule, actualRequest.getBranchRule()); + Assert.assertEquals(branchRuleId, actualRequest.getBranchRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBranchRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBranchRuleTest2() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecureSourceManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + + BranchRule actualResponse = + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBranchRuleRequest actualRequest = ((CreateBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(branchRule, actualRequest.getBranchRule()); + Assert.assertEquals(branchRuleId, actualRequest.getBranchRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBranchRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + String parent = "parent-995424086"; + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + client.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listBranchRulesTest() throws Exception { + BranchRule responsesElement = BranchRule.newBuilder().build(); + ListBranchRulesResponse expectedResponse = + ListBranchRulesResponse.newBuilder() + .setNextPageToken("") + .addAllBranchRules(Arrays.asList(responsesElement)) + .build(); + mockSecureSourceManager.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListBranchRulesPagedResponse pagedListResponse = client.listBranchRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBranchRulesList().get(0), resources.get(0)); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBranchRulesRequest actualRequest = ((ListBranchRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBranchRulesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listBranchRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBranchRulesTest2() throws Exception { + BranchRule responsesElement = BranchRule.newBuilder().build(); + ListBranchRulesResponse expectedResponse = + ListBranchRulesResponse.newBuilder() + .setNextPageToken("") + .addAllBranchRules(Arrays.asList(responsesElement)) + .build(); + mockSecureSourceManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBranchRulesPagedResponse pagedListResponse = client.listBranchRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBranchRulesList().get(0), resources.get(0)); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBranchRulesRequest actualRequest = ((ListBranchRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBranchRulesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBranchRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + mockSecureSourceManager.addResponse(expectedResponse); + + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + + BranchRule actualResponse = client.getBranchRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBranchRuleRequest actualRequest = ((GetBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBranchRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + client.getBranchRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchRuleTest2() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + mockSecureSourceManager.addResponse(expectedResponse); + + String name = "name3373707"; + + BranchRule actualResponse = client.getBranchRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBranchRuleRequest actualRequest = ((GetBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBranchRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + String name = "name3373707"; + client.getBranchRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBranchRuleTest() throws Exception { + BranchRule expectedResponse = + BranchRule.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setEtag("etag3123477") + .setIncludePattern("includePattern-1431887416") + .setDisabled(true) + .setRequirePullRequest(true) + .setMinimumReviewsCount(672799098) + .setMinimumApprovalsCount(-579210129) + .setRequireCommentsResolved(true) + .setAllowStaleReviews(true) + .setRequireLinearHistory(true) + .addAllRequiredStatusChecks(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecureSourceManager.addResponse(resultOperation); + + BranchRule branchRule = BranchRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BranchRule actualResponse = client.updateBranchRuleAsync(branchRule, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBranchRuleRequest actualRequest = ((UpdateBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(branchRule, actualRequest.getBranchRule()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBranchRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + BranchRule branchRule = BranchRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBranchRuleAsync(branchRule, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBranchRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecureSourceManager.addResponse(resultOperation); + + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + + client.deleteBranchRuleAsync(name).get(); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBranchRuleRequest actualRequest = ((DeleteBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBranchRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + client.deleteBranchRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBranchRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBranchRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecureSourceManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBranchRuleAsync(name).get(); + + List actualRequests = mockSecureSourceManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBranchRuleRequest actualRequest = ((DeleteBranchRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBranchRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecureSourceManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteBranchRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java index b5ab728c25ec..bde8efba9b67 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java @@ -549,6 +549,241 @@ private SecureSourceManagerGrpc() {} return getTestIamPermissionsRepoMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest, + com.google.longrunning.Operation> + getCreateBranchRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBranchRule", + requestType = com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest, + com.google.longrunning.Operation> + getCreateBranchRuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest, + com.google.longrunning.Operation> + getCreateBranchRuleMethod; + if ((getCreateBranchRuleMethod = SecureSourceManagerGrpc.getCreateBranchRuleMethod) == null) { + synchronized (SecureSourceManagerGrpc.class) { + if ((getCreateBranchRuleMethod = SecureSourceManagerGrpc.getCreateBranchRuleMethod) + == null) { + SecureSourceManagerGrpc.getCreateBranchRuleMethod = + getCreateBranchRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBranchRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecureSourceManagerMethodDescriptorSupplier("CreateBranchRule")) + .build(); + } + } + } + return getCreateBranchRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse> + getListBranchRulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBranchRules", + requestType = com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.class, + responseType = com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse> + getListBranchRulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse> + getListBranchRulesMethod; + if ((getListBranchRulesMethod = SecureSourceManagerGrpc.getListBranchRulesMethod) == null) { + synchronized (SecureSourceManagerGrpc.class) { + if ((getListBranchRulesMethod = SecureSourceManagerGrpc.getListBranchRulesMethod) == null) { + SecureSourceManagerGrpc.getListBranchRulesMethod = + getListBranchRulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBranchRules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecureSourceManagerMethodDescriptorSupplier("ListBranchRules")) + .build(); + } + } + } + return getListBranchRulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest, + com.google.cloud.securesourcemanager.v1.BranchRule> + getGetBranchRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBranchRule", + requestType = com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.class, + responseType = com.google.cloud.securesourcemanager.v1.BranchRule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest, + com.google.cloud.securesourcemanager.v1.BranchRule> + getGetBranchRuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest, + com.google.cloud.securesourcemanager.v1.BranchRule> + getGetBranchRuleMethod; + if ((getGetBranchRuleMethod = SecureSourceManagerGrpc.getGetBranchRuleMethod) == null) { + synchronized (SecureSourceManagerGrpc.class) { + if ((getGetBranchRuleMethod = SecureSourceManagerGrpc.getGetBranchRuleMethod) == null) { + SecureSourceManagerGrpc.getGetBranchRuleMethod = + getGetBranchRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBranchRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.BranchRule + .getDefaultInstance())) + .setSchemaDescriptor( + new SecureSourceManagerMethodDescriptorSupplier("GetBranchRule")) + .build(); + } + } + } + return getGetBranchRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest, + com.google.longrunning.Operation> + getUpdateBranchRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBranchRule", + requestType = com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest, + com.google.longrunning.Operation> + getUpdateBranchRuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest, + com.google.longrunning.Operation> + getUpdateBranchRuleMethod; + if ((getUpdateBranchRuleMethod = SecureSourceManagerGrpc.getUpdateBranchRuleMethod) == null) { + synchronized (SecureSourceManagerGrpc.class) { + if ((getUpdateBranchRuleMethod = SecureSourceManagerGrpc.getUpdateBranchRuleMethod) + == null) { + SecureSourceManagerGrpc.getUpdateBranchRuleMethod = + getUpdateBranchRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBranchRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecureSourceManagerMethodDescriptorSupplier("UpdateBranchRule")) + .build(); + } + } + } + return getUpdateBranchRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest, + com.google.longrunning.Operation> + getDeleteBranchRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBranchRule", + requestType = com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest, + com.google.longrunning.Operation> + getDeleteBranchRuleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest, + com.google.longrunning.Operation> + getDeleteBranchRuleMethod; + if ((getDeleteBranchRuleMethod = SecureSourceManagerGrpc.getDeleteBranchRuleMethod) == null) { + synchronized (SecureSourceManagerGrpc.class) { + if ((getDeleteBranchRuleMethod = SecureSourceManagerGrpc.getDeleteBranchRuleMethod) + == null) { + SecureSourceManagerGrpc.getDeleteBranchRuleMethod = + getDeleteBranchRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBranchRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecureSourceManagerMethodDescriptorSupplier("DeleteBranchRule")) + .build(); + } + } + } + return getDeleteBranchRuleMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static SecureSourceManagerStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -774,6 +1009,78 @@ default void testIamPermissionsRepo( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestIamPermissionsRepoMethod(), responseObserver); } + + /** + * + * + *
+     * CreateBranchRule creates a branch rule in a given repository.
+     * 
+ */ + default void createBranchRule( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBranchRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * ListBranchRules lists branch rules in a given repository.
+     * 
+ */ + default void listBranchRules( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBranchRulesMethod(), responseObserver); + } + + /** + * + * + *
+     * GetBranchRule gets a branch rule.
+     * 
+ */ + default void getBranchRule( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBranchRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * UpdateBranchRule updates a branch rule.
+     * 
+ */ + default void updateBranchRule( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBranchRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * DeleteBranchRule deletes a branch rule.
+     * 
+ */ + default void deleteBranchRule( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBranchRuleMethod(), responseObserver); + } } /** @@ -1019,6 +1326,88 @@ public void testIamPermissionsRepo( request, responseObserver); } + + /** + * + * + *
+     * CreateBranchRule creates a branch rule in a given repository.
+     * 
+ */ + public void createBranchRule( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBranchRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * ListBranchRules lists branch rules in a given repository.
+     * 
+ */ + public void listBranchRules( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBranchRulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * GetBranchRule gets a branch rule.
+     * 
+ */ + public void getBranchRule( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBranchRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * UpdateBranchRule updates a branch rule.
+     * 
+ */ + public void updateBranchRule( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBranchRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * DeleteBranchRule deletes a branch rule.
+     * 
+ */ + public void deleteBranchRule( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBranchRuleMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1199,6 +1588,71 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissionsRepo( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsRepoMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * CreateBranchRule creates a branch rule in a given repository.
+     * 
+ */ + public com.google.longrunning.Operation createBranchRule( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBranchRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * ListBranchRules lists branch rules in a given repository.
+     * 
+ */ + public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse listBranchRules( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBranchRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * GetBranchRule gets a branch rule.
+     * 
+ */ + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBranchRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * UpdateBranchRule updates a branch rule.
+     * 
+ */ + public com.google.longrunning.Operation updateBranchRule( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBranchRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * DeleteBranchRule deletes a branch rule.
+     * 
+ */ + public com.google.longrunning.Operation deleteBranchRule( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBranchRuleMethod(), getCallOptions(), request); + } } /** @@ -1384,6 +1838,73 @@ protected SecureSourceManagerFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsRepoMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * CreateBranchRule creates a branch rule in a given repository.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBranchRule(com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBranchRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * ListBranchRules lists branch rules in a given repository.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse> + listBranchRules(com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBranchRulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * GetBranchRule gets a branch rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securesourcemanager.v1.BranchRule> + getBranchRule(com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBranchRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * UpdateBranchRule updates a branch rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBranchRule(com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBranchRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * DeleteBranchRule deletes a branch rule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBranchRule(com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBranchRuleMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_INSTANCES = 0; @@ -1397,6 +1918,11 @@ protected SecureSourceManagerFutureStub build( private static final int METHODID_GET_IAM_POLICY_REPO = 8; private static final int METHODID_SET_IAM_POLICY_REPO = 9; private static final int METHODID_TEST_IAM_PERMISSIONS_REPO = 10; + private static final int METHODID_CREATE_BRANCH_RULE = 11; + private static final int METHODID_LIST_BRANCH_RULES = 12; + private static final int METHODID_GET_BRANCH_RULE = 13; + private static final int METHODID_UPDATE_BRANCH_RULE = 14; + private static final int METHODID_DELETE_BRANCH_RULE = 15; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1477,6 +2003,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_BRANCH_RULE: + serviceImpl.createBranchRule( + (com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BRANCH_RULES: + serviceImpl.listBranchRules( + (com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse>) + responseObserver); + break; + case METHODID_GET_BRANCH_RULE: + serviceImpl.getBranchRule( + (com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BRANCH_RULE: + serviceImpl.updateBranchRule( + (com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BRANCH_RULE: + serviceImpl.deleteBranchRule( + (com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1564,6 +2118,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( service, METHODID_TEST_IAM_PERMISSIONS_REPO))) + .addMethod( + getCreateBranchRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_BRANCH_RULE))) + .addMethod( + getListBranchRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse>( + service, METHODID_LIST_BRANCH_RULES))) + .addMethod( + getGetBranchRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest, + com.google.cloud.securesourcemanager.v1.BranchRule>( + service, METHODID_GET_BRANCH_RULE))) + .addMethod( + getUpdateBranchRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_BRANCH_RULE))) + .addMethod( + getDeleteBranchRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BRANCH_RULE))) .build(); } @@ -1626,6 +2212,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIamPolicyRepoMethod()) .addMethod(getSetIamPolicyRepoMethod()) .addMethod(getTestIamPermissionsRepoMethod()) + .addMethod(getCreateBranchRuleMethod()) + .addMethod(getListBranchRulesMethod()) + .addMethod(getGetBranchRuleMethod()) + .addMethod(getUpdateBranchRuleMethod()) + .addMethod(getDeleteBranchRuleMethod()) .build(); } } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java new file mode 100644 index 000000000000..e4db7020c61a --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java @@ -0,0 +1,4056 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * Metadata of a BranchRule. BranchRule is the protection rule to enforce
+ * pre-defined rules on desginated branches within a repository.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.BranchRule} + */ +public final class BranchRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.BranchRule) + BranchRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use BranchRule.newBuilder() to construct. + private BranchRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BranchRule() { + name_ = ""; + uid_ = ""; + etag_ = ""; + includePattern_ = ""; + requiredStatusChecks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BranchRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.BranchRule.class, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder.class); + } + + public interface CheckOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.BranchRule.Check) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The context of the check.
+     * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The context. + */ + java.lang.String getContext(); + /** + * + * + *
+     * Required. The context of the check.
+     * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for context. + */ + com.google.protobuf.ByteString getContextBytes(); + } + /** + * + * + *
+   * Check is a type for status check.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.BranchRule.Check} + */ + public static final class Check extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.BranchRule.Check) + CheckOrBuilder { + private static final long serialVersionUID = 0L; + // Use Check.newBuilder() to construct. + private Check(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Check() { + context_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Check(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.BranchRule.Check.class, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; + /** + * + * + *
+     * Required. The context of the check.
+     * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The context. + */ + @java.lang.Override + public java.lang.String getContext() { + java.lang.Object ref = context_; + 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(); + context_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The context of the check.
+     * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for context. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, context_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, context_); + } + 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.securesourcemanager.v1.BranchRule.Check)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.BranchRule.Check other = + (com.google.cloud.securesourcemanager.v1.BranchRule.Check) obj; + + if (!getContext().equals(other.getContext())) 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) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check 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.securesourcemanager.v1.BranchRule.Check parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check 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.securesourcemanager.v1.BranchRule.Check parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.BranchRule.Check 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Check is a type for status check.
+     * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.BranchRule.Check} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.BranchRule.Check) + com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.BranchRule.Check.class, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.BranchRule.Check.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + context_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule.Check getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.BranchRule.Check.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule.Check build() { + com.google.cloud.securesourcemanager.v1.BranchRule.Check result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule.Check buildPartial() { + com.google.cloud.securesourcemanager.v1.BranchRule.Check result = + new com.google.cloud.securesourcemanager.v1.BranchRule.Check(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securesourcemanager.v1.BranchRule.Check result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.BranchRule.Check) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.BranchRule.Check) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.BranchRule.Check other) { + if (other == com.google.cloud.securesourcemanager.v1.BranchRule.Check.getDefaultInstance()) + return this; + if (!other.getContext().isEmpty()) { + context_ = other.context_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object context_ = ""; + /** + * + * + *
+       * Required. The context of the check.
+       * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The context. + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The context of the check.
+       * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for context. + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The context of the check.
+       * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The context to set. + * @return This builder for chaining. + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The context of the check.
+       * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearContext() { + context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The context of the check.
+       * 
+ * + * string context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for context to set. + * @return This builder for chaining. + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + context_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.BranchRule.Check) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.BranchRule.Check) + private static final com.google.cloud.securesourcemanager.v1.BranchRule.Check DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.BranchRule.Check(); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule.Check getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Check 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.securesourcemanager.v1.BranchRule.Check getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Optional. A unique identifier for a BranchRule. The name should be of the
+   * format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique identifier for a BranchRule. The name should be of the
+   * format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. Unique identifier of the repository.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Unique identifier of the repository.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INCLUDE_PATTERN_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object includePattern_ = ""; + /** + * + * + *
+   * Optional. The pattern of the branch that can match to this BranchRule.
+   * Specified as regex.
+   * .* for all branches. Examples: main, (main|release.*).
+   * Current MVP phase only support `.*` for wildcard.
+   * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includePattern. + */ + @java.lang.Override + public java.lang.String getIncludePattern() { + java.lang.Object ref = includePattern_; + 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(); + includePattern_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The pattern of the branch that can match to this BranchRule.
+   * Specified as regex.
+   * .* for all branches. Examples: main, (main|release.*).
+   * Current MVP phase only support `.*` for wildcard.
+   * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for includePattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIncludePatternBytes() { + java.lang.Object ref = includePattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + includePattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 8; + private boolean disabled_ = false; + /** + * + * + *
+   * Optional. Determines if the branch rule is disabled or not.
+   * 
+ * + * bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int REQUIRE_PULL_REQUEST_FIELD_NUMBER = 9; + private boolean requirePullRequest_ = false; + /** + * + * + *
+   * Optional. Determines if the branch rule requires a pull request or not.
+   * 
+ * + * bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePullRequest. + */ + @java.lang.Override + public boolean getRequirePullRequest() { + return requirePullRequest_; + } + + public static final int MINIMUM_REVIEWS_COUNT_FIELD_NUMBER = 10; + private int minimumReviewsCount_ = 0; + /** + * + * + *
+   * Optional. The minimum number of reviews required for the branch rule to be
+   * matched.
+   * 
+ * + * int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumReviewsCount. + */ + @java.lang.Override + public int getMinimumReviewsCount() { + return minimumReviewsCount_; + } + + public static final int MINIMUM_APPROVALS_COUNT_FIELD_NUMBER = 11; + private int minimumApprovalsCount_ = 0; + /** + * + * + *
+   * Optional. The minimum number of approvals required for the branch rule to
+   * be matched.
+   * 
+ * + * int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumApprovalsCount. + */ + @java.lang.Override + public int getMinimumApprovalsCount() { + return minimumApprovalsCount_; + } + + public static final int REQUIRE_COMMENTS_RESOLVED_FIELD_NUMBER = 12; + private boolean requireCommentsResolved_ = false; + /** + * + * + *
+   * Optional. Determines if require comments resolved before merging to the
+   * branch.
+   * 
+ * + * bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCommentsResolved. + */ + @java.lang.Override + public boolean getRequireCommentsResolved() { + return requireCommentsResolved_; + } + + public static final int ALLOW_STALE_REVIEWS_FIELD_NUMBER = 15; + private boolean allowStaleReviews_ = false; + /** + * + * + *
+   * Optional. Determines if allow stale reviews or approvals before merging to
+   * the branch.
+   * 
+ * + * bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowStaleReviews. + */ + @java.lang.Override + public boolean getAllowStaleReviews() { + return allowStaleReviews_; + } + + public static final int REQUIRE_LINEAR_HISTORY_FIELD_NUMBER = 13; + private boolean requireLinearHistory_ = false; + /** + * + * + *
+   * Optional. Determines if require linear history before merging to the
+   * branch.
+   * 
+ * + * bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireLinearHistory. + */ + @java.lang.Override + public boolean getRequireLinearHistory() { + return requireLinearHistory_; + } + + public static final int REQUIRED_STATUS_CHECKS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List + requiredStatusChecks_; + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRequiredStatusChecksList() { + return requiredStatusChecks_; + } + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRequiredStatusChecksOrBuilderList() { + return requiredStatusChecks_; + } + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRequiredStatusChecksCount() { + return requiredStatusChecks_.size(); + } + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule.Check getRequiredStatusChecks( + int index) { + return requiredStatusChecks_.get(index); + } + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder + getRequiredStatusChecksOrBuilder(int index) { + return requiredStatusChecks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(includePattern_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, includePattern_); + } + if (disabled_ != false) { + output.writeBool(8, disabled_); + } + if (requirePullRequest_ != false) { + output.writeBool(9, requirePullRequest_); + } + if (minimumReviewsCount_ != 0) { + output.writeInt32(10, minimumReviewsCount_); + } + if (minimumApprovalsCount_ != 0) { + output.writeInt32(11, minimumApprovalsCount_); + } + if (requireCommentsResolved_ != false) { + output.writeBool(12, requireCommentsResolved_); + } + if (requireLinearHistory_ != false) { + output.writeBool(13, requireLinearHistory_); + } + for (int i = 0; i < requiredStatusChecks_.size(); i++) { + output.writeMessage(14, requiredStatusChecks_.get(i)); + } + if (allowStaleReviews_ != false) { + output.writeBool(15, allowStaleReviews_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(includePattern_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, includePattern_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, disabled_); + } + if (requirePullRequest_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, requirePullRequest_); + } + if (minimumReviewsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, minimumReviewsCount_); + } + if (minimumApprovalsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, minimumApprovalsCount_); + } + if (requireCommentsResolved_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, requireCommentsResolved_); + } + if (requireLinearHistory_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, requireLinearHistory_); + } + for (int i = 0; i < requiredStatusChecks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, requiredStatusChecks_.get(i)); + } + if (allowStaleReviews_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, allowStaleReviews_); + } + 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.securesourcemanager.v1.BranchRule)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.BranchRule other = + (com.google.cloud.securesourcemanager.v1.BranchRule) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getIncludePattern().equals(other.getIncludePattern())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (getRequirePullRequest() != other.getRequirePullRequest()) return false; + if (getMinimumReviewsCount() != other.getMinimumReviewsCount()) return false; + if (getMinimumApprovalsCount() != other.getMinimumApprovalsCount()) return false; + if (getRequireCommentsResolved() != other.getRequireCommentsResolved()) return false; + if (getAllowStaleReviews() != other.getAllowStaleReviews()) return false; + if (getRequireLinearHistory() != other.getRequireLinearHistory()) return false; + if (!getRequiredStatusChecksList().equals(other.getRequiredStatusChecksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + INCLUDE_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getIncludePattern().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (37 * hash) + REQUIRE_PULL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePullRequest()); + hash = (37 * hash) + MINIMUM_REVIEWS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinimumReviewsCount(); + hash = (37 * hash) + MINIMUM_APPROVALS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinimumApprovalsCount(); + hash = (37 * hash) + REQUIRE_COMMENTS_RESOLVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireCommentsResolved()); + hash = (37 * hash) + ALLOW_STALE_REVIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowStaleReviews()); + hash = (37 * hash) + REQUIRE_LINEAR_HISTORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireLinearHistory()); + if (getRequiredStatusChecksCount() > 0) { + hash = (37 * hash) + REQUIRED_STATUS_CHECKS_FIELD_NUMBER; + hash = (53 * hash) + getRequiredStatusChecksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule 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.securesourcemanager.v1.BranchRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule 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.securesourcemanager.v1.BranchRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.BranchRule 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata of a BranchRule. BranchRule is the protection rule to enforce
+   * pre-defined rules on desginated branches within a repository.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.BranchRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.BranchRule) + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.BranchRule.class, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.BranchRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getRequiredStatusChecksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableAnnotations().clear(); + etag_ = ""; + includePattern_ = ""; + disabled_ = false; + requirePullRequest_ = false; + minimumReviewsCount_ = 0; + minimumApprovalsCount_ = 0; + requireCommentsResolved_ = false; + allowStaleReviews_ = false; + requireLinearHistory_ = false; + if (requiredStatusChecksBuilder_ == null) { + requiredStatusChecks_ = java.util.Collections.emptyList(); + } else { + requiredStatusChecks_ = null; + requiredStatusChecksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule build() { + com.google.cloud.securesourcemanager.v1.BranchRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule buildPartial() { + com.google.cloud.securesourcemanager.v1.BranchRule result = + new com.google.cloud.securesourcemanager.v1.BranchRule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securesourcemanager.v1.BranchRule result) { + if (requiredStatusChecksBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + requiredStatusChecks_ = java.util.Collections.unmodifiableList(requiredStatusChecks_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.requiredStatusChecks_ = requiredStatusChecks_; + } else { + result.requiredStatusChecks_ = requiredStatusChecksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securesourcemanager.v1.BranchRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.includePattern_ = includePattern_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.requirePullRequest_ = requirePullRequest_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.minimumReviewsCount_ = minimumReviewsCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.minimumApprovalsCount_ = minimumApprovalsCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.requireCommentsResolved_ = requireCommentsResolved_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.allowStaleReviews_ = allowStaleReviews_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.requireLinearHistory_ = requireLinearHistory_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.BranchRule) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.BranchRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.BranchRule other) { + if (other == com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getIncludePattern().isEmpty()) { + includePattern_ = other.includePattern_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.getRequirePullRequest() != false) { + setRequirePullRequest(other.getRequirePullRequest()); + } + if (other.getMinimumReviewsCount() != 0) { + setMinimumReviewsCount(other.getMinimumReviewsCount()); + } + if (other.getMinimumApprovalsCount() != 0) { + setMinimumApprovalsCount(other.getMinimumApprovalsCount()); + } + if (other.getRequireCommentsResolved() != false) { + setRequireCommentsResolved(other.getRequireCommentsResolved()); + } + if (other.getAllowStaleReviews() != false) { + setAllowStaleReviews(other.getAllowStaleReviews()); + } + if (other.getRequireLinearHistory() != false) { + setRequireLinearHistory(other.getRequireLinearHistory()); + } + if (requiredStatusChecksBuilder_ == null) { + if (!other.requiredStatusChecks_.isEmpty()) { + if (requiredStatusChecks_.isEmpty()) { + requiredStatusChecks_ = other.requiredStatusChecks_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.addAll(other.requiredStatusChecks_); + } + onChanged(); + } + } else { + if (!other.requiredStatusChecks_.isEmpty()) { + if (requiredStatusChecksBuilder_.isEmpty()) { + requiredStatusChecksBuilder_.dispose(); + requiredStatusChecksBuilder_ = null; + requiredStatusChecks_ = other.requiredStatusChecks_; + bitField0_ = (bitField0_ & ~0x00004000); + requiredStatusChecksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequiredStatusChecksFieldBuilder() + : null; + } else { + requiredStatusChecksBuilder_.addAllMessages(other.requiredStatusChecks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + includePattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + requirePullRequest_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + minimumReviewsCount_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + minimumApprovalsCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + requireCommentsResolved_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + requireLinearHistory_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: + { + com.google.cloud.securesourcemanager.v1.BranchRule.Check m = + input.readMessage( + com.google.cloud.securesourcemanager.v1.BranchRule.Check.parser(), + extensionRegistry); + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.add(m); + } else { + requiredStatusChecksBuilder_.addMessage(m); + } + break; + } // case 114 + case 120: + { + allowStaleReviews_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional. A unique identifier for a BranchRule. The name should be of the
+     * format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique identifier for a BranchRule. The name should be of the
+     * format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique identifier for a BranchRule. The name should be of the
+     * format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique identifier for a BranchRule. The name should be of the
+     * format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique identifier for a BranchRule. The name should be of the
+     * format:
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. Unique identifier of the repository.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Unique identifier of the repository.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Unique identifier of the repository.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique identifier of the repository.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique identifier of the repository.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user. See https://google.aip.dev/128#annotations for more details such
+     * as format and size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object includePattern_ = ""; + /** + * + * + *
+     * Optional. The pattern of the branch that can match to this BranchRule.
+     * Specified as regex.
+     * .* for all branches. Examples: main, (main|release.*).
+     * Current MVP phase only support `.*` for wildcard.
+     * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includePattern. + */ + public java.lang.String getIncludePattern() { + java.lang.Object ref = includePattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + includePattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The pattern of the branch that can match to this BranchRule.
+     * Specified as regex.
+     * .* for all branches. Examples: main, (main|release.*).
+     * Current MVP phase only support `.*` for wildcard.
+     * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for includePattern. + */ + public com.google.protobuf.ByteString getIncludePatternBytes() { + java.lang.Object ref = includePattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + includePattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The pattern of the branch that can match to this BranchRule.
+     * Specified as regex.
+     * .* for all branches. Examples: main, (main|release.*).
+     * Current MVP phase only support `.*` for wildcard.
+     * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includePattern to set. + * @return This builder for chaining. + */ + public Builder setIncludePattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + includePattern_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pattern of the branch that can match to this BranchRule.
+     * Specified as regex.
+     * .* for all branches. Examples: main, (main|release.*).
+     * Current MVP phase only support `.*` for wildcard.
+     * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludePattern() { + includePattern_ = getDefaultInstance().getIncludePattern(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pattern of the branch that can match to this BranchRule.
+     * Specified as regex.
+     * .* for all branches. Examples: main, (main|release.*).
+     * Current MVP phase only support `.*` for wildcard.
+     * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for includePattern to set. + * @return This builder for chaining. + */ + public Builder setIncludePatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + includePattern_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Optional. Determines if the branch rule is disabled or not.
+     * 
+ * + * bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. Determines if the branch rule is disabled or not.
+     * 
+ * + * bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines if the branch rule is disabled or not.
+     * 
+ * + * bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000080); + disabled_ = false; + onChanged(); + return this; + } + + private boolean requirePullRequest_; + /** + * + * + *
+     * Optional. Determines if the branch rule requires a pull request or not.
+     * 
+ * + * bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePullRequest. + */ + @java.lang.Override + public boolean getRequirePullRequest() { + return requirePullRequest_; + } + /** + * + * + *
+     * Optional. Determines if the branch rule requires a pull request or not.
+     * 
+ * + * bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requirePullRequest to set. + * @return This builder for chaining. + */ + public Builder setRequirePullRequest(boolean value) { + + requirePullRequest_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines if the branch rule requires a pull request or not.
+     * 
+ * + * bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequirePullRequest() { + bitField0_ = (bitField0_ & ~0x00000100); + requirePullRequest_ = false; + onChanged(); + return this; + } + + private int minimumReviewsCount_; + /** + * + * + *
+     * Optional. The minimum number of reviews required for the branch rule to be
+     * matched.
+     * 
+ * + * int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumReviewsCount. + */ + @java.lang.Override + public int getMinimumReviewsCount() { + return minimumReviewsCount_; + } + /** + * + * + *
+     * Optional. The minimum number of reviews required for the branch rule to be
+     * matched.
+     * 
+ * + * int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minimumReviewsCount to set. + * @return This builder for chaining. + */ + public Builder setMinimumReviewsCount(int value) { + + minimumReviewsCount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The minimum number of reviews required for the branch rule to be
+     * matched.
+     * 
+ * + * int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinimumReviewsCount() { + bitField0_ = (bitField0_ & ~0x00000200); + minimumReviewsCount_ = 0; + onChanged(); + return this; + } + + private int minimumApprovalsCount_; + /** + * + * + *
+     * Optional. The minimum number of approvals required for the branch rule to
+     * be matched.
+     * 
+ * + * int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumApprovalsCount. + */ + @java.lang.Override + public int getMinimumApprovalsCount() { + return minimumApprovalsCount_; + } + /** + * + * + *
+     * Optional. The minimum number of approvals required for the branch rule to
+     * be matched.
+     * 
+ * + * int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minimumApprovalsCount to set. + * @return This builder for chaining. + */ + public Builder setMinimumApprovalsCount(int value) { + + minimumApprovalsCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The minimum number of approvals required for the branch rule to
+     * be matched.
+     * 
+ * + * int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinimumApprovalsCount() { + bitField0_ = (bitField0_ & ~0x00000400); + minimumApprovalsCount_ = 0; + onChanged(); + return this; + } + + private boolean requireCommentsResolved_; + /** + * + * + *
+     * Optional. Determines if require comments resolved before merging to the
+     * branch.
+     * 
+ * + * bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCommentsResolved. + */ + @java.lang.Override + public boolean getRequireCommentsResolved() { + return requireCommentsResolved_; + } + /** + * + * + *
+     * Optional. Determines if require comments resolved before merging to the
+     * branch.
+     * 
+ * + * bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requireCommentsResolved to set. + * @return This builder for chaining. + */ + public Builder setRequireCommentsResolved(boolean value) { + + requireCommentsResolved_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines if require comments resolved before merging to the
+     * branch.
+     * 
+ * + * bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequireCommentsResolved() { + bitField0_ = (bitField0_ & ~0x00000800); + requireCommentsResolved_ = false; + onChanged(); + return this; + } + + private boolean allowStaleReviews_; + /** + * + * + *
+     * Optional. Determines if allow stale reviews or approvals before merging to
+     * the branch.
+     * 
+ * + * bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowStaleReviews. + */ + @java.lang.Override + public boolean getAllowStaleReviews() { + return allowStaleReviews_; + } + /** + * + * + *
+     * Optional. Determines if allow stale reviews or approvals before merging to
+     * the branch.
+     * 
+ * + * bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowStaleReviews to set. + * @return This builder for chaining. + */ + public Builder setAllowStaleReviews(boolean value) { + + allowStaleReviews_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines if allow stale reviews or approvals before merging to
+     * the branch.
+     * 
+ * + * bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowStaleReviews() { + bitField0_ = (bitField0_ & ~0x00001000); + allowStaleReviews_ = false; + onChanged(); + return this; + } + + private boolean requireLinearHistory_; + /** + * + * + *
+     * Optional. Determines if require linear history before merging to the
+     * branch.
+     * 
+ * + * bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireLinearHistory. + */ + @java.lang.Override + public boolean getRequireLinearHistory() { + return requireLinearHistory_; + } + /** + * + * + *
+     * Optional. Determines if require linear history before merging to the
+     * branch.
+     * 
+ * + * bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requireLinearHistory to set. + * @return This builder for chaining. + */ + public Builder setRequireLinearHistory(boolean value) { + + requireLinearHistory_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines if require linear history before merging to the
+     * branch.
+     * 
+ * + * bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequireLinearHistory() { + bitField0_ = (bitField0_ & ~0x00002000); + requireLinearHistory_ = false; + onChanged(); + return this; + } + + private java.util.List + requiredStatusChecks_ = java.util.Collections.emptyList(); + + private void ensureRequiredStatusChecksIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + requiredStatusChecks_ = + new java.util.ArrayList( + requiredStatusChecks_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule.Check, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder, + com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder> + requiredStatusChecksBuilder_; + + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRequiredStatusChecksList() { + if (requiredStatusChecksBuilder_ == null) { + return java.util.Collections.unmodifiableList(requiredStatusChecks_); + } else { + return requiredStatusChecksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRequiredStatusChecksCount() { + if (requiredStatusChecksBuilder_ == null) { + return requiredStatusChecks_.size(); + } else { + return requiredStatusChecksBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Check getRequiredStatusChecks( + int index) { + if (requiredStatusChecksBuilder_ == null) { + return requiredStatusChecks_.get(index); + } else { + return requiredStatusChecksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequiredStatusChecks( + int index, com.google.cloud.securesourcemanager.v1.BranchRule.Check value) { + if (requiredStatusChecksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.set(index, value); + onChanged(); + } else { + requiredStatusChecksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequiredStatusChecks( + int index, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder builderForValue) { + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.set(index, builderForValue.build()); + onChanged(); + } else { + requiredStatusChecksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRequiredStatusChecks( + com.google.cloud.securesourcemanager.v1.BranchRule.Check value) { + if (requiredStatusChecksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.add(value); + onChanged(); + } else { + requiredStatusChecksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRequiredStatusChecks( + int index, com.google.cloud.securesourcemanager.v1.BranchRule.Check value) { + if (requiredStatusChecksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.add(index, value); + onChanged(); + } else { + requiredStatusChecksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRequiredStatusChecks( + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder builderForValue) { + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.add(builderForValue.build()); + onChanged(); + } else { + requiredStatusChecksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRequiredStatusChecks( + int index, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder builderForValue) { + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.add(index, builderForValue.build()); + onChanged(); + } else { + requiredStatusChecksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRequiredStatusChecks( + java.lang.Iterable + values) { + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requiredStatusChecks_); + onChanged(); + } else { + requiredStatusChecksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequiredStatusChecks() { + if (requiredStatusChecksBuilder_ == null) { + requiredStatusChecks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + requiredStatusChecksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRequiredStatusChecks(int index) { + if (requiredStatusChecksBuilder_ == null) { + ensureRequiredStatusChecksIsMutable(); + requiredStatusChecks_.remove(index); + onChanged(); + } else { + requiredStatusChecksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder + getRequiredStatusChecksBuilder(int index) { + return getRequiredStatusChecksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder + getRequiredStatusChecksOrBuilder(int index) { + if (requiredStatusChecksBuilder_ == null) { + return requiredStatusChecks_.get(index); + } else { + return requiredStatusChecksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder> + getRequiredStatusChecksOrBuilderList() { + if (requiredStatusChecksBuilder_ != null) { + return requiredStatusChecksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requiredStatusChecks_); + } + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder + addRequiredStatusChecksBuilder() { + return getRequiredStatusChecksFieldBuilder() + .addBuilder( + com.google.cloud.securesourcemanager.v1.BranchRule.Check.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder + addRequiredStatusChecksBuilder(int index) { + return getRequiredStatusChecksFieldBuilder() + .addBuilder( + index, com.google.cloud.securesourcemanager.v1.BranchRule.Check.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of required status checks before merging to the branch.
+     * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRequiredStatusChecksBuilderList() { + return getRequiredStatusChecksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule.Check, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder, + com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder> + getRequiredStatusChecksFieldBuilder() { + if (requiredStatusChecksBuilder_ == null) { + requiredStatusChecksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule.Check, + com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder, + com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder>( + requiredStatusChecks_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + requiredStatusChecks_ = null; + } + return requiredStatusChecksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.BranchRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.BranchRule) + private static final com.google.cloud.securesourcemanager.v1.BranchRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.BranchRule(); + } + + public static com.google.cloud.securesourcemanager.v1.BranchRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BranchRule 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.securesourcemanager.v1.BranchRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java new file mode 100644 index 000000000000..2a8efa61a5e6 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BranchRuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_BRANCH_RULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String branchRule; + + @Deprecated + protected BranchRuleName() { + project = null; + location = null; + repository = null; + branchRule = null; + } + + private BranchRuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + branchRule = Preconditions.checkNotNull(builder.getBranchRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getBranchRule() { + return branchRule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BranchRuleName of( + String project, String location, String repository, String branchRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setBranchRule(branchRule) + .build(); + } + + public static String format( + String project, String location, String repository, String branchRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setBranchRule(branchRule) + .build() + .toString(); + } + + public static BranchRuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_BRANCH_RULE.validatedMatch( + formattedString, "BranchRuleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("branch_rule")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BranchRuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_BRANCH_RULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (branchRule != null) { + fieldMapBuilder.put("branch_rule", branchRule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_BRANCH_RULE.instantiate( + "project", + project, + "location", + location, + "repository", + repository, + "branch_rule", + branchRule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BranchRuleName that = ((BranchRuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.branchRule, that.branchRule); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(repository); + h *= 1000003; + h ^= Objects.hashCode(branchRule); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + */ + public static class Builder { + private String project; + private String location; + private String repository; + private String branchRule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getBranchRule() { + return branchRule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setBranchRule(String branchRule) { + this.branchRule = branchRule; + return this; + } + + private Builder(BranchRuleName branchRuleName) { + this.project = branchRuleName.project; + this.location = branchRuleName.location; + this.repository = branchRuleName.repository; + this.branchRule = branchRuleName.branchRule; + } + + public BranchRuleName build() { + return new BranchRuleName(this); + } + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java new file mode 100644 index 000000000000..982035582ac5 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java @@ -0,0 +1,449 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface BranchRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.BranchRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A unique identifier for a BranchRule. The name should be of the
+   * format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional. A unique identifier for a BranchRule. The name should be of the
+   * format:
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Unique identifier of the repository.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. Unique identifier of the repository.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user. See https://google.aip.dev/128#annotations for more details such
+   * as format and size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. The pattern of the branch that can match to this BranchRule.
+   * Specified as regex.
+   * .* for all branches. Examples: main, (main|release.*).
+   * Current MVP phase only support `.*` for wildcard.
+   * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includePattern. + */ + java.lang.String getIncludePattern(); + /** + * + * + *
+   * Optional. The pattern of the branch that can match to this BranchRule.
+   * Specified as regex.
+   * .* for all branches. Examples: main, (main|release.*).
+   * Current MVP phase only support `.*` for wildcard.
+   * 
+ * + * string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for includePattern. + */ + com.google.protobuf.ByteString getIncludePatternBytes(); + + /** + * + * + *
+   * Optional. Determines if the branch rule is disabled or not.
+   * 
+ * + * bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
+   * Optional. Determines if the branch rule requires a pull request or not.
+   * 
+ * + * bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirePullRequest. + */ + boolean getRequirePullRequest(); + + /** + * + * + *
+   * Optional. The minimum number of reviews required for the branch rule to be
+   * matched.
+   * 
+ * + * int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumReviewsCount. + */ + int getMinimumReviewsCount(); + + /** + * + * + *
+   * Optional. The minimum number of approvals required for the branch rule to
+   * be matched.
+   * 
+ * + * int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimumApprovalsCount. + */ + int getMinimumApprovalsCount(); + + /** + * + * + *
+   * Optional. Determines if require comments resolved before merging to the
+   * branch.
+   * 
+ * + * bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCommentsResolved. + */ + boolean getRequireCommentsResolved(); + + /** + * + * + *
+   * Optional. Determines if allow stale reviews or approvals before merging to
+   * the branch.
+   * 
+ * + * bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowStaleReviews. + */ + boolean getAllowStaleReviews(); + + /** + * + * + *
+   * Optional. Determines if require linear history before merging to the
+   * branch.
+   * 
+ * + * bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireLinearHistory. + */ + boolean getRequireLinearHistory(); + + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRequiredStatusChecksList(); + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.BranchRule.Check getRequiredStatusChecks(int index); + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRequiredStatusChecksCount(); + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRequiredStatusChecksOrBuilderList(); + /** + * + * + *
+   * Optional. List of required status checks before merging to the branch.
+   * 
+ * + * + * repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder + getRequiredStatusChecksOrBuilder(int index); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequest.java new file mode 100644 index 000000000000..540de6a26714 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * CreateBranchRuleRequest is the request to create a branch rule.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.CreateBranchRuleRequest} + */ +public final class CreateBranchRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) + CreateBranchRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateBranchRuleRequest.newBuilder() to construct. + private CreateBranchRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateBranchRuleRequest() { + parent_ = ""; + branchRuleId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateBranchRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_RULE_FIELD_NUMBER = 2; + private com.google.cloud.securesourcemanager.v1.BranchRule branchRule_; + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + @java.lang.Override + public boolean hasBranchRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule() { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder() { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + + public static final int BRANCH_RULE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object branchRuleId_ = ""; + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The branchRuleId. + */ + @java.lang.Override + public java.lang.String getBranchRuleId() { + java.lang.Object ref = branchRuleId_; + 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(); + branchRuleId_ = s; + return s; + } + } + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for branchRuleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchRuleIdBytes() { + java.lang.Object ref = branchRuleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branchRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBranchRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branchRuleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, branchRuleId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBranchRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branchRuleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, branchRuleId_); + } + 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.securesourcemanager.v1.CreateBranchRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest other = + (com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasBranchRule() != other.hasBranchRule()) return false; + if (hasBranchRule()) { + if (!getBranchRule().equals(other.getBranchRule())) return false; + } + if (!getBranchRuleId().equals(other.getBranchRuleId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasBranchRule()) { + hash = (37 * hash) + BRANCH_RULE_FIELD_NUMBER; + hash = (53 * hash) + getBranchRule().hashCode(); + } + hash = (37 * hash) + BRANCH_RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBranchRuleId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest 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.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest 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.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.CreateBranchRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CreateBranchRuleRequest is the request to create a branch rule.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.CreateBranchRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBranchRuleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + branchRule_ = null; + if (branchRuleBuilder_ != null) { + branchRuleBuilder_.dispose(); + branchRuleBuilder_ = null; + } + branchRuleId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest build() { + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest buildPartial() { + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest result = + new com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branchRule_ = branchRuleBuilder_ == null ? branchRule_ : branchRuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.branchRuleId_ = branchRuleId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest other) { + if (other + == com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasBranchRule()) { + mergeBranchRule(other.getBranchRule()); + } + if (!other.getBranchRuleId().isEmpty()) { + branchRuleId_ = other.branchRuleId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getBranchRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + branchRuleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.securesourcemanager.v1.BranchRule branchRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + branchRuleBuilder_; + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + public boolean hasBranchRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule() { + if (branchRuleBuilder_ == null) { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } else { + return branchRuleBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBranchRule(com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + branchRule_ = value; + } else { + branchRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBranchRule( + com.google.cloud.securesourcemanager.v1.BranchRule.Builder builderForValue) { + if (branchRuleBuilder_ == null) { + branchRule_ = builderForValue.build(); + } else { + branchRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBranchRule(com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && branchRule_ != null + && branchRule_ + != com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance()) { + getBranchRuleBuilder().mergeFrom(value); + } else { + branchRule_ = value; + } + } else { + branchRuleBuilder_.mergeFrom(value); + } + if (branchRule_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBranchRule() { + bitField0_ = (bitField0_ & ~0x00000002); + branchRule_ = null; + if (branchRuleBuilder_ != null) { + branchRuleBuilder_.dispose(); + branchRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Builder getBranchRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBranchRuleFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder() { + if (branchRuleBuilder_ != null) { + return branchRuleBuilder_.getMessageOrBuilder(); + } else { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + getBranchRuleFieldBuilder() { + if (branchRuleBuilder_ == null) { + branchRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder>( + getBranchRule(), getParentForChildren(), isClean()); + branchRule_ = null; + } + return branchRuleBuilder_; + } + + private java.lang.Object branchRuleId_ = ""; + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The branchRuleId. + */ + public java.lang.String getBranchRuleId() { + java.lang.Object ref = branchRuleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branchRuleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for branchRuleId. + */ + public com.google.protobuf.ByteString getBranchRuleIdBytes() { + java.lang.Object ref = branchRuleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branchRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The branchRuleId to set. + * @return This builder for chaining. + */ + public Builder setBranchRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branchRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBranchRuleId() { + branchRuleId_ = getDefaultInstance().getBranchRuleId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for branchRuleId to set. + * @return This builder for chaining. + */ + public Builder setBranchRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branchRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) + private static final com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest(); + } + + public static com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBranchRuleRequest 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.securesourcemanager.v1.CreateBranchRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequestOrBuilder.java new file mode 100644 index 000000000000..9f9ade478a7b --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateBranchRuleRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface CreateBranchRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.CreateBranchRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + boolean hasBranchRule(); + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule(); + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder(); + + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The branchRuleId. + */ + java.lang.String getBranchRuleId(); + /** + * string branch_rule_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for branchRuleId. + */ + com.google.protobuf.ByteString getBranchRuleIdBytes(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequest.java new file mode 100644 index 000000000000..e16291a606b9 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequest.java @@ -0,0 +1,702 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * DeleteBranchRuleRequest is the request to delete a branch rule.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest} + */ +public final class DeleteBranchRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) + DeleteBranchRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBranchRuleRequest.newBuilder() to construct. + private DeleteBranchRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBranchRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBranchRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 2; + private boolean allowMissing_ = false; + /** + * + * + *
+   * Optional. If set to true, and the branch rule is not found, the request
+   * will succeed but no action will be taken on the server.
+   * 
+ * + * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (allowMissing_ != false) { + output.writeBool(2, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMissing_); + } + 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.securesourcemanager.v1.DeleteBranchRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest other = + (com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest 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.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest 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.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.DeleteBranchRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DeleteBranchRuleRequest is the request to delete a branch rule.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest build() { + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest buildPartial() { + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest result = + new com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest other) { + if (other + == com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean allowMissing_; + /** + * + * + *
+     * Optional. If set to true, and the branch rule is not found, the request
+     * will succeed but no action will be taken on the server.
+     * 
+ * + * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * Optional. If set to true, and the branch rule is not found, the request
+     * will succeed but no action will be taken on the server.
+     * 
+ * + * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, and the branch rule is not found, the request
+     * will succeed but no action will be taken on the server.
+     * 
+ * + * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000002); + allowMissing_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) + private static final com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest(); + } + + public static com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBranchRuleRequest 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.securesourcemanager.v1.DeleteBranchRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequestOrBuilder.java new file mode 100644 index 000000000000..d54bc3934ace --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteBranchRuleRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface DeleteBranchRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, and the branch rule is not found, the request
+   * will succeed but no action will be taken on the server.
+   * 
+ * + * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequest.java new file mode 100644 index 000000000000..f3571014c6cd --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * GetBranchRuleRequest is the request for getting a branch rule.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.GetBranchRuleRequest} + */ +public final class GetBranchRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.GetBranchRuleRequest) + GetBranchRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBranchRuleRequest.newBuilder() to construct. + private GetBranchRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBranchRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBranchRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the repository to retrieve.
+   * The format is
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the repository to retrieve.
+   * The format is
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest other = + (com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest 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.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest 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.securesourcemanager.v1.GetBranchRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.GetBranchRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetBranchRuleRequest is the request for getting a branch rule.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.GetBranchRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.GetBranchRuleRequest) + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest build() { + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest buildPartial() { + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest result = + new com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest other) { + if (other + == com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the repository to retrieve.
+     * The format is
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the repository to retrieve.
+     * The format is
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the repository to retrieve.
+     * The format is
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the repository to retrieve.
+     * The format is
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the repository to retrieve.
+     * The format is
+     * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.GetBranchRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.GetBranchRuleRequest) + private static final com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest(); + } + + public static com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBranchRuleRequest 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.securesourcemanager.v1.GetBranchRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequestOrBuilder.java new file mode 100644 index 000000000000..c74547fccf50 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/GetBranchRuleRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface GetBranchRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.GetBranchRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the repository to retrieve.
+   * The format is
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the repository to retrieve.
+   * The format is
+   * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java index e5d2d322cd0a..a5a831a104e2 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java @@ -1849,6 +1849,69 @@ public interface PrivateConfigOrBuilder * @return The bytes for sshServiceAttachment. */ com.google.protobuf.ByteString getSshServiceAttachmentBytes(); + + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the pscAllowedProjects. + */ + java.util.List getPscAllowedProjectsList(); + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of pscAllowedProjects. + */ + int getPscAllowedProjectsCount(); + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The pscAllowedProjects at the given index. + */ + java.lang.String getPscAllowedProjects(int index); + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAllowedProjects at the given index. + */ + com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index); } /** * @@ -1873,6 +1936,7 @@ private PrivateConfig() { caPool_ = ""; httpServiceAttachment_ = ""; sshServiceAttachment_ = ""; + pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -2087,6 +2151,82 @@ public com.google.protobuf.ByteString getSshServiceAttachmentBytes() { } } + public static final int PSC_ALLOWED_PROJECTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pscAllowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the pscAllowedProjects. + */ + public com.google.protobuf.ProtocolStringList getPscAllowedProjectsList() { + return pscAllowedProjects_; + } + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of pscAllowedProjects. + */ + public int getPscAllowedProjectsCount() { + return pscAllowedProjects_.size(); + } + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The pscAllowedProjects at the given index. + */ + public java.lang.String getPscAllowedProjects(int index) { + return pscAllowedProjects_.get(index); + } + /** + * + * + *
+     * Optional. Additional allowed projects for setting up PSC connections.
+     * Instance host project is automatically allowed and does not need to be
+     * included in this list.
+     * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAllowedProjects at the given index. + */ + public com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index) { + return pscAllowedProjects_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2113,6 +2253,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sshServiceAttachment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sshServiceAttachment_); } + for (int i = 0; i < pscAllowedProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, pscAllowedProjects_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -2134,6 +2278,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sshServiceAttachment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sshServiceAttachment_); } + { + int dataSize = 0; + for (int i = 0; i < pscAllowedProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(pscAllowedProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getPscAllowedProjectsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2154,6 +2306,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCaPool().equals(other.getCaPool())) return false; if (!getHttpServiceAttachment().equals(other.getHttpServiceAttachment())) return false; if (!getSshServiceAttachment().equals(other.getSshServiceAttachment())) return false; + if (!getPscAllowedProjectsList().equals(other.getPscAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2173,6 +2326,10 @@ public int hashCode() { hash = (53 * hash) + getHttpServiceAttachment().hashCode(); hash = (37 * hash) + SSH_SERVICE_ATTACHMENT_FIELD_NUMBER; hash = (53 * hash) + getSshServiceAttachment().hashCode(); + if (getPscAllowedProjectsCount() > 0) { + hash = (37 * hash) + PSC_ALLOWED_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getPscAllowedProjectsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2319,6 +2476,7 @@ public Builder clear() { caPool_ = ""; httpServiceAttachment_ = ""; sshServiceAttachment_ = ""; + pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2369,6 +2527,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.sshServiceAttachment_ = sshServiceAttachment_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + pscAllowedProjects_.makeImmutable(); + result.pscAllowedProjects_ = pscAllowedProjects_; + } } @java.lang.Override @@ -2439,6 +2601,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (!other.pscAllowedProjects_.isEmpty()) { + if (pscAllowedProjects_.isEmpty()) { + pscAllowedProjects_ = other.pscAllowedProjects_; + bitField0_ |= 0x00000010; + } else { + ensurePscAllowedProjectsIsMutable(); + pscAllowedProjects_.addAll(other.pscAllowedProjects_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2489,6 +2661,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePscAllowedProjectsIsMutable(); + pscAllowedProjects_.add(s); + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2930,6 +3109,207 @@ public Builder setSshServiceAttachmentBytes(com.google.protobuf.ByteString value return this; } + private com.google.protobuf.LazyStringArrayList pscAllowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePscAllowedProjectsIsMutable() { + if (!pscAllowedProjects_.isModifiable()) { + pscAllowedProjects_ = new com.google.protobuf.LazyStringArrayList(pscAllowedProjects_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the pscAllowedProjects. + */ + public com.google.protobuf.ProtocolStringList getPscAllowedProjectsList() { + pscAllowedProjects_.makeImmutable(); + return pscAllowedProjects_; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of pscAllowedProjects. + */ + public int getPscAllowedProjectsCount() { + return pscAllowedProjects_.size(); + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The pscAllowedProjects at the given index. + */ + public java.lang.String getPscAllowedProjects(int index) { + return pscAllowedProjects_.get(index); + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAllowedProjects at the given index. + */ + public com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index) { + return pscAllowedProjects_.getByteString(index); + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The pscAllowedProjects to set. + * @return This builder for chaining. + */ + public Builder setPscAllowedProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAllowedProjectsIsMutable(); + pscAllowedProjects_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAllowedProjects to add. + * @return This builder for chaining. + */ + public Builder addPscAllowedProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAllowedProjectsIsMutable(); + pscAllowedProjects_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The pscAllowedProjects to add. + * @return This builder for chaining. + */ + public Builder addAllPscAllowedProjects(java.lang.Iterable values) { + ensurePscAllowedProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAllowedProjects_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAllowedProjects() { + pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Additional allowed projects for setting up PSC connections.
+       * Instance host project is automatically allowed and does not need to be
+       * included in this list.
+       * 
+ * + * repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the pscAllowedProjects to add. + * @return This builder for chaining. + */ + public Builder addPscAllowedProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePscAllowedProjectsIsMutable(); + pscAllowedProjects_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java new file mode 100644 index 000000000000..e5d99592511e --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java @@ -0,0 +1,813 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * ListBranchRulesRequest is the request to list branch rules.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.ListBranchRulesRequest} + */ +public final class ListBranchRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.ListBranchRulesRequest) + ListBranchRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBranchRulesRequest.newBuilder() to construct. + private ListBranchRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBranchRulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBranchRulesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.class, + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest other = + (com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest 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.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest 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.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.ListBranchRulesRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListBranchRulesRequest is the request to list branch rules.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.ListBranchRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.ListBranchRulesRequest) + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.class, + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest build() { + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest buildPartial() { + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest result = + new com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest other) { + if (other + == com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.ListBranchRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.ListBranchRulesRequest) + private static final com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest(); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBranchRulesRequest 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.securesourcemanager.v1.ListBranchRulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java new file mode 100644 index 000000000000..6e6e5a415fac --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface ListBranchRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.ListBranchRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponse.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponse.java new file mode 100644 index 000000000000..5623b40b4185 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponse.java @@ -0,0 +1,1137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * ListBranchRulesResponse is the response to listing branchRules.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.ListBranchRulesResponse} + */ +public final class ListBranchRulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.ListBranchRulesResponse) + ListBranchRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBranchRulesResponse.newBuilder() to construct. + private ListBranchRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBranchRulesResponse() { + branchRules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBranchRulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.class, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.Builder.class); + } + + public static final int BRANCH_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List branchRules_; + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + @java.lang.Override + public java.util.List getBranchRulesList() { + return branchRules_; + } + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + @java.lang.Override + public java.util.List + getBranchRulesOrBuilderList() { + return branchRules_; + } + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + @java.lang.Override + public int getBranchRulesCount() { + return branchRules_.size(); + } + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRules(int index) { + return branchRules_.get(index); + } + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRulesOrBuilder( + int index) { + return branchRules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < branchRules_.size(); i++) { + output.writeMessage(1, branchRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < branchRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, branchRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.securesourcemanager.v1.ListBranchRulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse other = + (com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse) obj; + + if (!getBranchRulesList().equals(other.getBranchRulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBranchRulesCount() > 0) { + hash = (37 * hash) + BRANCH_RULES_FIELD_NUMBER; + hash = (53 * hash) + getBranchRulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse 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.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse 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.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.ListBranchRulesResponse 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListBranchRulesResponse is the response to listing branchRules.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.ListBranchRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.ListBranchRulesResponse) + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.class, + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (branchRulesBuilder_ == null) { + branchRules_ = java.util.Collections.emptyList(); + } else { + branchRules_ = null; + branchRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse build() { + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse buildPartial() { + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse result = + new com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse result) { + if (branchRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + branchRules_ = java.util.Collections.unmodifiableList(branchRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.branchRules_ = branchRules_; + } else { + result.branchRules_ = branchRulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse other) { + if (other + == com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse.getDefaultInstance()) + return this; + if (branchRulesBuilder_ == null) { + if (!other.branchRules_.isEmpty()) { + if (branchRules_.isEmpty()) { + branchRules_ = other.branchRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBranchRulesIsMutable(); + branchRules_.addAll(other.branchRules_); + } + onChanged(); + } + } else { + if (!other.branchRules_.isEmpty()) { + if (branchRulesBuilder_.isEmpty()) { + branchRulesBuilder_.dispose(); + branchRulesBuilder_ = null; + branchRules_ = other.branchRules_; + bitField0_ = (bitField0_ & ~0x00000001); + branchRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBranchRulesFieldBuilder() + : null; + } else { + branchRulesBuilder_.addAllMessages(other.branchRules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securesourcemanager.v1.BranchRule m = + input.readMessage( + com.google.cloud.securesourcemanager.v1.BranchRule.parser(), + extensionRegistry); + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + branchRules_.add(m); + } else { + branchRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List branchRules_ = + java.util.Collections.emptyList(); + + private void ensureBranchRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + branchRules_ = + new java.util.ArrayList( + branchRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + branchRulesBuilder_; + + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public java.util.List getBranchRulesList() { + if (branchRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(branchRules_); + } else { + return branchRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public int getBranchRulesCount() { + if (branchRulesBuilder_ == null) { + return branchRules_.size(); + } else { + return branchRulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRules(int index) { + if (branchRulesBuilder_ == null) { + return branchRules_.get(index); + } else { + return branchRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder setBranchRules( + int index, com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchRulesIsMutable(); + branchRules_.set(index, value); + onChanged(); + } else { + branchRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder setBranchRules( + int index, com.google.cloud.securesourcemanager.v1.BranchRule.Builder builderForValue) { + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + branchRules_.set(index, builderForValue.build()); + onChanged(); + } else { + branchRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder addBranchRules(com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchRulesIsMutable(); + branchRules_.add(value); + onChanged(); + } else { + branchRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder addBranchRules( + int index, com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchRulesIsMutable(); + branchRules_.add(index, value); + onChanged(); + } else { + branchRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder addBranchRules( + com.google.cloud.securesourcemanager.v1.BranchRule.Builder builderForValue) { + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + branchRules_.add(builderForValue.build()); + onChanged(); + } else { + branchRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder addBranchRules( + int index, com.google.cloud.securesourcemanager.v1.BranchRule.Builder builderForValue) { + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + branchRules_.add(index, builderForValue.build()); + onChanged(); + } else { + branchRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder addAllBranchRules( + java.lang.Iterable values) { + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, branchRules_); + onChanged(); + } else { + branchRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder clearBranchRules() { + if (branchRulesBuilder_ == null) { + branchRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + branchRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public Builder removeBranchRules(int index) { + if (branchRulesBuilder_ == null) { + ensureBranchRulesIsMutable(); + branchRules_.remove(index); + onChanged(); + } else { + branchRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Builder getBranchRulesBuilder( + int index) { + return getBranchRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRulesOrBuilder( + int index) { + if (branchRulesBuilder_ == null) { + return branchRules_.get(index); + } else { + return branchRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public java.util.List + getBranchRulesOrBuilderList() { + if (branchRulesBuilder_ != null) { + return branchRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(branchRules_); + } + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Builder addBranchRulesBuilder() { + return getBranchRulesFieldBuilder() + .addBuilder(com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Builder addBranchRulesBuilder( + int index) { + return getBranchRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of branch rules.
+     * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + public java.util.List + getBranchRulesBuilderList() { + return getBranchRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + getBranchRulesFieldBuilder() { + if (branchRulesBuilder_ == null) { + branchRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder>( + branchRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + branchRules_ = null; + } + return branchRulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.ListBranchRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.ListBranchRulesResponse) + private static final com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse(); + } + + public static com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBranchRulesResponse 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.securesourcemanager.v1.ListBranchRulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponseOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponseOrBuilder.java new file mode 100644 index 000000000000..75b245b1f2d8 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface ListBranchRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.ListBranchRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + java.util.List getBranchRulesList(); + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + com.google.cloud.securesourcemanager.v1.BranchRule getBranchRules(int index); + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + int getBranchRulesCount(); + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + java.util.List + getBranchRulesOrBuilderList(); + /** + * + * + *
+   * The list of branch rules.
+   * 
+ * + * repeated .google.cloud.securesourcemanager.v1.BranchRule branch_rules = 1; + */ + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRulesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java index dbb2bf6590f7..69f6f1fd0c10 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java @@ -42,6 +42,7 @@ private ListRepositoriesRequest() { parent_ = ""; pageToken_ = ""; filter_ = ""; + instance_ = ""; } @java.lang.Override @@ -241,6 +242,73 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int INSTANCE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + /** + * + * + *
+   * Optional. The name of the instance in which the repository is hosted,
+   * formatted as
+   * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+   * When listing repositories via
+   * securesourcemanager.googleapis.com (Control Plane API), this field is
+   * required. When listing repositories via *.sourcemanager.dev (Data Plane
+   * API), this field is ignored.
+   * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the instance in which the repository is hosted,
+   * formatted as
+   * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+   * When listing repositories via
+   * securesourcemanager.googleapis.com (Control Plane API), this field is
+   * required. When listing repositories via *.sourcemanager.dev (Data Plane
+   * API), this field is ignored.
+   * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -267,6 +335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, instance_); + } getUnknownFields().writeTo(output); } @@ -288,6 +359,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, instance_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -308,6 +382,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (!getInstance().equals(other.getInstance())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,6 +402,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -471,6 +548,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; filter_ = ""; + instance_ = ""; return this; } @@ -521,6 +599,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.instance_ = instance_; + } } @java.lang.Override @@ -589,6 +670,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -639,6 +725,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1042,6 +1134,152 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object instance_ = ""; + /** + * + * + *
+     * Optional. The name of the instance in which the repository is hosted,
+     * formatted as
+     * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+     * When listing repositories via
+     * securesourcemanager.googleapis.com (Control Plane API), this field is
+     * required. When listing repositories via *.sourcemanager.dev (Data Plane
+     * API), this field is ignored.
+     * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the instance in which the repository is hosted,
+     * formatted as
+     * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+     * When listing repositories via
+     * securesourcemanager.googleapis.com (Control Plane API), this field is
+     * required. When listing repositories via *.sourcemanager.dev (Data Plane
+     * API), this field is ignored.
+     * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the instance in which the repository is hosted,
+     * formatted as
+     * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+     * When listing repositories via
+     * securesourcemanager.googleapis.com (Control Plane API), this field is
+     * required. When listing repositories via *.sourcemanager.dev (Data Plane
+     * API), this field is ignored.
+     * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the instance in which the repository is hosted,
+     * formatted as
+     * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+     * When listing repositories via
+     * securesourcemanager.googleapis.com (Control Plane API), this field is
+     * required. When listing repositories via *.sourcemanager.dev (Data Plane
+     * API), this field is ignored.
+     * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the instance in which the repository is hosted,
+     * formatted as
+     * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+     * When listing repositories via
+     * securesourcemanager.googleapis.com (Control Plane API), this field is
+     * required. When listing repositories via *.sourcemanager.dev (Data Plane
+     * API), this field is ignored.
+     * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java index cd027c848c92..1077d7ef04b7 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java @@ -116,4 +116,45 @@ public interface ListRepositoriesRequestOrBuilder * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The name of the instance in which the repository is hosted,
+   * formatted as
+   * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+   * When listing repositories via
+   * securesourcemanager.googleapis.com (Control Plane API), this field is
+   * required. When listing repositories via *.sourcemanager.dev (Data Plane
+   * API), this field is ignored.
+   * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + /** + * + * + *
+   * Optional. The name of the instance in which the repository is hosted,
+   * formatted as
+   * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+   * When listing repositories via
+   * securesourcemanager.googleapis.com (Control Plane API), this field is
+   * required. When listing repositories via *.sourcemanager.dev (Data Plane
+   * API), this field is ignored.
+   * 
+ * + * + * string instance = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java index 610338bec0d1..9eacfbfa1884 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java @@ -4019,11 +4019,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The instance. */ @@ -4046,11 +4050,15 @@ public java.lang.String getInstance() { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for instance. */ @@ -5200,11 +5208,15 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The instance. */ @@ -5226,11 +5238,15 @@ public java.lang.String getInstance() { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for instance. */ @@ -5252,11 +5268,15 @@ public com.google.protobuf.ByteString getInstanceBytes() { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The instance to set. * @return This builder for chaining. @@ -5277,11 +5297,15 @@ public Builder setInstance(java.lang.String value) { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -5298,11 +5322,15 @@ public Builder clearInstance() { * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for instance to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java index e0a665bf1229..b02020079b3b 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java @@ -87,11 +87,15 @@ public interface RepositoryOrBuilder * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The instance. */ @@ -103,11 +107,15 @@ public interface RepositoryOrBuilder * Optional. The name of the instance in which the repository is hosted, * formatted as * `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - * For data plane CreateRepository requests, this field is output only. - * For control plane CreateRepository requests, this field is used as input. + * When creating repository via + * securesourcemanager.googleapis.com (Control Plane API), this field is used + * as input. When creating repository via *.sourcemanager.dev (Data Plane + * API), this field is output only. * * - * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for instance. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java index 9dc54f577b5f..fbaf21bb6e12 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java @@ -56,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securesourcemanager_v1_Repository_InitialConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securesourcemanager_v1_Repository_InitialConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_BranchRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securesourcemanager_v1_ListInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,6 +112,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -117,175 +153,254 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/resource.proto\032\036google/iam/v1/iam_pol" + "icy.proto\032\032google/iam/v1/policy.proto\032#g" + "oogle/longrunning/operations.proto\032\033goog" - + "le/protobuf/empty.proto\032\037google/protobuf" - + "/timestamp.proto\"\262\n\n\010Instance\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\001\0224\n\013create_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n\006" - + "labels\030\004 \003(\01329.google.cloud.securesource" - + "manager.v1.Instance.LabelsEntryB\003\340A\001\022X\n\016" - + "private_config\030\r \001(\0132;.google.cloud.secu" - + "resourcemanager.v1.Instance.PrivateConfi" - + "gB\003\340A\001\022G\n\005state\030\005 \001(\01623.google.cloud.sec" - + "uresourcemanager.v1.Instance.StateB\003\340A\003\022" - + "P\n\nstate_note\030\n \001(\01627.google.cloud.secur" - + "esourcemanager.v1.Instance.StateNoteB\003\340A" - + "\003\022:\n\007kms_key\030\013 \001(\tB)\340A\005\372A#\n!cloudkms.goo" - + "gleapis.com/CryptoKey\022R\n\013host_config\030\t \001" - + "(\01328.google.cloud.securesourcemanager.v1" - + ".Instance.HostConfigB\003\340A\003\032^\n\nHostConfig\022" - + "\021\n\004html\030\001 \001(\tB\003\340A\003\022\020\n\003api\030\002 \001(\tB\003\340A\003\022\025\n\010" - + "git_http\030\003 \001(\tB\003\340A\003\022\024\n\007git_ssh\030\004 \001(\tB\003\340A" - + "\003\032\215\002\n\rPrivateConfig\022\032\n\nis_private\030\001 \001(\010B" - + "\006\340A\005\340A\002\022;\n\007ca_pool\030\002 \001(\tB*\340A\005\340A\002\372A!\n\037pri" - + "vateca.googleapis.com/CaPool\022Q\n\027http_ser" - + "vice_attachment\030\003 \001(\tB0\340A\003\372A*\n(compute.g" - + "oogleapis.com/ServiceAttachment\022P\n\026ssh_s" - + "ervice_attachment\030\004 \001(\tB0\340A\003\372A*\n(compute" - + ".googleapis.com/ServiceAttachment\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"_\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" - + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006PAUS" - + "ED\020\004\022\013\n\007UNKNOWN\020\006\"_\n\tStateNote\022\032\n\026STATE_" - + "NOTE_UNSPECIFIED\020\000\022\033\n\027PAUSED_CMEK_UNAVAI" - + "LABLE\020\001\022\031\n\021INSTANCE_RESUMING\020\002\032\002\010\001:q\352An\n" - + "+securesourcemanager.googleapis.com/Inst" - + "ance\022\332" - + "A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/l" - + "ocations/*}/instances\022\263\001\n\013GetInstance\0227." - + "google.cloud.securesourcemanager.v1.GetI" - + "nstanceRequest\032-.google.cloud.securesour" - + "cemanager.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v" - + "1/{name=projects/*/locations/*/instances" - + "/*}\022\352\001\n\016CreateInstance\022:.google.cloud.se" - + "curesourcemanager.v1.CreateInstanceReque" - + "st\032\035.google.longrunning.Operation\"}\312A\035\n\010" - + "Instance\022\021OperationMetadata\332A\033parent,ins" - + "tance,instance_id\202\323\344\223\0029\"-/v1/{parent=pro" - + "jects/*/locations/*}/instances:\010instance" - + "\022\326\001\n\016DeleteInstance\022:.google.cloud.secur" - + "esourcemanager.v1.DeleteInstanceRequest\032" - + "\035.google.longrunning.Operation\"i\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002/*-/v1/{name=projects/*/locatio" - + "ns/*/instances/*}\022\322\001\n\020ListRepositories\022<" - + ".google.cloud.securesourcemanager.v1.Lis" - + "tRepositoriesRequest\032=.google.cloud.secu" - + "resourcemanager.v1.ListRepositoriesRespo" - + "nse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projec" - + "ts/*/locations/*}/repositories\022\274\001\n\rGetRe" - + "pository\0229.google.cloud.securesourcemana" - + "ger.v1.GetRepositoryRequest\032/.google.clo" - + "ud.securesourcemanager.v1.Repository\"?\332A" - + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locati" - + "ons/*/repositories/*}\022\372\001\n\020CreateReposito" - + "ry\022<.google.cloud.securesourcemanager.v1" - + ".CreateRepositoryRequest\032\035.google.longru" - + "nning.Operation\"\210\001\312A\037\n\nRepository\022\021Opera" - + "tionMetadata\332A\037parent,repository,reposit" - + "ory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/loc" - + "ations/*}/repositories:\nrepository\022\335\001\n\020D" - + "eleteRepository\022<.google.cloud.securesou" - + "rcemanager.v1.DeleteRepositoryRequest\032\035." - + "google.longrunning.Operation\"l\312A*\n\025googl" - + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\0022*0/v1/{name=projects/*/locations" - + "/*/repositories/*}\022\243\001\n\020GetIamPolicyRepo\022" - + "\".google.iam.v1.GetIamPolicyRequest\032\025.go" - + "ogle.iam.v1.Policy\"T\332A\010resource\202\323\344\223\002C\022A/" - + "v1/{resource=projects/*/locations/*/repo" - + "sitories/*}:getIamPolicy\022\246\001\n\020SetIamPolic" - + "yRepo\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"W\332A\010resource\202\323\344" - + "\223\002F\"A/v1/{resource=projects/*/locations/" - + "*/repositories/*}:setIamPolicy:\001*\022\314\001\n\026Te" - + "stIamPermissionsRepo\022(.google.iam.v1.Tes" - + "tIamPermissionsRequest\032).google.iam.v1.T" - + "estIamPermissionsResponse\"]\332A\010resource\202\323" - + "\344\223\002L\"G/v1/{resource=projects/*/locations" - + "/*/repositories/*}:testIamPermissions:\001*" - + "\032V\312A\"securesourcemanager.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\351\004\n\'com.google.cloud.securesour" - + "cemanager.v1B\030SecureSourceManagerProtoP\001" - + "ZYcloud.google.com/go/securesourcemanage" - + "r/apiv1/securesourcemanagerpb;securesour" - + "cemanagerpb\252\002#Google.Cloud.SecureSourceM" - + "anager.V1\312\002#Google\\Cloud\\SecureSourceMan" - + "ager\\V1\352\002&Google::Cloud::SecureSourceMan" - + "ager::V1\352Ax\n!cloudkms.googleapis.com/Cry" - + "ptoKey\022Sprojects/{project}/locations/{lo" - + "cation}/keyRings/{key_ring}/cryptoKeys/{" - + "crypto_key}\352A\\\n\037privateca.googleapis.com" - + "/CaPool\0229projects/{project}/locations/{l" - + "ocation}/caPools/{ca_pool}\352Aw\n(compute.g" - + "oogleapis.com/ServiceAttachment\022Kproject" - + "s/{project}/regions/{region}/serviceAtta" - + "chments/{service_attachment}b\006proto3" + + "nce.HostConfigB\003\340A\003\032^\n\nHostConfig\022\021\n\004htm" + + "l\030\001 \001(\tB\003\340A\003\022\020\n\003api\030\002 \001(\tB\003\340A\003\022\025\n\010git_ht" + + "tp\030\003 \001(\tB\003\340A\003\022\024\n\007git_ssh\030\004 \001(\tB\003\340A\003\032\260\002\n\r" + + "PrivateConfig\022\032\n\nis_private\030\001 \001(\010B\006\340A\005\340A" + + "\002\022;\n\007ca_pool\030\002 \001(\tB*\340A\005\340A\002\372A!\n\037privateca" + + ".googleapis.com/CaPool\022Q\n\027http_service_a" + + "ttachment\030\003 \001(\tB0\340A\003\372A*\n(compute.googlea" + + "pis.com/ServiceAttachment\022P\n\026ssh_service" + + "_attachment\030\004 \001(\tB0\340A\003\372A*\n(compute.googl" + + "eapis.com/ServiceAttachment\022!\n\024psc_allow" + + "ed_projects\030\006 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"_\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006A" + + "CTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006PAUSED\020\004\022\013\n\007UNK" + + "NOWN\020\006\"_\n\tStateNote\022\032\n\026STATE_NOTE_UNSPEC" + + "IFIED\020\000\022\033\n\027PAUSED_CMEK_UNAVAILABLE\020\001\022\031\n\021" + + "INSTANCE_RESUMING\020\002\032\002\010\001:q\352An\n+securesour" + + "cemanager.googleapis.com/Instance\022\332A\006parent\202\323\344\223\002/\022-/v1/{parent=pro" + + "jects/*/locations/*}/instances\022\263\001\n\013GetIn" + + "stance\0227.google.cloud.securesourcemanage" + + "r.v1.GetInstanceRequest\032-.google.cloud.s" + + "ecuresourcemanager.v1.Instance\"<\332A\004name\202" + + "\323\344\223\002/\022-/v1/{name=projects/*/locations/*/" + + "instances/*}\022\352\001\n\016CreateInstance\022:.google" + + ".cloud.securesourcemanager.v1.CreateInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"}\312A\035\n\010Instance\022\021OperationMetadata\332A\033p" + + "arent,instance,instance_id\202\323\344\223\0029\"-/v1/{p" + + "arent=projects/*/locations/*}/instances:" + + "\010instance\022\326\001\n\016DeleteInstance\022:.google.cl" + + "oud.securesourcemanager.v1.DeleteInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "i\312A*\n\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002/*-/v1/{name=projects/" + + "*/locations/*/instances/*}\022\322\001\n\020ListRepos" + + "itories\022<.google.cloud.securesourcemanag" + + "er.v1.ListRepositoriesRequest\032=.google.c" + + "loud.securesourcemanager.v1.ListReposito" + + "riesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{pare" + + "nt=projects/*/locations/*}/repositories\022" + + "\274\001\n\rGetRepository\0229.google.cloud.secures" + + "ourcemanager.v1.GetRepositoryRequest\032/.g" + + "oogle.cloud.securesourcemanager.v1.Repos" + + "itory\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects" + + "/*/locations/*/repositories/*}\022\372\001\n\020Creat" + + "eRepository\022<.google.cloud.securesourcem" + + "anager.v1.CreateRepositoryRequest\032\035.goog" + + "le.longrunning.Operation\"\210\001\312A\037\n\nReposito" + + "ry\022\021OperationMetadata\332A\037parent,repositor" + + "y,repository_id\202\323\344\223\002>\"0/v1/{parent=proje" + + "cts/*/locations/*}/repositories:\nreposit" + + "ory\022\335\001\n\020DeleteRepository\022<.google.cloud." + + "securesourcemanager.v1.DeleteRepositoryR" + + "equest\032\035.google.longrunning.Operation\"l\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/" + + "locations/*/repositories/*}\022\243\001\n\020GetIamPo" + + "licyRepo\022\".google.iam.v1.GetIamPolicyReq" + + "uest\032\025.google.iam.v1.Policy\"T\332A\010resource" + + "\202\323\344\223\002C\022A/v1/{resource=projects/*/locatio" + + "ns/*/repositories/*}:getIamPolicy\022\246\001\n\020Se" + + "tIamPolicyRepo\022\".google.iam.v1.SetIamPol" + + "icyRequest\032\025.google.iam.v1.Policy\"W\332A\010re" + + "source\202\323\344\223\002F\"A/v1/{resource=projects/*/l" + + "ocations/*/repositories/*}:setIamPolicy:" + + "\001*\022\314\001\n\026TestIamPermissionsRepo\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"]\332A\010r" + + "esource\202\323\344\223\002L\"G/v1/{resource=projects/*/" + + "locations/*/repositories/*}:testIamPermi" + + "ssions:\001*\022\213\002\n\020CreateBranchRule\022<.google." + + "cloud.securesourcemanager.v1.CreateBranc" + + "hRuleRequest\032\035.google.longrunning.Operat" + + "ion\"\231\001\312A\037\n\nBranchRule\022\021OperationMetadata" + + "\332A!parent,branch_rule,branch_rule_id\202\323\344\223" + + "\002M\">/v1/{parent=projects/*/locations/*/r" + + "epositories/*}/branchRules:\013branch_rule\022" + + "\335\001\n\017ListBranchRules\022;.google.cloud.secur" + + "esourcemanager.v1.ListBranchRulesRequest" + + "\032<.google.cloud.securesourcemanager.v1.L" + + "istBranchRulesResponse\"O\332A\006parent\202\323\344\223\002@\022" + + ">/v1/{parent=projects/*/locations/*/repo" + + "sitories/*}/branchRules\022\312\001\n\rGetBranchRul" + + "e\0229.google.cloud.securesourcemanager.v1." + + "GetBranchRuleRequest\032/.google.cloud.secu" + + "resourcemanager.v1.BranchRule\"M\332A\004name\202\323" + + "\344\223\002@\022>/v1/{name=projects/*/locations/*/r" + + "epositories/*/branchRules/*}\022\215\002\n\020UpdateB" + + "ranchRule\022<.google.cloud.securesourceman" + + "ager.v1.UpdateBranchRuleRequest\032\035.google" + + ".longrunning.Operation\"\233\001\312A\037\n\nBranchRule" + + "\022\021OperationMetadata\332A\027branch_rule,update" + + "_mask\202\323\344\223\002Y2J/v1/{branch_rule.name=proje" + + "cts/*/locations/*/repositories/*/branchR" + + "ules/*}:\013branch_rule\022\353\001\n\020DeleteBranchRul" + + "e\022<.google.cloud.securesourcemanager.v1." + + "DeleteBranchRuleRequest\032\035.google.longrun" + + "ning.Operation\"z\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002@*>/v1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*/branchRules/*}\032V\312A\"securesourcemanag" + + "er.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\351\004\n\'com.googl" + + "e.cloud.securesourcemanager.v1B\030SecureSo" + + "urceManagerProtoP\001ZYcloud.google.com/go/" + + "securesourcemanager/apiv1/securesourcema" + + "nagerpb;securesourcemanagerpb\252\002#Google.C" + + "loud.SecureSourceManager.V1\312\002#Google\\Clo" + + "ud\\SecureSourceManager\\V1\352\002&Google::Clou" + + "d::SecureSourceManager::V1\352Ax\n!cloudkms." + + "googleapis.com/CryptoKey\022Sprojects/{proj" + + "ect}/locations/{location}/keyRings/{key_" + + "ring}/cryptoKeys/{crypto_key}\352A\\\n\037privat" + + "eca.googleapis.com/CaPool\0229projects/{pro" + + "ject}/locations/{location}/caPools/{ca_p" + + "ool}\352Aw\n(compute.googleapis.com/ServiceA" + + "ttachment\022Kprojects/{project}/regions/{r" + + "egion}/serviceAttachments/{service_attac" + + "hment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -299,6 +414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.iam.v1.PolicyProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_securesourcemanager_v1_Instance_descriptor = @@ -335,7 +451,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor, new java.lang.String[] { - "IsPrivate", "CaPool", "HttpServiceAttachment", "SshServiceAttachment", + "IsPrivate", + "CaPool", + "HttpServiceAttachment", + "SshServiceAttachment", + "PscAllowedProjects", }); internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_descriptor = internal_static_google_cloud_securesourcemanager_v1_Instance_descriptor @@ -383,8 +503,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DefaultBranch", "Gitignores", "License", "Readme", }); - internal_static_google_cloud_securesourcemanager_v1_ListInstancesRequest_descriptor = + internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securesourcemanager_v1_BranchRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Annotations", + "Etag", + "IncludePattern", + "Disabled", + "RequirePullRequest", + "MinimumReviewsCount", + "MinimumApprovalsCount", + "RequireCommentsResolved", + "AllowStaleReviews", + "RequireLinearHistory", + "RequiredStatusChecks", + }); + internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor = + internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_BranchRule_Check_descriptor, + new java.lang.String[] { + "Context", + }); + internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_descriptor = + internal_static_google_cloud_securesourcemanager_v1_BranchRule_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_BranchRule_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_securesourcemanager_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_securesourcemanager_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_ListInstancesRequest_descriptor, @@ -392,7 +554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_securesourcemanager_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_securesourcemanager_v1_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_ListInstancesResponse_descriptor, @@ -400,7 +562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", "NextPageToken", "Unreachable", }); internal_static_google_cloud_securesourcemanager_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_securesourcemanager_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_GetInstanceRequest_descriptor, @@ -408,7 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securesourcemanager_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_securesourcemanager_v1_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_CreateInstanceRequest_descriptor, @@ -416,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstanceId", "Instance", "RequestId", }); internal_static_google_cloud_securesourcemanager_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_securesourcemanager_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_DeleteInstanceRequest_descriptor, @@ -424,7 +586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_securesourcemanager_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_securesourcemanager_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_OperationMetadata_descriptor, @@ -438,15 +600,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", + "Parent", "PageSize", "PageToken", "Filter", "Instance", }); internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_ListRepositoriesResponse_descriptor, @@ -454,7 +616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Repositories", "NextPageToken", }); internal_static_google_cloud_securesourcemanager_v1_GetRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_securesourcemanager_v1_GetRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_GetRepositoryRequest_descriptor, @@ -462,7 +624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securesourcemanager_v1_CreateRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_securesourcemanager_v1_CreateRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_CreateRepositoryRequest_descriptor, @@ -470,13 +632,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Repository", "RepositoryId", }); internal_static_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest_descriptor, new java.lang.String[] { "Name", "AllowMissing", }); + internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_GetBranchRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "BranchRule", "BranchRuleId", + }); + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest_descriptor, + new java.lang.String[] { + "Name", "AllowMissing", + }); + internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor, + new java.lang.String[] { + "BranchRule", "ValidateOnly", "UpdateMask", + }); + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_ListBranchRulesResponse_descriptor, + new java.lang.String[] { + "BranchRules", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -498,6 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.iam.v1.PolicyProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java new file mode 100644 index 000000000000..ac95c3284f65 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +/** + * + * + *
+ * UpdateBranchRuleRequest is the request to update a branchRule.
+ * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest} + */ +public final class UpdateBranchRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) + UpdateBranchRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateBranchRuleRequest.newBuilder() to construct. + private UpdateBranchRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateBranchRuleRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateBranchRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.Builder.class); + } + + private int bitField0_; + public static final int BRANCH_RULE_FIELD_NUMBER = 1; + private com.google.cloud.securesourcemanager.v1.BranchRule branchRule_; + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + @java.lang.Override + public boolean hasBranchRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule() { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder() { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. If set, validate the request and preview the review, but do not
+   * actually post it.  (https://google.aip.dev/163, for declarative friendly)
+   * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBranchRule()); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateMask()); + } + 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, getBranchRule()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest other = + (com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) obj; + + if (hasBranchRule() != other.hasBranchRule()) return false; + if (hasBranchRule()) { + if (!getBranchRule().equals(other.getBranchRule())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBranchRule()) { + hash = (37 * hash) + BRANCH_RULE_FIELD_NUMBER; + hash = (53 * hash) + getBranchRule().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest 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.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest 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.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.securesourcemanager.v1.UpdateBranchRuleRequest 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpdateBranchRuleRequest is the request to update a branchRule.
+   * 
+ * + * Protobuf type {@code google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.class, + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBranchRuleFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + branchRule_ = null; + if (branchRuleBuilder_ != null) { + branchRuleBuilder_.dispose(); + branchRuleBuilder_ = null; + } + validateOnly_ = false; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest build() { + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest buildPartial() { + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest result = + new com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.branchRule_ = branchRuleBuilder_ == null ? branchRule_ : branchRuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest other) { + if (other + == com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest.getDefaultInstance()) + return this; + if (other.hasBranchRule()) { + mergeBranchRule(other.getBranchRule()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getBranchRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.securesourcemanager.v1.BranchRule branchRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + branchRuleBuilder_; + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + public boolean hasBranchRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule() { + if (branchRuleBuilder_ == null) { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } else { + return branchRuleBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBranchRule(com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + branchRule_ = value; + } else { + branchRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBranchRule( + com.google.cloud.securesourcemanager.v1.BranchRule.Builder builderForValue) { + if (branchRuleBuilder_ == null) { + branchRule_ = builderForValue.build(); + } else { + branchRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBranchRule(com.google.cloud.securesourcemanager.v1.BranchRule value) { + if (branchRuleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && branchRule_ != null + && branchRule_ + != com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance()) { + getBranchRuleBuilder().mergeFrom(value); + } else { + branchRule_ = value; + } + } else { + branchRuleBuilder_.mergeFrom(value); + } + if (branchRule_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBranchRule() { + bitField0_ = (bitField0_ & ~0x00000001); + branchRule_ = null; + if (branchRuleBuilder_ != null) { + branchRuleBuilder_.dispose(); + branchRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRule.Builder getBranchRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBranchRuleFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder() { + if (branchRuleBuilder_ != null) { + return branchRuleBuilder_.getMessageOrBuilder(); + } else { + return branchRule_ == null + ? com.google.cloud.securesourcemanager.v1.BranchRule.getDefaultInstance() + : branchRule_; + } + } + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder> + getBranchRuleFieldBuilder() { + if (branchRuleBuilder_ == null) { + branchRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.BranchRule, + com.google.cloud.securesourcemanager.v1.BranchRule.Builder, + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder>( + getBranchRule(), getParentForChildren(), isClean()); + branchRule_ = null; + } + return branchRuleBuilder_; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. If set, validate the request and preview the review, but do not
+     * actually post it.  (https://google.aip.dev/163, for declarative friendly)
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. If set, validate the request and preview the review, but do not
+     * actually post it.  (https://google.aip.dev/163, for declarative friendly)
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, validate the request and preview the review, but do not
+     * actually post it.  (https://google.aip.dev/163, for declarative friendly)
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * branchRule resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * The special value "*" means full replacement.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) + private static final com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest(); + } + + public static com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBranchRuleRequest 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.securesourcemanager.v1.UpdateBranchRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java new file mode 100644 index 000000000000..6f3f15111be5 --- /dev/null +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.securesourcemanager.v1; + +public interface UpdateBranchRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the branchRule field is set. + */ + boolean hasBranchRule(); + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The branchRule. + */ + com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule(); + /** + * + * .google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securesourcemanager.v1.BranchRuleOrBuilder getBranchRuleOrBuilder(); + + /** + * + * + *
+   * Optional. If set, validate the request and preview the review, but do not
+   * actually post it.  (https://google.aip.dev/163, for declarative friendly)
+   * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * branchRule resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * The special value "*" means full replacement.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto index 61da4c2bc699..8a8ad5b5b6ae 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto @@ -24,6 +24,7 @@ import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecureSourceManager.V1"; @@ -195,6 +196,64 @@ service SecureSourceManager { }; option (google.api.method_signature) = "resource"; } + + // CreateBranchRule creates a branch rule in a given repository. + rpc CreateBranchRule(CreateBranchRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/repositories/*}/branchRules" + body: "branch_rule" + }; + option (google.api.method_signature) = "parent,branch_rule,branch_rule_id"; + option (google.longrunning.operation_info) = { + response_type: "BranchRule" + metadata_type: "OperationMetadata" + }; + } + + // ListBranchRules lists branch rules in a given repository. + rpc ListBranchRules(ListBranchRulesRequest) + returns (ListBranchRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/branchRules" + }; + option (google.api.method_signature) = "parent"; + } + + // GetBranchRule gets a branch rule. + rpc GetBranchRule(GetBranchRuleRequest) returns (BranchRule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/branchRules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // UpdateBranchRule updates a branch rule. + rpc UpdateBranchRule(UpdateBranchRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{branch_rule.name=projects/*/locations/*/repositories/*/branchRules/*}" + body: "branch_rule" + }; + option (google.api.method_signature) = "branch_rule,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "BranchRule" + metadata_type: "OperationMetadata" + }; + } + + // DeleteBranchRule deletes a branch rule. + rpc DeleteBranchRule(DeleteBranchRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/repositories/*/branchRules/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // A resource that represents a Secure Source Manager instance. @@ -290,6 +349,12 @@ message Instance { type: "compute.googleapis.com/ServiceAttachment" } ]; + + // Optional. Additional allowed projects for setting up PSC connections. + // Instance host project is automatically allowed and does not need to be + // included in this list. + repeated string psc_allowed_projects = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Optional. A unique identifier for an instance. The name should be of the @@ -511,9 +576,16 @@ message Repository { // Optional. The name of the instance in which the repository is hosted, // formatted as // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - // For data plane CreateRepository requests, this field is output only. - // For control plane CreateRepository requests, this field is used as input. - string instance = 3 [(google.api.field_behavior) = OPTIONAL]; + // When creating repository via + // securesourcemanager.googleapis.com (Control Plane API), this field is used + // as input. When creating repository via *.sourcemanager.dev (Data Plane + // API), this field is output only. + string instance = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "securesourcemanager.googleapis.com/Instance" + } + ]; // Output only. Unique identifier of the repository. string uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -538,6 +610,83 @@ message Repository { InitialConfig initial_config = 10 [(google.api.field_behavior) = INPUT_ONLY]; } +// Metadata of a BranchRule. BranchRule is the protection rule to enforce +// pre-defined rules on desginated branches within a repository. +message BranchRule { + option (google.api.resource) = { + type: "securesourcemanager.googleapis.com/BranchRule" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}" + }; + + // Check is a type for status check. + message Check { + // Required. The context of the check. + string context = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. A unique identifier for a BranchRule. The name should be of the + // format: + // `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}` + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Unique identifier of the repository. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User annotations. These attributes can only be set and used by + // the user. See https://google.aip.dev/128#annotations for more details such + // as format and size limitations. + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The pattern of the branch that can match to this BranchRule. + // Specified as regex. + // .* for all branches. Examples: main, (main|release.*). + // Current MVP phase only support `.*` for wildcard. + string include_pattern = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if the branch rule is disabled or not. + bool disabled = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if the branch rule requires a pull request or not. + bool require_pull_request = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The minimum number of reviews required for the branch rule to be + // matched. + int32 minimum_reviews_count = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The minimum number of approvals required for the branch rule to + // be matched. + int32 minimum_approvals_count = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if require comments resolved before merging to the + // branch. + bool require_comments_resolved = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if allow stale reviews or approvals before merging to + // the branch. + bool allow_stale_reviews = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if require linear history before merging to the + // branch. + bool require_linear_history = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of required status checks before merging to the branch. + repeated Check required_status_checks = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + // ListInstancesRequest is the request to list instances. message ListInstancesRequest { // Required. Parent value for ListInstancesRequest. @@ -691,6 +840,20 @@ message ListRepositoriesRequest { // Optional. Filter results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the instance in which the repository is hosted, + // formatted as + // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. + // When listing repositories via + // securesourcemanager.googleapis.com (Control Plane API), this field is + // required. When listing repositories via *.sourcemanager.dev (Data Plane + // API), this field is ignored. + string instance = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "securesourcemanager.googleapis.com/Instance" + } + ]; } message ListRepositoriesResponse { @@ -750,3 +913,84 @@ message DeleteRepositoryRequest { // succeed but no action will be taken on the server. bool allow_missing = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// GetBranchRuleRequest is the request for getting a branch rule. +message GetBranchRuleRequest { + // Required. Name of the repository to retrieve. + // The format is + // `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securesourcemanager.googleapis.com/BranchRule" + } + ]; +} + +// CreateBranchRuleRequest is the request to create a branch rule. +message CreateBranchRuleRequest { + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securesourcemanager.googleapis.com/BranchRule" + } + ]; + + BranchRule branch_rule = 2 [(google.api.field_behavior) = REQUIRED]; + + string branch_rule_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// ListBranchRulesRequest is the request to list branch rules. +message ListBranchRulesRequest { + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securesourcemanager.googleapis.com/BranchRule" + } + ]; + + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// DeleteBranchRuleRequest is the request to delete a branch rule. +message DeleteBranchRuleRequest { + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securesourcemanager.googleapis.com/BranchRule" + } + ]; + + // Optional. If set to true, and the branch rule is not found, the request + // will succeed but no action will be taken on the server. + bool allow_missing = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// UpdateBranchRuleRequest is the request to update a branchRule. +message UpdateBranchRuleRequest { + BranchRule branch_rule = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, validate the request and preview the review, but do not + // actually post it. (https://google.aip.dev/163, for declarative friendly) + bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // branchRule resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // The special value "*" means full replacement. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// ListBranchRulesResponse is the response to listing branchRules. +message ListBranchRulesResponse { + // The list of branch rules. + repeated BranchRule branch_rules = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateSetCredentialsProvider1.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e3a24c936655..000000000000 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securesourcemanager.v1.samples; - -// [START securesourcemanager_v1_generated_SecureSourceManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; -import com.google.cloud.securesourcemanager.v1.SecureSourceManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecureSourceManagerSettings secureSourceManagerSettings = - SecureSourceManagerSettings.newHttpJsonBuilder().build(); - SecureSourceManagerClient secureSourceManagerClient = - SecureSourceManagerClient.create(secureSourceManagerSettings); - } -} -// [END securesourcemanager_v1_generated_SecureSourceManager_Create_SetCredentialsProvider1_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateUseHttpJsonTransport.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..80577d72108a --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecureSourceManagerSettings secureSourceManagerSettings = + SecureSourceManagerSettings.newHttpJsonBuilder().build(); + SecureSourceManagerClient secureSourceManagerClient = + SecureSourceManagerClient.create(secureSourceManagerSettings); + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_Create_UseHttpJsonTransport_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRule.java new file mode 100644 index 000000000000..9e2ce369ce09 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.longrunning.Operation; + +public class AsyncCreateBranchRule { + + public static void main(String[] args) throws Exception { + asyncCreateBranchRule(); + } + + public static void asyncCreateBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + CreateBranchRuleRequest request = + CreateBranchRuleRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setBranchRule(BranchRule.newBuilder().build()) + .setBranchRuleId("branchRuleId-1052663431") + .build(); + ApiFuture future = + secureSourceManagerClient.createBranchRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRuleLRO.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRuleLRO.java new file mode 100644 index 000000000000..72f81b205e50 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/AsyncCreateBranchRuleLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.OperationMetadata; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class AsyncCreateBranchRuleLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBranchRuleLRO(); + } + + public static void asyncCreateBranchRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + CreateBranchRuleRequest request = + CreateBranchRuleRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setBranchRule(BranchRule.newBuilder().build()) + .setBranchRuleId("branchRuleId-1052663431") + .build(); + OperationFuture future = + secureSourceManagerClient.createBranchRuleOperationCallable().futureCall(request); + // Do something. + BranchRule response = future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_LRO_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRule.java new file mode 100644 index 000000000000..c226608beb26 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRule.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncCreateBranchRule { + + public static void main(String[] args) throws Exception { + syncCreateBranchRule(); + } + + public static void syncCreateBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + CreateBranchRuleRequest request = + CreateBranchRuleRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setBranchRule(BranchRule.newBuilder().build()) + .setBranchRuleId("branchRuleId-1052663431") + .build(); + BranchRule response = secureSourceManagerClient.createBranchRuleAsync(request).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleRepositorynameBranchruleString.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleRepositorynameBranchruleString.java new file mode 100644 index 000000000000..1b1e68b8af56 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleRepositorynameBranchruleString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_RepositorynameBranchruleString_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncCreateBranchRuleRepositorynameBranchruleString { + + public static void main(String[] args) throws Exception { + syncCreateBranchRuleRepositorynameBranchruleString(); + } + + public static void syncCreateBranchRuleRepositorynameBranchruleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + BranchRule response = + secureSourceManagerClient.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_RepositorynameBranchruleString_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleStringBranchruleString.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleStringBranchruleString.java new file mode 100644 index 000000000000..29453178594d --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/createbranchrule/SyncCreateBranchRuleStringBranchruleString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_StringBranchruleString_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncCreateBranchRuleStringBranchruleString { + + public static void main(String[] args) throws Exception { + syncCreateBranchRuleStringBranchruleString(); + } + + public static void syncCreateBranchRuleStringBranchruleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + BranchRule branchRule = BranchRule.newBuilder().build(); + String branchRuleId = "branchRuleId-1052663431"; + BranchRule response = + secureSourceManagerClient.createBranchRuleAsync(parent, branchRule, branchRuleId).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_StringBranchruleString_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRule.java new file mode 100644 index 000000000000..b2ef219fdc48 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteBranchRule { + + public static void main(String[] args) throws Exception { + asyncDeleteBranchRule(); + } + + public static void asyncDeleteBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + DeleteBranchRuleRequest request = + DeleteBranchRuleRequest.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setAllowMissing(true) + .build(); + ApiFuture future = + secureSourceManagerClient.deleteBranchRuleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRuleLRO.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRuleLRO.java new file mode 100644 index 000000000000..490a79d383bf --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/AsyncDeleteBranchRuleLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.OperationMetadata; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteBranchRuleLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBranchRuleLRO(); + } + + public static void asyncDeleteBranchRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + DeleteBranchRuleRequest request = + DeleteBranchRuleRequest.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setAllowMissing(true) + .build(); + OperationFuture future = + secureSourceManagerClient.deleteBranchRuleOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_LRO_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRule.java new file mode 100644 index 000000000000..59d0d8622bf3 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync] +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBranchRule { + + public static void main(String[] args) throws Exception { + syncDeleteBranchRule(); + } + + public static void syncDeleteBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + DeleteBranchRuleRequest request = + DeleteBranchRuleRequest.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .setAllowMissing(true) + .build(); + secureSourceManagerClient.deleteBranchRuleAsync(request).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleBranchrulename.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleBranchrulename.java new file mode 100644 index 000000000000..3ff6fc234b23 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleBranchrulename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_Branchrulename_sync] +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBranchRuleBranchrulename { + + public static void main(String[] args) throws Exception { + syncDeleteBranchRuleBranchrulename(); + } + + public static void syncDeleteBranchRuleBranchrulename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + secureSourceManagerClient.deleteBranchRuleAsync(name).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_Branchrulename_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleString.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleString.java new file mode 100644 index 000000000000..e5c9179e7c0b --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deletebranchrule/SyncDeleteBranchRuleString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_String_sync] +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBranchRuleString { + + public static void main(String[] args) throws Exception { + syncDeleteBranchRuleString(); + } + + public static void syncDeleteBranchRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + String name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]").toString(); + secureSourceManagerClient.deleteBranchRuleAsync(name).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_String_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/AsyncGetBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/AsyncGetBranchRule.java new file mode 100644 index 000000000000..3ad4c64896bf --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/AsyncGetBranchRule.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class AsyncGetBranchRule { + + public static void main(String[] args) throws Exception { + asyncGetBranchRule(); + } + + public static void asyncGetBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + GetBranchRuleRequest request = + GetBranchRuleRequest.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .build(); + ApiFuture future = + secureSourceManagerClient.getBranchRuleCallable().futureCall(request); + // Do something. + BranchRule response = future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRule.java new file mode 100644 index 000000000000..9f868c9c3c85 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRule.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncGetBranchRule { + + public static void main(String[] args) throws Exception { + syncGetBranchRule(); + } + + public static void syncGetBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + GetBranchRuleRequest request = + GetBranchRuleRequest.newBuilder() + .setName( + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]") + .toString()) + .build(); + BranchRule response = secureSourceManagerClient.getBranchRule(request); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleBranchrulename.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleBranchrulename.java new file mode 100644 index 000000000000..562fbd542898 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleBranchrulename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_Branchrulename_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncGetBranchRuleBranchrulename { + + public static void main(String[] args) throws Exception { + syncGetBranchRuleBranchrulename(); + } + + public static void syncGetBranchRuleBranchrulename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + BranchRuleName name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + BranchRule response = secureSourceManagerClient.getBranchRule(name); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_Branchrulename_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleString.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleString.java new file mode 100644 index 000000000000..6db653add674 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/getbranchrule/SyncGetBranchRuleString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_String_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.BranchRuleName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncGetBranchRuleString { + + public static void main(String[] args) throws Exception { + syncGetBranchRuleString(); + } + + public static void syncGetBranchRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + String name = + BranchRuleName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]").toString(); + BranchRule response = secureSourceManagerClient.getBranchRule(name); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_String_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRules.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRules.java new file mode 100644 index 000000000000..db8f39284ee3 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRules.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class AsyncListBranchRules { + + public static void main(String[] args) throws Exception { + asyncListBranchRules(); + } + + public static void asyncListBranchRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + ListBranchRulesRequest request = + ListBranchRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + secureSourceManagerClient.listBranchRulesPagedCallable().futureCall(request); + // Do something. + for (BranchRule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRulesPaged.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRulesPaged.java new file mode 100644 index 000000000000..53a45ed98318 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/AsyncListBranchRulesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_Paged_async] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.common.base.Strings; + +public class AsyncListBranchRulesPaged { + + public static void main(String[] args) throws Exception { + asyncListBranchRulesPaged(); + } + + public static void asyncListBranchRulesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + ListBranchRulesRequest request = + ListBranchRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBranchRulesResponse response = + secureSourceManagerClient.listBranchRulesCallable().call(request); + for (BranchRule element : response.getBranchRulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_Paged_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRules.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRules.java new file mode 100644 index 000000000000..373c6d92b75a --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRules.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncListBranchRules { + + public static void main(String[] args) throws Exception { + syncListBranchRules(); + } + + public static void syncListBranchRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + ListBranchRulesRequest request = + ListBranchRulesRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (BranchRule element : secureSourceManagerClient.listBranchRules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesRepositoryname.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesRepositoryname.java new file mode 100644 index 000000000000..7b07994d6d3d --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesRepositoryname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_Repositoryname_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncListBranchRulesRepositoryname { + + public static void main(String[] args) throws Exception { + syncListBranchRulesRepositoryname(); + } + + public static void syncListBranchRulesRepositoryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + for (BranchRule element : secureSourceManagerClient.listBranchRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_Repositoryname_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesString.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesString.java new file mode 100644 index 000000000000..c6514f0b142d --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listbranchrules/SyncListBranchRulesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_String_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.RepositoryName; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; + +public class SyncListBranchRulesString { + + public static void main(String[] args) throws Exception { + syncListBranchRulesString(); + } + + public static void syncListBranchRulesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + for (BranchRule element : secureSourceManagerClient.listBranchRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_String_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositories.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositories.java index e478ad8c639c..666bffda2535 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositories.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositories.java @@ -18,6 +18,7 @@ // [START securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async] import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.InstanceName; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.LocationName; import com.google.cloud.securesourcemanager.v1.Repository; @@ -42,6 +43,7 @@ public static void asyncListRepositories() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .build(); ApiFuture future = secureSourceManagerClient.listRepositoriesPagedCallable().futureCall(request); diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositoriesPaged.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositoriesPaged.java index 66c39ee8cdd2..aa68d95405f3 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositoriesPaged.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/AsyncListRepositoriesPaged.java @@ -17,6 +17,7 @@ package com.google.cloud.securesourcemanager.v1.samples; // [START securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_Paged_async] +import com.google.cloud.securesourcemanager.v1.InstanceName; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse; import com.google.cloud.securesourcemanager.v1.LocationName; @@ -43,6 +44,7 @@ public static void asyncListRepositoriesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .build(); while (true) { ListRepositoriesResponse response = diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/SyncListRepositories.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/SyncListRepositories.java index a553253c160f..4914900ab5c6 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/SyncListRepositories.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/listrepositories/SyncListRepositories.java @@ -17,6 +17,7 @@ package com.google.cloud.securesourcemanager.v1.samples; // [START securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync] +import com.google.cloud.securesourcemanager.v1.InstanceName; import com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest; import com.google.cloud.securesourcemanager.v1.LocationName; import com.google.cloud.securesourcemanager.v1.Repository; @@ -41,6 +42,7 @@ public static void syncListRepositories() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .build(); for (Repository element : secureSourceManagerClient.listRepositories(request).iterateAll()) { // doThingsWith(element); diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRule.java new file mode 100644 index 000000000000..89b5be7f09c0 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBranchRule { + + public static void main(String[] args) throws Exception { + asyncUpdateBranchRule(); + } + + public static void asyncUpdateBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + UpdateBranchRuleRequest request = + UpdateBranchRuleRequest.newBuilder() + .setBranchRule(BranchRule.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + secureSourceManagerClient.updateBranchRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRuleLRO.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRuleLRO.java new file mode 100644 index 000000000000..a1d6ea57cd69 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/AsyncUpdateBranchRuleLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.OperationMetadata; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBranchRuleLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBranchRuleLRO(); + } + + public static void asyncUpdateBranchRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + UpdateBranchRuleRequest request = + UpdateBranchRuleRequest.newBuilder() + .setBranchRule(BranchRule.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + secureSourceManagerClient.updateBranchRuleOperationCallable().futureCall(request); + // Do something. + BranchRule response = future.get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_LRO_async] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRule.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRule.java new file mode 100644 index 000000000000..459897ce6e15 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRule.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBranchRule { + + public static void main(String[] args) throws Exception { + syncUpdateBranchRule(); + } + + public static void syncUpdateBranchRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + UpdateBranchRuleRequest request = + UpdateBranchRuleRequest.newBuilder() + .setBranchRule(BranchRule.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + BranchRule response = secureSourceManagerClient.updateBranchRuleAsync(request).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync] diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRuleBranchruleFieldmask.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRuleBranchruleFieldmask.java new file mode 100644 index 000000000000..e5106ca3eee2 --- /dev/null +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/updatebranchrule/SyncUpdateBranchRuleBranchruleFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securesourcemanager.v1.samples; + +// [START securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_BranchruleFieldmask_sync] +import com.google.cloud.securesourcemanager.v1.BranchRule; +import com.google.cloud.securesourcemanager.v1.SecureSourceManagerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBranchRuleBranchruleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBranchRuleBranchruleFieldmask(); + } + + public static void syncUpdateBranchRuleBranchruleFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.create()) { + BranchRule branchRule = BranchRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + BranchRule response = + secureSourceManagerClient.updateBranchRuleAsync(branchRule, updateMask).get(); + } + } +} +// [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_BranchruleFieldmask_sync] diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index fa1d99c5722b..f2370567089d 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.54.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json index 1e3f237a7761..3acfee220ba8 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1beta1/reflect-config.json b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1beta1/reflect-config.json index f7c19db38569..5b65415a9bb3 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1beta1/reflect-config.json +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest", "queryAllDeclaredConstructors": true, diff --git a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 04922a9df051..000000000000 --- a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.security.privateca.v1.samples; - -// [START privateca_v1_generated_CertificateAuthorityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; -import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = - CertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); - CertificateAuthorityServiceClient certificateAuthorityServiceClient = - CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); - } -} -// [END privateca_v1_generated_CertificateAuthorityService_Create_SetCredentialsProvider1_sync] diff --git a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4928faeab733 --- /dev/null +++ b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.security.privateca.v1.samples; + +// [START privateca_v1_generated_CertificateAuthorityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1_generated_CertificateAuthorityService_Create_UseHttpJsonTransport_sync] diff --git a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a56ddd7f7ffa..000000000000 --- a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.security.privateca.v1beta1.samples; - -// [START privateca_v1beta1_generated_CertificateAuthorityService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; -import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = - CertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); - CertificateAuthorityServiceClient certificateAuthorityServiceClient = - CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); - } -} -// [END privateca_v1beta1_generated_CertificateAuthorityService_Create_SetCredentialsProvider1_sync] diff --git a/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8edc3cc62e8c --- /dev/null +++ b/java-security-private-ca/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_CertificateAuthorityService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newHttpJsonBuilder().build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1beta1_generated_CertificateAuthorityService_Create_UseHttpJsonTransport_sync] diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index fb67c47fe65a..84585afb9181 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.55.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.settings.v1beta1/reflect-config.json b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.settings.v1beta1/reflect-config.json index 63646b914249..bfc45555497c 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.settings.v1beta1/reflect-config.json +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.settings.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.settings.v1beta1.BatchCalculateEffectiveSettingsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 2d706612b299..e9f24aa137b2 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.60.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json index a6cdcf365b2c..4ad4b2dd5fed 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1.Access", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1beta1/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1beta1/reflect-config.json index 633b0a7002fd..40b6a45eef81 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1beta1/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1beta1.Asset", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1p1beta1/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1p1beta1/reflect-config.json index b72a57f30b9e..dab20d73c539 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1p1beta1/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1p1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1p1beta1.Asset", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json index fbf451cb47c7..ef569b331a66 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json @@ -431,6 +431,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Access", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateSetCredentialsProvider1.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 309b01436c52..000000000000 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1.samples; - -// [START securitycenter_v1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securitycenter.v1.SecurityCenterClient; -import com.google.cloud.securitycenter.v1.SecurityCenterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityCenterSettings securityCenterSettings = - SecurityCenterSettings.newHttpJsonBuilder().build(); - SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); - } -} -// [END securitycenter_v1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateUseHttpJsonTransport.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..00df3536bac8 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1.samples; + +// [START securitycenter_v1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newHttpJsonBuilder().build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 52a6f02dd464..000000000000 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1beta1.samples; - -// [START securitycenter_v1beta1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; -import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityCenterSettings securityCenterSettings = - SecurityCenterSettings.newHttpJsonBuilder().build(); - SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); - } -} -// [END securitycenter_v1beta1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fa280c7be053 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newHttpJsonBuilder().build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1beta1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 470acc5cb3c7..000000000000 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1p1beta1.samples; - -// [START securitycenter_v1p1beta1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient; -import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityCenterSettings securityCenterSettings = - SecurityCenterSettings.newHttpJsonBuilder().build(); - SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); - } -} -// [END securitycenter_v1p1beta1_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..50b4ab2eec52 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1p1beta1.samples; + +// [START securitycenter_v1p1beta1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newHttpJsonBuilder().build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1p1beta1_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateSetCredentialsProvider1.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1c7fd50a6b9f..000000000000 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v2.samples; - -// [START securitycenter_v2_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securitycenter.v2.SecurityCenterClient; -import com.google.cloud.securitycenter.v2.SecurityCenterSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityCenterSettings securityCenterSettings = - SecurityCenterSettings.newHttpJsonBuilder().build(); - SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); - } -} -// [END securitycenter_v2_generated_SecurityCenter_Create_SetCredentialsProvider1_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateUseHttpJsonTransport.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..08be42b92fc8 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v2/securitycenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v2.samples; + +// [START securitycenter_v2_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securitycenter.v2.SecurityCenterClient; +import com.google.cloud.securitycenter.v2.SecurityCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newHttpJsonBuilder().build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v2_generated_SecurityCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index d9df7bcc880a..5fcce18654f7 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.20.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json index c12059b760bb..6cc4f0de1153 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2c2ca176a5d0..000000000000 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycentermanagement.v1.samples; - -// [START securitycentermanagement_v1_generated_SecurityCenterManagement_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; -import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityCenterManagementSettings securityCenterManagementSettings = - SecurityCenterManagementSettings.newHttpJsonBuilder().build(); - SecurityCenterManagementClient securityCenterManagementClient = - SecurityCenterManagementClient.create(securityCenterManagementSettings); - } -} -// [END securitycentermanagement_v1_generated_SecurityCenterManagement_Create_SetCredentialsProvider1_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateUseHttpJsonTransport.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dc919738a534 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityCenterManagementSettings securityCenterManagementSettings = + SecurityCenterManagementSettings.newHttpJsonBuilder().build(); + SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create(securityCenterManagementSettings); + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_Create_UseHttpJsonTransport_sync] diff --git a/java-securityposture/README.md b/java-securityposture/README.md index a7cfc306becf..bfae459b76f5 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.17.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securityposture/google-cloud-securityposture/src/main/resources/META-INF/native-image/com.google.cloud.securityposture.v1/reflect-config.json b/java-securityposture/google-cloud-securityposture/src/main/resources/META-INF/native-image/com.google.cloud.securityposture.v1/reflect-config.json index 71b1ff59b1aa..2d12f86a05cc 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/resources/META-INF/native-image/com.google.cloud.securityposture.v1/reflect-config.json +++ b/java-securityposture/google-cloud-securityposture/src/main/resources/META-INF/native-image/com.google.cloud.securityposture.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateSetCredentialsProvider1.java b/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0279a8779c60..000000000000 --- a/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securityposture.v1.samples; - -// [START securityposture_v1_generated_SecurityPosture_Create_SetCredentialsProvider1_sync] -import com.google.cloud.securityposture.v1.SecurityPostureClient; -import com.google.cloud.securityposture.v1.SecurityPostureSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SecurityPostureSettings securityPostureSettings = - SecurityPostureSettings.newHttpJsonBuilder().build(); - SecurityPostureClient securityPostureClient = - SecurityPostureClient.create(securityPostureSettings); - } -} -// [END securityposture_v1_generated_SecurityPosture_Create_SetCredentialsProvider1_sync] diff --git a/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateUseHttpJsonTransport.java b/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..01c16a1eee22 --- /dev/null +++ b/java-securityposture/samples/snippets/generated/com/google/cloud/securityposture/v1/securityposture/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securityposture.v1.samples; + +// [START securityposture_v1_generated_SecurityPosture_Create_UseHttpJsonTransport_sync] +import com.google.cloud.securityposture.v1.SecurityPostureClient; +import com.google.cloud.securityposture.v1.SecurityPostureSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecurityPostureSettings securityPostureSettings = + SecurityPostureSettings.newHttpJsonBuilder().build(); + SecurityPostureClient securityPostureClient = + SecurityPostureClient.create(securityPostureSettings); + } +} +// [END securityposture_v1_generated_SecurityPosture_Create_UseHttpJsonTransport_sync] diff --git a/java-service-control/README.md b/java-service-control/README.md index 9fba2bea3baf..4ad1d81f2445 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v1/reflect-config.json b/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v1/reflect-config.json index ad324bf72f9d..b24a580c796d 100644 --- a/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v1/reflect-config.json +++ b/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v1/reflect-config.json @@ -512,6 +512,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.servicecontrol.v1.AllocateQuotaRequest", "queryAllDeclaredConstructors": true, diff --git a/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v2/reflect-config.json b/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v2/reflect-config.json index 78b6a2f0c036..7aef3aced7f3 100644 --- a/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v2/reflect-config.json +++ b/java-service-control/google-cloud-service-control/src/main/resources/META-INF/native-image/com.google.api.servicecontrol.v2/reflect-config.json @@ -386,6 +386,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.servicecontrol.v2.CheckRequest", "queryAllDeclaredConstructors": true, diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateSetCredentialsProvider1.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e72a937a6776..000000000000 --- a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.servicecontrol.v1.samples; - -// [START servicecontrol_v1_generated_QuotaController_Create_SetCredentialsProvider1_sync] -import com.google.api.servicecontrol.v1.QuotaControllerClient; -import com.google.api.servicecontrol.v1.QuotaControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - QuotaControllerSettings quotaControllerSettings = - QuotaControllerSettings.newHttpJsonBuilder().build(); - QuotaControllerClient quotaControllerClient = - QuotaControllerClient.create(quotaControllerSettings); - } -} -// [END servicecontrol_v1_generated_QuotaController_Create_SetCredentialsProvider1_sync] diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateUseHttpJsonTransport.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..697a0dd10cd5 --- /dev/null +++ b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/quotacontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.servicecontrol.v1.samples; + +// [START servicecontrol_v1_generated_QuotaController_Create_UseHttpJsonTransport_sync] +import com.google.api.servicecontrol.v1.QuotaControllerClient; +import com.google.api.servicecontrol.v1.QuotaControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + QuotaControllerSettings quotaControllerSettings = + QuotaControllerSettings.newHttpJsonBuilder().build(); + QuotaControllerClient quotaControllerClient = + QuotaControllerClient.create(quotaControllerSettings); + } +} +// [END servicecontrol_v1_generated_QuotaController_Create_UseHttpJsonTransport_sync] diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateSetCredentialsProvider1.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ea56747a6cf3..000000000000 --- a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.servicecontrol.v1.samples; - -// [START servicecontrol_v1_generated_ServiceController_Create_SetCredentialsProvider1_sync] -import com.google.api.servicecontrol.v1.ServiceControllerClient; -import com.google.api.servicecontrol.v1.ServiceControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceControllerSettings serviceControllerSettings = - ServiceControllerSettings.newHttpJsonBuilder().build(); - ServiceControllerClient serviceControllerClient = - ServiceControllerClient.create(serviceControllerSettings); - } -} -// [END servicecontrol_v1_generated_ServiceController_Create_SetCredentialsProvider1_sync] diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateUseHttpJsonTransport.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bc4f89ecaccf --- /dev/null +++ b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v1/servicecontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.servicecontrol.v1.samples; + +// [START servicecontrol_v1_generated_ServiceController_Create_UseHttpJsonTransport_sync] +import com.google.api.servicecontrol.v1.ServiceControllerClient; +import com.google.api.servicecontrol.v1.ServiceControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceControllerSettings serviceControllerSettings = + ServiceControllerSettings.newHttpJsonBuilder().build(); + ServiceControllerClient serviceControllerClient = + ServiceControllerClient.create(serviceControllerSettings); + } +} +// [END servicecontrol_v1_generated_ServiceController_Create_UseHttpJsonTransport_sync] diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateSetCredentialsProvider1.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 005c40e726df..000000000000 --- a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.servicecontrol.v2.samples; - -// [START servicecontrol_v2_generated_ServiceController_Create_SetCredentialsProvider1_sync] -import com.google.api.servicecontrol.v2.ServiceControllerClient; -import com.google.api.servicecontrol.v2.ServiceControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceControllerSettings serviceControllerSettings = - ServiceControllerSettings.newHttpJsonBuilder().build(); - ServiceControllerClient serviceControllerClient = - ServiceControllerClient.create(serviceControllerSettings); - } -} -// [END servicecontrol_v2_generated_ServiceController_Create_SetCredentialsProvider1_sync] diff --git a/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateUseHttpJsonTransport.java b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ee56ac1d832c --- /dev/null +++ b/java-service-control/samples/snippets/generated/com/google/api/servicecontrol/v2/servicecontroller/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.servicecontrol.v2.samples; + +// [START servicecontrol_v2_generated_ServiceController_Create_UseHttpJsonTransport_sync] +import com.google.api.servicecontrol.v2.ServiceControllerClient; +import com.google.api.servicecontrol.v2.ServiceControllerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceControllerSettings serviceControllerSettings = + ServiceControllerSettings.newHttpJsonBuilder().build(); + ServiceControllerClient serviceControllerClient = + ServiceControllerClient.create(serviceControllerSettings); + } +} +// [END servicecontrol_v2_generated_ServiceController_Create_UseHttpJsonTransport_sync] diff --git a/java-service-management/README.md b/java-service-management/README.md index 078a1dc18d7b..00a03b5e8f15 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/google-cloud-service-management/src/main/resources/META-INF/native-image/com.google.cloud.api.servicemanagement.v1/reflect-config.json b/java-service-management/google-cloud-service-management/src/main/resources/META-INF/native-image/com.google.cloud.api.servicemanagement.v1/reflect-config.json index 7e3e075450a3..eaf69ae4b24d 100644 --- a/java-service-management/google-cloud-service-management/src/main/resources/META-INF/native-image/com.google.cloud.api.servicemanagement.v1/reflect-config.json +++ b/java-service-management/google-cloud-service-management/src/main/resources/META-INF/native-image/com.google.cloud.api.servicemanagement.v1/reflect-config.json @@ -728,6 +728,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$TimeSeriesResourceHierarchyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.MetricDescriptor$MetricKind", "queryAllDeclaredConstructors": true, @@ -1088,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.Service", "queryAllDeclaredConstructors": true, diff --git a/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateSetCredentialsProvider1.java b/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 728451cab3e8..000000000000 --- a/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.api.servicemanagement.v1.samples; - -// [START servicemanagement_v1_generated_ServiceManager_Create_SetCredentialsProvider1_sync] -import com.google.cloud.api.servicemanagement.v1.ServiceManagerClient; -import com.google.cloud.api.servicemanagement.v1.ServiceManagerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceManagerSettings serviceManagerSettings = - ServiceManagerSettings.newHttpJsonBuilder().build(); - ServiceManagerClient serviceManagerClient = ServiceManagerClient.create(serviceManagerSettings); - } -} -// [END servicemanagement_v1_generated_ServiceManager_Create_SetCredentialsProvider1_sync] diff --git a/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateUseHttpJsonTransport.java b/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..53ee2e3e0a63 --- /dev/null +++ b/java-service-management/samples/snippets/generated/com/google/cloud/api/servicemanagement/v1/servicemanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.api.servicemanagement.v1.samples; + +// [START servicemanagement_v1_generated_ServiceManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.api.servicemanagement.v1.ServiceManagerClient; +import com.google.cloud.api.servicemanagement.v1.ServiceManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceManagerSettings serviceManagerSettings = + ServiceManagerSettings.newHttpJsonBuilder().build(); + ServiceManagerClient serviceManagerClient = ServiceManagerClient.create(serviceManagerSettings); + } +} +// [END servicemanagement_v1_generated_ServiceManager_Create_UseHttpJsonTransport_sync] diff --git a/java-service-usage/README.md b/java-service-usage/README.md index c54f5cbd0f50..a7e6bcecd95f 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1/reflect-config.json b/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1/reflect-config.json index 4cf888f82a68..a0963238bc41 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1/reflect-config.json +++ b/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1/reflect-config.json @@ -737,6 +737,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.Usage", "queryAllDeclaredConstructors": true, diff --git a/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1beta1/reflect-config.json b/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1beta1/reflect-config.json index d5cbeeb49aa0..3527c842ff7b 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1beta1/reflect-config.json +++ b/java-service-usage/google-cloud-service-usage/src/main/resources/META-INF/native-image/com.google.api.serviceusage.v1beta1/reflect-config.json @@ -746,6 +746,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.Usage", "queryAllDeclaredConstructors": true, diff --git a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateSetCredentialsProvider1.java b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c28daa35d75e..000000000000 --- a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.serviceusage.v1.samples; - -// [START serviceusage_v1_generated_ServiceUsage_Create_SetCredentialsProvider1_sync] -import com.google.api.serviceusage.v1.ServiceUsageClient; -import com.google.api.serviceusage.v1.ServiceUsageSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceUsageSettings serviceUsageSettings = ServiceUsageSettings.newHttpJsonBuilder().build(); - ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings); - } -} -// [END serviceusage_v1_generated_ServiceUsage_Create_SetCredentialsProvider1_sync] diff --git a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateUseHttpJsonTransport.java b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c7872461a7f1 --- /dev/null +++ b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1/serviceusage/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.serviceusage.v1.samples; + +// [START serviceusage_v1_generated_ServiceUsage_Create_UseHttpJsonTransport_sync] +import com.google.api.serviceusage.v1.ServiceUsageClient; +import com.google.api.serviceusage.v1.ServiceUsageSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceUsageSettings serviceUsageSettings = ServiceUsageSettings.newHttpJsonBuilder().build(); + ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings); + } +} +// [END serviceusage_v1_generated_ServiceUsage_Create_UseHttpJsonTransport_sync] diff --git a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateSetCredentialsProvider1.java b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 508c8a3cfbc9..000000000000 --- a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.api.serviceusage.v1beta1.samples; - -// [START serviceusage_v1beta1_generated_ServiceUsage_Create_SetCredentialsProvider1_sync] -import com.google.api.serviceusage.v1beta1.ServiceUsageClient; -import com.google.api.serviceusage.v1beta1.ServiceUsageSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceUsageSettings serviceUsageSettings = ServiceUsageSettings.newHttpJsonBuilder().build(); - ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings); - } -} -// [END serviceusage_v1beta1_generated_ServiceUsage_Create_SetCredentialsProvider1_sync] diff --git a/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateUseHttpJsonTransport.java b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..401dd1edb7c3 --- /dev/null +++ b/java-service-usage/samples/snippets/generated/com/google/api/serviceusage/v1beta1/serviceusage/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.api.serviceusage.v1beta1.samples; + +// [START serviceusage_v1beta1_generated_ServiceUsage_Create_UseHttpJsonTransport_sync] +import com.google.api.serviceusage.v1beta1.ServiceUsageClient; +import com.google.api.serviceusage.v1beta1.ServiceUsageSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceUsageSettings serviceUsageSettings = ServiceUsageSettings.newHttpJsonBuilder().build(); + ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings); + } +} +// [END serviceusage_v1beta1_generated_ServiceUsage_Create_UseHttpJsonTransport_sync] diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 5fcfdea23dd9..534d8c05584d 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1/reflect-config.json b/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1/reflect-config.json index 3257d2345bfe..60e222547ed1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1/reflect-config.json +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1beta1/reflect-config.json b/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1beta1/reflect-config.json index 459180f3609d..4eeb5e4f1442 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1beta1/reflect-config.json +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/resources/META-INF/native-image/com.google.cloud.servicedirectory.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e4676330013e..000000000000 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.servicedirectory.v1.samples; - -// [START servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.servicedirectory.v1.LookupServiceClient; -import com.google.cloud.servicedirectory.v1.LookupServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LookupServiceSettings lookupServiceSettings = - LookupServiceSettings.newHttpJsonBuilder().build(); - LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); - } -} -// [END servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider1_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateUseHttpJsonTransport.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b0cdac1dcc71 --- /dev/null +++ b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.servicedirectory.v1.samples; + +// [START servicedirectory_v1_generated_LookupService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.servicedirectory.v1.LookupServiceClient; +import com.google.cloud.servicedirectory.v1.LookupServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LookupServiceSettings lookupServiceSettings = + LookupServiceSettings.newHttpJsonBuilder().build(); + LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); + } +} +// [END servicedirectory_v1_generated_LookupService_Create_UseHttpJsonTransport_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c9f788a61351..000000000000 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.servicedirectory.v1.samples; - -// [START servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.servicedirectory.v1.RegistrationServiceClient; -import com.google.cloud.servicedirectory.v1.RegistrationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RegistrationServiceSettings registrationServiceSettings = - RegistrationServiceSettings.newHttpJsonBuilder().build(); - RegistrationServiceClient registrationServiceClient = - RegistrationServiceClient.create(registrationServiceSettings); - } -} -// [END servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider1_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateUseHttpJsonTransport.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c096d78f1a4e --- /dev/null +++ b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.servicedirectory.v1.samples; + +// [START servicedirectory_v1_generated_RegistrationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.servicedirectory.v1.RegistrationServiceClient; +import com.google.cloud.servicedirectory.v1.RegistrationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RegistrationServiceSettings registrationServiceSettings = + RegistrationServiceSettings.newHttpJsonBuilder().build(); + RegistrationServiceClient registrationServiceClient = + RegistrationServiceClient.create(registrationServiceSettings); + } +} +// [END servicedirectory_v1_generated_RegistrationService_Create_UseHttpJsonTransport_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0a30a3d9e772..000000000000 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.servicedirectory.v1beta1.samples; - -// [START servicedirectory_v1beta1_generated_LookupService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.servicedirectory.v1beta1.LookupServiceClient; -import com.google.cloud.servicedirectory.v1beta1.LookupServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LookupServiceSettings lookupServiceSettings = - LookupServiceSettings.newHttpJsonBuilder().build(); - LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); - } -} -// [END servicedirectory_v1beta1_generated_LookupService_Create_SetCredentialsProvider1_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateUseHttpJsonTransport.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..802670e29412 --- /dev/null +++ b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.servicedirectory.v1beta1.samples; + +// [START servicedirectory_v1beta1_generated_LookupService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.servicedirectory.v1beta1.LookupServiceClient; +import com.google.cloud.servicedirectory.v1beta1.LookupServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LookupServiceSettings lookupServiceSettings = + LookupServiceSettings.newHttpJsonBuilder().build(); + LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); + } +} +// [END servicedirectory_v1beta1_generated_LookupService_Create_UseHttpJsonTransport_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2565583beabf..000000000000 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.servicedirectory.v1beta1.samples; - -// [START servicedirectory_v1beta1_generated_RegistrationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.servicedirectory.v1beta1.RegistrationServiceClient; -import com.google.cloud.servicedirectory.v1beta1.RegistrationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RegistrationServiceSettings registrationServiceSettings = - RegistrationServiceSettings.newHttpJsonBuilder().build(); - RegistrationServiceClient registrationServiceClient = - RegistrationServiceClient.create(registrationServiceSettings); - } -} -// [END servicedirectory_v1beta1_generated_RegistrationService_Create_SetCredentialsProvider1_sync] diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateUseHttpJsonTransport.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0ad248bef93c --- /dev/null +++ b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.servicedirectory.v1beta1.samples; + +// [START servicedirectory_v1beta1_generated_RegistrationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.servicedirectory.v1beta1.RegistrationServiceClient; +import com.google.cloud.servicedirectory.v1beta1.RegistrationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RegistrationServiceSettings registrationServiceSettings = + RegistrationServiceSettings.newHttpJsonBuilder().build(); + RegistrationServiceClient registrationServiceClient = + RegistrationServiceClient.create(registrationServiceSettings); + } +} +// [END servicedirectory_v1beta1_generated_RegistrationService_Create_UseHttpJsonTransport_sync] diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 1e09265bcd9a..f6b8d2220b80 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.19.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json b/java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json index f02423282b73..0eb73d101f2d 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json +++ b/java-servicehealth/google-cloud-servicehealth/src/main/resources/META-INF/native-image/com.google.cloud.servicehealth.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f0bb283b88a2..000000000000 --- a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.servicehealth.v1.samples; - -// [START servicehealth_v1_generated_ServiceHealth_Create_SetCredentialsProvider1_sync] -import com.google.cloud.servicehealth.v1.ServiceHealthClient; -import com.google.cloud.servicehealth.v1.ServiceHealthSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServiceHealthSettings serviceHealthSettings = - ServiceHealthSettings.newHttpJsonBuilder().build(); - ServiceHealthClient serviceHealthClient = ServiceHealthClient.create(serviceHealthSettings); - } -} -// [END servicehealth_v1_generated_ServiceHealth_Create_SetCredentialsProvider1_sync] diff --git a/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateUseHttpJsonTransport.java b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5d3c317ebf0f --- /dev/null +++ b/java-servicehealth/samples/snippets/generated/com/google/cloud/servicehealth/v1/servicehealth/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.servicehealth.v1.samples; + +// [START servicehealth_v1_generated_ServiceHealth_Create_UseHttpJsonTransport_sync] +import com.google.cloud.servicehealth.v1.ServiceHealthClient; +import com.google.cloud.servicehealth.v1.ServiceHealthSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ServiceHealthSettings serviceHealthSettings = + ServiceHealthSettings.newHttpJsonBuilder().build(); + ServiceHealthClient serviceHealthClient = ServiceHealthClient.create(serviceHealthSettings); + } +} +// [END servicehealth_v1_generated_ServiceHealth_Create_UseHttpJsonTransport_sync] diff --git a/java-shell/README.md b/java-shell/README.md index cc61e245e937..a5841dbe6ea0 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/google-cloud-shell/src/main/resources/META-INF/native-image/com.google.cloud.shell.v1/reflect-config.json b/java-shell/google-cloud-shell/src/main/resources/META-INF/native-image/com.google.cloud.shell.v1/reflect-config.json index 74e41009800d..77f1cfe7c2b8 100644 --- a/java-shell/google-cloud-shell/src/main/resources/META-INF/native-image/com.google.cloud.shell.v1/reflect-config.json +++ b/java-shell/google-cloud-shell/src/main/resources/META-INF/native-image/com.google.cloud.shell.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.shell.v1.AddPublicKeyMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateSetCredentialsProvider1.java b/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5e336e9510d9..000000000000 --- a/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.shell.v1.samples; - -// [START cloudshell_v1_generated_CloudShellService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.shell.v1.CloudShellServiceClient; -import com.google.cloud.shell.v1.CloudShellServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudShellServiceSettings cloudShellServiceSettings = - CloudShellServiceSettings.newHttpJsonBuilder().build(); - CloudShellServiceClient cloudShellServiceClient = - CloudShellServiceClient.create(cloudShellServiceSettings); - } -} -// [END cloudshell_v1_generated_CloudShellService_Create_SetCredentialsProvider1_sync] diff --git a/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateUseHttpJsonTransport.java b/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d60074ea5f19 --- /dev/null +++ b/java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.shell.v1.samples; + +// [START cloudshell_v1_generated_CloudShellService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.shell.v1.CloudShellServiceClient; +import com.google.cloud.shell.v1.CloudShellServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudShellServiceSettings cloudShellServiceSettings = + CloudShellServiceSettings.newHttpJsonBuilder().build(); + CloudShellServiceClient cloudShellServiceClient = + CloudShellServiceClient.create(cloudShellServiceSettings); + } +} +// [END cloudshell_v1_generated_CloudShellService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index a1f1f746bf6f..3ae999577f1d 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.20.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/google-shopping-css/src/main/resources/META-INF/native-image/com.google.shopping.css.v1/reflect-config.json b/java-shopping-css/google-shopping-css/src/main/resources/META-INF/native-image/com.google.shopping.css.v1/reflect-config.json index e14ebc1f9b6d..5e96f4e81743 100644 --- a/java-shopping-css/google-shopping-css/src/main/resources/META-INF/native-image/com.google.shopping.css.v1/reflect-config.json +++ b/java-shopping-css/google-shopping-css/src/main/resources/META-INF/native-image/com.google.shopping.css.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, @@ -1448,6 +1466,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.css.v1.HeadlineOfferInstallment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.css.v1.HeadlineOfferInstallment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.css.v1.HeadlineOfferSubscriptionCost", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.css.v1.HeadlineOfferSubscriptionCost$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.css.v1.InsertCssProductInputRequest", "queryAllDeclaredConstructors": true, @@ -1628,6 +1682,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.css.v1.SubscriptionPeriod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.css.v1.UpdateAccountLabelRequest", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java index 99b9f7a431ce..1c32d83b1759 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java @@ -3082,6 +3082,118 @@ public com.google.protobuf.ByteString getCustomLabel4Bytes() { } } + public static final int HEADLINE_OFFER_INSTALLMENT_FIELD_NUMBER = 51; + private com.google.shopping.css.v1.HeadlineOfferInstallment headlineOfferInstallment_; + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * @return Whether the headlineOfferInstallment field is set. + */ + @java.lang.Override + public boolean hasHeadlineOfferInstallment() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * @return The headlineOfferInstallment. + */ + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferInstallment getHeadlineOfferInstallment() { + return headlineOfferInstallment_ == null + ? com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance() + : headlineOfferInstallment_; + } + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + */ + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder + getHeadlineOfferInstallmentOrBuilder() { + return headlineOfferInstallment_ == null + ? com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance() + : headlineOfferInstallment_; + } + + public static final int HEADLINE_OFFER_SUBSCRIPTION_COST_FIELD_NUMBER = 52; + private com.google.shopping.css.v1.HeadlineOfferSubscriptionCost headlineOfferSubscriptionCost_; + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return Whether the headlineOfferSubscriptionCost field is set. + */ + @java.lang.Override + public boolean hasHeadlineOfferSubscriptionCost() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return The headlineOfferSubscriptionCost. + */ + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost + getHeadlineOfferSubscriptionCost() { + return headlineOfferSubscriptionCost_ == null + ? com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance() + : headlineOfferSubscriptionCost_; + } + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder + getHeadlineOfferSubscriptionCostOrBuilder() { + return headlineOfferSubscriptionCost_ == null + ? com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance() + : headlineOfferSubscriptionCost_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3243,6 +3355,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 50, customLabel4_); } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(51, getHeadlineOfferInstallment()); + } + if (((bitField1_ & 0x00000200) != 0)) { + output.writeMessage(52, getHeadlineOfferSubscriptionCost()); + } getUnknownFields().writeTo(output); } @@ -3428,6 +3546,16 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, customLabel4_); } + if (((bitField1_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 51, getHeadlineOfferInstallment()); + } + if (((bitField1_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 52, getHeadlineOfferSubscriptionCost()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3612,6 +3740,16 @@ public boolean equals(final java.lang.Object obj) { if (hasCustomLabel4()) { if (!getCustomLabel4().equals(other.getCustomLabel4())) return false; } + if (hasHeadlineOfferInstallment() != other.hasHeadlineOfferInstallment()) return false; + if (hasHeadlineOfferInstallment()) { + if (!getHeadlineOfferInstallment().equals(other.getHeadlineOfferInstallment())) return false; + } + if (hasHeadlineOfferSubscriptionCost() != other.hasHeadlineOfferSubscriptionCost()) + return false; + if (hasHeadlineOfferSubscriptionCost()) { + if (!getHeadlineOfferSubscriptionCost().equals(other.getHeadlineOfferSubscriptionCost())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3815,6 +3953,14 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_LABEL_4_FIELD_NUMBER; hash = (53 * hash) + getCustomLabel4().hashCode(); } + if (hasHeadlineOfferInstallment()) { + hash = (37 * hash) + HEADLINE_OFFER_INSTALLMENT_FIELD_NUMBER; + hash = (53 * hash) + getHeadlineOfferInstallment().hashCode(); + } + if (hasHeadlineOfferSubscriptionCost()) { + hash = (37 * hash) + HEADLINE_OFFER_SUBSCRIPTION_COST_FIELD_NUMBER; + hash = (53 * hash) + getHeadlineOfferSubscriptionCost().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3965,6 +4111,8 @@ private void maybeForceBuilderInitialization() { getProductHeightFieldBuilder(); getCertificationsFieldBuilder(); getExpirationDateFieldBuilder(); + getHeadlineOfferInstallmentFieldBuilder(); + getHeadlineOfferSubscriptionCostFieldBuilder(); } } @@ -4069,6 +4217,16 @@ public Builder clear() { customLabel2_ = ""; customLabel3_ = ""; customLabel4_ = ""; + headlineOfferInstallment_ = null; + if (headlineOfferInstallmentBuilder_ != null) { + headlineOfferInstallmentBuilder_.dispose(); + headlineOfferInstallmentBuilder_ = null; + } + headlineOfferSubscriptionCost_ = null; + if (headlineOfferSubscriptionCostBuilder_ != null) { + headlineOfferSubscriptionCostBuilder_.dispose(); + headlineOfferSubscriptionCostBuilder_ = null; + } return this; } @@ -4333,6 +4491,20 @@ private void buildPartial1(com.google.shopping.css.v1.Attributes result) { result.customLabel4_ = customLabel4_; to_bitField1_ |= 0x00000080; } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.headlineOfferInstallment_ = + headlineOfferInstallmentBuilder_ == null + ? headlineOfferInstallment_ + : headlineOfferInstallmentBuilder_.build(); + to_bitField1_ |= 0x00000100; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.headlineOfferSubscriptionCost_ = + headlineOfferSubscriptionCostBuilder_ == null + ? headlineOfferSubscriptionCost_ + : headlineOfferSubscriptionCostBuilder_.build(); + to_bitField1_ |= 0x00000200; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -4670,6 +4842,12 @@ public Builder mergeFrom(com.google.shopping.css.v1.Attributes other) { bitField1_ |= 0x00008000; onChanged(); } + if (other.hasHeadlineOfferInstallment()) { + mergeHeadlineOfferInstallment(other.getHeadlineOfferInstallment()); + } + if (other.hasHeadlineOfferSubscriptionCost()) { + mergeHeadlineOfferSubscriptionCost(other.getHeadlineOfferSubscriptionCost()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5006,6 +5184,20 @@ public Builder mergeFrom( bitField1_ |= 0x00008000; break; } // case 402 + case 410: + { + input.readMessage( + getHeadlineOfferInstallmentFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00010000; + break; + } // case 410 + case 418: + { + input.readMessage( + getHeadlineOfferSubscriptionCostFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00020000; + break; + } // case 418 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12200,6 +12392,425 @@ public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { return this; } + private com.google.shopping.css.v1.HeadlineOfferInstallment headlineOfferInstallment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferInstallment, + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder, + com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder> + headlineOfferInstallmentBuilder_; + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * + * @return Whether the headlineOfferInstallment field is set. + */ + public boolean hasHeadlineOfferInstallment() { + return ((bitField1_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * + * @return The headlineOfferInstallment. + */ + public com.google.shopping.css.v1.HeadlineOfferInstallment getHeadlineOfferInstallment() { + if (headlineOfferInstallmentBuilder_ == null) { + return headlineOfferInstallment_ == null + ? com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance() + : headlineOfferInstallment_; + } else { + return headlineOfferInstallmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public Builder setHeadlineOfferInstallment( + com.google.shopping.css.v1.HeadlineOfferInstallment value) { + if (headlineOfferInstallmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headlineOfferInstallment_ = value; + } else { + headlineOfferInstallmentBuilder_.setMessage(value); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public Builder setHeadlineOfferInstallment( + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder builderForValue) { + if (headlineOfferInstallmentBuilder_ == null) { + headlineOfferInstallment_ = builderForValue.build(); + } else { + headlineOfferInstallmentBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public Builder mergeHeadlineOfferInstallment( + com.google.shopping.css.v1.HeadlineOfferInstallment value) { + if (headlineOfferInstallmentBuilder_ == null) { + if (((bitField1_ & 0x00010000) != 0) + && headlineOfferInstallment_ != null + && headlineOfferInstallment_ + != com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance()) { + getHeadlineOfferInstallmentBuilder().mergeFrom(value); + } else { + headlineOfferInstallment_ = value; + } + } else { + headlineOfferInstallmentBuilder_.mergeFrom(value); + } + if (headlineOfferInstallment_ != null) { + bitField1_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public Builder clearHeadlineOfferInstallment() { + bitField1_ = (bitField1_ & ~0x00010000); + headlineOfferInstallment_ = null; + if (headlineOfferInstallmentBuilder_ != null) { + headlineOfferInstallmentBuilder_.dispose(); + headlineOfferInstallmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public com.google.shopping.css.v1.HeadlineOfferInstallment.Builder + getHeadlineOfferInstallmentBuilder() { + bitField1_ |= 0x00010000; + onChanged(); + return getHeadlineOfferInstallmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + public com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder + getHeadlineOfferInstallmentOrBuilder() { + if (headlineOfferInstallmentBuilder_ != null) { + return headlineOfferInstallmentBuilder_.getMessageOrBuilder(); + } else { + return headlineOfferInstallment_ == null + ? com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance() + : headlineOfferInstallment_; + } + } + /** + * + * + *
+     * Number and amount of installments to pay for an item.
+     * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferInstallment, + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder, + com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder> + getHeadlineOfferInstallmentFieldBuilder() { + if (headlineOfferInstallmentBuilder_ == null) { + headlineOfferInstallmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferInstallment, + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder, + com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder>( + getHeadlineOfferInstallment(), getParentForChildren(), isClean()); + headlineOfferInstallment_ = null; + } + return headlineOfferInstallmentBuilder_; + } + + private com.google.shopping.css.v1.HeadlineOfferSubscriptionCost headlineOfferSubscriptionCost_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder> + headlineOfferSubscriptionCostBuilder_; + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return Whether the headlineOfferSubscriptionCost field is set. + */ + public boolean hasHeadlineOfferSubscriptionCost() { + return ((bitField1_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return The headlineOfferSubscriptionCost. + */ + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost + getHeadlineOfferSubscriptionCost() { + if (headlineOfferSubscriptionCostBuilder_ == null) { + return headlineOfferSubscriptionCost_ == null + ? com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance() + : headlineOfferSubscriptionCost_; + } else { + return headlineOfferSubscriptionCostBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public Builder setHeadlineOfferSubscriptionCost( + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost value) { + if (headlineOfferSubscriptionCostBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headlineOfferSubscriptionCost_ = value; + } else { + headlineOfferSubscriptionCostBuilder_.setMessage(value); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public Builder setHeadlineOfferSubscriptionCost( + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder builderForValue) { + if (headlineOfferSubscriptionCostBuilder_ == null) { + headlineOfferSubscriptionCost_ = builderForValue.build(); + } else { + headlineOfferSubscriptionCostBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public Builder mergeHeadlineOfferSubscriptionCost( + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost value) { + if (headlineOfferSubscriptionCostBuilder_ == null) { + if (((bitField1_ & 0x00020000) != 0) + && headlineOfferSubscriptionCost_ != null + && headlineOfferSubscriptionCost_ + != com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance()) { + getHeadlineOfferSubscriptionCostBuilder().mergeFrom(value); + } else { + headlineOfferSubscriptionCost_ = value; + } + } else { + headlineOfferSubscriptionCostBuilder_.mergeFrom(value); + } + if (headlineOfferSubscriptionCost_ != null) { + bitField1_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public Builder clearHeadlineOfferSubscriptionCost() { + bitField1_ = (bitField1_ & ~0x00020000); + headlineOfferSubscriptionCost_ = null; + if (headlineOfferSubscriptionCostBuilder_ != null) { + headlineOfferSubscriptionCostBuilder_.dispose(); + headlineOfferSubscriptionCostBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder + getHeadlineOfferSubscriptionCostBuilder() { + bitField1_ |= 0x00020000; + onChanged(); + return getHeadlineOfferSubscriptionCostFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder + getHeadlineOfferSubscriptionCostOrBuilder() { + if (headlineOfferSubscriptionCostBuilder_ != null) { + return headlineOfferSubscriptionCostBuilder_.getMessageOrBuilder(); + } else { + return headlineOfferSubscriptionCost_ == null + ? com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance() + : headlineOfferSubscriptionCost_; + } + } + /** + * + * + *
+     * Number of periods (months or years) and amount of payment per period
+     * for an item with an associated subscription contract.
+     * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder> + getHeadlineOfferSubscriptionCostFieldBuilder() { + if (headlineOfferSubscriptionCostBuilder_ == null) { + headlineOfferSubscriptionCostBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder>( + getHeadlineOfferSubscriptionCost(), getParentForChildren(), isClean()); + headlineOfferSubscriptionCost_ = null; + } + return headlineOfferSubscriptionCostBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java index 457bd81f0073..c971357d769d 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java @@ -1948,4 +1948,85 @@ public interface AttributesOrBuilder * @return The bytes for customLabel4. */ com.google.protobuf.ByteString getCustomLabel4Bytes(); + + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * @return Whether the headlineOfferInstallment field is set. + */ + boolean hasHeadlineOfferInstallment(); + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + * + * @return The headlineOfferInstallment. + */ + com.google.shopping.css.v1.HeadlineOfferInstallment getHeadlineOfferInstallment(); + /** + * + * + *
+   * Number and amount of installments to pay for an item.
+   * 
+ * + * .google.shopping.css.v1.HeadlineOfferInstallment headline_offer_installment = 51; + */ + com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder + getHeadlineOfferInstallmentOrBuilder(); + + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return Whether the headlineOfferSubscriptionCost field is set. + */ + boolean hasHeadlineOfferSubscriptionCost(); + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + * + * @return The headlineOfferSubscriptionCost. + */ + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost getHeadlineOfferSubscriptionCost(); + /** + * + * + *
+   * Number of periods (months or years) and amount of payment per period
+   * for an item with an associated subscription contract.
+   * 
+ * + * + * .google.shopping.css.v1.HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; + * + */ + com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder + getHeadlineOfferSubscriptionCostOrBuilder(); } diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductCommonProto.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductCommonProto.java index 47765c0c4372..c3ff8c24b34b 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductCommonProto.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductCommonProto.java @@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_css_v1_CssProductStatus_ItemLevelIssue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_css_v1_CssProductStatus_ItemLevelIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_css_v1_HeadlineOfferInstallment_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -73,7 +81,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mon.proto\022\026google.shopping.css.v1\032\037googl" + "e/api/field_behavior.proto\032\037google/proto" + "buf/timestamp.proto\032 google/shopping/typ" - + "e/types.proto\"\351\020\n\nAttributes\022\025\n\010cpp_link" + + "e/types.proto\"\240\022\n\nAttributes\022\025\n\010cpp_link" + "\030\001 \001(\tH\000\210\001\001\022\034\n\017cpp_mobile_link\030\002 \001(\tH\001\210\001" + "\001\022\035\n\020cpp_ads_redirect\030* \001(\tH\002\210\001\001\022.\n\tlow_" + "price\030\003 \001(\0132\033.google.shopping.type.Price" @@ -114,49 +122,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\033\n\016custom_label_0\030. \001(\tH\032\210\001\001\022\033\n\016cust" + "om_label_1\030/ \001(\tH\033\210\001\001\022\033\n\016custom_label_2\030" + "0 \001(\tH\034\210\001\001\022\033\n\016custom_label_3\0301 \001(\tH\035\210\001\001\022" - + "\033\n\016custom_label_4\0302 \001(\tH\036\210\001\001B\013\n\t_cpp_lin" - + "kB\022\n\020_cpp_mobile_linkB\023\n\021_cpp_ads_redire" - + "ctB\023\n\021_number_of_offersB\033\n\031_headline_off" - + "er_conditionB\026\n\024_headline_offer_linkB\035\n\033" - + "_headline_offer_mobile_linkB\010\n\006_titleB\r\n" - + "\013_image_linkB\016\n\014_descriptionB\010\n\006_brandB\006" - + "\n\004_mpnB\007\n\005_gtinB\032\n\030_google_product_categ" - + "oryB\010\n\006_adultB\014\n\n_multipackB\014\n\n_is_bundl" - + "eB\014\n\n_age_groupB\010\n\006_colorB\t\n\007_genderB\013\n\t" - + "_materialB\n\n\010_patternB\007\n\005_sizeB\016\n\014_size_" - + "systemB\020\n\016_item_group_idB\010\n\006_pauseB\021\n\017_c" - + "ustom_label_0B\021\n\017_custom_label_1B\021\n\017_cus" - + "tom_label_2B\021\n\017_custom_label_3B\021\n\017_custo" - + "m_label_4\">\n\rCertification\022\014\n\004name\030\001 \001(\t" - + "\022\021\n\tauthority\030\002 \001(\t\022\014\n\004code\030\003 \001(\t\"V\n\rPro" - + "ductDetail\022\024\n\014section_name\030\001 \001(\t\022\026\n\016attr" - + "ibute_name\030\002 \001(\t\022\027\n\017attribute_value\030\003 \001(" - + "\t\"9\n\020ProductDimension\022\022\n\005value\030\001 \001(\001B\003\340A" - + "\002\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"6\n\rProductWeight\022\022\n" - + "\005value\030\001 \001(\001B\003\340A\002\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"\261\005\n" - + "\020CssProductStatus\022X\n\024destination_statuse" - + "s\030\003 \003(\0132:.google.shopping.css.v1.CssProd" - + "uctStatus.DestinationStatus\022R\n\021item_leve" - + "l_issues\030\004 \003(\01327.google.shopping.css.v1." - + "CssProductStatus.ItemLevelIssue\0221\n\rcreat" - + "ion_date\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mp\0224\n\020last_update_date\030\006 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022:\n\026google_expiration_da" - + "te\030\007 \001(\0132\032.google.protobuf.Timestamp\032~\n\021" - + "DestinationStatus\022\023\n\013destination\030\001 \001(\t\022\032" - + "\n\022approved_countries\030\002 \003(\t\022\031\n\021pending_co" - + "untries\030\003 \003(\t\022\035\n\025disapproved_countries\030\004" - + " \003(\t\032\311\001\n\016ItemLevelIssue\022\014\n\004code\030\001 \001(\t\022\023\n" - + "\013servability\030\002 \001(\t\022\022\n\nresolution\030\003 \001(\t\022\021" - + "\n\tattribute\030\004 \001(\t\022\023\n\013destination\030\005 \001(\t\022\023" - + "\n\013description\030\006 \001(\t\022\016\n\006detail\030\007 \001(\t\022\025\n\rd" - + "ocumentation\030\010 \001(\t\022\034\n\024applicable_countri" - + "es\030\t \003(\tB\267\001\n\032com.google.shopping.css.v1B" - + "\025CssProductCommonProtoP\001Z2cloud.google.c" - + "om/go/shopping/css/apiv1/csspb;csspb\252\002\026G" - + "oogle.Shopping.Css.V1\312\002\026Google\\Shopping\\" - + "Css\\V1\352\002\031Google::Shopping::Css::V1b\006prot" - + "o3" + + "\033\n\016custom_label_4\0302 \001(\tH\036\210\001\001\022T\n\032headline" + + "_offer_installment\0303 \001(\01320.google.shoppi" + + "ng.css.v1.HeadlineOfferInstallment\022_\n he" + + "adline_offer_subscription_cost\0304 \001(\01325.g" + + "oogle.shopping.css.v1.HeadlineOfferSubsc" + + "riptionCostB\013\n\t_cpp_linkB\022\n\020_cpp_mobile_" + + "linkB\023\n\021_cpp_ads_redirectB\023\n\021_number_of_" + + "offersB\033\n\031_headline_offer_conditionB\026\n\024_" + + "headline_offer_linkB\035\n\033_headline_offer_m" + + "obile_linkB\010\n\006_titleB\r\n\013_image_linkB\016\n\014_" + + "descriptionB\010\n\006_brandB\006\n\004_mpnB\007\n\005_gtinB\032" + + "\n\030_google_product_categoryB\010\n\006_adultB\014\n\n" + + "_multipackB\014\n\n_is_bundleB\014\n\n_age_groupB\010" + + "\n\006_colorB\t\n\007_genderB\013\n\t_materialB\n\n\010_pat" + + "ternB\007\n\005_sizeB\016\n\014_size_systemB\020\n\016_item_g" + + "roup_idB\010\n\006_pauseB\021\n\017_custom_label_0B\021\n\017" + + "_custom_label_1B\021\n\017_custom_label_2B\021\n\017_c" + + "ustom_label_3B\021\n\017_custom_label_4\">\n\rCert" + + "ification\022\014\n\004name\030\001 \001(\t\022\021\n\tauthority\030\002 \001" + + "(\t\022\014\n\004code\030\003 \001(\t\"V\n\rProductDetail\022\024\n\014sec" + + "tion_name\030\001 \001(\t\022\026\n\016attribute_name\030\002 \001(\t\022" + + "\027\n\017attribute_value\030\003 \001(\t\"9\n\020ProductDimen" + + "sion\022\022\n\005value\030\001 \001(\001B\003\340A\002\022\021\n\004unit\030\002 \001(\tB\003" + + "\340A\002\"6\n\rProductWeight\022\022\n\005value\030\001 \001(\001B\003\340A\002" + + "\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"\261\005\n\020CssProductStatus" + + "\022X\n\024destination_statuses\030\003 \003(\0132:.google." + + "shopping.css.v1.CssProductStatus.Destina" + + "tionStatus\022R\n\021item_level_issues\030\004 \003(\01327." + + "google.shopping.css.v1.CssProductStatus." + + "ItemLevelIssue\0221\n\rcreation_date\030\005 \001(\0132\032." + + "google.protobuf.Timestamp\0224\n\020last_update" + + "_date\030\006 \001(\0132\032.google.protobuf.Timestamp\022" + + ":\n\026google_expiration_date\030\007 \001(\0132\032.google" + + ".protobuf.Timestamp\032~\n\021DestinationStatus" + + "\022\023\n\013destination\030\001 \001(\t\022\032\n\022approved_countr" + + "ies\030\002 \003(\t\022\031\n\021pending_countries\030\003 \003(\t\022\035\n\025" + + "disapproved_countries\030\004 \003(\t\032\311\001\n\016ItemLeve" + + "lIssue\022\014\n\004code\030\001 \001(\t\022\023\n\013servability\030\002 \001(" + + "\t\022\022\n\nresolution\030\003 \001(\t\022\021\n\tattribute\030\004 \001(\t" + + "\022\023\n\013destination\030\005 \001(\t\022\023\n\013description\030\006 \001" + + "(\t\022\016\n\006detail\030\007 \001(\t\022\025\n\rdocumentation\030\010 \001(" + + "\t\022\034\n\024applicable_countries\030\t \003(\t\"\237\001\n\035Head" + + "lineOfferSubscriptionCost\022:\n\006period\030\001 \001(" + + "\0162*.google.shopping.css.v1.SubscriptionP" + + "eriod\022\025\n\rperiod_length\030\002 \001(\003\022+\n\006amount\030\003" + + " \001(\0132\033.google.shopping.type.Price\"\211\001\n\030He" + + "adlineOfferInstallment\022\016\n\006months\030\001 \001(\003\022+" + + "\n\006amount\030\002 \001(\0132\033.google.shopping.type.Pr" + + "ice\0220\n\013downpayment\030\003 \001(\0132\033.google.shoppi" + + "ng.type.Price*N\n\022SubscriptionPeriod\022#\n\037S" + + "UBSCRIPTION_PERIOD_UNSPECIFIED\020\000\022\t\n\005MONT" + + "H\020\001\022\010\n\004YEAR\020\002B\267\001\n\032com.google.shopping.cs" + + "s.v1B\025CssProductCommonProtoP\001Z2cloud.goo" + + "gle.com/go/shopping/css/apiv1/csspb;cssp" + + "b\252\002\026Google.Shopping.Css.V1\312\002\026Google\\Shop" + + "ping\\Css\\V1\352\002\031Google::Shopping::Css::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,6 +242,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomLabel2", "CustomLabel3", "CustomLabel4", + "HeadlineOfferInstallment", + "HeadlineOfferSubscriptionCost", }); internal_static_google_shopping_css_v1_Certification_descriptor = getDescriptor().getMessageTypes().get(1); @@ -289,6 +313,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Documentation", "ApplicableCountries", }); + internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor, + new java.lang.String[] { + "Period", "PeriodLength", "Amount", + }); + internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_shopping_css_v1_HeadlineOfferInstallment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor, + new java.lang.String[] { + "Months", "Amount", "Downpayment", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallment.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallment.java new file mode 100644 index 000000000000..983fdef62f9d --- /dev/null +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallment.java @@ -0,0 +1,1075 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/shopping/css/v1/css_product_common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.shopping.css.v1; + +/** + * + * + *
+ * A message that represents installment.
+ * 
+ * + * Protobuf type {@code google.shopping.css.v1.HeadlineOfferInstallment} + */ +public final class HeadlineOfferInstallment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.css.v1.HeadlineOfferInstallment) + HeadlineOfferInstallmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeadlineOfferInstallment.newBuilder() to construct. + private HeadlineOfferInstallment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeadlineOfferInstallment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeadlineOfferInstallment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferInstallment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.css.v1.HeadlineOfferInstallment.class, + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder.class); + } + + private int bitField0_; + public static final int MONTHS_FIELD_NUMBER = 1; + private long months_ = 0L; + /** + * + * + *
+   * The number of installments the buyer has to pay.
+   * 
+ * + * int64 months = 1; + * + * @return The months. + */ + @java.lang.Override + public long getMonths() { + return months_; + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private com.google.shopping.type.Price amount_; + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return Whether the amount field is set. + */ + @java.lang.Override + public boolean hasAmount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return The amount. + */ + @java.lang.Override + public com.google.shopping.type.Price getAmount() { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getAmountOrBuilder() { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + + public static final int DOWNPAYMENT_FIELD_NUMBER = 3; + private com.google.shopping.type.Price downpayment_; + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return Whether the downpayment field is set. + */ + @java.lang.Override + public boolean hasDownpayment() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return The downpayment. + */ + @java.lang.Override + public com.google.shopping.type.Price getDownpayment() { + return downpayment_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : downpayment_; + } + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getDownpaymentOrBuilder() { + return downpayment_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : downpayment_; + } + + 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 (months_ != 0L) { + output.writeInt64(1, months_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAmount()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDownpayment()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (months_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, months_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAmount()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDownpayment()); + } + 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.shopping.css.v1.HeadlineOfferInstallment)) { + return super.equals(obj); + } + com.google.shopping.css.v1.HeadlineOfferInstallment other = + (com.google.shopping.css.v1.HeadlineOfferInstallment) obj; + + if (getMonths() != other.getMonths()) return false; + if (hasAmount() != other.hasAmount()) return false; + if (hasAmount()) { + if (!getAmount().equals(other.getAmount())) return false; + } + if (hasDownpayment() != other.hasDownpayment()) return false; + if (hasDownpayment()) { + if (!getDownpayment().equals(other.getDownpayment())) 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) + MONTHS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMonths()); + if (hasAmount()) { + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + } + if (hasDownpayment()) { + hash = (37 * hash) + DOWNPAYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDownpayment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment 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.shopping.css.v1.HeadlineOfferInstallment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.shopping.css.v1.HeadlineOfferInstallment 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A message that represents installment.
+   * 
+ * + * Protobuf type {@code google.shopping.css.v1.HeadlineOfferInstallment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.css.v1.HeadlineOfferInstallment) + com.google.shopping.css.v1.HeadlineOfferInstallmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferInstallment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.css.v1.HeadlineOfferInstallment.class, + com.google.shopping.css.v1.HeadlineOfferInstallment.Builder.class); + } + + // Construct using com.google.shopping.css.v1.HeadlineOfferInstallment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAmountFieldBuilder(); + getDownpaymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + months_ = 0L; + amount_ = null; + if (amountBuilder_ != null) { + amountBuilder_.dispose(); + amountBuilder_ = null; + } + downpayment_ = null; + if (downpaymentBuilder_ != null) { + downpaymentBuilder_.dispose(); + downpaymentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferInstallment_descriptor; + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferInstallment getDefaultInstanceForType() { + return com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferInstallment build() { + com.google.shopping.css.v1.HeadlineOfferInstallment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferInstallment buildPartial() { + com.google.shopping.css.v1.HeadlineOfferInstallment result = + new com.google.shopping.css.v1.HeadlineOfferInstallment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.css.v1.HeadlineOfferInstallment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.months_ = months_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.downpayment_ = + downpaymentBuilder_ == null ? downpayment_ : downpaymentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.css.v1.HeadlineOfferInstallment) { + return mergeFrom((com.google.shopping.css.v1.HeadlineOfferInstallment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.css.v1.HeadlineOfferInstallment other) { + if (other == com.google.shopping.css.v1.HeadlineOfferInstallment.getDefaultInstance()) + return this; + if (other.getMonths() != 0L) { + setMonths(other.getMonths()); + } + if (other.hasAmount()) { + mergeAmount(other.getAmount()); + } + if (other.hasDownpayment()) { + mergeDownpayment(other.getDownpayment()); + } + 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: + { + months_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDownpaymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long months_; + /** + * + * + *
+     * The number of installments the buyer has to pay.
+     * 
+ * + * int64 months = 1; + * + * @return The months. + */ + @java.lang.Override + public long getMonths() { + return months_; + } + /** + * + * + *
+     * The number of installments the buyer has to pay.
+     * 
+ * + * int64 months = 1; + * + * @param value The months to set. + * @return This builder for chaining. + */ + public Builder setMonths(long value) { + + months_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of installments the buyer has to pay.
+     * 
+ * + * int64 months = 1; + * + * @return This builder for chaining. + */ + public Builder clearMonths() { + bitField0_ = (bitField0_ & ~0x00000001); + months_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price amount_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + amountBuilder_; + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return Whether the amount field is set. + */ + public boolean hasAmount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return The amount. + */ + public com.google.shopping.type.Price getAmount() { + if (amountBuilder_ == null) { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } else { + return amountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public Builder setAmount(com.google.shopping.type.Price value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + amount_ = value; + } else { + amountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public Builder setAmount(com.google.shopping.type.Price.Builder builderForValue) { + if (amountBuilder_ == null) { + amount_ = builderForValue.build(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public Builder mergeAmount(com.google.shopping.type.Price value) { + if (amountBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && amount_ != null + && amount_ != com.google.shopping.type.Price.getDefaultInstance()) { + getAmountBuilder().mergeFrom(value); + } else { + amount_ = value; + } + } else { + amountBuilder_.mergeFrom(value); + } + if (amount_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public Builder clearAmount() { + bitField0_ = (bitField0_ & ~0x00000002); + amount_ = null; + if (amountBuilder_ != null) { + amountBuilder_.dispose(); + amountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public com.google.shopping.type.Price.Builder getAmountBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAmountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + public com.google.shopping.type.PriceOrBuilder getAmountOrBuilder() { + if (amountBuilder_ != null) { + return amountBuilder_.getMessageOrBuilder(); + } else { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + } + /** + * + * + *
+     * The amount the buyer has to pay per month.
+     * 
+ * + * .google.shopping.type.Price amount = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getAmount(), getParentForChildren(), isClean()); + amount_ = null; + } + return amountBuilder_; + } + + private com.google.shopping.type.Price downpayment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + downpaymentBuilder_; + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return Whether the downpayment field is set. + */ + public boolean hasDownpayment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return The downpayment. + */ + public com.google.shopping.type.Price getDownpayment() { + if (downpaymentBuilder_ == null) { + return downpayment_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : downpayment_; + } else { + return downpaymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public Builder setDownpayment(com.google.shopping.type.Price value) { + if (downpaymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + downpayment_ = value; + } else { + downpaymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public Builder setDownpayment(com.google.shopping.type.Price.Builder builderForValue) { + if (downpaymentBuilder_ == null) { + downpayment_ = builderForValue.build(); + } else { + downpaymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public Builder mergeDownpayment(com.google.shopping.type.Price value) { + if (downpaymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && downpayment_ != null + && downpayment_ != com.google.shopping.type.Price.getDefaultInstance()) { + getDownpaymentBuilder().mergeFrom(value); + } else { + downpayment_ = value; + } + } else { + downpaymentBuilder_.mergeFrom(value); + } + if (downpayment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public Builder clearDownpayment() { + bitField0_ = (bitField0_ & ~0x00000004); + downpayment_ = null; + if (downpaymentBuilder_ != null) { + downpaymentBuilder_.dispose(); + downpaymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public com.google.shopping.type.Price.Builder getDownpaymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDownpaymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + public com.google.shopping.type.PriceOrBuilder getDownpaymentOrBuilder() { + if (downpaymentBuilder_ != null) { + return downpaymentBuilder_.getMessageOrBuilder(); + } else { + return downpayment_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : downpayment_; + } + } + /** + * + * + *
+     * The up-front down payment amount the buyer has to pay.
+     * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getDownpaymentFieldBuilder() { + if (downpaymentBuilder_ == null) { + downpaymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getDownpayment(), getParentForChildren(), isClean()); + downpayment_ = null; + } + return downpaymentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.css.v1.HeadlineOfferInstallment) + } + + // @@protoc_insertion_point(class_scope:google.shopping.css.v1.HeadlineOfferInstallment) + private static final com.google.shopping.css.v1.HeadlineOfferInstallment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.css.v1.HeadlineOfferInstallment(); + } + + public static com.google.shopping.css.v1.HeadlineOfferInstallment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeadlineOfferInstallment 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.shopping.css.v1.HeadlineOfferInstallment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallmentOrBuilder.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallmentOrBuilder.java new file mode 100644 index 000000000000..c509652aaccf --- /dev/null +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferInstallmentOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/shopping/css/v1/css_product_common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.shopping.css.v1; + +public interface HeadlineOfferInstallmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.css.v1.HeadlineOfferInstallment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of installments the buyer has to pay.
+   * 
+ * + * int64 months = 1; + * + * @return The months. + */ + long getMonths(); + + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return Whether the amount field is set. + */ + boolean hasAmount(); + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + * + * @return The amount. + */ + com.google.shopping.type.Price getAmount(); + /** + * + * + *
+   * The amount the buyer has to pay per month.
+   * 
+ * + * .google.shopping.type.Price amount = 2; + */ + com.google.shopping.type.PriceOrBuilder getAmountOrBuilder(); + + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return Whether the downpayment field is set. + */ + boolean hasDownpayment(); + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + * + * @return The downpayment. + */ + com.google.shopping.type.Price getDownpayment(); + /** + * + * + *
+   * The up-front down payment amount the buyer has to pay.
+   * 
+ * + * .google.shopping.type.Price downpayment = 3; + */ + com.google.shopping.type.PriceOrBuilder getDownpaymentOrBuilder(); +} diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCost.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCost.java new file mode 100644 index 000000000000..119cf97dee4e --- /dev/null +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCost.java @@ -0,0 +1,981 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/shopping/css/v1/css_product_common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.shopping.css.v1; + +/** + * + * + *
+ * The SubscriptionCost of the product.
+ * 
+ * + * Protobuf type {@code google.shopping.css.v1.HeadlineOfferSubscriptionCost} + */ +public final class HeadlineOfferSubscriptionCost extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.css.v1.HeadlineOfferSubscriptionCost) + HeadlineOfferSubscriptionCostOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeadlineOfferSubscriptionCost.newBuilder() to construct. + private HeadlineOfferSubscriptionCost(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HeadlineOfferSubscriptionCost() { + period_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HeadlineOfferSubscriptionCost(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.class, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder.class); + } + + private int bitField0_; + public static final int PERIOD_FIELD_NUMBER = 1; + private int period_ = 0; + /** + * + * + *
+   * The type of subscription period.
+   * Supported values are:
+   *   * "`month`"
+   *   * "`year`"
+   * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The enum numeric value on the wire for period. + */ + @java.lang.Override + public int getPeriodValue() { + return period_; + } + /** + * + * + *
+   * The type of subscription period.
+   * Supported values are:
+   *   * "`month`"
+   *   * "`year`"
+   * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The period. + */ + @java.lang.Override + public com.google.shopping.css.v1.SubscriptionPeriod getPeriod() { + com.google.shopping.css.v1.SubscriptionPeriod result = + com.google.shopping.css.v1.SubscriptionPeriod.forNumber(period_); + return result == null ? com.google.shopping.css.v1.SubscriptionPeriod.UNRECOGNIZED : result; + } + + public static final int PERIOD_LENGTH_FIELD_NUMBER = 2; + private long periodLength_ = 0L; + /** + * + * + *
+   * The number of subscription periods the buyer has to pay.
+   * 
+ * + * int64 period_length = 2; + * + * @return The periodLength. + */ + @java.lang.Override + public long getPeriodLength() { + return periodLength_; + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + private com.google.shopping.type.Price amount_; + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return Whether the amount field is set. + */ + @java.lang.Override + public boolean hasAmount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return The amount. + */ + @java.lang.Override + public com.google.shopping.type.Price getAmount() { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getAmountOrBuilder() { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + + 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 (period_ + != com.google.shopping.css.v1.SubscriptionPeriod.SUBSCRIPTION_PERIOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, period_); + } + if (periodLength_ != 0L) { + output.writeInt64(2, periodLength_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAmount()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (period_ + != com.google.shopping.css.v1.SubscriptionPeriod.SUBSCRIPTION_PERIOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, period_); + } + if (periodLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, periodLength_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAmount()); + } + 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.shopping.css.v1.HeadlineOfferSubscriptionCost)) { + return super.equals(obj); + } + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost other = + (com.google.shopping.css.v1.HeadlineOfferSubscriptionCost) obj; + + if (period_ != other.period_) return false; + if (getPeriodLength() != other.getPeriodLength()) return false; + if (hasAmount() != other.hasAmount()) return false; + if (hasAmount()) { + if (!getAmount().equals(other.getAmount())) 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) + PERIOD_FIELD_NUMBER; + hash = (53 * hash) + period_; + hash = (37 * hash) + PERIOD_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeriodLength()); + if (hasAmount()) { + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost 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.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.shopping.css.v1.HeadlineOfferSubscriptionCost 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The SubscriptionCost of the product.
+   * 
+ * + * Protobuf type {@code google.shopping.css.v1.HeadlineOfferSubscriptionCost} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.css.v1.HeadlineOfferSubscriptionCost) + com.google.shopping.css.v1.HeadlineOfferSubscriptionCostOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.class, + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.Builder.class); + } + + // Construct using com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAmountFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + period_ = 0; + periodLength_ = 0L; + amount_ = null; + if (amountBuilder_ != null) { + amountBuilder_.dispose(); + amountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.css.v1.CssProductCommonProto + .internal_static_google_shopping_css_v1_HeadlineOfferSubscriptionCost_descriptor; + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost getDefaultInstanceForType() { + return com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost build() { + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.css.v1.HeadlineOfferSubscriptionCost buildPartial() { + com.google.shopping.css.v1.HeadlineOfferSubscriptionCost result = + new com.google.shopping.css.v1.HeadlineOfferSubscriptionCost(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.css.v1.HeadlineOfferSubscriptionCost result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.period_ = period_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.periodLength_ = periodLength_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.css.v1.HeadlineOfferSubscriptionCost) { + return mergeFrom((com.google.shopping.css.v1.HeadlineOfferSubscriptionCost) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.css.v1.HeadlineOfferSubscriptionCost other) { + if (other == com.google.shopping.css.v1.HeadlineOfferSubscriptionCost.getDefaultInstance()) + return this; + if (other.period_ != 0) { + setPeriodValue(other.getPeriodValue()); + } + if (other.getPeriodLength() != 0L) { + setPeriodLength(other.getPeriodLength()); + } + if (other.hasAmount()) { + mergeAmount(other.getAmount()); + } + 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: + { + period_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + periodLength_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int period_ = 0; + /** + * + * + *
+     * The type of subscription period.
+     * Supported values are:
+     *   * "`month`"
+     *   * "`year`"
+     * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The enum numeric value on the wire for period. + */ + @java.lang.Override + public int getPeriodValue() { + return period_; + } + /** + * + * + *
+     * The type of subscription period.
+     * Supported values are:
+     *   * "`month`"
+     *   * "`year`"
+     * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @param value The enum numeric value on the wire for period to set. + * @return This builder for chaining. + */ + public Builder setPeriodValue(int value) { + period_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of subscription period.
+     * Supported values are:
+     *   * "`month`"
+     *   * "`year`"
+     * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The period. + */ + @java.lang.Override + public com.google.shopping.css.v1.SubscriptionPeriod getPeriod() { + com.google.shopping.css.v1.SubscriptionPeriod result = + com.google.shopping.css.v1.SubscriptionPeriod.forNumber(period_); + return result == null ? com.google.shopping.css.v1.SubscriptionPeriod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of subscription period.
+     * Supported values are:
+     *   * "`month`"
+     *   * "`year`"
+     * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @param value The period to set. + * @return This builder for chaining. + */ + public Builder setPeriod(com.google.shopping.css.v1.SubscriptionPeriod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + period_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of subscription period.
+     * Supported values are:
+     *   * "`month`"
+     *   * "`year`"
+     * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return This builder for chaining. + */ + public Builder clearPeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + period_ = 0; + onChanged(); + return this; + } + + private long periodLength_; + /** + * + * + *
+     * The number of subscription periods the buyer has to pay.
+     * 
+ * + * int64 period_length = 2; + * + * @return The periodLength. + */ + @java.lang.Override + public long getPeriodLength() { + return periodLength_; + } + /** + * + * + *
+     * The number of subscription periods the buyer has to pay.
+     * 
+ * + * int64 period_length = 2; + * + * @param value The periodLength to set. + * @return This builder for chaining. + */ + public Builder setPeriodLength(long value) { + + periodLength_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of subscription periods the buyer has to pay.
+     * 
+ * + * int64 period_length = 2; + * + * @return This builder for chaining. + */ + public Builder clearPeriodLength() { + bitField0_ = (bitField0_ & ~0x00000002); + periodLength_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price amount_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + amountBuilder_; + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return Whether the amount field is set. + */ + public boolean hasAmount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return The amount. + */ + public com.google.shopping.type.Price getAmount() { + if (amountBuilder_ == null) { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } else { + return amountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public Builder setAmount(com.google.shopping.type.Price value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + amount_ = value; + } else { + amountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public Builder setAmount(com.google.shopping.type.Price.Builder builderForValue) { + if (amountBuilder_ == null) { + amount_ = builderForValue.build(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public Builder mergeAmount(com.google.shopping.type.Price value) { + if (amountBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && amount_ != null + && amount_ != com.google.shopping.type.Price.getDefaultInstance()) { + getAmountBuilder().mergeFrom(value); + } else { + amount_ = value; + } + } else { + amountBuilder_.mergeFrom(value); + } + if (amount_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public Builder clearAmount() { + bitField0_ = (bitField0_ & ~0x00000004); + amount_ = null; + if (amountBuilder_ != null) { + amountBuilder_.dispose(); + amountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public com.google.shopping.type.Price.Builder getAmountBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAmountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + public com.google.shopping.type.PriceOrBuilder getAmountOrBuilder() { + if (amountBuilder_ != null) { + return amountBuilder_.getMessageOrBuilder(); + } else { + return amount_ == null ? com.google.shopping.type.Price.getDefaultInstance() : amount_; + } + } + /** + * + * + *
+     * The amount the buyer has to pay per subscription period.
+     * 
+ * + * .google.shopping.type.Price amount = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getAmount(), getParentForChildren(), isClean()); + amount_ = null; + } + return amountBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.css.v1.HeadlineOfferSubscriptionCost) + } + + // @@protoc_insertion_point(class_scope:google.shopping.css.v1.HeadlineOfferSubscriptionCost) + private static final com.google.shopping.css.v1.HeadlineOfferSubscriptionCost DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.css.v1.HeadlineOfferSubscriptionCost(); + } + + public static com.google.shopping.css.v1.HeadlineOfferSubscriptionCost getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeadlineOfferSubscriptionCost 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.shopping.css.v1.HeadlineOfferSubscriptionCost getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCostOrBuilder.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCostOrBuilder.java new file mode 100644 index 000000000000..164a8fa71b25 --- /dev/null +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/HeadlineOfferSubscriptionCostOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/shopping/css/v1/css_product_common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.shopping.css.v1; + +public interface HeadlineOfferSubscriptionCostOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.css.v1.HeadlineOfferSubscriptionCost) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of subscription period.
+   * Supported values are:
+   *   * "`month`"
+   *   * "`year`"
+   * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The enum numeric value on the wire for period. + */ + int getPeriodValue(); + /** + * + * + *
+   * The type of subscription period.
+   * Supported values are:
+   *   * "`month`"
+   *   * "`year`"
+   * 
+ * + * .google.shopping.css.v1.SubscriptionPeriod period = 1; + * + * @return The period. + */ + com.google.shopping.css.v1.SubscriptionPeriod getPeriod(); + + /** + * + * + *
+   * The number of subscription periods the buyer has to pay.
+   * 
+ * + * int64 period_length = 2; + * + * @return The periodLength. + */ + long getPeriodLength(); + + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return Whether the amount field is set. + */ + boolean hasAmount(); + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + * + * @return The amount. + */ + com.google.shopping.type.Price getAmount(); + /** + * + * + *
+   * The amount the buyer has to pay per subscription period.
+   * 
+ * + * .google.shopping.type.Price amount = 3; + */ + com.google.shopping.type.PriceOrBuilder getAmountOrBuilder(); +} diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/SubscriptionPeriod.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/SubscriptionPeriod.java new file mode 100644 index 000000000000..6d6fb4312e3d --- /dev/null +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/SubscriptionPeriod.java @@ -0,0 +1,179 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/shopping/css/v1/css_product_common.proto + +// Protobuf Java Version: 3.25.5 +package com.google.shopping.css.v1; + +/** + * + * + *
+ * The subscription period of the product.
+ * 
+ * + * Protobuf enum {@code google.shopping.css.v1.SubscriptionPeriod} + */ +public enum SubscriptionPeriod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Indicates that the subscription period is unspecified.
+   * 
+ * + * SUBSCRIPTION_PERIOD_UNSPECIFIED = 0; + */ + SUBSCRIPTION_PERIOD_UNSPECIFIED(0), + /** + * + * + *
+   * Indicates that the subscription period is month.
+   * 
+ * + * MONTH = 1; + */ + MONTH(1), + /** + * + * + *
+   * Indicates that the subscription period is year.
+   * 
+ * + * YEAR = 2; + */ + YEAR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Indicates that the subscription period is unspecified.
+   * 
+ * + * SUBSCRIPTION_PERIOD_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_PERIOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Indicates that the subscription period is month.
+   * 
+ * + * MONTH = 1; + */ + public static final int MONTH_VALUE = 1; + /** + * + * + *
+   * Indicates that the subscription period is year.
+   * 
+ * + * YEAR = 2; + */ + public static final int YEAR_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 SubscriptionPeriod 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 SubscriptionPeriod forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_PERIOD_UNSPECIFIED; + case 1: + return MONTH; + case 2: + return YEAR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SubscriptionPeriod findValueByNumber(int number) { + return SubscriptionPeriod.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.css.v1.CssProductCommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SubscriptionPeriod[] VALUES = values(); + + public static SubscriptionPeriod 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 SubscriptionPeriod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.css.v1.SubscriptionPeriod) +} diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto index efe9a13ba2f4..4cb460f2d0e1 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto @@ -205,6 +205,13 @@ message Attributes { // Custom label 4 for custom grouping of items in a Shopping campaign. optional string custom_label_4 = 50; + + // Number and amount of installments to pay for an item. + HeadlineOfferInstallment headline_offer_installment = 51; + + // Number of periods (months or years) and amount of payment per period + // for an item with an associated subscription contract. + HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52; } // The certification for the product. Use the this attribute to describe @@ -336,3 +343,42 @@ message CssProductStatus { // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. google.protobuf.Timestamp google_expiration_date = 7; } + +// The SubscriptionCost of the product. +message HeadlineOfferSubscriptionCost { + // The type of subscription period. + // Supported values are: + // * "`month`" + // * "`year`" + SubscriptionPeriod period = 1; + + // The number of subscription periods the buyer has to pay. + int64 period_length = 2; + + // The amount the buyer has to pay per subscription period. + google.shopping.type.Price amount = 3; +} + +// A message that represents installment. +message HeadlineOfferInstallment { + // The number of installments the buyer has to pay. + int64 months = 1; + + // The amount the buyer has to pay per month. + google.shopping.type.Price amount = 2; + + // The up-front down payment amount the buyer has to pay. + google.shopping.type.Price downpayment = 3; +} + +// The subscription period of the product. +enum SubscriptionPeriod { + // Indicates that the subscription period is unspecified. + SUBSCRIPTION_PERIOD_UNSPECIFIED = 0; + + // Indicates that the subscription period is month. + MONTH = 1; + + // Indicates that the subscription period is year. + YEAR = 2; +} diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7cf06b6164e5..000000000000 --- a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.css.v1.samples; - -// [START css_v1_generated_AccountLabelsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.css.v1.AccountLabelsServiceClient; -import com.google.shopping.css.v1.AccountLabelsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccountLabelsServiceSettings accountLabelsServiceSettings = - AccountLabelsServiceSettings.newHttpJsonBuilder().build(); - AccountLabelsServiceClient accountLabelsServiceClient = - AccountLabelsServiceClient.create(accountLabelsServiceSettings); - } -} -// [END css_v1_generated_AccountLabelsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5a1f71e76925 --- /dev/null +++ b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountlabelsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.css.v1.samples; + +// [START css_v1_generated_AccountLabelsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.css.v1.AccountLabelsServiceClient; +import com.google.shopping.css.v1.AccountLabelsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccountLabelsServiceSettings accountLabelsServiceSettings = + AccountLabelsServiceSettings.newHttpJsonBuilder().build(); + AccountLabelsServiceClient accountLabelsServiceClient = + AccountLabelsServiceClient.create(accountLabelsServiceSettings); + } +} +// [END css_v1_generated_AccountLabelsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c20791537ae1..000000000000 --- a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.css.v1.samples; - -// [START css_v1_generated_AccountsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.css.v1.AccountsServiceClient; -import com.google.shopping.css.v1.AccountsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccountsServiceSettings accountsServiceSettings = - AccountsServiceSettings.newHttpJsonBuilder().build(); - AccountsServiceClient accountsServiceClient = - AccountsServiceClient.create(accountsServiceSettings); - } -} -// [END css_v1_generated_AccountsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a4512016c16f --- /dev/null +++ b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/accountsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.css.v1.samples; + +// [START css_v1_generated_AccountsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.css.v1.AccountsServiceClient; +import com.google.shopping.css.v1.AccountsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccountsServiceSettings accountsServiceSettings = + AccountsServiceSettings.newHttpJsonBuilder().build(); + AccountsServiceClient accountsServiceClient = + AccountsServiceClient.create(accountsServiceSettings); + } +} +// [END css_v1_generated_AccountsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b490d775e6c2..000000000000 --- a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.css.v1.samples; - -// [START css_v1_generated_CssProductInputsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.css.v1.CssProductInputsServiceClient; -import com.google.shopping.css.v1.CssProductInputsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CssProductInputsServiceSettings cssProductInputsServiceSettings = - CssProductInputsServiceSettings.newHttpJsonBuilder().build(); - CssProductInputsServiceClient cssProductInputsServiceClient = - CssProductInputsServiceClient.create(cssProductInputsServiceSettings); - } -} -// [END css_v1_generated_CssProductInputsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e3019716290b --- /dev/null +++ b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductinputsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.css.v1.samples; + +// [START css_v1_generated_CssProductInputsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.css.v1.CssProductInputsServiceClient; +import com.google.shopping.css.v1.CssProductInputsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CssProductInputsServiceSettings cssProductInputsServiceSettings = + CssProductInputsServiceSettings.newHttpJsonBuilder().build(); + CssProductInputsServiceClient cssProductInputsServiceClient = + CssProductInputsServiceClient.create(cssProductInputsServiceSettings); + } +} +// [END css_v1_generated_CssProductInputsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6ff5cebe70cb..000000000000 --- a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.css.v1.samples; - -// [START css_v1_generated_CssProductsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.css.v1.CssProductsServiceClient; -import com.google.shopping.css.v1.CssProductsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CssProductsServiceSettings cssProductsServiceSettings = - CssProductsServiceSettings.newHttpJsonBuilder().build(); - CssProductsServiceClient cssProductsServiceClient = - CssProductsServiceClient.create(cssProductsServiceSettings); - } -} -// [END css_v1_generated_CssProductsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..59f5998ba777 --- /dev/null +++ b/java-shopping-css/samples/snippets/generated/com/google/shopping/css/v1/cssproductsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.css.v1.samples; + +// [START css_v1_generated_CssProductsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.css.v1.CssProductsServiceClient; +import com.google.shopping.css.v1.CssProductsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CssProductsServiceSettings cssProductsServiceSettings = + CssProductsServiceSettings.newHttpJsonBuilder().build(); + CssProductsServiceClient cssProductsServiceClient = + CssProductsServiceClient.create(cssProductsServiceSettings); + } +} +// [END css_v1_generated_CssProductsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index df3ebccef908..b6f418821664 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json index 5787eacf72bd..4ad86729870b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.BoolValue", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b4ef6e62cd7c..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_AccountIssueService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.AccountIssueServiceClient; -import com.google.shopping.merchant.accounts.v1beta.AccountIssueServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccountIssueServiceSettings accountIssueServiceSettings = - AccountIssueServiceSettings.newHttpJsonBuilder().build(); - AccountIssueServiceClient accountIssueServiceClient = - AccountIssueServiceClient.create(accountIssueServiceSettings); - } -} -// [END merchantapi_v1beta_generated_AccountIssueService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2f51ab917f74 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountissueservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_AccountIssueService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.AccountIssueServiceClient; +import com.google.shopping.merchant.accounts.v1beta.AccountIssueServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccountIssueServiceSettings accountIssueServiceSettings = + AccountIssueServiceSettings.newHttpJsonBuilder().build(); + AccountIssueServiceClient accountIssueServiceClient = + AccountIssueServiceClient.create(accountIssueServiceSettings); + } +} +// [END merchantapi_v1beta_generated_AccountIssueService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 43bb83ee4cc2..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_AccountsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.AccountsServiceClient; -import com.google.shopping.merchant.accounts.v1beta.AccountsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccountsServiceSettings accountsServiceSettings = - AccountsServiceSettings.newHttpJsonBuilder().build(); - AccountsServiceClient accountsServiceClient = - AccountsServiceClient.create(accountsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_AccountsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cc72b73dc7b7 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accountsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_AccountsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.AccountsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.AccountsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccountsServiceSettings accountsServiceSettings = + AccountsServiceSettings.newHttpJsonBuilder().build(); + AccountsServiceClient accountsServiceClient = + AccountsServiceClient.create(accountsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_AccountsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8d97553bec62..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_AccountTaxService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.AccountTaxServiceClient; -import com.google.shopping.merchant.accounts.v1beta.AccountTaxServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AccountTaxServiceSettings accountTaxServiceSettings = - AccountTaxServiceSettings.newHttpJsonBuilder().build(); - AccountTaxServiceClient accountTaxServiceClient = - AccountTaxServiceClient.create(accountTaxServiceSettings); - } -} -// [END merchantapi_v1beta_generated_AccountTaxService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f531789933e5 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/accounttaxservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_AccountTaxService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.AccountTaxServiceClient; +import com.google.shopping.merchant.accounts.v1beta.AccountTaxServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AccountTaxServiceSettings accountTaxServiceSettings = + AccountTaxServiceSettings.newHttpJsonBuilder().build(); + AccountTaxServiceClient accountTaxServiceClient = + AccountTaxServiceClient.create(accountTaxServiceSettings); + } +} +// [END merchantapi_v1beta_generated_AccountTaxService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b81cdb882c8d..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_AutofeedSettingsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceClient; -import com.google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutofeedSettingsServiceSettings autofeedSettingsServiceSettings = - AutofeedSettingsServiceSettings.newHttpJsonBuilder().build(); - AutofeedSettingsServiceClient autofeedSettingsServiceClient = - AutofeedSettingsServiceClient.create(autofeedSettingsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_AutofeedSettingsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..309fb9adc2e6 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/autofeedsettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_AutofeedSettingsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AutofeedSettingsServiceSettings autofeedSettingsServiceSettings = + AutofeedSettingsServiceSettings.newHttpJsonBuilder().build(); + AutofeedSettingsServiceClient autofeedSettingsServiceClient = + AutofeedSettingsServiceClient.create(autofeedSettingsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_AutofeedSettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 850faefc4825..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_BusinessIdentityService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceClient; -import com.google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BusinessIdentityServiceSettings businessIdentityServiceSettings = - BusinessIdentityServiceSettings.newHttpJsonBuilder().build(); - BusinessIdentityServiceClient businessIdentityServiceClient = - BusinessIdentityServiceClient.create(businessIdentityServiceSettings); - } -} -// [END merchantapi_v1beta_generated_BusinessIdentityService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5c3284c2fe38 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessidentityservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_BusinessIdentityService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceClient; +import com.google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BusinessIdentityServiceSettings businessIdentityServiceSettings = + BusinessIdentityServiceSettings.newHttpJsonBuilder().build(); + BusinessIdentityServiceClient businessIdentityServiceClient = + BusinessIdentityServiceClient.create(businessIdentityServiceSettings); + } +} +// [END merchantapi_v1beta_generated_BusinessIdentityService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 235f93462540..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_BusinessInfoService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.BusinessInfoServiceClient; -import com.google.shopping.merchant.accounts.v1beta.BusinessInfoServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BusinessInfoServiceSettings businessInfoServiceSettings = - BusinessInfoServiceSettings.newHttpJsonBuilder().build(); - BusinessInfoServiceClient businessInfoServiceClient = - BusinessInfoServiceClient.create(businessInfoServiceSettings); - } -} -// [END merchantapi_v1beta_generated_BusinessInfoService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cbf5b65c2e51 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/businessinfoservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_BusinessInfoService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.BusinessInfoServiceClient; +import com.google.shopping.merchant.accounts.v1beta.BusinessInfoServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BusinessInfoServiceSettings businessInfoServiceSettings = + BusinessInfoServiceSettings.newHttpJsonBuilder().build(); + BusinessInfoServiceClient businessInfoServiceClient = + BusinessInfoServiceClient.create(businessInfoServiceSettings); + } +} +// [END merchantapi_v1beta_generated_BusinessInfoService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5fbbb946e047..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_EmailPreferencesService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceClient; -import com.google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EmailPreferencesServiceSettings emailPreferencesServiceSettings = - EmailPreferencesServiceSettings.newHttpJsonBuilder().build(); - EmailPreferencesServiceClient emailPreferencesServiceClient = - EmailPreferencesServiceClient.create(emailPreferencesServiceSettings); - } -} -// [END merchantapi_v1beta_generated_EmailPreferencesService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0d75b04a6015 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/emailpreferencesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_EmailPreferencesService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceClient; +import com.google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EmailPreferencesServiceSettings emailPreferencesServiceSettings = + EmailPreferencesServiceSettings.newHttpJsonBuilder().build(); + EmailPreferencesServiceClient emailPreferencesServiceClient = + EmailPreferencesServiceClient.create(emailPreferencesServiceSettings); + } +} +// [END merchantapi_v1beta_generated_EmailPreferencesService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6df45b2bcb35..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_HomepageService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.HomepageServiceClient; -import com.google.shopping.merchant.accounts.v1beta.HomepageServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - HomepageServiceSettings homepageServiceSettings = - HomepageServiceSettings.newHttpJsonBuilder().build(); - HomepageServiceClient homepageServiceClient = - HomepageServiceClient.create(homepageServiceSettings); - } -} -// [END merchantapi_v1beta_generated_HomepageService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8572a25e4679 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/homepageservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_HomepageService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.HomepageServiceClient; +import com.google.shopping.merchant.accounts.v1beta.HomepageServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + HomepageServiceSettings homepageServiceSettings = + HomepageServiceSettings.newHttpJsonBuilder().build(); + HomepageServiceClient homepageServiceClient = + HomepageServiceClient.create(homepageServiceSettings); + } +} +// [END merchantapi_v1beta_generated_HomepageService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 123c0de74571..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_OnlineReturnPolicyService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient; -import com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - OnlineReturnPolicyServiceSettings onlineReturnPolicyServiceSettings = - OnlineReturnPolicyServiceSettings.newHttpJsonBuilder().build(); - OnlineReturnPolicyServiceClient onlineReturnPolicyServiceClient = - OnlineReturnPolicyServiceClient.create(onlineReturnPolicyServiceSettings); - } -} -// [END merchantapi_v1beta_generated_OnlineReturnPolicyService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d70f1e25c714 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/onlinereturnpolicyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_OnlineReturnPolicyService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient; +import com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OnlineReturnPolicyServiceSettings onlineReturnPolicyServiceSettings = + OnlineReturnPolicyServiceSettings.newHttpJsonBuilder().build(); + OnlineReturnPolicyServiceClient onlineReturnPolicyServiceClient = + OnlineReturnPolicyServiceClient.create(onlineReturnPolicyServiceSettings); + } +} +// [END merchantapi_v1beta_generated_OnlineReturnPolicyService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1446db4a755a..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_ProgramsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.ProgramsServiceClient; -import com.google.shopping.merchant.accounts.v1beta.ProgramsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProgramsServiceSettings programsServiceSettings = - ProgramsServiceSettings.newHttpJsonBuilder().build(); - ProgramsServiceClient programsServiceClient = - ProgramsServiceClient.create(programsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ProgramsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7a76a8eff66f --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/programsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_ProgramsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.ProgramsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.ProgramsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProgramsServiceSettings programsServiceSettings = + ProgramsServiceSettings.newHttpJsonBuilder().build(); + ProgramsServiceClient programsServiceClient = + ProgramsServiceClient.create(programsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ProgramsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index dee64383662d..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_RegionsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.RegionsServiceClient; -import com.google.shopping.merchant.accounts.v1beta.RegionsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RegionsServiceSettings regionsServiceSettings = - RegionsServiceSettings.newHttpJsonBuilder().build(); - RegionsServiceClient regionsServiceClient = RegionsServiceClient.create(regionsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_RegionsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0381284ca25a --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/regionsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_RegionsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.RegionsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.RegionsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RegionsServiceSettings regionsServiceSettings = + RegionsServiceSettings.newHttpJsonBuilder().build(); + RegionsServiceClient regionsServiceClient = RegionsServiceClient.create(regionsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_RegionsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f4261ae21e12..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_ShippingSettingsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceClient; -import com.google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ShippingSettingsServiceSettings shippingSettingsServiceSettings = - ShippingSettingsServiceSettings.newHttpJsonBuilder().build(); - ShippingSettingsServiceClient shippingSettingsServiceClient = - ShippingSettingsServiceClient.create(shippingSettingsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ShippingSettingsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f63f792bf80a --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/shippingsettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_ShippingSettingsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ShippingSettingsServiceSettings shippingSettingsServiceSettings = + ShippingSettingsServiceSettings.newHttpJsonBuilder().build(); + ShippingSettingsServiceClient shippingSettingsServiceClient = + ShippingSettingsServiceClient.create(shippingSettingsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ShippingSettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 650a81e58e5d..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceClient; -import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TermsOfServiceAgreementStateServiceSettings termsOfServiceAgreementStateServiceSettings = - TermsOfServiceAgreementStateServiceSettings.newHttpJsonBuilder().build(); - TermsOfServiceAgreementStateServiceClient termsOfServiceAgreementStateServiceClient = - TermsOfServiceAgreementStateServiceClient.create( - termsOfServiceAgreementStateServiceSettings); - } -} -// [END merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7d4cfbd04d71 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstateservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceClient; +import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TermsOfServiceAgreementStateServiceSettings termsOfServiceAgreementStateServiceSettings = + TermsOfServiceAgreementStateServiceSettings.newHttpJsonBuilder().build(); + TermsOfServiceAgreementStateServiceClient termsOfServiceAgreementStateServiceClient = + TermsOfServiceAgreementStateServiceClient.create( + termsOfServiceAgreementStateServiceSettings); + } +} +// [END merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 86122eb3cf04..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_TermsOfServiceService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceClient; -import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TermsOfServiceServiceSettings termsOfServiceServiceSettings = - TermsOfServiceServiceSettings.newHttpJsonBuilder().build(); - TermsOfServiceServiceClient termsOfServiceServiceClient = - TermsOfServiceServiceClient.create(termsOfServiceServiceSettings); - } -} -// [END merchantapi_v1beta_generated_TermsOfServiceService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4fe9fc48c674 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/termsofserviceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_TermsOfServiceService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceClient; +import com.google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TermsOfServiceServiceSettings termsOfServiceServiceSettings = + TermsOfServiceServiceSettings.newHttpJsonBuilder().build(); + TermsOfServiceServiceClient termsOfServiceServiceClient = + TermsOfServiceServiceClient.create(termsOfServiceServiceSettings); + } +} +// [END merchantapi_v1beta_generated_TermsOfServiceService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e64956995bb2..000000000000 --- a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.accounts.v1beta.samples; - -// [START merchantapi_v1beta_generated_UserService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.accounts.v1beta.UserServiceClient; -import com.google.shopping.merchant.accounts.v1beta.UserServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - UserServiceSettings userServiceSettings = UserServiceSettings.newHttpJsonBuilder().build(); - UserServiceClient userServiceClient = UserServiceClient.create(userServiceSettings); - } -} -// [END merchantapi_v1beta_generated_UserService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f57e2dbdfe69 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/userservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_UserService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.UserServiceClient; +import com.google.shopping.merchant.accounts.v1beta.UserServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserServiceSettings userServiceSettings = UserServiceSettings.newHttpJsonBuilder().build(); + UserServiceClient userServiceClient = UserServiceClient.create(userServiceSettings); + } +} +// [END merchantapi_v1beta_generated_UserService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 86b1b538f327..5411e8dc6df5 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.11.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.conversions.v1beta/reflect-config.json b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.conversions.v1beta/reflect-config.json index b908011d7fb0..d88b9a2d0dc0 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.conversions.v1beta/reflect-config.json +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.conversions.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0536f420de5d..000000000000 --- a/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.conversions.v1beta.samples; - -// [START merchantapi_v1beta_generated_ConversionSourcesService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient; -import com.google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ConversionSourcesServiceSettings conversionSourcesServiceSettings = - ConversionSourcesServiceSettings.newHttpJsonBuilder().build(); - ConversionSourcesServiceClient conversionSourcesServiceClient = - ConversionSourcesServiceClient.create(conversionSourcesServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ConversionSourcesService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f6fa2cbc9258 --- /dev/null +++ b/java-shopping-merchant-conversions/samples/snippets/generated/com/google/shopping/merchant/conversions/v1beta/conversionsourcesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.conversions.v1beta.samples; + +// [START merchantapi_v1beta_generated_ConversionSourcesService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient; +import com.google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversionSourcesServiceSettings conversionSourcesServiceSettings = + ConversionSourcesServiceSettings.newHttpJsonBuilder().build(); + ConversionSourcesServiceClient conversionSourcesServiceClient = + ConversionSourcesServiceClient.create(conversionSourcesServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ConversionSourcesService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 7f9e80612ae1..488cf1657410 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/resources/META-INF/native-image/com.google.shopping.merchant.datasources.v1beta/reflect-config.json b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/resources/META-INF/native-image/com.google.shopping.merchant.datasources.v1beta/reflect-config.json index d8c6d5a080b0..e6d2bd5cabcb 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/resources/META-INF/native-image/com.google.shopping.merchant.datasources.v1beta/reflect-config.json +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/resources/META-INF/native-image/com.google.shopping.merchant.datasources.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6fa4562ff660..000000000000 --- a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.datasources.v1beta.samples; - -// [START merchantapi_v1beta_generated_DataSourcesService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient; -import com.google.shopping.merchant.datasources.v1beta.DataSourcesServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataSourcesServiceSettings dataSourcesServiceSettings = - DataSourcesServiceSettings.newHttpJsonBuilder().build(); - DataSourcesServiceClient dataSourcesServiceClient = - DataSourcesServiceClient.create(dataSourcesServiceSettings); - } -} -// [END merchantapi_v1beta_generated_DataSourcesService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..546d445fc6b3 --- /dev/null +++ b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/datasourcesservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.datasources.v1beta.samples; + +// [START merchantapi_v1beta_generated_DataSourcesService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient; +import com.google.shopping.merchant.datasources.v1beta.DataSourcesServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataSourcesServiceSettings dataSourcesServiceSettings = + DataSourcesServiceSettings.newHttpJsonBuilder().build(); + DataSourcesServiceClient dataSourcesServiceClient = + DataSourcesServiceClient.create(dataSourcesServiceSettings); + } +} +// [END merchantapi_v1beta_generated_DataSourcesService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e57e01eebae1..000000000000 --- a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.datasources.v1beta.samples; - -// [START merchantapi_v1beta_generated_FileUploadsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.datasources.v1beta.FileUploadsServiceClient; -import com.google.shopping.merchant.datasources.v1beta.FileUploadsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - FileUploadsServiceSettings fileUploadsServiceSettings = - FileUploadsServiceSettings.newHttpJsonBuilder().build(); - FileUploadsServiceClient fileUploadsServiceClient = - FileUploadsServiceClient.create(fileUploadsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_FileUploadsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bfde958e1e8c --- /dev/null +++ b/java-shopping-merchant-datasources/samples/snippets/generated/com/google/shopping/merchant/datasources/v1beta/fileuploadsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.datasources.v1beta.samples; + +// [START merchantapi_v1beta_generated_FileUploadsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.datasources.v1beta.FileUploadsServiceClient; +import com.google.shopping.merchant.datasources.v1beta.FileUploadsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FileUploadsServiceSettings fileUploadsServiceSettings = + FileUploadsServiceSettings.newHttpJsonBuilder().build(); + FileUploadsServiceClient fileUploadsServiceClient = + FileUploadsServiceClient.create(fileUploadsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_FileUploadsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index af7b9ec89efb..f89ba1a65db1 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.28.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json index 9ad4a7921415..ef5881c3c73d 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 3009e508069b..000000000000 --- a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.inventories.v1beta.samples; - -// [START merchantapi_v1beta_generated_LocalInventoryService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.inventories.v1beta.LocalInventoryServiceClient; -import com.google.shopping.merchant.inventories.v1beta.LocalInventoryServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LocalInventoryServiceSettings localInventoryServiceSettings = - LocalInventoryServiceSettings.newHttpJsonBuilder().build(); - LocalInventoryServiceClient localInventoryServiceClient = - LocalInventoryServiceClient.create(localInventoryServiceSettings); - } -} -// [END merchantapi_v1beta_generated_LocalInventoryService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3090ab672cd4 --- /dev/null +++ b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/localinventoryservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.inventories.v1beta.samples; + +// [START merchantapi_v1beta_generated_LocalInventoryService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.inventories.v1beta.LocalInventoryServiceClient; +import com.google.shopping.merchant.inventories.v1beta.LocalInventoryServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LocalInventoryServiceSettings localInventoryServiceSettings = + LocalInventoryServiceSettings.newHttpJsonBuilder().build(); + LocalInventoryServiceClient localInventoryServiceClient = + LocalInventoryServiceClient.create(localInventoryServiceSettings); + } +} +// [END merchantapi_v1beta_generated_LocalInventoryService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 03ca166ce96f..000000000000 --- a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.inventories.v1beta.samples; - -// [START merchantapi_v1beta_generated_RegionalInventoryService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceClient; -import com.google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RegionalInventoryServiceSettings regionalInventoryServiceSettings = - RegionalInventoryServiceSettings.newHttpJsonBuilder().build(); - RegionalInventoryServiceClient regionalInventoryServiceClient = - RegionalInventoryServiceClient.create(regionalInventoryServiceSettings); - } -} -// [END merchantapi_v1beta_generated_RegionalInventoryService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d178f108e2bb --- /dev/null +++ b/java-shopping-merchant-inventories/samples/snippets/generated/com/google/shopping/merchant/inventories/v1beta/regionalinventoryservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.inventories.v1beta.samples; + +// [START merchantapi_v1beta_generated_RegionalInventoryService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceClient; +import com.google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RegionalInventoryServiceSettings regionalInventoryServiceSettings = + RegionalInventoryServiceSettings.newHttpJsonBuilder().build(); + RegionalInventoryServiceClient regionalInventoryServiceClient = + RegionalInventoryServiceClient.create(regionalInventoryServiceSettings); + } +} +// [END merchantapi_v1beta_generated_RegionalInventoryService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index fa0289ca757a..f52b88c7a44d 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.11.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json index 1feec45f470b..d5262400ecba 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b7c261d0ffb9..000000000000 --- a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.lfp.v1beta.samples; - -// [START merchantapi_v1beta_generated_LfpInventoryService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.lfp.v1beta.LfpInventoryServiceClient; -import com.google.shopping.merchant.lfp.v1beta.LfpInventoryServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LfpInventoryServiceSettings lfpInventoryServiceSettings = - LfpInventoryServiceSettings.newHttpJsonBuilder().build(); - LfpInventoryServiceClient lfpInventoryServiceClient = - LfpInventoryServiceClient.create(lfpInventoryServiceSettings); - } -} -// [END merchantapi_v1beta_generated_LfpInventoryService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6e91dd58b220 --- /dev/null +++ b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpinventoryservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.lfp.v1beta.samples; + +// [START merchantapi_v1beta_generated_LfpInventoryService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.lfp.v1beta.LfpInventoryServiceClient; +import com.google.shopping.merchant.lfp.v1beta.LfpInventoryServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LfpInventoryServiceSettings lfpInventoryServiceSettings = + LfpInventoryServiceSettings.newHttpJsonBuilder().build(); + LfpInventoryServiceClient lfpInventoryServiceClient = + LfpInventoryServiceClient.create(lfpInventoryServiceSettings); + } +} +// [END merchantapi_v1beta_generated_LfpInventoryService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b71a954de1ec..000000000000 --- a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.lfp.v1beta.samples; - -// [START merchantapi_v1beta_generated_LfpSaleService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.lfp.v1beta.LfpSaleServiceClient; -import com.google.shopping.merchant.lfp.v1beta.LfpSaleServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LfpSaleServiceSettings lfpSaleServiceSettings = - LfpSaleServiceSettings.newHttpJsonBuilder().build(); - LfpSaleServiceClient lfpSaleServiceClient = LfpSaleServiceClient.create(lfpSaleServiceSettings); - } -} -// [END merchantapi_v1beta_generated_LfpSaleService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..730e014f51d2 --- /dev/null +++ b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpsaleservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.lfp.v1beta.samples; + +// [START merchantapi_v1beta_generated_LfpSaleService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.lfp.v1beta.LfpSaleServiceClient; +import com.google.shopping.merchant.lfp.v1beta.LfpSaleServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LfpSaleServiceSettings lfpSaleServiceSettings = + LfpSaleServiceSettings.newHttpJsonBuilder().build(); + LfpSaleServiceClient lfpSaleServiceClient = LfpSaleServiceClient.create(lfpSaleServiceSettings); + } +} +// [END merchantapi_v1beta_generated_LfpSaleService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1b30d835b59f..000000000000 --- a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.lfp.v1beta.samples; - -// [START merchantapi_v1beta_generated_LfpStoreService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient; -import com.google.shopping.merchant.lfp.v1beta.LfpStoreServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LfpStoreServiceSettings lfpStoreServiceSettings = - LfpStoreServiceSettings.newHttpJsonBuilder().build(); - LfpStoreServiceClient lfpStoreServiceClient = - LfpStoreServiceClient.create(lfpStoreServiceSettings); - } -} -// [END merchantapi_v1beta_generated_LfpStoreService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ce53fd2e3f9f --- /dev/null +++ b/java-shopping-merchant-lfp/samples/snippets/generated/com/google/shopping/merchant/lfp/v1beta/lfpstoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.lfp.v1beta.samples; + +// [START merchantapi_v1beta_generated_LfpStoreService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient; +import com.google.shopping.merchant.lfp.v1beta.LfpStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LfpStoreServiceSettings lfpStoreServiceSettings = + LfpStoreServiceSettings.newHttpJsonBuilder().build(); + LfpStoreServiceClient lfpStoreServiceClient = + LfpStoreServiceClient.create(lfpStoreServiceSettings); + } +} +// [END merchantapi_v1beta_generated_LfpStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index a0d1522b79f9..80132e63a85b 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/resources/META-INF/native-image/com.google.shopping.merchant.products.v1beta/reflect-config.json b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/resources/META-INF/native-image/com.google.shopping.merchant.products.v1beta/reflect-config.json index 5678199fbe4d..40f9a5d73512 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/resources/META-INF/native-image/com.google.shopping.merchant.products.v1beta/reflect-config.json +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/resources/META-INF/native-image/com.google.shopping.merchant.products.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d61d283a4b31..000000000000 --- a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.products.v1beta.samples; - -// [START merchantapi_v1beta_generated_ProductInputsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.products.v1beta.ProductInputsServiceClient; -import com.google.shopping.merchant.products.v1beta.ProductInputsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductInputsServiceSettings productInputsServiceSettings = - ProductInputsServiceSettings.newHttpJsonBuilder().build(); - ProductInputsServiceClient productInputsServiceClient = - ProductInputsServiceClient.create(productInputsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ProductInputsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..16d31529dcb7 --- /dev/null +++ b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productinputsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.products.v1beta.samples; + +// [START merchantapi_v1beta_generated_ProductInputsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.products.v1beta.ProductInputsServiceClient; +import com.google.shopping.merchant.products.v1beta.ProductInputsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductInputsServiceSettings productInputsServiceSettings = + ProductInputsServiceSettings.newHttpJsonBuilder().build(); + ProductInputsServiceClient productInputsServiceClient = + ProductInputsServiceClient.create(productInputsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ProductInputsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2183878cae9f..000000000000 --- a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.products.v1beta.samples; - -// [START merchantapi_v1beta_generated_ProductsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.products.v1beta.ProductsServiceClient; -import com.google.shopping.merchant.products.v1beta.ProductsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductsServiceSettings productsServiceSettings = - ProductsServiceSettings.newHttpJsonBuilder().build(); - ProductsServiceClient productsServiceClient = - ProductsServiceClient.create(productsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ProductsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a50b9f572881 --- /dev/null +++ b/java-shopping-merchant-products/samples/snippets/generated/com/google/shopping/merchant/products/v1beta/productsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.products.v1beta.samples; + +// [START merchantapi_v1beta_generated_ProductsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.products.v1beta.ProductsServiceClient; +import com.google.shopping.merchant.products.v1beta.ProductsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductsServiceSettings productsServiceSettings = + ProductsServiceSettings.newHttpJsonBuilder().build(); + ProductsServiceClient productsServiceClient = + ProductsServiceClient.create(productsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ProductsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index dba66c287a11..25b28199a4e6 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.8.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.promotions.v1beta/reflect-config.json b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.promotions.v1beta/reflect-config.json index b8760818d27b..4477ba22278e 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.promotions.v1beta/reflect-config.json +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/resources/META-INF/native-image/com.google.shopping.merchant.promotions.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 53537ac63f9b..000000000000 --- a/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.promotions.v1beta.samples; - -// [START merchantapi_v1beta_generated_PromotionsService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.promotions.v1beta.PromotionsServiceClient; -import com.google.shopping.merchant.promotions.v1beta.PromotionsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PromotionsServiceSettings promotionsServiceSettings = - PromotionsServiceSettings.newHttpJsonBuilder().build(); - PromotionsServiceClient promotionsServiceClient = - PromotionsServiceClient.create(promotionsServiceSettings); - } -} -// [END merchantapi_v1beta_generated_PromotionsService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1b802b3a04c9 --- /dev/null +++ b/java-shopping-merchant-promotions/samples/snippets/generated/com/google/shopping/merchant/promotions/v1beta/promotionsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.promotions.v1beta.samples; + +// [START merchantapi_v1beta_generated_PromotionsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.promotions.v1beta.PromotionsServiceClient; +import com.google.shopping.merchant.promotions.v1beta.PromotionsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PromotionsServiceSettings promotionsServiceSettings = + PromotionsServiceSettings.newHttpJsonBuilder().build(); + PromotionsServiceClient promotionsServiceClient = + PromotionsServiceClient.create(promotionsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_PromotionsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 59ce5cafd3f6..3fc33c0b4b32 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.15.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/resources/META-INF/native-image/com.google.shopping.merchant.quota.v1beta/reflect-config.json b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/resources/META-INF/native-image/com.google.shopping.merchant.quota.v1beta/reflect-config.json index b57705f398f4..cb1ecf49a9e2 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/resources/META-INF/native-image/com.google.shopping.merchant.quota.v1beta/reflect-config.json +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/resources/META-INF/native-image/com.google.shopping.merchant.quota.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a8014ff2045b..000000000000 --- a/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.quota.v1beta.samples; - -// [START merchantapi_v1beta_generated_QuotaService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.quota.v1beta.QuotaServiceClient; -import com.google.shopping.merchant.quota.v1beta.QuotaServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - QuotaServiceSettings quotaServiceSettings = QuotaServiceSettings.newHttpJsonBuilder().build(); - QuotaServiceClient quotaServiceClient = QuotaServiceClient.create(quotaServiceSettings); - } -} -// [END merchantapi_v1beta_generated_QuotaService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9deb81798dbc --- /dev/null +++ b/java-shopping-merchant-quota/samples/snippets/generated/com/google/shopping/merchant/quota/v1beta/quotaservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.quota.v1beta.samples; + +// [START merchantapi_v1beta_generated_QuotaService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.quota.v1beta.QuotaServiceClient; +import com.google.shopping.merchant.quota.v1beta.QuotaServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + QuotaServiceSettings quotaServiceSettings = QuotaServiceSettings.newHttpJsonBuilder().build(); + QuotaServiceClient quotaServiceClient = QuotaServiceClient.create(quotaServiceSettings); + } +} +// [END merchantapi_v1beta_generated_QuotaService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 8e9f53594a43..f00fbeac5ba6 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.28.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json index f9b2af3a3bc4..e529c34e9b39 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateSetCredentialsProvider1.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 868cf3c3b37a..000000000000 --- a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.shopping.merchant.reports.v1beta.samples; - -// [START merchantapi_v1beta_generated_ReportService_Create_SetCredentialsProvider1_sync] -import com.google.shopping.merchant.reports.v1beta.ReportServiceClient; -import com.google.shopping.merchant.reports.v1beta.ReportServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ReportServiceSettings reportServiceSettings = - ReportServiceSettings.newHttpJsonBuilder().build(); - ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings); - } -} -// [END merchantapi_v1beta_generated_ReportService_Create_SetCredentialsProvider1_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fe40a290c8b5 --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1beta/reportservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.shopping.merchant.reports.v1beta.samples; + +// [START merchantapi_v1beta_generated_ReportService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.reports.v1beta.ReportServiceClient; +import com.google.shopping.merchant.reports.v1beta.ReportServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReportServiceSettings reportServiceSettings = + ReportServiceSettings.newHttpJsonBuilder().build(); + ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings); + } +} +// [END merchantapi_v1beta_generated_ReportService_Create_UseHttpJsonTransport_sync] diff --git a/java-speech/README.md b/java-speech/README.md index dbd0f1dc4875..bfb160b57531 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.47.0" ``` - ## Authentication @@ -232,7 +230,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1/reflect-config.json b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1/reflect-config.json index e7f9cea5673e..f455541fc011 100644 --- a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1/reflect-config.json +++ b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v1.CreateCustomClassRequest", "queryAllDeclaredConstructors": true, diff --git a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1p1beta1/reflect-config.json b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1p1beta1/reflect-config.json index aa605fdf3afc..f423029fa278 100644 --- a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1p1beta1/reflect-config.json +++ b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v1p1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest", "queryAllDeclaredConstructors": true, diff --git a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json index 4bd7603628ac..212ce7fe806a 100644 --- a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json +++ b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6ef06a59b5bd..000000000000 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.speech.v1.samples; - -// [START speech_v1_generated_Adaptation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.speech.v1.AdaptationClient; -import com.google.cloud.speech.v1.AdaptationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AdaptationSettings adaptationSettings = AdaptationSettings.newHttpJsonBuilder().build(); - AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); - } -} -// [END speech_v1_generated_Adaptation_Create_SetCredentialsProvider1_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateUseHttpJsonTransport.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2ffc0a235402 --- /dev/null +++ b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_Adaptation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.AdaptationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AdaptationSettings adaptationSettings = AdaptationSettings.newHttpJsonBuilder().build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1_generated_Adaptation_Create_UseHttpJsonTransport_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 218545b36142..000000000000 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.speech.v1.samples; - -// [START speech_v1_generated_Speech_Create_SetCredentialsProvider1_sync] -import com.google.cloud.speech.v1.SpeechClient; -import com.google.cloud.speech.v1.SpeechSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); - SpeechClient speechClient = SpeechClient.create(speechSettings); - } -} -// [END speech_v1_generated_Speech_Create_SetCredentialsProvider1_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateUseHttpJsonTransport.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..af1d8e538f76 --- /dev/null +++ b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_Speech_Create_UseHttpJsonTransport_sync] +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.SpeechSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1_generated_Speech_Create_UseHttpJsonTransport_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 578532056f18..000000000000 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.speech.v1p1beta1.samples; - -// [START speech_v1p1beta1_generated_Adaptation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.speech.v1p1beta1.AdaptationClient; -import com.google.cloud.speech.v1p1beta1.AdaptationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AdaptationSettings adaptationSettings = AdaptationSettings.newHttpJsonBuilder().build(); - AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); - } -} -// [END speech_v1p1beta1_generated_Adaptation_Create_SetCredentialsProvider1_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateUseHttpJsonTransport.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ab3df1107c14 --- /dev/null +++ b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_Adaptation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.AdaptationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AdaptationSettings adaptationSettings = AdaptationSettings.newHttpJsonBuilder().build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1p1beta1_generated_Adaptation_Create_UseHttpJsonTransport_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 87b45a6b37aa..000000000000 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.speech.v1p1beta1.samples; - -// [START speech_v1p1beta1_generated_Speech_Create_SetCredentialsProvider1_sync] -import com.google.cloud.speech.v1p1beta1.SpeechClient; -import com.google.cloud.speech.v1p1beta1.SpeechSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); - SpeechClient speechClient = SpeechClient.create(speechSettings); - } -} -// [END speech_v1p1beta1_generated_Speech_Create_SetCredentialsProvider1_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateUseHttpJsonTransport.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..70fd4281b654 --- /dev/null +++ b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_Speech_Create_UseHttpJsonTransport_sync] +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.SpeechSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1p1beta1_generated_Speech_Create_UseHttpJsonTransport_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0aa962c64adf..000000000000 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.speech.v2.samples; - -// [START speech_v2_generated_Speech_Create_SetCredentialsProvider1_sync] -import com.google.cloud.speech.v2.SpeechClient; -import com.google.cloud.speech.v2.SpeechSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); - SpeechClient speechClient = SpeechClient.create(speechSettings); - } -} -// [END speech_v2_generated_Speech_Create_SetCredentialsProvider1_sync] diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateUseHttpJsonTransport.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..919f98ae8a01 --- /dev/null +++ b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v2.samples; + +// [START speech_v2_generated_Speech_Create_UseHttpJsonTransport_sync] +import com.google.cloud.speech.v2.SpeechClient; +import com.google.cloud.speech.v2.SpeechSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SpeechSettings speechSettings = SpeechSettings.newHttpJsonBuilder().build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v2_generated_Speech_Create_UseHttpJsonTransport_sync] diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index c16b0eeadb7e..643f8ff3e31e 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/resources/META-INF/native-image/com.google.storagetransfer.v1.proto/reflect-config.json b/java-storage-transfer/google-cloud-storage-transfer/src/main/resources/META-INF/native-image/com.google.storagetransfer.v1.proto/reflect-config.json index 96d514902f56..3cf08046ec24 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/resources/META-INF/native-image/com.google.storagetransfer.v1.proto/reflect-config.json +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/resources/META-INF/native-image/com.google.storagetransfer.v1.proto/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateSetCredentialsProvider1.java b/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 366efbabb025..000000000000 --- a/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.storagetransfer.v1.proto.samples; - -// [START storagetransfer_v1_generated_StorageTransferService_Create_SetCredentialsProvider1_sync] -import com.google.storagetransfer.v1.proto.StorageTransferServiceClient; -import com.google.storagetransfer.v1.proto.StorageTransferServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - StorageTransferServiceSettings storageTransferServiceSettings = - StorageTransferServiceSettings.newHttpJsonBuilder().build(); - StorageTransferServiceClient storageTransferServiceClient = - StorageTransferServiceClient.create(storageTransferServiceSettings); - } -} -// [END storagetransfer_v1_generated_StorageTransferService_Create_SetCredentialsProvider1_sync] diff --git a/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateUseHttpJsonTransport.java b/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4399e9d49daf --- /dev/null +++ b/java-storage-transfer/samples/snippets/generated/com/google/storagetransfer/v1/proto/storagetransferservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.storagetransfer.v1.proto.samples; + +// [START storagetransfer_v1_generated_StorageTransferService_Create_UseHttpJsonTransport_sync] +import com.google.storagetransfer.v1.proto.StorageTransferServiceClient; +import com.google.storagetransfer.v1.proto.StorageTransferServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + StorageTransferServiceSettings storageTransferServiceSettings = + StorageTransferServiceSettings.newHttpJsonBuilder().build(); + StorageTransferServiceClient storageTransferServiceClient = + StorageTransferServiceClient.create(storageTransferServiceSettings); + } +} +// [END storagetransfer_v1_generated_StorageTransferService_Create_UseHttpJsonTransport_sync] diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index cdc770b5ac8b..3dc6788d9502 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.37.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/resources/META-INF/native-image/com.google.cloud.storageinsights.v1/reflect-config.json b/java-storageinsights/google-cloud-storageinsights/src/main/resources/META-INF/native-image/com.google.cloud.storageinsights.v1/reflect-config.json index 1d22ade52f75..8a56965a2f10 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/resources/META-INF/native-image/com.google.cloud.storageinsights.v1/reflect-config.json +++ b/java-storageinsights/google-cloud-storageinsights/src/main/resources/META-INF/native-image/com.google.cloud.storageinsights.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateSetCredentialsProvider1.java b/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e75660175a04..000000000000 --- a/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.storageinsights.v1.samples; - -// [START storageinsights_v1_generated_StorageInsights_Create_SetCredentialsProvider1_sync] -import com.google.cloud.storageinsights.v1.StorageInsightsClient; -import com.google.cloud.storageinsights.v1.StorageInsightsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - StorageInsightsSettings storageInsightsSettings = - StorageInsightsSettings.newHttpJsonBuilder().build(); - StorageInsightsClient storageInsightsClient = - StorageInsightsClient.create(storageInsightsSettings); - } -} -// [END storageinsights_v1_generated_StorageInsights_Create_SetCredentialsProvider1_sync] diff --git a/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateUseHttpJsonTransport.java b/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bd1e1883444e --- /dev/null +++ b/java-storageinsights/samples/snippets/generated/com/google/cloud/storageinsights/v1/storageinsights/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.storageinsights.v1.samples; + +// [START storageinsights_v1_generated_StorageInsights_Create_UseHttpJsonTransport_sync] +import com.google.cloud.storageinsights.v1.StorageInsightsClient; +import com.google.cloud.storageinsights.v1.StorageInsightsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + StorageInsightsSettings storageInsightsSettings = + StorageInsightsSettings.newHttpJsonBuilder().build(); + StorageInsightsClient storageInsightsClient = + StorageInsightsClient.create(storageInsightsSettings); + } +} +// [END storageinsights_v1_generated_StorageInsights_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/README.md b/java-talent/README.md index 4760a0432722..1ae75e82d11d 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4/reflect-config.json b/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4/reflect-config.json index 7f5d7c5d153b..0abac21d346a 100644 --- a/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4/reflect-config.json +++ b/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.talent.v4.BatchCreateJobsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4beta1/reflect-config.json b/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4beta1/reflect-config.json index 27a57dab4d0e..97db77f96215 100644 --- a/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4beta1/reflect-config.json +++ b/java-talent/google-cloud-talent/src/main/resources/META-INF/native-image/com.google.cloud.talent.v4beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.talent.v4beta1.BatchCreateJobsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2d90b366c38a..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4.samples; - -// [START jobs_v4_generated_CompanyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4.CompanyServiceClient; -import com.google.cloud.talent.v4.CompanyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompanyServiceSettings companyServiceSettings = - CompanyServiceSettings.newHttpJsonBuilder().build(); - CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); - } -} -// [END jobs_v4_generated_CompanyService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2874bf6f0425 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/companyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START jobs_v4_generated_CompanyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CompanyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newHttpJsonBuilder().build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END jobs_v4_generated_CompanyService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 06e5edfd7baa..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4.samples; - -// [START jobs_v4_generated_Completion_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4.CompletionClient; -import com.google.cloud.talent.v4.CompletionSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionSettings completionSettings = CompletionSettings.newHttpJsonBuilder().build(); - CompletionClient completionClient = CompletionClient.create(completionSettings); - } -} -// [END jobs_v4_generated_Completion_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..347595d7e0b2 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/completion/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START jobs_v4_generated_Completion_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.CompletionSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionSettings completionSettings = CompletionSettings.newHttpJsonBuilder().build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END jobs_v4_generated_Completion_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ab8e6e7017f7..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4.samples; - -// [START jobs_v4_generated_EventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4.EventServiceClient; -import com.google.cloud.talent.v4.EventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EventServiceSettings eventServiceSettings = EventServiceSettings.newHttpJsonBuilder().build(); - EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); - } -} -// [END jobs_v4_generated_EventService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..32f6af69ce58 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/eventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START jobs_v4_generated_EventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.EventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EventServiceSettings eventServiceSettings = EventServiceSettings.newHttpJsonBuilder().build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END jobs_v4_generated_EventService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a13b046b4af1..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4.samples; - -// [START jobs_v4_generated_JobService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4.JobServiceClient; -import com.google.cloud.talent.v4.JobServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobServiceSettings jobServiceSettings = JobServiceSettings.newHttpJsonBuilder().build(); - JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); - } -} -// [END jobs_v4_generated_JobService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a9c757103cfa --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/jobservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START jobs_v4_generated_JobService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobServiceSettings jobServiceSettings = JobServiceSettings.newHttpJsonBuilder().build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END jobs_v4_generated_JobService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cf67fc5fb6d4..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4.samples; - -// [START jobs_v4_generated_TenantService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4.TenantServiceClient; -import com.google.cloud.talent.v4.TenantServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TenantServiceSettings tenantServiceSettings = - TenantServiceSettings.newHttpJsonBuilder().build(); - TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); - } -} -// [END jobs_v4_generated_TenantService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ed74ca7c0680 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4/tenantservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START jobs_v4_generated_TenantService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.TenantServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newHttpJsonBuilder().build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END jobs_v4_generated_TenantService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c816462a3476..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.samples; - -// [START jobs_v4beta1_generated_CompanyService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4beta1.CompanyServiceClient; -import com.google.cloud.talent.v4beta1.CompanyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompanyServiceSettings companyServiceSettings = - CompanyServiceSettings.newHttpJsonBuilder().build(); - CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); - } -} -// [END jobs_v4beta1_generated_CompanyService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1fca7a1129e1 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/companyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START jobs_v4beta1_generated_CompanyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newHttpJsonBuilder().build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END jobs_v4beta1_generated_CompanyService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index f9e02a219692..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.samples; - -// [START jobs_v4beta1_generated_Completion_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4beta1.CompletionClient; -import com.google.cloud.talent.v4beta1.CompletionSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CompletionSettings completionSettings = CompletionSettings.newHttpJsonBuilder().build(); - CompletionClient completionClient = CompletionClient.create(completionSettings); - } -} -// [END jobs_v4beta1_generated_Completion_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e4731c64c14f --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/completion/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START jobs_v4beta1_generated_Completion_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.CompletionSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionSettings completionSettings = CompletionSettings.newHttpJsonBuilder().build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END jobs_v4beta1_generated_Completion_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5230571d259e..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.samples; - -// [START jobs_v4beta1_generated_EventService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4beta1.EventServiceClient; -import com.google.cloud.talent.v4beta1.EventServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - EventServiceSettings eventServiceSettings = EventServiceSettings.newHttpJsonBuilder().build(); - EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); - } -} -// [END jobs_v4beta1_generated_EventService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3851e5515ef6 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/eventservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START jobs_v4beta1_generated_EventService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.EventServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EventServiceSettings eventServiceSettings = EventServiceSettings.newHttpJsonBuilder().build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END jobs_v4beta1_generated_EventService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c0f496906d36..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.samples; - -// [START jobs_v4beta1_generated_JobService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.JobServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobServiceSettings jobServiceSettings = JobServiceSettings.newHttpJsonBuilder().build(); - JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); - } -} -// [END jobs_v4beta1_generated_JobService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..77e504866b1b --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/jobservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START jobs_v4beta1_generated_JobService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobServiceSettings jobServiceSettings = JobServiceSettings.newHttpJsonBuilder().build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END jobs_v4beta1_generated_JobService_Create_UseHttpJsonTransport_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateSetCredentialsProvider1.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 764b10efc2f3..000000000000 --- a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.samples; - -// [START jobs_v4beta1_generated_TenantService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.talent.v4beta1.TenantServiceClient; -import com.google.cloud.talent.v4beta1.TenantServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TenantServiceSettings tenantServiceSettings = - TenantServiceSettings.newHttpJsonBuilder().build(); - TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); - } -} -// [END jobs_v4beta1_generated_TenantService_Create_SetCredentialsProvider1_sync] diff --git a/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateUseHttpJsonTransport.java b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0f3c313f5439 --- /dev/null +++ b/java-talent/samples/snippets/generated/com/google/cloud/talent/v4beta1/tenantservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START jobs_v4beta1_generated_TenantService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.TenantServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newHttpJsonBuilder().build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END jobs_v4beta1_generated_TenantService_Create_UseHttpJsonTransport_sync] diff --git a/java-tasks/README.md b/java-tasks/README.md index a582c5ea09cd..60b3454f9782 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2/reflect-config.json b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2/reflect-config.json index 05d78fc06cd5..2397fbaaa10b 100644 --- a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2/reflect-config.json +++ b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta2/reflect-config.json b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta2/reflect-config.json index 2e01af5d671c..ae7eaa9a6933 100644 --- a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta2/reflect-config.json +++ b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta2/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta3/reflect-config.json b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta3/reflect-config.json index 84c583be9f5c..263ae6ce4f00 100644 --- a/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta3/reflect-config.json +++ b/java-tasks/google-cloud-tasks/src/main/resources/META-INF/native-image/com.google.cloud.tasks.v2beta3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0fb434189f2b..000000000000 --- a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.tasks.v2.samples; - -// [START cloudtasks_v2_generated_CloudTasks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END cloudtasks_v2_generated_CloudTasks_Create_SetCredentialsProvider1_sync] diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b8b105a8016d --- /dev/null +++ b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tasks.v2.samples; + +// [START cloudtasks_v2_generated_CloudTasks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CloudTasksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END cloudtasks_v2_generated_CloudTasks_Create_UseHttpJsonTransport_sync] diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 77c4180bf9e6..000000000000 --- a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.tasks.v2beta2.samples; - -// [START cloudtasks_v2beta2_generated_CloudTasks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END cloudtasks_v2beta2_generated_CloudTasks_Create_SetCredentialsProvider1_sync] diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1e8f3acd983a --- /dev/null +++ b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tasks.v2beta2.samples; + +// [START cloudtasks_v2beta2_generated_CloudTasks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CloudTasksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END cloudtasks_v2beta2_generated_CloudTasks_Create_UseHttpJsonTransport_sync] diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateSetCredentialsProvider1.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 25dd9ebf5e17..000000000000 --- a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.tasks.v2beta3.samples; - -// [START cloudtasks_v2beta3_generated_CloudTasks_Create_SetCredentialsProvider1_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END cloudtasks_v2beta3_generated_CloudTasks_Create_SetCredentialsProvider1_sync] diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateUseHttpJsonTransport.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..32556b40f169 --- /dev/null +++ b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasks/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tasks.v2beta3.samples; + +// [START cloudtasks_v2beta3_generated_CloudTasks_Create_UseHttpJsonTransport_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CloudTasksSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newHttpJsonBuilder().build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END cloudtasks_v2beta3_generated_CloudTasks_Create_UseHttpJsonTransport_sync] diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index aa317fe3b9cf..873000cd9d0d 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.22.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json index 3ffdbf8c615b..ac5acaa5526e 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json index 54e5c3c6dd85..c93ef895f87a 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 505a8dc91553..000000000000 --- a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.telcoautomation.v1.samples; - -// [START telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; -import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TelcoAutomationSettings telcoAutomationSettings = - TelcoAutomationSettings.newHttpJsonBuilder().build(); - TelcoAutomationClient telcoAutomationClient = - TelcoAutomationClient.create(telcoAutomationSettings); - } -} -// [END telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7863afca9396 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newHttpJsonBuilder().build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_Create_UseHttpJsonTransport_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 925748b5ae6c..000000000000 --- a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.telcoautomation.v1alpha1.samples; - -// [START telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] -import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; -import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TelcoAutomationSettings telcoAutomationSettings = - TelcoAutomationSettings.newHttpJsonBuilder().build(); - TelcoAutomationClient telcoAutomationClient = - TelcoAutomationClient.create(telcoAutomationSettings); - } -} -// [END telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a9d7b67345b6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_Create_UseHttpJsonTransport_sync] +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newHttpJsonBuilder().build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_Create_UseHttpJsonTransport_sync] diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index a4e6cd2ce16f..a40309a9e26b 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index 28c299e78ff8..a0fa60d3fcf4 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -342,6 +342,7 @@ public final SynthesizeSpeechResponse synthesizeSpeech( * .setInput(SynthesisInput.newBuilder().build()) * .setVoice(VoiceSelectionParams.newBuilder().build()) * .setAudioConfig(AudioConfig.newBuilder().build()) + * .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) * .build(); * SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(request); * } @@ -372,6 +373,7 @@ public final SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest r * .setInput(SynthesisInput.newBuilder().build()) * .setVoice(VoiceSelectionParams.newBuilder().build()) * .setAudioConfig(AudioConfig.newBuilder().build()) + * .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) * .build(); * ApiFuture future = * textToSpeechClient.synthesizeSpeechCallable().futureCall(request); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index 4ee1bf044175..786251656c2f 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -345,6 +345,7 @@ public final SynthesizeSpeechResponse synthesizeSpeech( * .setVoice(VoiceSelectionParams.newBuilder().build()) * .setAudioConfig(AudioConfig.newBuilder().build()) * .addAllEnableTimePointing(new ArrayList()) + * .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) * .build(); * SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(request); * } @@ -376,6 +377,7 @@ public final SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest r * .setVoice(VoiceSelectionParams.newBuilder().build()) * .setAudioConfig(AudioConfig.newBuilder().build()) * .addAllEnableTimePointing(new ArrayList()) + * .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) * .build(); * ApiFuture future = * textToSpeechClient.synthesizeSpeechCallable().futureCall(request); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1/reflect-config.json b/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1/reflect-config.json index 9be8125e27d9..b854e548feeb 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1/reflect-config.json +++ b/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1/reflect-config.json @@ -395,6 +395,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.AdvancedVoiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.AdvancedVoiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1.AudioConfig", "queryAllDeclaredConstructors": true, @@ -422,6 +458,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.texttospeech.v1.CustomPronunciationParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.CustomPronunciationParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.CustomPronunciationParams$PhoneticEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.CustomPronunciations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.CustomPronunciations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1.CustomVoiceParams", "queryAllDeclaredConstructors": true, @@ -692,6 +773,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.texttospeech.v1.VoiceCloneParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1.VoiceCloneParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1.VoiceSelectionParams", "queryAllDeclaredConstructors": true, diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1beta1/reflect-config.json b/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1beta1/reflect-config.json index 11faacc8e9ff..df952b8a89a7 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1beta1/reflect-config.json +++ b/java-texttospeech/google-cloud-texttospeech/src/main/resources/META-INF/native-image/com.google.cloud.texttospeech.v1beta1/reflect-config.json @@ -395,6 +395,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1beta1.AudioConfig", "queryAllDeclaredConstructors": true, @@ -422,6 +458,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams$PhoneticEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.CustomPronunciations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.CustomPronunciations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1beta1.CustomVoiceParams", "queryAllDeclaredConstructors": true, @@ -485,6 +566,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup$Turn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup$Turn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender", "queryAllDeclaredConstructors": true, @@ -719,6 +836,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.texttospeech.v1beta1.VoiceCloneParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.texttospeech.v1beta1.VoiceCloneParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams", "queryAllDeclaredConstructors": true, diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptions.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptions.java new file mode 100644 index 000000000000..830dffd385a8 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptions.java @@ -0,0 +1,582 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +/** + * + * + *
+ * Used for advanced voice options.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.AdvancedVoiceOptions} + */ +public final class AdvancedVoiceOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.AdvancedVoiceOptions) + AdvancedVoiceOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedVoiceOptions.newBuilder() to construct. + private AdvancedVoiceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedVoiceOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedVoiceOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.class, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder.class); + } + + private int bitField0_; + public static final int LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER = 1; + private boolean lowLatencyJourneySynthesis_ = false; + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + @java.lang.Override + public boolean hasLowLatencyJourneySynthesis() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + @java.lang.Override + public boolean getLowLatencyJourneySynthesis() { + return lowLatencyJourneySynthesis_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, lowLatencyJourneySynthesis_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, lowLatencyJourneySynthesis_); + } + 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.texttospeech.v1.AdvancedVoiceOptions)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions other = + (com.google.cloud.texttospeech.v1.AdvancedVoiceOptions) obj; + + if (hasLowLatencyJourneySynthesis() != other.hasLowLatencyJourneySynthesis()) return false; + if (hasLowLatencyJourneySynthesis()) { + if (getLowLatencyJourneySynthesis() != other.getLowLatencyJourneySynthesis()) 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 (hasLowLatencyJourneySynthesis()) { + hash = (37 * hash) + LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLowLatencyJourneySynthesis()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions 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.texttospeech.v1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions 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.texttospeech.v1.AdvancedVoiceOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1.AdvancedVoiceOptions 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Used for advanced voice options.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.AdvancedVoiceOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.AdvancedVoiceOptions) + com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.class, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lowLatencyJourneySynthesis_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions build() { + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions buildPartial() { + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions result = + new com.google.cloud.texttospeech.v1.AdvancedVoiceOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.texttospeech.v1.AdvancedVoiceOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lowLatencyJourneySynthesis_ = lowLatencyJourneySynthesis_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1.AdvancedVoiceOptions) { + return mergeFrom((com.google.cloud.texttospeech.v1.AdvancedVoiceOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1.AdvancedVoiceOptions other) { + if (other == com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance()) + return this; + if (other.hasLowLatencyJourneySynthesis()) { + setLowLatencyJourneySynthesis(other.getLowLatencyJourneySynthesis()); + } + 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: + { + lowLatencyJourneySynthesis_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean lowLatencyJourneySynthesis_; + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + @java.lang.Override + public boolean hasLowLatencyJourneySynthesis() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + @java.lang.Override + public boolean getLowLatencyJourneySynthesis() { + return lowLatencyJourneySynthesis_; + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @param value The lowLatencyJourneySynthesis to set. + * @return This builder for chaining. + */ + public Builder setLowLatencyJourneySynthesis(boolean value) { + + lowLatencyJourneySynthesis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return This builder for chaining. + */ + public Builder clearLowLatencyJourneySynthesis() { + bitField0_ = (bitField0_ & ~0x00000001); + lowLatencyJourneySynthesis_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.AdvancedVoiceOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.AdvancedVoiceOptions) + private static final com.google.cloud.texttospeech.v1.AdvancedVoiceOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.AdvancedVoiceOptions(); + } + + public static com.google.cloud.texttospeech.v1.AdvancedVoiceOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedVoiceOptions 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.texttospeech.v1.AdvancedVoiceOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptionsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptionsOrBuilder.java new file mode 100644 index 000000000000..d6d6cf5a039c --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AdvancedVoiceOptionsOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +public interface AdvancedVoiceOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.AdvancedVoiceOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + boolean hasLowLatencyJourneySynthesis(); + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + boolean getLowLatencyJourneySynthesis(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParams.java new file mode 100644 index 000000000000..968eaba32bc2 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParams.java @@ -0,0 +1,1284 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +/** + * + * + *
+ * Pronunciation customization for a phrase.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.CustomPronunciationParams} + */ +public final class CustomPronunciationParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.CustomPronunciationParams) + CustomPronunciationParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomPronunciationParams.newBuilder() to construct. + private CustomPronunciationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomPronunciationParams() { + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomPronunciationParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.class, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder.class); + } + + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * Protobuf enum {@code google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding} + */ + public enum PhoneticEncoding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + PHONETIC_ENCODING_UNSPECIFIED(0), + /** + * + * + *
+     * IPA. (e.g. apple -> ˈæpəl )
+     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
+     * 
+ * + * PHONETIC_ENCODING_IPA = 1; + */ + PHONETIC_ENCODING_IPA(1), + /** + * + * + *
+     * X-SAMPA (e.g. apple -> "{p@l" )
+     * https://en.wikipedia.org/wiki/X-SAMPA
+     * 
+ * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + PHONETIC_ENCODING_X_SAMPA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + public static final int PHONETIC_ENCODING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * IPA. (e.g. apple -> ˈæpəl )
+     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
+     * 
+ * + * PHONETIC_ENCODING_IPA = 1; + */ + public static final int PHONETIC_ENCODING_IPA_VALUE = 1; + /** + * + * + *
+     * X-SAMPA (e.g. apple -> "{p@l" )
+     * https://en.wikipedia.org/wiki/X-SAMPA
+     * 
+ * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + public static final int PHONETIC_ENCODING_X_SAMPA_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 PhoneticEncoding 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 PhoneticEncoding forNumber(int value) { + switch (value) { + case 0: + return PHONETIC_ENCODING_UNSPECIFIED; + case 1: + return PHONETIC_ENCODING_IPA; + case 2: + return PHONETIC_ENCODING_X_SAMPA; + 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 PhoneticEncoding findValueByNumber(int number) { + return PhoneticEncoding.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.CustomPronunciationParams.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PhoneticEncoding[] VALUES = values(); + + public static PhoneticEncoding 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 PhoneticEncoding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding) + } + + private int bitField0_; + public static final int PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phrase_ = ""; + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + @java.lang.Override + public boolean hasPhrase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + @java.lang.Override + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + 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(); + phrase_ = s; + return s; + } + } + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONETIC_ENCODING_FIELD_NUMBER = 2; + private int phoneticEncoding_ = 0; + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + @java.lang.Override + public boolean hasPhoneticEncoding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding.forNumber( + phoneticEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding.UNRECOGNIZED + : result; + } + + public static final int PRONUNCIATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pronunciation_ = ""; + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + @java.lang.Override + public boolean hasPronunciation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + @java.lang.Override + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + 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(); + pronunciation_ = s; + return s; + } + } + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, phoneticEncoding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pronunciation_); + } + 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.GeneratedMessageV3.computeStringSize(1, phrase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, phoneticEncoding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pronunciation_); + } + 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.texttospeech.v1.CustomPronunciationParams)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1.CustomPronunciationParams other = + (com.google.cloud.texttospeech.v1.CustomPronunciationParams) obj; + + if (hasPhrase() != other.hasPhrase()) return false; + if (hasPhrase()) { + if (!getPhrase().equals(other.getPhrase())) return false; + } + if (hasPhoneticEncoding() != other.hasPhoneticEncoding()) return false; + if (hasPhoneticEncoding()) { + if (phoneticEncoding_ != other.phoneticEncoding_) return false; + } + if (hasPronunciation() != other.hasPronunciation()) return false; + if (hasPronunciation()) { + if (!getPronunciation().equals(other.getPronunciation())) 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 (hasPhrase()) { + hash = (37 * hash) + PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPhrase().hashCode(); + } + if (hasPhoneticEncoding()) { + hash = (37 * hash) + PHONETIC_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + phoneticEncoding_; + } + if (hasPronunciation()) { + hash = (37 * hash) + PRONUNCIATION_FIELD_NUMBER; + hash = (53 * hash) + getPronunciation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams 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.texttospeech.v1.CustomPronunciationParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams 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.texttospeech.v1.CustomPronunciationParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1.CustomPronunciationParams 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Pronunciation customization for a phrase.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.CustomPronunciationParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.CustomPronunciationParams) + com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.class, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1.CustomPronunciationParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1.CustomPronunciationParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams build() { + com.google.cloud.texttospeech.v1.CustomPronunciationParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams buildPartial() { + com.google.cloud.texttospeech.v1.CustomPronunciationParams result = + new com.google.cloud.texttospeech.v1.CustomPronunciationParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.texttospeech.v1.CustomPronunciationParams result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phrase_ = phrase_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneticEncoding_ = phoneticEncoding_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pronunciation_ = pronunciation_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1.CustomPronunciationParams) { + return mergeFrom((com.google.cloud.texttospeech.v1.CustomPronunciationParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1.CustomPronunciationParams other) { + if (other == com.google.cloud.texttospeech.v1.CustomPronunciationParams.getDefaultInstance()) + return this; + if (other.hasPhrase()) { + phrase_ = other.phrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPhoneticEncoding()) { + setPhoneticEncoding(other.getPhoneticEncoding()); + } + if (other.hasPronunciation()) { + pronunciation_ = other.pronunciation_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + phrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + phoneticEncoding_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pronunciation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object phrase_ = ""; + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + public boolean hasPhrase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @param value The phrase to set. + * @return This builder for chaining. + */ + public Builder setPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhrase() { + phrase_ = getDefaultInstance().getPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @param value The bytes for phrase to set. + * @return This builder for chaining. + */ + public Builder setPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int phoneticEncoding_ = 0; + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + @java.lang.Override + public boolean hasPhoneticEncoding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The enum numeric value on the wire for phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncodingValue(int value) { + phoneticEncoding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding.forNumber( + phoneticEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncoding( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + phoneticEncoding_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearPhoneticEncoding() { + bitField0_ = (bitField0_ & ~0x00000002); + phoneticEncoding_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pronunciation_ = ""; + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + public boolean hasPronunciation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pronunciation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @param value The pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return This builder for chaining. + */ + public Builder clearPronunciation() { + pronunciation_ = getDefaultInstance().getPronunciation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @param value The bytes for pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.CustomPronunciationParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.CustomPronunciationParams) + private static final com.google.cloud.texttospeech.v1.CustomPronunciationParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.CustomPronunciationParams(); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciationParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPronunciationParams 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.texttospeech.v1.CustomPronunciationParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParamsOrBuilder.java new file mode 100644 index 000000000000..a088ecfb3e4d --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParamsOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +public interface CustomPronunciationParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.CustomPronunciationParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + boolean hasPhrase(); + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + java.lang.String getPhrase(); + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + com.google.protobuf.ByteString getPhraseBytes(); + + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + boolean hasPhoneticEncoding(); + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + int getPhoneticEncodingValue(); + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + com.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding getPhoneticEncoding(); + + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + boolean hasPronunciation(); + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + java.lang.String getPronunciation(); + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + com.google.protobuf.ByteString getPronunciationBytes(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciations.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciations.java new file mode 100644 index 000000000000..b45e1c26f2d0 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciations.java @@ -0,0 +1,986 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +/** + * + * + *
+ * A collection of pronunciation customizations.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.CustomPronunciations} + */ +public final class CustomPronunciations extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.CustomPronunciations) + CustomPronunciationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomPronunciations.newBuilder() to construct. + private CustomPronunciations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomPronunciations() { + pronunciations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomPronunciations(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.CustomPronunciations.class, + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder.class); + } + + public static final int PRONUNCIATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + pronunciations_; + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public java.util.List + getPronunciationsList() { + return pronunciations_; + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + return pronunciations_; + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public int getPronunciationsCount() { + return pronunciations_.size(); + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParams getPronunciations(int index) { + return pronunciations_.get(index); + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + return pronunciations_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < pronunciations_.size(); i++) { + output.writeMessage(1, pronunciations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < pronunciations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pronunciations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.texttospeech.v1.CustomPronunciations)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1.CustomPronunciations other = + (com.google.cloud.texttospeech.v1.CustomPronunciations) obj; + + if (!getPronunciationsList().equals(other.getPronunciationsList())) 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 (getPronunciationsCount() > 0) { + hash = (37 * hash) + PRONUNCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPronunciationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations 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.texttospeech.v1.CustomPronunciations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations 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.texttospeech.v1.CustomPronunciations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1.CustomPronunciations 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A collection of pronunciation customizations.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.CustomPronunciations} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.CustomPronunciations) + com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.CustomPronunciations.class, + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1.CustomPronunciations.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + } else { + pronunciations_ = null; + pronunciationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciations getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciations build() { + com.google.cloud.texttospeech.v1.CustomPronunciations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciations buildPartial() { + com.google.cloud.texttospeech.v1.CustomPronunciations result = + new com.google.cloud.texttospeech.v1.CustomPronunciations(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.texttospeech.v1.CustomPronunciations result) { + if (pronunciationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pronunciations_ = java.util.Collections.unmodifiableList(pronunciations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pronunciations_ = pronunciations_; + } else { + result.pronunciations_ = pronunciationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.texttospeech.v1.CustomPronunciations result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1.CustomPronunciations) { + return mergeFrom((com.google.cloud.texttospeech.v1.CustomPronunciations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1.CustomPronunciations other) { + if (other == com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance()) + return this; + if (pronunciationsBuilder_ == null) { + if (!other.pronunciations_.isEmpty()) { + if (pronunciations_.isEmpty()) { + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePronunciationsIsMutable(); + pronunciations_.addAll(other.pronunciations_); + } + onChanged(); + } + } else { + if (!other.pronunciations_.isEmpty()) { + if (pronunciationsBuilder_.isEmpty()) { + pronunciationsBuilder_.dispose(); + pronunciationsBuilder_ = null; + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000001); + pronunciationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPronunciationsFieldBuilder() + : null; + } else { + pronunciationsBuilder_.addAllMessages(other.pronunciations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.texttospeech.v1.CustomPronunciationParams m = + input.readMessage( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.parser(), + extensionRegistry); + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(m); + } else { + pronunciationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + pronunciations_ = java.util.Collections.emptyList(); + + private void ensurePronunciationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pronunciations_ = + new java.util.ArrayList( + pronunciations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder> + pronunciationsBuilder_; + + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List + getPronunciationsList() { + if (pronunciationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pronunciations_); + } else { + return pronunciationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public int getPronunciationsCount() { + if (pronunciationsBuilder_ == null) { + return pronunciations_.size(); + } else { + return pronunciationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationParams getPronunciations(int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder setPronunciations( + int index, com.google.cloud.texttospeech.v1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.set(index, value); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder setPronunciations( + int index, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.set(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + com.google.cloud.texttospeech.v1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + int index, com.google.cloud.texttospeech.v1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(index, value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + int index, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addAllPronunciations( + java.lang.Iterable + values) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pronunciations_); + onChanged(); + } else { + pronunciationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder clearPronunciations() { + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pronunciationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder removePronunciations(int index) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.remove(index); + onChanged(); + } else { + pronunciationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder + getPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + if (pronunciationsBuilder_ != null) { + return pronunciationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pronunciations_); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder + addPronunciationsBuilder() { + return getPronunciationsFieldBuilder() + .addBuilder( + com.google.cloud.texttospeech.v1.CustomPronunciationParams.getDefaultInstance()); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder + addPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.getDefaultInstance()); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List + getPronunciationsBuilderList() { + return getPronunciationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder> + getPronunciationsFieldBuilder() { + if (pronunciationsBuilder_ == null) { + pronunciationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder>( + pronunciations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + pronunciations_ = null; + } + return pronunciationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.CustomPronunciations) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.CustomPronunciations) + private static final com.google.cloud.texttospeech.v1.CustomPronunciations DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.CustomPronunciations(); + } + + public static com.google.cloud.texttospeech.v1.CustomPronunciations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPronunciations 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.texttospeech.v1.CustomPronunciations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationsOrBuilder.java new file mode 100644 index 000000000000..ac984710635f --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationsOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +public interface CustomPronunciationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.CustomPronunciations) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + java.util.List + getPronunciationsList(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + com.google.cloud.texttospeech.v1.CustomPronunciationParams getPronunciations(int index); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + int getPronunciationsCount(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + java.util.List + getPronunciationsOrBuilderList(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1; + * + */ + com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder getPronunciationsOrBuilder( + int index); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java index 7bb8d63d4d21..ee331339ee74 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java @@ -299,7 +299,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -319,7 +319,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The reportedUsage. */ @java.lang.Override @@ -831,7 +831,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -851,7 +851,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ @@ -874,7 +874,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The reportedUsage. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getRepor * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @param value The reportedUsage to set. * @return This builder for chaining. */ @@ -926,7 +926,7 @@ public Builder setReportedUsage( * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java index 5d50f23e9e47..118eb65cbca8 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java @@ -65,7 +65,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=298 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=362 * @return The reportedUsage. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java index f10f4773395b..961e81914144 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java @@ -64,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class); } + private int bitField0_; private int inputSourceCase_ = 0; @SuppressWarnings("serial") @@ -265,6 +266,96 @@ public com.google.protobuf.ByteString getSsmlBytes() { } } + public static final int CUSTOM_PRONUNCIATIONS_FIELD_NUMBER = 3; + private com.google.cloud.texttospeech.v1.CustomPronunciations customPronunciations_; + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + @java.lang.Override + public boolean hasCustomPronunciations() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciations getCustomPronunciations() { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder + getCustomPronunciationsOrBuilder() { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -285,6 +376,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCustomPronunciations()); + } getUnknownFields().writeTo(output); } @@ -300,6 +394,10 @@ public int getSerializedSize() { if (inputSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomPronunciations()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -316,6 +414,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.texttospeech.v1.SynthesisInput other = (com.google.cloud.texttospeech.v1.SynthesisInput) obj; + if (hasCustomPronunciations() != other.hasCustomPronunciations()) return false; + if (hasCustomPronunciations()) { + if (!getCustomPronunciations().equals(other.getCustomPronunciations())) return false; + } if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: @@ -338,6 +440,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomPronunciations()) { + hash = (37 * hash) + CUSTOM_PRONUNCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomPronunciations().hashCode(); + } switch (inputSourceCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -482,16 +588,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomPronunciationsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + customPronunciations_ = null; + if (customPronunciationsBuilder_ != null) { + customPronunciationsBuilder_.dispose(); + customPronunciationsBuilder_ = null; + } inputSourceCase_ = 0; inputSource_ = null; return this; @@ -531,6 +651,15 @@ public com.google.cloud.texttospeech.v1.SynthesisInput buildPartial() { private void buildPartial0(com.google.cloud.texttospeech.v1.SynthesisInput result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customPronunciations_ = + customPronunciationsBuilder_ == null + ? customPronunciations_ + : customPronunciationsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.texttospeech.v1.SynthesisInput result) { @@ -584,6 +713,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesisInput other) { if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance()) return this; + if (other.hasCustomPronunciations()) { + mergeCustomPronunciations(other.getCustomPronunciations()); + } switch (other.getInputSourceCase()) { case TEXT: { @@ -644,6 +776,13 @@ public Builder mergeFrom( inputSource_ = s; break; } // case 18 + case 26: + { + input.readMessage( + getCustomPronunciationsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -969,6 +1108,314 @@ public Builder setSsmlBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.texttospeech.v1.CustomPronunciations customPronunciations_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciations, + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder> + customPronunciationsBuilder_; + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + public boolean hasCustomPronunciations() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + public com.google.cloud.texttospeech.v1.CustomPronunciations getCustomPronunciations() { + if (customPronunciationsBuilder_ == null) { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } else { + return customPronunciationsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPronunciations( + com.google.cloud.texttospeech.v1.CustomPronunciations value) { + if (customPronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customPronunciations_ = value; + } else { + customPronunciationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPronunciations( + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder builderForValue) { + if (customPronunciationsBuilder_ == null) { + customPronunciations_ = builderForValue.build(); + } else { + customPronunciationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomPronunciations( + com.google.cloud.texttospeech.v1.CustomPronunciations value) { + if (customPronunciationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && customPronunciations_ != null + && customPronunciations_ + != com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance()) { + getCustomPronunciationsBuilder().mergeFrom(value); + } else { + customPronunciations_ = value; + } + } else { + customPronunciationsBuilder_.mergeFrom(value); + } + if (customPronunciations_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomPronunciations() { + bitField0_ = (bitField0_ & ~0x00000004); + customPronunciations_ = null; + if (customPronunciationsBuilder_ != null) { + customPronunciationsBuilder_.dispose(); + customPronunciationsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciations.Builder + getCustomPronunciationsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomPronunciationsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder + getCustomPronunciationsOrBuilder() { + if (customPronunciationsBuilder_ != null) { + return customPronunciationsBuilder_.getMessageOrBuilder(); + } else { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciations, + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder> + getCustomPronunciationsFieldBuilder() { + if (customPronunciationsBuilder_ == null) { + customPronunciationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.CustomPronunciations, + com.google.cloud.texttospeech.v1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder>( + getCustomPronunciations(), getParentForChildren(), isClean()); + customPronunciations_ = null; + } + return customPronunciationsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java index b82f8cacfca4..c18426b29bc1 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java @@ -110,5 +110,79 @@ public interface SynthesisInputOrBuilder */ com.google.protobuf.ByteString getSsmlBytes(); + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + boolean hasCustomPronunciations(); + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + com.google.cloud.texttospeech.v1.CustomPronunciations getCustomPronunciations(); + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.texttospeech.v1.CustomPronunciationsOrBuilder getCustomPronunciationsOrBuilder(); + com.google.cloud.texttospeech.v1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java index 6ccfa1417cae..75a7e256b50b 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java @@ -120,7 +120,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -138,7 +138,7 @@ public boolean hasLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Override @@ -805,7 +805,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Deprecated @@ -822,7 +822,7 @@ public boolean hasLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java index fbe6a9699809..a32121cf8ad7 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java @@ -69,7 +69,7 @@ public interface SynthesizeLongAudioMetadataOrBuilder * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface SynthesizeLongAudioMetadataOrBuilder * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java index e6944375cb6b..de7bd7ece138 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java @@ -230,6 +230,60 @@ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBui : audioConfig_; } + public static final int ADVANCED_VOICE_OPTIONS_FIELD_NUMBER = 8; + private com.google.cloud.texttospeech.v1.AdvancedVoiceOptions advancedVoiceOptions_; + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + @java.lang.Override + public boolean hasAdvancedVoiceOptions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions getAdvancedVoiceOptions() { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder + getAdvancedVoiceOptionsOrBuilder() { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getAudioConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getAdvancedVoiceOptions()); + } getUnknownFields().writeTo(output); } @@ -271,6 +328,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAudioConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAdvancedVoiceOptions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -299,6 +360,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAudioConfig()) { if (!getAudioConfig().equals(other.getAudioConfig())) return false; } + if (hasAdvancedVoiceOptions() != other.hasAdvancedVoiceOptions()) return false; + if (hasAdvancedVoiceOptions()) { + if (!getAdvancedVoiceOptions().equals(other.getAdvancedVoiceOptions())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,6 +387,10 @@ public int hashCode() { hash = (37 * hash) + AUDIO_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAudioConfig().hashCode(); } + if (hasAdvancedVoiceOptions()) { + hash = (37 * hash) + ADVANCED_VOICE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedVoiceOptions().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -466,6 +535,7 @@ private void maybeForceBuilderInitialization() { getInputFieldBuilder(); getVoiceFieldBuilder(); getAudioConfigFieldBuilder(); + getAdvancedVoiceOptionsFieldBuilder(); } } @@ -488,6 +558,11 @@ public Builder clear() { audioConfigBuilder_.dispose(); audioConfigBuilder_ = null; } + advancedVoiceOptions_ = null; + if (advancedVoiceOptionsBuilder_ != null) { + advancedVoiceOptionsBuilder_.dispose(); + advancedVoiceOptionsBuilder_ = null; + } return this; } @@ -538,6 +613,13 @@ private void buildPartial0(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequ audioConfigBuilder_ == null ? audioConfig_ : audioConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.advancedVoiceOptions_ = + advancedVoiceOptionsBuilder_ == null + ? advancedVoiceOptions_ + : advancedVoiceOptionsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -596,6 +678,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesizeSpeechReques if (other.hasAudioConfig()) { mergeAudioConfig(other.getAudioConfig()); } + if (other.hasAdvancedVoiceOptions()) { + mergeAdvancedVoiceOptions(other.getAdvancedVoiceOptions()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -640,6 +725,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 66: + { + input.readMessage( + getAdvancedVoiceOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1272,6 +1364,206 @@ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBui return audioConfigBuilder_; } + private com.google.cloud.texttospeech.v1.AdvancedVoiceOptions advancedVoiceOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder> + advancedVoiceOptionsBuilder_; + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + public boolean hasAdvancedVoiceOptions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions getAdvancedVoiceOptions() { + if (advancedVoiceOptionsBuilder_ == null) { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } else { + return advancedVoiceOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder setAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions value) { + if (advancedVoiceOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedVoiceOptions_ = value; + } else { + advancedVoiceOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder setAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder builderForValue) { + if (advancedVoiceOptionsBuilder_ == null) { + advancedVoiceOptions_ = builderForValue.build(); + } else { + advancedVoiceOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder mergeAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions value) { + if (advancedVoiceOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && advancedVoiceOptions_ != null + && advancedVoiceOptions_ + != com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance()) { + getAdvancedVoiceOptionsBuilder().mergeFrom(value); + } else { + advancedVoiceOptions_ = value; + } + } else { + advancedVoiceOptionsBuilder_.mergeFrom(value); + } + if (advancedVoiceOptions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder clearAdvancedVoiceOptions() { + bitField0_ = (bitField0_ & ~0x00000008); + advancedVoiceOptions_ = null; + if (advancedVoiceOptionsBuilder_ != null) { + advancedVoiceOptionsBuilder_.dispose(); + advancedVoiceOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder + getAdvancedVoiceOptionsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAdvancedVoiceOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder + getAdvancedVoiceOptionsOrBuilder() { + if (advancedVoiceOptionsBuilder_ != null) { + return advancedVoiceOptionsBuilder_.getMessageOrBuilder(); + } else { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder> + getAdvancedVoiceOptionsFieldBuilder() { + if (advancedVoiceOptionsBuilder_ == null) { + advancedVoiceOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder, + com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder>( + getAdvancedVoiceOptions(), getParentForChildren(), isClean()); + advancedVoiceOptions_ = null; + } + return advancedVoiceOptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java index 1b5e407f6df1..b3e5b650ba9e 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java @@ -146,4 +146,42 @@ public interface SynthesizeSpeechRequestOrBuilder * */ com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder(); + + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + boolean hasAdvancedVoiceOptions(); + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + com.google.cloud.texttospeech.v1.AdvancedVoiceOptions getAdvancedVoiceOptions(); + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + com.google.cloud.texttospeech.v1.AdvancedVoiceOptionsOrBuilder getAdvancedVoiceOptionsOrBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java index 952ba511e63c..aa16a0c3ef77 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java @@ -78,13 +78,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\223\002<\"7/v1/{parent=projects/*/locations/*}" + ":synthesizeLongAudio:\001*\032O\312A\033texttospeech" + ".googleapis.com\322A.https://www.googleapis" - + ".com/auth/cloud-platformB\362\001\n com.google." + + ".com/auth/cloud-platformB\357\001\n com.google." + "cloud.texttospeech.v1B#TextToSpeechLongA" + "udioSynthesisProtoP\001ZDcloud.google.com/g" + "o/texttospeech/apiv1/texttospeechpb;text" - + "tospeechpb\370\001\001\252\002\034Google.Cloud.TextToSpeec" - + "h.V1\312\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Go" - + "ogle::Cloud::TextToSpeech::V1b\006proto3" + + "tospeechpb\252\002\034Google.Cloud.TextToSpeech.V" + + "1\312\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Googl" + + "e::Cloud::TextToSpeech::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java index 380601ccde3a..898a55ca794b 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -40,10 +40,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_texttospeech_v1_Voice_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_CustomPronunciations_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -60,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_texttospeech_v1_CustomVoiceParams_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_texttospeech_v1_CustomVoiceParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,72 +116,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004name\030\002 " + "\001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud." + "texttospeech.v1.SsmlVoiceGender\022!\n\031natur" - + "al_sample_rate_hertz\030\004 \001(\005\"\351\001\n\027Synthesiz" - + "eSpeechRequest\022@\n\005input\030\001 \001(\0132,.google.c" - + "loud.texttospeech.v1.SynthesisInputB\003\340A\002" - + "\022F\n\005voice\030\002 \001(\01322.google.cloud.texttospe" - + "ech.v1.VoiceSelectionParamsB\003\340A\002\022D\n\014audi" - + "o_config\030\003 \001(\0132).google.cloud.texttospee" - + "ch.v1.AudioConfigB\003\340A\002\"@\n\016SynthesisInput" - + "\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014inpu" - + "t_source\"\313\001\n\024VoiceSelectionParams\022\032\n\rlan" - + "guage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013s" - + "sml_gender\030\003 \001(\0162-.google.cloud.texttosp" - + "eech.v1.SsmlVoiceGender\022E\n\014custom_voice\030" - + "\004 \001(\0132/.google.cloud.texttospeech.v1.Cus" - + "tomVoiceParams\"\361\001\n\013AudioConfig\022H\n\016audio_" - + "encoding\030\001 \001(\0162+.google.cloud.texttospee" - + "ch.v1.AudioEncodingB\003\340A\002\022\035\n\rspeaking_rat" - + "e\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B\006\340A\004\340A\001\022\036" - + "\n\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022\036\n\021sample" - + "_rate_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effects_profil" - + "e_id\030\006 \003(\tB\006\340A\004\340A\001\"\361\001\n\021CustomVoiceParams" - + "\0222\n\005model\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleap" - + "is.com/Model\022\\\n\016reported_usage\030\003 \001(\0162=.g" - + "oogle.cloud.texttospeech.v1.CustomVoiceP" - + "arams.ReportedUsageB\005\030\001\340A\001\"J\n\rReportedUs" - + "age\022\036\n\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014\n\010R" - + "EALTIME\020\001\022\013\n\007OFFLINE\020\002\"1\n\030SynthesizeSpee" - + "chResponse\022\025\n\raudio_content\030\001 \001(\014\"c\n\031Str" - + "eamingSynthesizeConfig\022F\n\005voice\030\001 \001(\01322." + + "al_sample_rate_hertz\030\004 \001(\005\"d\n\024AdvancedVo" + + "iceOptions\022*\n\035low_latency_journey_synthe" + + "sis\030\001 \001(\010H\000\210\001\001B \n\036_low_latency_journey_s" + + "ynthesis\"\335\002\n\027SynthesizeSpeechRequest\022@\n\005" + + "input\030\001 \001(\0132,.google.cloud.texttospeech." + + "v1.SynthesisInputB\003\340A\002\022F\n\005voice\030\002 \001(\01322." + "google.cloud.texttospeech.v1.VoiceSelect" - + "ionParamsB\003\340A\002\"9\n\027StreamingSynthesisInpu" - + "t\022\016\n\004text\030\001 \001(\tH\000B\016\n\014input_source\"\316\001\n\032St" - + "reamingSynthesizeRequest\022S\n\020streaming_co" - + "nfig\030\001 \001(\01327.google.cloud.texttospeech.v" - + "1.StreamingSynthesizeConfigH\000\022F\n\005input\030\002" - + " \001(\01325.google.cloud.texttospeech.v1.Stre" - + "amingSynthesisInputH\000B\023\n\021streaming_reque" - + "st\"4\n\033StreamingSynthesizeResponse\022\025\n\raud" - + "io_content\030\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035S" - + "SML_VOICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001" - + "\022\n\n\006FEMALE\020\002\022\013\n\007NEUTRAL\020\003*i\n\rAudioEncodi" - + "ng\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LI" - + "NEAR16\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW" - + "\020\005\022\010\n\004ALAW\020\0062\307\004\n\014TextToSpeech\022\223\001\n\nListVo" - + "ices\022/.google.cloud.texttospeech.v1.List" - + "VoicesRequest\0320.google.cloud.texttospeec" - + "h.v1.ListVoicesResponse\"\"\332A\rlanguage_cod" - + "e\202\323\344\223\002\014\022\n/v1/voices\022\274\001\n\020SynthesizeSpeech" - + "\0225.google.cloud.texttospeech.v1.Synthesi" - + "zeSpeechRequest\0326.google.cloud.texttospe" - + "ech.v1.SynthesizeSpeechResponse\"9\332A\030inpu" - + "t,voice,audio_config\202\323\344\223\002\030\"\023/v1/text:syn" - + "thesize:\001*\022\220\001\n\023StreamingSynthesize\0228.goo" - + "gle.cloud.texttospeech.v1.StreamingSynth" - + "esizeRequest\0329.google.cloud.texttospeech" - + ".v1.StreamingSynthesizeResponse\"\000(\0010\001\032O\312" - + "A\033texttospeech.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\277" - + "\002\n com.google.cloud.texttospeech.v1B\021Tex" - + "tToSpeechProtoP\001ZDcloud.google.com/go/te" - + "xttospeech/apiv1/texttospeechpb;texttosp" - + "eechpb\370\001\001\242\002\004CTTS\252\002\034Google.Cloud.TextToSp" - + "eech.V1\312\002\034Google\\Cloud\\TextToSpeech\\V1\352\002" - + "\037Google::Cloud::TextToSpeech::V1\352AU\n\033aut" - + "oml.googleapis.com/Model\0226projects/{proj" - + "ect}/locations/{location}/models/{model}" - + "b\006proto3" + + "ionParamsB\003\340A\002\022D\n\014audio_config\030\003 \001(\0132).g" + + "oogle.cloud.texttospeech.v1.AudioConfigB" + + "\003\340A\002\022W\n\026advanced_voice_options\030\010 \001(\01322.g" + + "oogle.cloud.texttospeech.v1.AdvancedVoic" + + "eOptionsH\000\210\001\001B\031\n\027_advanced_voice_options" + + "\"\332\002\n\031CustomPronunciationParams\022\023\n\006phrase" + + "\030\001 \001(\tH\000\210\001\001\022h\n\021phonetic_encoding\030\002 \001(\0162H" + + ".google.cloud.texttospeech.v1.CustomPron" + + "unciationParams.PhoneticEncodingH\001\210\001\001\022\032\n" + + "\rpronunciation\030\003 \001(\tH\002\210\001\001\"o\n\020PhoneticEnc" + + "oding\022!\n\035PHONETIC_ENCODING_UNSPECIFIED\020\000" + + "\022\031\n\025PHONETIC_ENCODING_IPA\020\001\022\035\n\031PHONETIC_" + + "ENCODING_X_SAMPA\020\002B\t\n\007_phraseB\024\n\022_phonet" + + "ic_encodingB\020\n\016_pronunciation\"g\n\024CustomP" + + "ronunciations\022O\n\016pronunciations\030\001 \003(\01327." + + "google.cloud.texttospeech.v1.CustomPronu" + + "nciationParams\"\230\001\n\016SynthesisInput\022\016\n\004tex" + + "t\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022V\n\025custom_pron" + + "unciations\030\003 \001(\01322.google.cloud.texttosp" + + "eech.v1.CustomPronunciationsB\003\340A\001B\016\n\014inp" + + "ut_source\"\225\002\n\024VoiceSelectionParams\022\032\n\rla" + + "nguage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013" + + "ssml_gender\030\003 \001(\0162-.google.cloud.texttos" + + "peech.v1.SsmlVoiceGender\022E\n\014custom_voice" + + "\030\004 \001(\0132/.google.cloud.texttospeech.v1.Cu" + + "stomVoiceParams\022H\n\013voice_clone\030\005 \001(\0132..g" + + "oogle.cloud.texttospeech.v1.VoiceClonePa" + + "ramsB\003\340A\001\"\361\001\n\013AudioConfig\022H\n\016audio_encod" + + "ing\030\001 \001(\0162+.google.cloud.texttospeech.v1" + + ".AudioEncodingB\003\340A\002\022\035\n\rspeaking_rate\030\002 \001" + + "(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016vol" + + "ume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022\036\n\021sample_rate" + + "_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effects_profile_id\030" + + "\006 \003(\tB\006\340A\004\340A\001\"\361\001\n\021CustomVoiceParams\0222\n\005m" + + "odel\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis.co" + + "m/Model\022\\\n\016reported_usage\030\003 \001(\0162=.google" + + ".cloud.texttospeech.v1.CustomVoiceParams" + + ".ReportedUsageB\005\030\001\340A\001\"J\n\rReportedUsage\022\036" + + "\n\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014\n\010REALTI" + + "ME\020\001\022\013\n\007OFFLINE\020\002\"2\n\020VoiceCloneParams\022\036\n" + + "\021voice_cloning_key\030\001 \001(\tB\003\340A\002\"1\n\030Synthes" + + "izeSpeechResponse\022\025\n\raudio_content\030\001 \001(\014" + + "\"c\n\031StreamingSynthesizeConfig\022F\n\005voice\030\001" + + " \001(\01322.google.cloud.texttospeech.v1.Voic" + + "eSelectionParamsB\003\340A\002\"9\n\027StreamingSynthe" + + "sisInput\022\016\n\004text\030\001 \001(\tH\000B\016\n\014input_source" + + "\"\316\001\n\032StreamingSynthesizeRequest\022S\n\020strea" + + "ming_config\030\001 \001(\01327.google.cloud.texttos" + + "peech.v1.StreamingSynthesizeConfigH\000\022F\n\005" + + "input\030\002 \001(\01325.google.cloud.texttospeech." + + "v1.StreamingSynthesisInputH\000B\023\n\021streamin" + + "g_request\"4\n\033StreamingSynthesizeResponse" + + "\022\025\n\raudio_content\030\001 \001(\014*W\n\017SsmlVoiceGend" + + "er\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\010\n" + + "\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NEUTRAL\020\003*i\n\rAudi" + + "oEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020" + + "\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\003\022\t" + + "\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\307\004\n\014TextToSpeech\022\223\001\n" + + "\nListVoices\022/.google.cloud.texttospeech." + + "v1.ListVoicesRequest\0320.google.cloud.text" + + "tospeech.v1.ListVoicesResponse\"\"\332A\rlangu" + + "age_code\202\323\344\223\002\014\022\n/v1/voices\022\274\001\n\020Synthesiz" + + "eSpeech\0225.google.cloud.texttospeech.v1.S" + + "ynthesizeSpeechRequest\0326.google.cloud.te" + + "xttospeech.v1.SynthesizeSpeechResponse\"9" + + "\332A\030input,voice,audio_config\202\323\344\223\002\030\"\023/v1/t" + + "ext:synthesize:\001*\022\220\001\n\023StreamingSynthesiz" + + "e\0228.google.cloud.texttospeech.v1.Streami" + + "ngSynthesizeRequest\0329.google.cloud.textt" + + "ospeech.v1.StreamingSynthesizeResponse\"\000" + + "(\0010\001\032O\312A\033texttospeech.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\274\002\n com.google.cloud.texttospeech." + + "v1B\021TextToSpeechProtoP\001ZDcloud.google.co" + + "m/go/texttospeech/apiv1/texttospeechpb;t" + + "exttospeechpb\242\002\004CTTS\252\002\034Google.Cloud.Text" + + "ToSpeech.V1\312\002\034Google\\Cloud\\TextToSpeech\\" + + "V1\352\002\037Google::Cloud::TextToSpeech::V1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/{" + + "project}/locations/{location}/models/{mo" + + "del}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -200,32 +238,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor = + internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_AdvancedVoiceOptions_descriptor, + new java.lang.String[] { + "LowLatencyJourneySynthesis", + }); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor, new java.lang.String[] { - "Input", "Voice", "AudioConfig", + "Input", "Voice", "AudioConfig", "AdvancedVoiceOptions", + }); + internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_CustomPronunciationParams_descriptor, + new java.lang.String[] { + "Phrase", "PhoneticEncoding", "Pronunciation", + }); + internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1_CustomPronunciations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_CustomPronunciations_descriptor, + new java.lang.String[] { + "Pronunciations", }); internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor, new java.lang.String[] { - "Text", "Ssml", "InputSource", + "Text", "Ssml", "CustomPronunciations", "InputSource", }); internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor, new java.lang.String[] { - "LanguageCode", "Name", "SsmlGender", "CustomVoice", + "LanguageCode", "Name", "SsmlGender", "CustomVoice", "VoiceClone", }); internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor, @@ -238,15 +300,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EffectsProfileId", }); internal_static_google_cloud_texttospeech_v1_CustomVoiceParams_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_texttospeech_v1_CustomVoiceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_CustomVoiceParams_descriptor, new java.lang.String[] { "Model", "ReportedUsage", }); + internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor, + new java.lang.String[] { + "VoiceCloningKey", + }); internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor, @@ -254,7 +324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioContent", }); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeConfig_descriptor, @@ -262,7 +332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Voice", }); internal_static_google_cloud_texttospeech_v1_StreamingSynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_texttospeech_v1_StreamingSynthesisInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_StreamingSynthesisInput_descriptor, @@ -270,7 +340,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "InputSource", }); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeRequest_descriptor, @@ -278,7 +348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StreamingConfig", "Input", "StreamingRequest", }); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeResponse_descriptor, diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParams.java new file mode 100644 index 000000000000..298ad6687827 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParams.java @@ -0,0 +1,625 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +/** + * + * + *
+ * The configuration of Voice Clone feature.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.VoiceCloneParams} + */ +public final class VoiceCloneParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.VoiceCloneParams) + VoiceCloneParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use VoiceCloneParams.newBuilder() to construct. + private VoiceCloneParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VoiceCloneParams() { + voiceCloningKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoiceCloneParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.VoiceCloneParams.class, + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder.class); + } + + public static final int VOICE_CLONING_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceCloningKey_ = ""; + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + @java.lang.Override + public java.lang.String getVoiceCloningKey() { + java.lang.Object ref = voiceCloningKey_; + 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(); + voiceCloningKey_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceCloningKeyBytes() { + java.lang.Object ref = voiceCloningKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceCloningKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voiceCloningKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voiceCloningKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voiceCloningKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voiceCloningKey_); + } + 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.texttospeech.v1.VoiceCloneParams)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1.VoiceCloneParams other = + (com.google.cloud.texttospeech.v1.VoiceCloneParams) obj; + + if (!getVoiceCloningKey().equals(other.getVoiceCloningKey())) 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) + VOICE_CLONING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVoiceCloningKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams 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.texttospeech.v1.VoiceCloneParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams 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.texttospeech.v1.VoiceCloneParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1.VoiceCloneParams 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The configuration of Voice Clone feature.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1.VoiceCloneParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.VoiceCloneParams) + com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1.VoiceCloneParams.class, + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1.VoiceCloneParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceCloningKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.VoiceCloneParams getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.VoiceCloneParams build() { + com.google.cloud.texttospeech.v1.VoiceCloneParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1.VoiceCloneParams buildPartial() { + com.google.cloud.texttospeech.v1.VoiceCloneParams result = + new com.google.cloud.texttospeech.v1.VoiceCloneParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.texttospeech.v1.VoiceCloneParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceCloningKey_ = voiceCloningKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1.VoiceCloneParams) { + return mergeFrom((com.google.cloud.texttospeech.v1.VoiceCloneParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1.VoiceCloneParams other) { + if (other == com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance()) + return this; + if (!other.getVoiceCloningKey().isEmpty()) { + voiceCloningKey_ = other.voiceCloningKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + voiceCloningKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object voiceCloningKey_ = ""; + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + public java.lang.String getVoiceCloningKey() { + java.lang.Object ref = voiceCloningKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceCloningKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + public com.google.protobuf.ByteString getVoiceCloningKeyBytes() { + java.lang.Object ref = voiceCloningKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceCloningKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The voiceCloningKey to set. + * @return This builder for chaining. + */ + public Builder setVoiceCloningKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceCloningKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceCloningKey() { + voiceCloningKey_ = getDefaultInstance().getVoiceCloningKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for voiceCloningKey to set. + * @return This builder for chaining. + */ + public Builder setVoiceCloningKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceCloningKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.VoiceCloneParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.VoiceCloneParams) + private static final com.google.cloud.texttospeech.v1.VoiceCloneParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.VoiceCloneParams(); + } + + public static com.google.cloud.texttospeech.v1.VoiceCloneParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceCloneParams 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.texttospeech.v1.VoiceCloneParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParamsOrBuilder.java new file mode 100644 index 000000000000..22e88c523175 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceCloneParamsOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1; + +public interface VoiceCloneParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.VoiceCloneParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + java.lang.String getVoiceCloningKey(); + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + com.google.protobuf.ByteString getVoiceCloningKeyBytes(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java index 784bce6a864d..f30c5ab84e4b 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java @@ -291,6 +291,68 @@ public com.google.cloud.texttospeech.v1.CustomVoiceParamsOrBuilder getCustomVoic : customVoice_; } + public static final int VOICE_CLONE_FIELD_NUMBER = 5; + private com.google.cloud.texttospeech.v1.VoiceCloneParams voiceClone_; + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + @java.lang.Override + public boolean hasVoiceClone() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.VoiceCloneParams getVoiceClone() { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder() { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -319,6 +381,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCustomVoice()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getVoiceClone()); + } getUnknownFields().writeTo(output); } @@ -342,6 +407,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomVoice()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVoiceClone()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -365,6 +433,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCustomVoice()) { if (!getCustomVoice().equals(other.getCustomVoice())) return false; } + if (hasVoiceClone() != other.hasVoiceClone()) return false; + if (hasVoiceClone()) { + if (!getVoiceClone().equals(other.getVoiceClone())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -386,6 +458,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_VOICE_FIELD_NUMBER; hash = (53 * hash) + getCustomVoice().hashCode(); } + if (hasVoiceClone()) { + hash = (37 * hash) + VOICE_CLONE_FIELD_NUMBER; + hash = (53 * hash) + getVoiceClone().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -528,6 +604,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomVoiceFieldBuilder(); + getVoiceCloneFieldBuilder(); } } @@ -543,6 +620,11 @@ public Builder clear() { customVoiceBuilder_.dispose(); customVoiceBuilder_ = null; } + voiceClone_ = null; + if (voiceCloneBuilder_ != null) { + voiceCloneBuilder_.dispose(); + voiceCloneBuilder_ = null; + } return this; } @@ -594,6 +676,10 @@ private void buildPartial0(com.google.cloud.texttospeech.v1.VoiceSelectionParams customVoiceBuilder_ == null ? customVoice_ : customVoiceBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.voiceClone_ = voiceCloneBuilder_ == null ? voiceClone_ : voiceCloneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -659,6 +745,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.VoiceSelectionParams o if (other.hasCustomVoice()) { mergeCustomVoice(other.getCustomVoice()); } + if (other.hasVoiceClone()) { + mergeVoiceClone(other.getVoiceClone()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -709,6 +798,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getVoiceCloneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1317,6 +1412,229 @@ public com.google.cloud.texttospeech.v1.CustomVoiceParamsOrBuilder getCustomVoic return customVoiceBuilder_; } + private com.google.cloud.texttospeech.v1.VoiceCloneParams voiceClone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.VoiceCloneParams, + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder> + voiceCloneBuilder_; + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + public boolean hasVoiceClone() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + public com.google.cloud.texttospeech.v1.VoiceCloneParams getVoiceClone() { + if (voiceCloneBuilder_ == null) { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } else { + return voiceCloneBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVoiceClone(com.google.cloud.texttospeech.v1.VoiceCloneParams value) { + if (voiceCloneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceClone_ = value; + } else { + voiceCloneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVoiceClone( + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder builderForValue) { + if (voiceCloneBuilder_ == null) { + voiceClone_ = builderForValue.build(); + } else { + voiceCloneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVoiceClone(com.google.cloud.texttospeech.v1.VoiceCloneParams value) { + if (voiceCloneBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && voiceClone_ != null + && voiceClone_ + != com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance()) { + getVoiceCloneBuilder().mergeFrom(value); + } else { + voiceClone_ = value; + } + } else { + voiceCloneBuilder_.mergeFrom(value); + } + if (voiceClone_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVoiceClone() { + bitField0_ = (bitField0_ & ~0x00000010); + voiceClone_ = null; + if (voiceCloneBuilder_ != null) { + voiceCloneBuilder_.dispose(); + voiceCloneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder getVoiceCloneBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getVoiceCloneFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder() { + if (voiceCloneBuilder_ != null) { + return voiceCloneBuilder_.getMessageOrBuilder(); + } else { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.VoiceCloneParams, + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder> + getVoiceCloneFieldBuilder() { + if (voiceCloneBuilder_ == null) { + voiceCloneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.VoiceCloneParams, + com.google.cloud.texttospeech.v1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder>( + getVoiceClone(), getParentForChildren(), isClean()); + voiceClone_ = null; + } + return voiceCloneBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java index b2420d5bdc6c..e34f86e31db3 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java @@ -171,4 +171,51 @@ public interface VoiceSelectionParamsOrBuilder * .google.cloud.texttospeech.v1.CustomVoiceParams custom_voice = 4; */ com.google.cloud.texttospeech.v1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder(); + + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + boolean hasVoiceClone(); + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + com.google.cloud.texttospeech.v1.VoiceCloneParams getVoiceClone(); + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto index d80fb2f35350..b20a441c7575 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto @@ -21,7 +21,6 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1"; option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; @@ -151,6 +150,13 @@ message Voice { int32 natural_sample_rate_hertz = 4; } +// Used for advanced voice options. +message AdvancedVoiceOptions { + // Only for Journey voices. If false, the synthesis will be context aware + // and have higher latency. + optional bool low_latency_journey_synthesis = 1; +} + // The top-level message sent by the client for the `SynthesizeSpeech` method. message SynthesizeSpeechRequest { // Required. The Synthesizer requires either plain text or SSML as input. @@ -161,6 +167,44 @@ message SynthesizeSpeechRequest { // Required. The configuration of the synthesized audio. AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED]; + + // Advanced voice options. + optional AdvancedVoiceOptions advanced_voice_options = 8; +} + +// Pronunciation customization for a phrase. +message CustomPronunciationParams { + // The phonetic encoding of the phrase. + enum PhoneticEncoding { + // Not specified. + PHONETIC_ENCODING_UNSPECIFIED = 0; + + // IPA. (e.g. apple -> ˈæpəl ) + // https://en.wikipedia.org/wiki/International_Phonetic_Alphabet + PHONETIC_ENCODING_IPA = 1; + + // X-SAMPA (e.g. apple -> "{p@l" ) + // https://en.wikipedia.org/wiki/X-SAMPA + PHONETIC_ENCODING_X_SAMPA = 2; + } + + // The phrase to which the customization will be applied. + // The phrase can be multiple words (in the case of proper nouns etc), but + // should not span to a whole sentence. + optional string phrase = 1; + + // The phonetic encoding of the phrase. + optional PhoneticEncoding phonetic_encoding = 2; + + // The pronunciation of the phrase. This must be in the phonetic encoding + // specified above. + optional string pronunciation = 3; +} + +// A collection of pronunciation customizations. +message CustomPronunciations { + // The pronunciation customizations to be applied. + repeated CustomPronunciationParams pronunciations = 1; } // Contains text input to be synthesized. Either `text` or `ssml` must be @@ -180,6 +224,21 @@ message SynthesisInput { // [SSML](https://cloud.google.com/text-to-speech/docs/ssml). string ssml = 2; } + + // Optional. The pronunciation customizations to be applied to the input. If + // this is set, the input will be synthesized using the given pronunciation + // customizations. + // + // The initial support will be for EFIGS (English, French, + // Italian, German, Spanish) languages, as provided in + // VoiceSelectionParams. Journey and Instant Clone voices are + // not supported yet. + // + // In order to customize the pronunciation of a phrase, there must be an exact + // match of the phrase in the input types. If using SSML, the phrase must not + // be inside a phoneme tag (entirely or partially). + CustomPronunciations custom_pronunciations = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Description of which voice to use for a synthesis request. @@ -213,6 +272,11 @@ message VoiceSelectionParams { // the service will choose the custom voice matching the specified // configuration. CustomVoiceParams custom_voice = 4; + + // Optional. The configuration for a voice clone. If + // [VoiceCloneParams.voice_clone_key] is set, the service will choose the + // voice clone matching the specified configuration. + VoiceCloneParams voice_clone = 5 [(google.api.field_behavior) = OPTIONAL]; } // Description of audio data to be synthesized. @@ -300,6 +364,12 @@ message CustomVoiceParams { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } +// The configuration of Voice Clone feature. +message VoiceCloneParams { + // Required. Created by GenerateVoiceCloningKey. + string voice_cloning_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + // The message returned to the client by the `SynthesizeSpeech` method. message SynthesizeSpeechResponse { // The audio data bytes encoded as specified in the request, including the diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto index 8eb8605c24cf..985138f9a4e5 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto @@ -23,7 +23,6 @@ import "google/cloud/texttospeech/v1/cloud_tts.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1"; option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptions.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptions.java new file mode 100644 index 000000000000..d641b006dcdb --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptions.java @@ -0,0 +1,582 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +/** + * + * + *
+ * Used for advanced voice options.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions} + */ +public final class AdvancedVoiceOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) + AdvancedVoiceOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedVoiceOptions.newBuilder() to construct. + private AdvancedVoiceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedVoiceOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedVoiceOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.class, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder.class); + } + + private int bitField0_; + public static final int LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER = 1; + private boolean lowLatencyJourneySynthesis_ = false; + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + @java.lang.Override + public boolean hasLowLatencyJourneySynthesis() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + @java.lang.Override + public boolean getLowLatencyJourneySynthesis() { + return lowLatencyJourneySynthesis_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, lowLatencyJourneySynthesis_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, lowLatencyJourneySynthesis_); + } + 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.texttospeech.v1beta1.AdvancedVoiceOptions)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions other = + (com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) obj; + + if (hasLowLatencyJourneySynthesis() != other.hasLowLatencyJourneySynthesis()) return false; + if (hasLowLatencyJourneySynthesis()) { + if (getLowLatencyJourneySynthesis() != other.getLowLatencyJourneySynthesis()) 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 (hasLowLatencyJourneySynthesis()) { + hash = (37 * hash) + LOW_LATENCY_JOURNEY_SYNTHESIS_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLowLatencyJourneySynthesis()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions 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.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions 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.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.AdvancedVoiceOptions 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Used for advanced voice options.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.class, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lowLatencyJourneySynthesis_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions build() { + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions buildPartial() { + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions result = + new com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lowLatencyJourneySynthesis_ = lowLatencyJourneySynthesis_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions other) { + if (other == com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance()) + return this; + if (other.hasLowLatencyJourneySynthesis()) { + setLowLatencyJourneySynthesis(other.getLowLatencyJourneySynthesis()); + } + 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: + { + lowLatencyJourneySynthesis_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean lowLatencyJourneySynthesis_; + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + @java.lang.Override + public boolean hasLowLatencyJourneySynthesis() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + @java.lang.Override + public boolean getLowLatencyJourneySynthesis() { + return lowLatencyJourneySynthesis_; + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @param value The lowLatencyJourneySynthesis to set. + * @return This builder for chaining. + */ + public Builder setLowLatencyJourneySynthesis(boolean value) { + + lowLatencyJourneySynthesis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Only for Journey voices. If false, the synthesis will be context aware
+     * and have higher latency.
+     * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return This builder for chaining. + */ + public Builder clearLowLatencyJourneySynthesis() { + bitField0_ = (bitField0_ & ~0x00000001); + lowLatencyJourneySynthesis_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) + private static final com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions(); + } + + public static com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedVoiceOptions 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.texttospeech.v1beta1.AdvancedVoiceOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptionsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptionsOrBuilder.java new file mode 100644 index 000000000000..adc9252f0707 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptionsOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +public interface AdvancedVoiceOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return Whether the lowLatencyJourneySynthesis field is set. + */ + boolean hasLowLatencyJourneySynthesis(); + /** + * + * + *
+   * Only for Journey voices. If false, the synthesis will be context aware
+   * and have higher latency.
+   * 
+ * + * optional bool low_latency_journey_synthesis = 1; + * + * @return The lowLatencyJourneySynthesis. + */ + boolean getLowLatencyJourneySynthesis(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParams.java new file mode 100644 index 000000000000..d5bd57183cd0 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParams.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +/** + * + * + *
+ * Pronunciation customization for a phrase.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomPronunciationParams} + */ +public final class CustomPronunciationParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.CustomPronunciationParams) + CustomPronunciationParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomPronunciationParams.newBuilder() to construct. + private CustomPronunciationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomPronunciationParams() { + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomPronunciationParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.class, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder.class); + } + + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding} + */ + public enum PhoneticEncoding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + PHONETIC_ENCODING_UNSPECIFIED(0), + /** + * + * + *
+     * IPA. (e.g. apple -> ˈæpəl )
+     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
+     * 
+ * + * PHONETIC_ENCODING_IPA = 1; + */ + PHONETIC_ENCODING_IPA(1), + /** + * + * + *
+     * X-SAMPA (e.g. apple -> "{p@l" )
+     * https://en.wikipedia.org/wiki/X-SAMPA
+     * 
+ * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + PHONETIC_ENCODING_X_SAMPA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + public static final int PHONETIC_ENCODING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * IPA. (e.g. apple -> ˈæpəl )
+     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
+     * 
+ * + * PHONETIC_ENCODING_IPA = 1; + */ + public static final int PHONETIC_ENCODING_IPA_VALUE = 1; + /** + * + * + *
+     * X-SAMPA (e.g. apple -> "{p@l" )
+     * https://en.wikipedia.org/wiki/X-SAMPA
+     * 
+ * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + public static final int PHONETIC_ENCODING_X_SAMPA_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 PhoneticEncoding 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 PhoneticEncoding forNumber(int value) { + switch (value) { + case 0: + return PHONETIC_ENCODING_UNSPECIFIED; + case 1: + return PHONETIC_ENCODING_IPA; + case 2: + return PHONETIC_ENCODING_X_SAMPA; + 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 PhoneticEncoding findValueByNumber(int number) { + return PhoneticEncoding.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PhoneticEncoding[] VALUES = values(); + + public static PhoneticEncoding 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 PhoneticEncoding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding) + } + + private int bitField0_; + public static final int PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phrase_ = ""; + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + @java.lang.Override + public boolean hasPhrase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + @java.lang.Override + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + 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(); + phrase_ = s; + return s; + } + } + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONETIC_ENCODING_FIELD_NUMBER = 2; + private int phoneticEncoding_ = 0; + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + @java.lang.Override + public boolean hasPhoneticEncoding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding.forNumber( + phoneticEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + .UNRECOGNIZED + : result; + } + + public static final int PRONUNCIATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pronunciation_ = ""; + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + @java.lang.Override + public boolean hasPronunciation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + @java.lang.Override + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + 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(); + pronunciation_ = s; + return s; + } + } + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, phoneticEncoding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pronunciation_); + } + 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.GeneratedMessageV3.computeStringSize(1, phrase_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, phoneticEncoding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pronunciation_); + } + 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.texttospeech.v1beta1.CustomPronunciationParams)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams other = + (com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams) obj; + + if (hasPhrase() != other.hasPhrase()) return false; + if (hasPhrase()) { + if (!getPhrase().equals(other.getPhrase())) return false; + } + if (hasPhoneticEncoding() != other.hasPhoneticEncoding()) return false; + if (hasPhoneticEncoding()) { + if (phoneticEncoding_ != other.phoneticEncoding_) return false; + } + if (hasPronunciation() != other.hasPronunciation()) return false; + if (hasPronunciation()) { + if (!getPronunciation().equals(other.getPronunciation())) 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 (hasPhrase()) { + hash = (37 * hash) + PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPhrase().hashCode(); + } + if (hasPhoneticEncoding()) { + hash = (37 * hash) + PHONETIC_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + phoneticEncoding_; + } + if (hasPronunciation()) { + hash = (37 * hash) + PRONUNCIATION_FIELD_NUMBER; + hash = (53 * hash) + getPronunciation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams 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.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams 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.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.CustomPronunciationParams 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Pronunciation customization for a phrase.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomPronunciationParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.CustomPronunciationParams) + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.class, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams + getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams build() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams buildPartial() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams result = + new com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phrase_ = phrase_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneticEncoding_ = phoneticEncoding_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pronunciation_ = pronunciation_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams other) { + if (other + == com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.getDefaultInstance()) + return this; + if (other.hasPhrase()) { + phrase_ = other.phrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPhoneticEncoding()) { + setPhoneticEncoding(other.getPhoneticEncoding()); + } + if (other.hasPronunciation()) { + pronunciation_ = other.pronunciation_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + phrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + phoneticEncoding_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pronunciation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object phrase_ = ""; + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + public boolean hasPhrase() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @param value The phrase to set. + * @return This builder for chaining. + */ + public Builder setPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhrase() { + phrase_ = getDefaultInstance().getPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The phrase to which the customization will be applied.
+     * The phrase can be multiple words (in the case of proper nouns etc), but
+     * should not span to a whole sentence.
+     * 
+ * + * optional string phrase = 1; + * + * @param value The bytes for phrase to set. + * @return This builder for chaining. + */ + public Builder setPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int phoneticEncoding_ = 0; + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + @java.lang.Override + public boolean hasPhoneticEncoding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The enum numeric value on the wire for phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncodingValue(int value) { + phoneticEncoding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + .forNumber(phoneticEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncoding( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + phoneticEncoding_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The phonetic encoding of the phrase.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearPhoneticEncoding() { + bitField0_ = (bitField0_ & ~0x00000002); + phoneticEncoding_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pronunciation_ = ""; + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + public boolean hasPronunciation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pronunciation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @param value The pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @return This builder for chaining. + */ + public Builder clearPronunciation() { + pronunciation_ = getDefaultInstance().getPronunciation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The pronunciation of the phrase. This must be in the phonetic encoding
+     * specified above.
+     * 
+ * + * optional string pronunciation = 3; + * + * @param value The bytes for pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.CustomPronunciationParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.CustomPronunciationParams) + private static final com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams(); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPronunciationParams 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.texttospeech.v1beta1.CustomPronunciationParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParamsOrBuilder.java new file mode 100644 index 000000000000..34012665ab47 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationParamsOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +public interface CustomPronunciationParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomPronunciationParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return Whether the phrase field is set. + */ + boolean hasPhrase(); + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The phrase. + */ + java.lang.String getPhrase(); + /** + * + * + *
+   * The phrase to which the customization will be applied.
+   * The phrase can be multiple words (in the case of proper nouns etc), but
+   * should not span to a whole sentence.
+   * 
+ * + * optional string phrase = 1; + * + * @return The bytes for phrase. + */ + com.google.protobuf.ByteString getPhraseBytes(); + + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return Whether the phoneticEncoding field is set. + */ + boolean hasPhoneticEncoding(); + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + int getPhoneticEncodingValue(); + /** + * + * + *
+   * The phonetic encoding of the phrase.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding(); + + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return Whether the pronunciation field is set. + */ + boolean hasPronunciation(); + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The pronunciation. + */ + java.lang.String getPronunciation(); + /** + * + * + *
+   * The pronunciation of the phrase. This must be in the phonetic encoding
+   * specified above.
+   * 
+ * + * optional string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + com.google.protobuf.ByteString getPronunciationBytes(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciations.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciations.java new file mode 100644 index 000000000000..b8519af1bf69 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciations.java @@ -0,0 +1,1007 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +/** + * + * + *
+ * A collection of pronunciation customizations.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomPronunciations} + */ +public final class CustomPronunciations extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.CustomPronunciations) + CustomPronunciationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomPronunciations.newBuilder() to construct. + private CustomPronunciations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomPronunciations() { + pronunciations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomPronunciations(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.class, + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder.class); + } + + public static final int PRONUNCIATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + pronunciations_; + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public java.util.List + getPronunciationsList() { + return pronunciations_; + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + return pronunciations_; + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public int getPronunciationsCount() { + return pronunciations_.size(); + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams getPronunciations( + int index) { + return pronunciations_.get(index); + } + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + return pronunciations_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < pronunciations_.size(); i++) { + output.writeMessage(1, pronunciations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < pronunciations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pronunciations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.texttospeech.v1beta1.CustomPronunciations)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.CustomPronunciations other = + (com.google.cloud.texttospeech.v1beta1.CustomPronunciations) obj; + + if (!getPronunciationsList().equals(other.getPronunciationsList())) 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 (getPronunciationsCount() > 0) { + hash = (37 * hash) + PRONUNCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPronunciationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations 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.texttospeech.v1beta1.CustomPronunciations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations 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.texttospeech.v1beta1.CustomPronunciations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.CustomPronunciations 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A collection of pronunciation customizations.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomPronunciations} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.CustomPronunciations) + com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.class, + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.CustomPronunciations.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + } else { + pronunciations_ = null; + pronunciationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations build() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations buildPartial() { + com.google.cloud.texttospeech.v1beta1.CustomPronunciations result = + new com.google.cloud.texttospeech.v1beta1.CustomPronunciations(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations result) { + if (pronunciationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pronunciations_ = java.util.Collections.unmodifiableList(pronunciations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pronunciations_ = pronunciations_; + } else { + result.pronunciations_ = pronunciationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.texttospeech.v1beta1.CustomPronunciations result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.CustomPronunciations) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomPronunciations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.CustomPronunciations other) { + if (other == com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance()) + return this; + if (pronunciationsBuilder_ == null) { + if (!other.pronunciations_.isEmpty()) { + if (pronunciations_.isEmpty()) { + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePronunciationsIsMutable(); + pronunciations_.addAll(other.pronunciations_); + } + onChanged(); + } + } else { + if (!other.pronunciations_.isEmpty()) { + if (pronunciationsBuilder_.isEmpty()) { + pronunciationsBuilder_.dispose(); + pronunciationsBuilder_ = null; + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000001); + pronunciationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPronunciationsFieldBuilder() + : null; + } else { + pronunciationsBuilder_.addAllMessages(other.pronunciations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams m = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.parser(), + extensionRegistry); + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(m); + } else { + pronunciationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + pronunciations_ = java.util.Collections.emptyList(); + + private void ensurePronunciationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pronunciations_ = + new java.util.ArrayList< + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams>(pronunciations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder> + pronunciationsBuilder_; + + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List + getPronunciationsList() { + if (pronunciationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pronunciations_); + } else { + return pronunciationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public int getPronunciationsCount() { + if (pronunciationsBuilder_ == null) { + return pronunciations_.size(); + } else { + return pronunciationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams getPronunciations( + int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder setPronunciations( + int index, com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.set(index, value); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder setPronunciations( + int index, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.set(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + int index, com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(index, value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addPronunciations( + int index, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder addAllPronunciations( + java.lang.Iterable< + ? extends com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams> + values) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pronunciations_); + onChanged(); + } else { + pronunciationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder clearPronunciations() { + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pronunciationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public Builder removePronunciations(int index) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.remove(index); + onChanged(); + } else { + pronunciationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder + getPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + if (pronunciationsBuilder_ != null) { + return pronunciationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pronunciations_); + } + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder + addPronunciationsBuilder() { + return getPronunciationsFieldBuilder() + .addBuilder( + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.getDefaultInstance()); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder + addPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.getDefaultInstance()); + } + /** + * + * + *
+     * The pronunciation customizations to be applied.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + public java.util.List + getPronunciationsBuilderList() { + return getPronunciationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsFieldBuilder() { + if (pronunciationsBuilder_ == null) { + pronunciationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder>( + pronunciations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + pronunciations_ = null; + } + return pronunciationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.CustomPronunciations) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.CustomPronunciations) + private static final com.google.cloud.texttospeech.v1beta1.CustomPronunciations DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.CustomPronunciations(); + } + + public static com.google.cloud.texttospeech.v1beta1.CustomPronunciations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPronunciations 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.texttospeech.v1beta1.CustomPronunciations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationsOrBuilder.java new file mode 100644 index 000000000000..1c7b23b7880f --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomPronunciationsOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +public interface CustomPronunciationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomPronunciations) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + java.util.List + getPronunciationsList(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParams getPronunciations(int index); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + int getPronunciationsCount(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + java.util.List + getPronunciationsOrBuilderList(); + /** + * + * + *
+   * The pronunciation customizations to be applied.
+   * 
+ * + * repeated .google.cloud.texttospeech.v1beta1.CustomPronunciationParams pronunciations = 1; + * + */ + com.google.cloud.texttospeech.v1beta1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java index 2ca073e4afd5..3ee627aeb578 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java @@ -299,7 +299,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -319,7 +319,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The reportedUsage. */ @java.lang.Override @@ -833,7 +833,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -853,7 +853,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The reportedUsage. */ @java.lang.Override @@ -902,7 +902,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @param value The reportedUsage to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setReportedUsage( * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java index b145e8792af0..8fddfb482705 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java @@ -65,7 +65,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=313 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=397 * @return The reportedUsage. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkup.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkup.java new file mode 100644 index 000000000000..479a2d0719f6 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkup.java @@ -0,0 +1,1868 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +/** + * + * + *
+ * A collection of turns for multi-speaker synthesis.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup} + */ +public final class MultiSpeakerMarkup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) + MultiSpeakerMarkupOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultiSpeakerMarkup.newBuilder() to construct. + private MultiSpeakerMarkup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiSpeakerMarkup() { + turns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiSpeakerMarkup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.class, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder.class); + } + + public interface TurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+     * to documentation for available speakers.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + java.lang.String getSpeaker(); + /** + * + * + *
+     * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+     * to documentation for available speakers.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + com.google.protobuf.ByteString getSpeakerBytes(); + + /** + * + * + *
+     * Required. The text to speak.
+     * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+     * Required. The text to speak.
+     * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + } + /** + * + * + *
+   * A Multi-speaker turn.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn} + */ + public static final class Turn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) + TurnOrBuilder { + private static final long serialVersionUID = 0L; + // Use Turn.newBuilder() to construct. + private Turn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Turn() { + speaker_ = ""; + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Turn(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.class, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder.class); + } + + public static final int SPEAKER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object speaker_ = ""; + /** + * + * + *
+     * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+     * to documentation for available speakers.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + @java.lang.Override + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + 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(); + speaker_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+     * to documentation for available speakers.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+     * Required. The text to speak.
+     * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + 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(); + text_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The text to speak.
+     * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speaker_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speaker_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speaker_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speaker_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); + } + 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.texttospeech.v1beta1.MultiSpeakerMarkup.Turn)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn other = + (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) obj; + + if (!getSpeaker().equals(other.getSpeaker())) return false; + if (!getText().equals(other.getText())) 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) + SPEAKER_FIELD_NUMBER; + hash = (53 * hash) + getSpeaker().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn 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.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn 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.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.MultiSpeakerMarkup.Turn 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A Multi-speaker turn.
+     * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.class, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + speaker_ = ""; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn + getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn build() { + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn buildPartial() { + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn result = + new com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.speaker_ = speaker_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn other) { + if (other + == com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.getDefaultInstance()) + return this; + if (!other.getSpeaker().isEmpty()) { + speaker_ = other.speaker_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + speaker_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object speaker_ = ""; + /** + * + * + *
+       * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+       * to documentation for available speakers.
+       * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + speaker_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+       * to documentation for available speakers.
+       * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+       * to documentation for available speakers.
+       * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeaker(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+       * to documentation for available speakers.
+       * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSpeaker() { + speaker_ = getDefaultInstance().getSpeaker(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer
+       * to documentation for available speakers.
+       * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeakerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
+       * Required. The text to speak.
+       * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The text to speak.
+       * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The text to speak.
+       * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The text to speak.
+       * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The text to speak.
+       * 
+ * + * string text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn) + private static final com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn(); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Turn 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.texttospeech.v1beta1.MultiSpeakerMarkup.Turn + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TURNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List turns_; + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getTurnsList() { + return turns_; + } + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder> + getTurnsOrBuilderList() { + return turns_; + } + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn getTurns(int index) { + return turns_.get(index); + } + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder getTurnsOrBuilder( + int index) { + return turns_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(1, turns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, turns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup other = + (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) obj; + + if (!getTurnsList().equals(other.getTurnsList())) 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 (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup 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.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup 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.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.MultiSpeakerMarkup 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A collection of turns for multi-speaker synthesis.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.class, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup build() { + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup buildPartial() { + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup result = + new com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup other) { + if (other == com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance()) + return this; + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000001); + turnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn m = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.parser(), + extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List turns_ = + java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + turns_ = + new java.util.ArrayList( + turns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTurns( + int index, com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTurns( + int index, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns(com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns( + int index, com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns( + int index, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllTurns( + java.lang.Iterable + values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder getTurnsBuilder( + int index) { + return getTurnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder getTurnsOrBuilder( + int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder> + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder addTurnsBuilder() { + return getTurnsFieldBuilder() + .addBuilder( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder addTurnsBuilder( + int index) { + return getTurnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Speaker turns.
+     * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTurnsBuilderList() { + return getTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder> + getTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder>( + turns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) + private static final com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup(); + } + + public static com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiSpeakerMarkup 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.texttospeech.v1beta1.MultiSpeakerMarkup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkupOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkupOrBuilder.java new file mode 100644 index 000000000000..cc3e3deaae2b --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/MultiSpeakerMarkupOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +public interface MultiSpeakerMarkupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getTurnsList(); + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn getTurns(int index); + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getTurnsCount(); + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getTurnsOrBuilderList(); + /** + * + * + *
+   * Required. Speaker turns.
+   * 
+ * + * + * repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder getTurnsOrBuilder( + int index); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java index 03983cd516ec..e420d8bdd567 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java @@ -64,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class); } + private int bitField0_; private int inputSourceCase_ = 0; @SuppressWarnings("serial") @@ -75,6 +76,7 @@ public enum InputSourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT(1), SSML(2), + MULTI_SPEAKER_MARKUP(4), INPUTSOURCE_NOT_SET(0); private final int value; @@ -97,6 +99,8 @@ public static InputSourceCase forNumber(int value) { return TEXT; case 2: return SSML; + case 4: + return MULTI_SPEAKER_MARKUP; case 0: return INPUTSOURCE_NOT_SET; default: @@ -265,6 +269,151 @@ public com.google.protobuf.ByteString getSsmlBytes() { } } + public static final int MULTI_SPEAKER_MARKUP_FIELD_NUMBER = 4; + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return Whether the multiSpeakerMarkup field is set. + */ + @java.lang.Override + public boolean hasMultiSpeakerMarkup() { + return inputSourceCase_ == 4; + } + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return The multiSpeakerMarkup. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getMultiSpeakerMarkup() { + if (inputSourceCase_ == 4) { + return (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_; + } + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder + getMultiSpeakerMarkupOrBuilder() { + if (inputSourceCase_ == 4) { + return (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_; + } + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + + public static final int CUSTOM_PRONUNCIATIONS_FIELD_NUMBER = 3; + private com.google.cloud.texttospeech.v1beta1.CustomPronunciations customPronunciations_; + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + @java.lang.Override + public boolean hasCustomPronunciations() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations getCustomPronunciations() { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder + getCustomPronunciationsOrBuilder() { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -285,6 +434,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCustomPronunciations()); + } + if (inputSourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_); + } getUnknownFields().writeTo(output); } @@ -300,6 +456,15 @@ public int getSerializedSize() { if (inputSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomPronunciations()); + } + if (inputSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -316,6 +481,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.texttospeech.v1beta1.SynthesisInput other = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; + if (hasCustomPronunciations() != other.hasCustomPronunciations()) return false; + if (hasCustomPronunciations()) { + if (!getCustomPronunciations().equals(other.getCustomPronunciations())) return false; + } if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: @@ -324,6 +493,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getSsml().equals(other.getSsml())) return false; break; + case 4: + if (!getMultiSpeakerMarkup().equals(other.getMultiSpeakerMarkup())) return false; + break; case 0: default: } @@ -338,6 +510,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomPronunciations()) { + hash = (37 * hash) + CUSTOM_PRONUNCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomPronunciations().hashCode(); + } switch (inputSourceCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -347,6 +523,10 @@ public int hashCode() { hash = (37 * hash) + SSML_FIELD_NUMBER; hash = (53 * hash) + getSsml().hashCode(); break; + case 4: + hash = (37 * hash) + MULTI_SPEAKER_MARKUP_FIELD_NUMBER; + hash = (53 * hash) + getMultiSpeakerMarkup().hashCode(); + break; case 0: default: } @@ -482,16 +662,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomPronunciationsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + if (multiSpeakerMarkupBuilder_ != null) { + multiSpeakerMarkupBuilder_.clear(); + } + customPronunciations_ = null; + if (customPronunciationsBuilder_ != null) { + customPronunciationsBuilder_.dispose(); + customPronunciationsBuilder_ = null; + } inputSourceCase_ = 0; inputSource_ = null; return this; @@ -531,11 +728,23 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput buildPartial() { private void buildPartial0(com.google.cloud.texttospeech.v1beta1.SynthesisInput result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customPronunciations_ = + customPronunciationsBuilder_ == null + ? customPronunciations_ + : customPronunciationsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.texttospeech.v1beta1.SynthesisInput result) { result.inputSourceCase_ = inputSourceCase_; result.inputSource_ = this.inputSource_; + if (inputSourceCase_ == 4 && multiSpeakerMarkupBuilder_ != null) { + result.inputSource_ = multiSpeakerMarkupBuilder_.build(); + } } @java.lang.Override @@ -584,6 +793,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesisInput other) { if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance()) return this; + if (other.hasCustomPronunciations()) { + mergeCustomPronunciations(other.getCustomPronunciations()); + } switch (other.getInputSourceCase()) { case TEXT: { @@ -599,6 +811,11 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesisInput ot onChanged(); break; } + case MULTI_SPEAKER_MARKUP: + { + mergeMultiSpeakerMarkup(other.getMultiSpeakerMarkup()); + break; + } case INPUTSOURCE_NOT_SET: { break; @@ -644,6 +861,20 @@ public Builder mergeFrom( inputSource_ = s; break; } // case 18 + case 26: + { + input.readMessage( + getCustomPronunciationsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + getMultiSpeakerMarkupFieldBuilder().getBuilder(), extensionRegistry); + inputSourceCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -969,6 +1200,539 @@ public Builder setSsmlBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder> + multiSpeakerMarkupBuilder_; + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return Whether the multiSpeakerMarkup field is set. + */ + @java.lang.Override + public boolean hasMultiSpeakerMarkup() { + return inputSourceCase_ == 4; + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return The multiSpeakerMarkup. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getMultiSpeakerMarkup() { + if (multiSpeakerMarkupBuilder_ == null) { + if (inputSourceCase_ == 4) { + return (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_; + } + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } else { + if (inputSourceCase_ == 4) { + return multiSpeakerMarkupBuilder_.getMessage(); + } + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + public Builder setMultiSpeakerMarkup( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup value) { + if (multiSpeakerMarkupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSource_ = value; + onChanged(); + } else { + multiSpeakerMarkupBuilder_.setMessage(value); + } + inputSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + public Builder setMultiSpeakerMarkup( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder builderForValue) { + if (multiSpeakerMarkupBuilder_ == null) { + inputSource_ = builderForValue.build(); + onChanged(); + } else { + multiSpeakerMarkupBuilder_.setMessage(builderForValue.build()); + } + inputSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + public Builder mergeMultiSpeakerMarkup( + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup value) { + if (multiSpeakerMarkupBuilder_ == null) { + if (inputSourceCase_ == 4 + && inputSource_ + != com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance()) { + inputSource_ = + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.newBuilder( + (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_) + .mergeFrom(value) + .buildPartial(); + } else { + inputSource_ = value; + } + onChanged(); + } else { + if (inputSourceCase_ == 4) { + multiSpeakerMarkupBuilder_.mergeFrom(value); + } else { + multiSpeakerMarkupBuilder_.setMessage(value); + } + } + inputSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + public Builder clearMultiSpeakerMarkup() { + if (multiSpeakerMarkupBuilder_ == null) { + if (inputSourceCase_ == 4) { + inputSourceCase_ = 0; + inputSource_ = null; + onChanged(); + } + } else { + if (inputSourceCase_ == 4) { + inputSourceCase_ = 0; + inputSource_ = null; + } + multiSpeakerMarkupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder + getMultiSpeakerMarkupBuilder() { + return getMultiSpeakerMarkupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder + getMultiSpeakerMarkupOrBuilder() { + if ((inputSourceCase_ == 4) && (multiSpeakerMarkupBuilder_ != null)) { + return multiSpeakerMarkupBuilder_.getMessageOrBuilder(); + } else { + if (inputSourceCase_ == 4) { + return (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_; + } + return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + } + /** + * + * + *
+     * The multi-speaker input to be synthesized. Only applicable for
+     * multi-speaker synthesis.
+     * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder> + getMultiSpeakerMarkupFieldBuilder() { + if (multiSpeakerMarkupBuilder_ == null) { + if (!(inputSourceCase_ == 4)) { + inputSource_ = + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); + } + multiSpeakerMarkupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Builder, + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder>( + (com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup) inputSource_, + getParentForChildren(), + isClean()); + inputSource_ = null; + } + inputSourceCase_ = 4; + onChanged(); + return multiSpeakerMarkupBuilder_; + } + + private com.google.cloud.texttospeech.v1beta1.CustomPronunciations customPronunciations_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciations, + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder> + customPronunciationsBuilder_; + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + public boolean hasCustomPronunciations() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations getCustomPronunciations() { + if (customPronunciationsBuilder_ == null) { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } else { + return customPronunciationsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPronunciations( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations value) { + if (customPronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customPronunciations_ = value; + } else { + customPronunciationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPronunciations( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder builderForValue) { + if (customPronunciationsBuilder_ == null) { + customPronunciations_ = builderForValue.build(); + } else { + customPronunciationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomPronunciations( + com.google.cloud.texttospeech.v1beta1.CustomPronunciations value) { + if (customPronunciationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && customPronunciations_ != null + && customPronunciations_ + != com.google.cloud.texttospeech.v1beta1.CustomPronunciations + .getDefaultInstance()) { + getCustomPronunciationsBuilder().mergeFrom(value); + } else { + customPronunciations_ = value; + } + } else { + customPronunciationsBuilder_.mergeFrom(value); + } + if (customPronunciations_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomPronunciations() { + bitField0_ = (bitField0_ & ~0x00000008); + customPronunciations_ = null; + if (customPronunciationsBuilder_ != null) { + customPronunciationsBuilder_.dispose(); + customPronunciationsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder + getCustomPronunciationsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCustomPronunciationsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder + getCustomPronunciationsOrBuilder() { + if (customPronunciationsBuilder_ != null) { + return customPronunciationsBuilder_.getMessageOrBuilder(); + } else { + return customPronunciations_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomPronunciations.getDefaultInstance() + : customPronunciations_; + } + } + /** + * + * + *
+     * Optional. The pronunciation customizations to be applied to the input. If
+     * this is set, the input will be synthesized using the given pronunciation
+     * customizations.
+     *
+     * The initial support will be for EFIGS (English, French,
+     * Italian, German, Spanish) languages, as provided in
+     * VoiceSelectionParams. Journey and Instant Clone voices are
+     * not supported yet.
+     *
+     * In order to customize the pronunciation of a phrase, there must be an exact
+     * match of the phrase in the input types. If using SSML, the phrase must not
+     * be inside a phoneme tag (entirely or partially).
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciations, + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder> + getCustomPronunciationsFieldBuilder() { + if (customPronunciationsBuilder_ == null) { + customPronunciationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.CustomPronunciations, + com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder, + com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder>( + getCustomPronunciations(), getParentForChildren(), isClean()); + customPronunciations_ = null; + } + return customPronunciationsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java index 12f3b3e91429..83566777e7a0 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java @@ -110,5 +110,119 @@ public interface SynthesisInputOrBuilder */ com.google.protobuf.ByteString getSsmlBytes(); + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return Whether the multiSpeakerMarkup field is set. + */ + boolean hasMultiSpeakerMarkup(); + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + * + * @return The multiSpeakerMarkup. + */ + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getMultiSpeakerMarkup(); + /** + * + * + *
+   * The multi-speaker input to be synthesized. Only applicable for
+   * multi-speaker synthesis.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup multi_speaker_markup = 4; + */ + com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder + getMultiSpeakerMarkupOrBuilder(); + + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPronunciations field is set. + */ + boolean hasCustomPronunciations(); + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPronunciations. + */ + com.google.cloud.texttospeech.v1beta1.CustomPronunciations getCustomPronunciations(); + /** + * + * + *
+   * Optional. The pronunciation customizations to be applied to the input. If
+   * this is set, the input will be synthesized using the given pronunciation
+   * customizations.
+   *
+   * The initial support will be for EFIGS (English, French,
+   * Italian, German, Spanish) languages, as provided in
+   * VoiceSelectionParams. Journey and Instant Clone voices are
+   * not supported yet.
+   *
+   * In order to customize the pronunciation of a phrase, there must be an exact
+   * match of the phrase in the input types. If using SSML, the phrase must not
+   * be inside a phoneme tag (entirely or partially).
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomPronunciations custom_pronunciations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.texttospeech.v1beta1.CustomPronunciationsOrBuilder + getCustomPronunciationsOrBuilder(); + com.google.cloud.texttospeech.v1beta1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java index b757d418c8ff..f312bf16feaa 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java @@ -120,7 +120,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -138,7 +138,7 @@ public boolean hasLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Override @@ -808,7 +808,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Deprecated @@ -825,7 +825,7 @@ public boolean hasLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java index 5246761eb143..f728ed46a9b3 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java @@ -69,7 +69,7 @@ public interface SynthesizeLongAudioMetadataOrBuilder * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return Whether the lastUpdateTime field is set. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface SynthesizeLongAudioMetadataOrBuilder * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is - * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=85 + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=84 * @return The lastUpdateTime. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java index 208323e5c0c9..9d8ee252adc8 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java @@ -487,6 +487,63 @@ public int getEnableTimePointingValue(int index) { private int enableTimePointingMemoizedSerializedSize; + public static final int ADVANCED_VOICE_OPTIONS_FIELD_NUMBER = 8; + private com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advancedVoiceOptions_; + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + @java.lang.Override + public boolean hasAdvancedVoiceOptions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions getAdvancedVoiceOptions() { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder + getAdvancedVoiceOptionsOrBuilder() { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -518,6 +575,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < enableTimePointing_.size(); i++) { output.writeEnumNoTag(enableTimePointing_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getAdvancedVoiceOptions()); + } getUnknownFields().writeTo(output); } @@ -549,6 +609,10 @@ public int getSerializedSize() { } enableTimePointingMemoizedSerializedSize = dataSize; } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAdvancedVoiceOptions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -578,6 +642,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAudioConfig().equals(other.getAudioConfig())) return false; } if (!enableTimePointing_.equals(other.enableTimePointing_)) return false; + if (hasAdvancedVoiceOptions() != other.hasAdvancedVoiceOptions()) return false; + if (hasAdvancedVoiceOptions()) { + if (!getAdvancedVoiceOptions().equals(other.getAdvancedVoiceOptions())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -605,6 +673,10 @@ public int hashCode() { hash = (37 * hash) + ENABLE_TIME_POINTING_FIELD_NUMBER; hash = (53 * hash) + enableTimePointing_.hashCode(); } + if (hasAdvancedVoiceOptions()) { + hash = (37 * hash) + ADVANCED_VOICE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedVoiceOptions().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -749,6 +821,7 @@ private void maybeForceBuilderInitialization() { getInputFieldBuilder(); getVoiceFieldBuilder(); getAudioConfigFieldBuilder(); + getAdvancedVoiceOptionsFieldBuilder(); } } @@ -773,6 +846,11 @@ public Builder clear() { } enableTimePointing_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + advancedVoiceOptions_ = null; + if (advancedVoiceOptionsBuilder_ != null) { + advancedVoiceOptionsBuilder_.dispose(); + advancedVoiceOptionsBuilder_ = null; + } return this; } @@ -835,6 +913,13 @@ private void buildPartial0( audioConfigBuilder_ == null ? audioConfig_ : audioConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.advancedVoiceOptions_ = + advancedVoiceOptionsBuilder_ == null + ? advancedVoiceOptions_ + : advancedVoiceOptionsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -904,6 +989,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechR } onChanged(); } + if (other.hasAdvancedVoiceOptions()) { + mergeAdvancedVoiceOptions(other.getAdvancedVoiceOptions()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -967,6 +1055,13 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 34 + case 66: + { + input.readMessage( + getAdvancedVoiceOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1859,6 +1954,216 @@ public Builder addAllEnableTimePointingValue(java.lang.Iterable + advancedVoiceOptionsBuilder_; + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + public boolean hasAdvancedVoiceOptions() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions getAdvancedVoiceOptions() { + if (advancedVoiceOptionsBuilder_ == null) { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } else { + return advancedVoiceOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder setAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions value) { + if (advancedVoiceOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedVoiceOptions_ = value; + } else { + advancedVoiceOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder setAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder builderForValue) { + if (advancedVoiceOptionsBuilder_ == null) { + advancedVoiceOptions_ = builderForValue.build(); + } else { + advancedVoiceOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder mergeAdvancedVoiceOptions( + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions value) { + if (advancedVoiceOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && advancedVoiceOptions_ != null + && advancedVoiceOptions_ + != com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions + .getDefaultInstance()) { + getAdvancedVoiceOptionsBuilder().mergeFrom(value); + } else { + advancedVoiceOptions_ = value; + } + } else { + advancedVoiceOptionsBuilder_.mergeFrom(value); + } + if (advancedVoiceOptions_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public Builder clearAdvancedVoiceOptions() { + bitField0_ = (bitField0_ & ~0x00000010); + advancedVoiceOptions_ = null; + if (advancedVoiceOptionsBuilder_ != null) { + advancedVoiceOptionsBuilder_.dispose(); + advancedVoiceOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder + getAdvancedVoiceOptionsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAdvancedVoiceOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + public com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder + getAdvancedVoiceOptionsOrBuilder() { + if (advancedVoiceOptionsBuilder_ != null) { + return advancedVoiceOptionsBuilder_.getMessageOrBuilder(); + } else { + return advancedVoiceOptions_ == null + ? com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.getDefaultInstance() + : advancedVoiceOptions_; + } + } + /** + * + * + *
+     * Advanced voice options.
+     * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder> + getAdvancedVoiceOptionsFieldBuilder() { + if (advancedVoiceOptionsBuilder_ == null) { + advancedVoiceOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.Builder, + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder>( + getAdvancedVoiceOptions(), getParentForChildren(), isClean()); + advancedVoiceOptions_ = null; + } + return advancedVoiceOptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java index 55705b6e4125..7c75e4799de7 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java @@ -221,4 +221,46 @@ com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getE * @return The enum numeric value on the wire of enableTimePointing at the given index. */ int getEnableTimePointingValue(int index); + + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return Whether the advancedVoiceOptions field is set. + */ + boolean hasAdvancedVoiceOptions(); + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + * + * @return The advancedVoiceOptions. + */ + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions getAdvancedVoiceOptions(); + /** + * + * + *
+   * Advanced voice options.
+   * 
+ * + * + * optional .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions advanced_voice_options = 8; + * + */ + com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsOrBuilder + getAdvancedVoiceOptionsOrBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java index c55617a3fed7..dd2db570c4e7 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java @@ -79,14 +79,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ta\202\323\344\223\002A\"\n\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNS" - + "PECIFIED\020\000\022\r\n\tSSML_MARK\020\001\"@\n\016SynthesisIn" - + "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014i" - + "nput_source\"\325\001\n\024VoiceSelectionParams\022\032\n\r" - + "language_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022G" - + "\n\013ssml_gender\030\003 \001(\01622.google.cloud.textt" - + "ospeech.v1beta1.SsmlVoiceGender\022J\n\014custo" - + "m_voice\030\004 \001(\01324.google.cloud.texttospeec" - + "h.v1beta1.CustomVoiceParams\"\366\001\n\013AudioCon" - + "fig\022M\n\016audio_encoding\030\001 \001(\01620.google.clo" - + "ud.texttospeech.v1beta1.AudioEncodingB\003\340" - + "A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pit" - + "ch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001" - + "B\006\340A\004\340A\001\022\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001" - + "\022\"\n\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"\366\001\n" - + "\021CustomVoiceParams\0222\n\005model\030\001 \001(\tB#\340A\002\372A" - + "\035\n\033automl.googleapis.com/Model\022a\n\016report" - + "ed_usage\030\003 \001(\0162B.google.cloud.texttospee" - + "ch.v1beta1.CustomVoiceParams.ReportedUsa" - + "geB\005\030\001\340A\001\"J\n\rReportedUsage\022\036\n\032REPORTED_U" - + "SAGE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n\007OFFL" - + "INE\020\002\"\271\001\n\030SynthesizeSpeechResponse\022\025\n\rau" - + "dio_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,." - + "google.cloud.texttospeech.v1beta1.Timepo" - + "int\022D\n\014audio_config\030\004 \001(\0132..google.cloud" - + ".texttospeech.v1beta1.AudioConfig\"4\n\tTim" - + "epoint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_second" - + "s\030\003 \001(\001\"h\n\031StreamingSynthesizeConfig\022K\n\005" - + "voice\030\001 \001(\01327.google.cloud.texttospeech." - + "v1beta1.VoiceSelectionParamsB\003\340A\002\"9\n\027Str" - + "eamingSynthesisInput\022\016\n\004text\030\001 \001(\tH\000B\016\n\014" - + "input_source\"\330\001\n\032StreamingSynthesizeRequ" - + "est\022X\n\020streaming_config\030\001 \001(\0132<.google.c" - + "loud.texttospeech.v1beta1.StreamingSynth" - + "esizeConfigH\000\022K\n\005input\030\002 \001(\0132:.google.cl" - + "oud.texttospeech.v1beta1.StreamingSynthe" - + "sisInputH\000B\023\n\021streaming_request\"4\n\033Strea" - + "mingSynthesizeResponse\022\025\n\raudio_content\030" - + "\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" - + "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020" - + "\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO" - + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" - + "\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n" - + "\005MULAW\020\005\022\010\n\004ALAW\020\0062\357\004\n\014TextToSpeech\022\242\001\n\n" - + "ListVoices\0224.google.cloud.texttospeech.v" - + "1beta1.ListVoicesRequest\0325.google.cloud." - + "texttospeech.v1beta1.ListVoicesResponse\"" - + "\'\332A\rlanguage_code\202\323\344\223\002\021\022\017/v1beta1/voices" - + "\022\313\001\n\020SynthesizeSpeech\022:.google.cloud.tex" - + "ttospeech.v1beta1.SynthesizeSpeechReques" - + "t\032;.google.cloud.texttospeech.v1beta1.Sy" - + "nthesizeSpeechResponse\">\332A\030input,voice,a" - + "udio_config\202\323\344\223\002\035\"\030/v1beta1/text:synthes" - + "ize:\001*\022\232\001\n\023StreamingSynthesize\022=.google." - + "cloud.texttospeech.v1beta1.StreamingSynt" - + "hesizeRequest\032>.google.cloud.texttospeec" - + "h.v1beta1.StreamingSynthesizeResponse\"\000(" - + "\0010\001\032O\312A\033texttospeech.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\330\002\n%com.google.cloud.texttospeech.v" - + "1beta1B\021TextToSpeechProtoP\001ZIcloud.googl" - + "e.com/go/texttospeech/apiv1beta1/texttos" - + "peechpb;texttospeechpb\370\001\001\242\002\004CTTS\252\002!Googl" - + "e.Cloud.TextToSpeech.V1Beta1\312\002!Google\\Cl" - + "oud\\TextToSpeech\\V1beta1\352\002$Google::Cloud" - + "::TextToSpeech::V1beta1\352AU\n\033automl.googl" - + "eapis.com/Model\0226projects/{project}/loca" - + "tions/{location}/models/{model}b\006proto3" + + "\030\004 \001(\005\"d\n\024AdvancedVoiceOptions\022*\n\035low_la" + + "tency_journey_synthesis\030\001 \001(\010H\000\210\001\001B \n\036_l" + + "ow_latency_journey_synthesis\"\231\004\n\027Synthes" + + "izeSpeechRequest\022E\n\005input\030\001 \001(\01321.google" + + ".cloud.texttospeech.v1beta1.SynthesisInp" + + "utB\003\340A\002\022K\n\005voice\030\002 \001(\01327.google.cloud.te" + + "xttospeech.v1beta1.VoiceSelectionParamsB" + + "\003\340A\002\022I\n\014audio_config\030\003 \001(\0132..google.clou" + + "d.texttospeech.v1beta1.AudioConfigB\003\340A\002\022" + + "f\n\024enable_time_pointing\030\004 \003(\0162H.google.c" + + "loud.texttospeech.v1beta1.SynthesizeSpee" + + "chRequest.TimepointType\022\\\n\026advanced_voic" + + "e_options\030\010 \001(\01327.google.cloud.texttospe" + + "ech.v1beta1.AdvancedVoiceOptionsH\000\210\001\001\">\n" + + "\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNSPECI" + + "FIED\020\000\022\r\n\tSSML_MARK\020\001B\031\n\027_advanced_voice" + + "_options\"\337\002\n\031CustomPronunciationParams\022\023" + + "\n\006phrase\030\001 \001(\tH\000\210\001\001\022m\n\021phonetic_encoding" + + "\030\002 \001(\0162M.google.cloud.texttospeech.v1bet" + + "a1.CustomPronunciationParams.PhoneticEnc" + + "odingH\001\210\001\001\022\032\n\rpronunciation\030\003 \001(\tH\002\210\001\001\"o" + + "\n\020PhoneticEncoding\022!\n\035PHONETIC_ENCODING_" + + "UNSPECIFIED\020\000\022\031\n\025PHONETIC_ENCODING_IPA\020\001" + + "\022\035\n\031PHONETIC_ENCODING_X_SAMPA\020\002B\t\n\007_phra" + + "seB\024\n\022_phonetic_encodingB\020\n\016_pronunciati" + + "on\"l\n\024CustomPronunciations\022T\n\016pronunciat" + + "ions\030\001 \003(\0132<.google.cloud.texttospeech.v" + + "1beta1.CustomPronunciationParams\"\225\001\n\022Mul" + + "tiSpeakerMarkup\022N\n\005turns\030\001 \003(\0132:.google." + + "cloud.texttospeech.v1beta1.MultiSpeakerM" + + "arkup.TurnB\003\340A\002\032/\n\004Turn\022\024\n\007speaker\030\001 \001(\t" + + "B\003\340A\002\022\021\n\004text\030\002 \001(\tB\003\340A\002\"\364\001\n\016SynthesisIn" + + "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022U\n\024m" + + "ulti_speaker_markup\030\004 \001(\01325.google.cloud" + + ".texttospeech.v1beta1.MultiSpeakerMarkup" + + "H\000\022[\n\025custom_pronunciations\030\003 \001(\01327.goog" + + "le.cloud.texttospeech.v1beta1.CustomPron" + + "unciationsB\003\340A\001B\016\n\014input_source\"\244\002\n\024Voic" + + "eSelectionParams\022\032\n\rlanguage_code\030\001 \001(\tB" + + "\003\340A\002\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\0162" + + "2.google.cloud.texttospeech.v1beta1.Ssml" + + "VoiceGender\022J\n\014custom_voice\030\004 \001(\01324.goog" + + "le.cloud.texttospeech.v1beta1.CustomVoic" + + "eParams\022M\n\013voice_clone\030\005 \001(\01323.google.cl" + + "oud.texttospeech.v1beta1.VoiceCloneParam" + + "sB\003\340A\001\"\366\001\n\013AudioConfig\022M\n\016audio_encoding" + + "\030\001 \001(\01620.google.cloud.texttospeech.v1bet" + + "a1.AudioEncodingB\003\340A\002\022\035\n\rspeaking_rate\030\002" + + " \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016v" + + "olume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022\036\n\021sample_ra" + + "te_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effects_profile_i" + + "d\030\006 \003(\tB\006\340A\004\340A\001\"\366\001\n\021CustomVoiceParams\0222\n" + + "\005model\030\001 \001(\tB#\340A\002\372A\035\n\033automl.googleapis." + + "com/Model\022a\n\016reported_usage\030\003 \001(\0162B.goog" + + "le.cloud.texttospeech.v1beta1.CustomVoic" + + "eParams.ReportedUsageB\005\030\001\340A\001\"J\n\rReported" + + "Usage\022\036\n\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014\n" + + "\010REALTIME\020\001\022\013\n\007OFFLINE\020\002\"2\n\020VoiceClonePa" + + "rams\022\036\n\021voice_cloning_key\030\001 \001(\tB\003\340A\002\"\271\001\n" + + "\030SynthesizeSpeechResponse\022\025\n\raudio_conte" + + "nt\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,.google.cl" + + "oud.texttospeech.v1beta1.Timepoint\022D\n\014au" + + "dio_config\030\004 \001(\0132..google.cloud.texttosp" + + "eech.v1beta1.AudioConfig\"4\n\tTimepoint\022\021\n" + + "\tmark_name\030\004 \001(\t\022\024\n\014time_seconds\030\003 \001(\001\"h" + + "\n\031StreamingSynthesizeConfig\022K\n\005voice\030\001 \001" + + "(\01327.google.cloud.texttospeech.v1beta1.V" + + "oiceSelectionParamsB\003\340A\002\"9\n\027StreamingSyn" + + "thesisInput\022\016\n\004text\030\001 \001(\tH\000B\016\n\014input_sou" + + "rce\"\330\001\n\032StreamingSynthesizeRequest\022X\n\020st" + + "reaming_config\030\001 \001(\0132<.google.cloud.text" + + "tospeech.v1beta1.StreamingSynthesizeConf" + + "igH\000\022K\n\005input\030\002 \001(\0132:.google.cloud.textt" + + "ospeech.v1beta1.StreamingSynthesisInputH" + + "\000B\023\n\021streaming_request\"4\n\033StreamingSynth" + + "esizeResponse\022\025\n\raudio_content\030\001 \001(\014*W\n\017" + + "SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNS" + + "PECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NEUT" + + "RAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING" + + "_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022\017\n" + + "\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022" + + "\010\n\004ALAW\020\0062\357\004\n\014TextToSpeech\022\242\001\n\nListVoice" + + "s\0224.google.cloud.texttospeech.v1beta1.Li" + + "stVoicesRequest\0325.google.cloud.texttospe" + + "ech.v1beta1.ListVoicesResponse\"\'\332A\rlangu" + + "age_code\202\323\344\223\002\021\022\017/v1beta1/voices\022\313\001\n\020Synt" + + "hesizeSpeech\022:.google.cloud.texttospeech" + + ".v1beta1.SynthesizeSpeechRequest\032;.googl" + + "e.cloud.texttospeech.v1beta1.SynthesizeS" + + "peechResponse\">\332A\030input,voice,audio_conf" + + "ig\202\323\344\223\002\035\"\030/v1beta1/text:synthesize:\001*\022\232\001" + + "\n\023StreamingSynthesize\022=.google.cloud.tex" + + "ttospeech.v1beta1.StreamingSynthesizeReq" + + "uest\032>.google.cloud.texttospeech.v1beta1" + + ".StreamingSynthesizeResponse\"\000(\0010\001\032O\312A\033t" + + "exttospeech.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformB\325\002\n%" + + "com.google.cloud.texttospeech.v1beta1B\021T" + + "extToSpeechProtoP\001ZIcloud.google.com/go/" + + "texttospeech/apiv1beta1/texttospeechpb;t" + + "exttospeechpb\242\002\004CTTS\252\002!Google.Cloud.Text" + + "ToSpeech.V1Beta1\312\002!Google\\Cloud\\TextToSp" + + "eech\\V1beta1\352\002$Google::Cloud::TextToSpee" + + "ch::V1beta1\352AU\n\033automl.googleapis.com/Mo" + + "del\0226projects/{project}/locations/{locat" + + "ion}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,32 +269,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = + internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_AdvancedVoiceOptions_descriptor, + new java.lang.String[] { + "LowLatencyJourneySynthesis", + }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor, new java.lang.String[] { - "Input", "Voice", "AudioConfig", "EnableTimePointing", + "Input", "Voice", "AudioConfig", "EnableTimePointing", "AdvancedVoiceOptions", + }); + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciationParams_descriptor, + new java.lang.String[] { + "Phrase", "PhoneticEncoding", "Pronunciation", + }); + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_CustomPronunciations_descriptor, + new java.lang.String[] { + "Pronunciations", + }); + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor, + new java.lang.String[] { + "Turns", + }); + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_descriptor = + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_MultiSpeakerMarkup_Turn_descriptor, + new java.lang.String[] { + "Speaker", "Text", }); internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, new java.lang.String[] { - "Text", "Ssml", "InputSource", + "Text", "Ssml", "MultiSpeakerMarkup", "CustomPronunciations", "InputSource", }); internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor, new java.lang.String[] { - "LanguageCode", "Name", "SsmlGender", "CustomVoice", + "LanguageCode", "Name", "SsmlGender", "CustomVoice", "VoiceClone", }); internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor, @@ -254,15 +349,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EffectsProfileId", }); internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor, new java.lang.String[] { "Model", "ReportedUsage", }); + internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_descriptor, + new java.lang.String[] { + "VoiceCloningKey", + }); internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor, @@ -270,7 +373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioContent", "Timepoints", "AudioConfig", }); internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor, @@ -278,7 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MarkName", "TimeSeconds", }); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeConfig_descriptor, @@ -286,7 +389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Voice", }); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesisInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesisInput_descriptor, @@ -294,7 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "InputSource", }); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeRequest_descriptor, @@ -302,7 +405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StreamingConfig", "Input", "StreamingRequest", }); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_StreamingSynthesizeResponse_descriptor, diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParams.java new file mode 100644 index 000000000000..674a9bc81d32 --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParams.java @@ -0,0 +1,626 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +/** + * + * + *
+ * The configuration of Voice Clone feature.
+ * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceCloneParams} + */ +public final class VoiceCloneParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.VoiceCloneParams) + VoiceCloneParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use VoiceCloneParams.newBuilder() to construct. + private VoiceCloneParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VoiceCloneParams() { + voiceCloningKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoiceCloneParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.class, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder.class); + } + + public static final int VOICE_CLONING_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceCloningKey_ = ""; + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + @java.lang.Override + public java.lang.String getVoiceCloningKey() { + java.lang.Object ref = voiceCloningKey_; + 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(); + voiceCloningKey_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceCloningKeyBytes() { + java.lang.Object ref = voiceCloningKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceCloningKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voiceCloningKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voiceCloningKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(voiceCloningKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voiceCloningKey_); + } + 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.texttospeech.v1beta1.VoiceCloneParams)) { + return super.equals(obj); + } + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams other = + (com.google.cloud.texttospeech.v1beta1.VoiceCloneParams) obj; + + if (!getVoiceCloningKey().equals(other.getVoiceCloningKey())) 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) + VOICE_CLONING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getVoiceCloningKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams 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.texttospeech.v1beta1.VoiceCloneParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams 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.texttospeech.v1beta1.VoiceCloneParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.texttospeech.v1beta1.VoiceCloneParams 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The configuration of Voice Clone feature.
+   * 
+ * + * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceCloneParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.VoiceCloneParams) + com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.class, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder.class); + } + + // Construct using com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceCloningKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceCloneParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams getDefaultInstanceForType() { + return com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams build() { + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams buildPartial() { + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams result = + new com.google.cloud.texttospeech.v1beta1.VoiceCloneParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.texttospeech.v1beta1.VoiceCloneParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceCloningKey_ = voiceCloningKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.texttospeech.v1beta1.VoiceCloneParams) { + return mergeFrom((com.google.cloud.texttospeech.v1beta1.VoiceCloneParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.VoiceCloneParams other) { + if (other == com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance()) + return this; + if (!other.getVoiceCloningKey().isEmpty()) { + voiceCloningKey_ = other.voiceCloningKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + voiceCloningKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object voiceCloningKey_ = ""; + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + public java.lang.String getVoiceCloningKey() { + java.lang.Object ref = voiceCloningKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceCloningKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + public com.google.protobuf.ByteString getVoiceCloningKeyBytes() { + java.lang.Object ref = voiceCloningKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceCloningKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The voiceCloningKey to set. + * @return This builder for chaining. + */ + public Builder setVoiceCloningKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceCloningKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceCloningKey() { + voiceCloningKey_ = getDefaultInstance().getVoiceCloningKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Created by GenerateVoiceCloningKey.
+     * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for voiceCloningKey to set. + * @return This builder for chaining. + */ + public Builder setVoiceCloningKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceCloningKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.VoiceCloneParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.VoiceCloneParams) + private static final com.google.cloud.texttospeech.v1beta1.VoiceCloneParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.VoiceCloneParams(); + } + + public static com.google.cloud.texttospeech.v1beta1.VoiceCloneParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceCloneParams 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.texttospeech.v1beta1.VoiceCloneParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParamsOrBuilder.java new file mode 100644 index 000000000000..aacb2e89581b --- /dev/null +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceCloneParamsOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.texttospeech.v1beta1; + +public interface VoiceCloneParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.VoiceCloneParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The voiceCloningKey. + */ + java.lang.String getVoiceCloningKey(); + /** + * + * + *
+   * Required. Created by GenerateVoiceCloningKey.
+   * 
+ * + * string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for voiceCloningKey. + */ + com.google.protobuf.ByteString getVoiceCloningKeyBytes(); +} diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java index a8eaca1ba823..3a0d83da0bcf 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java @@ -294,6 +294,68 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice() : customVoice_; } + public static final int VOICE_CLONE_FIELD_NUMBER = 5; + private com.google.cloud.texttospeech.v1beta1.VoiceCloneParams voiceClone_; + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + @java.lang.Override + public boolean hasVoiceClone() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams getVoiceClone() { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder() { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -322,6 +384,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCustomVoice()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getVoiceClone()); + } getUnknownFields().writeTo(output); } @@ -345,6 +410,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomVoice()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVoiceClone()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -368,6 +436,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCustomVoice()) { if (!getCustomVoice().equals(other.getCustomVoice())) return false; } + if (hasVoiceClone() != other.hasVoiceClone()) return false; + if (hasVoiceClone()) { + if (!getVoiceClone().equals(other.getVoiceClone())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,6 +461,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_VOICE_FIELD_NUMBER; hash = (53 * hash) + getCustomVoice().hashCode(); } + if (hasVoiceClone()) { + hash = (37 * hash) + VOICE_CLONE_FIELD_NUMBER; + hash = (53 * hash) + getVoiceClone().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -531,6 +607,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomVoiceFieldBuilder(); + getVoiceCloneFieldBuilder(); } } @@ -546,6 +623,11 @@ public Builder clear() { customVoiceBuilder_.dispose(); customVoiceBuilder_ = null; } + voiceClone_ = null; + if (voiceCloneBuilder_ != null) { + voiceCloneBuilder_.dispose(); + voiceCloneBuilder_ = null; + } return this; } @@ -597,6 +679,10 @@ private void buildPartial0(com.google.cloud.texttospeech.v1beta1.VoiceSelectionP customVoiceBuilder_ == null ? customVoice_ : customVoiceBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.voiceClone_ = voiceCloneBuilder_ == null ? voiceClone_ : voiceCloneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -662,6 +748,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPar if (other.hasCustomVoice()) { mergeCustomVoice(other.getCustomVoice()); } + if (other.hasVoiceClone()) { + mergeVoiceClone(other.getVoiceClone()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -712,6 +801,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getVoiceCloneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1321,6 +1416,230 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustom return customVoiceBuilder_; } + private com.google.cloud.texttospeech.v1beta1.VoiceCloneParams voiceClone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder> + voiceCloneBuilder_; + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + public boolean hasVoiceClone() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams getVoiceClone() { + if (voiceCloneBuilder_ == null) { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } else { + return voiceCloneBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVoiceClone(com.google.cloud.texttospeech.v1beta1.VoiceCloneParams value) { + if (voiceCloneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceClone_ = value; + } else { + voiceCloneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVoiceClone( + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder builderForValue) { + if (voiceCloneBuilder_ == null) { + voiceClone_ = builderForValue.build(); + } else { + voiceCloneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVoiceClone(com.google.cloud.texttospeech.v1beta1.VoiceCloneParams value) { + if (voiceCloneBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && voiceClone_ != null + && voiceClone_ + != com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance()) { + getVoiceCloneBuilder().mergeFrom(value); + } else { + voiceClone_ = value; + } + } else { + voiceCloneBuilder_.mergeFrom(value); + } + if (voiceClone_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVoiceClone() { + bitField0_ = (bitField0_ & ~0x00000010); + voiceClone_ = null; + if (voiceCloneBuilder_ != null) { + voiceCloneBuilder_.dispose(); + voiceCloneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder getVoiceCloneBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getVoiceCloneFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder + getVoiceCloneOrBuilder() { + if (voiceCloneBuilder_ != null) { + return voiceCloneBuilder_.getMessageOrBuilder(); + } else { + return voiceClone_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.getDefaultInstance() + : voiceClone_; + } + } + /** + * + * + *
+     * Optional. The configuration for a voice clone. If
+     * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+     * voice clone matching the specified configuration.
+     * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder> + getVoiceCloneFieldBuilder() { + if (voiceCloneBuilder_ == null) { + voiceCloneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder>( + getVoiceClone(), getParentForChildren(), isClean()); + voiceClone_ = null; + } + return voiceCloneBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java index 27aafe6f975c..f182fb71c54b 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java @@ -171,4 +171,51 @@ public interface VoiceSelectionParamsOrBuilder * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; */ com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder(); + + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the voiceClone field is set. + */ + boolean hasVoiceClone(); + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceClone. + */ + com.google.cloud.texttospeech.v1beta1.VoiceCloneParams getVoiceClone(); + /** + * + * + *
+   * Optional. The configuration for a voice clone. If
+   * [VoiceCloneParams.voice_clone_key] is set, the service will choose the
+   * voice clone matching the specified configuration.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.texttospeech.v1beta1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto index 7890715573f6..6616fe854a86 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto @@ -21,7 +21,6 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1Beta1"; option go_package = "cloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; @@ -154,6 +153,13 @@ message Voice { int32 natural_sample_rate_hertz = 4; } +// Used for advanced voice options. +message AdvancedVoiceOptions { + // Only for Journey voices. If false, the synthesis will be context aware + // and have higher latency. + optional bool low_latency_journey_synthesis = 1; +} + // The top-level message sent by the client for the `SynthesizeSpeech` method. message SynthesizeSpeechRequest { // The type of timepoint information that is returned in the response. @@ -176,6 +182,60 @@ message SynthesizeSpeechRequest { // Whether and what timepoints are returned in the response. repeated TimepointType enable_time_pointing = 4; + + // Advanced voice options. + optional AdvancedVoiceOptions advanced_voice_options = 8; +} + +// Pronunciation customization for a phrase. +message CustomPronunciationParams { + // The phonetic encoding of the phrase. + enum PhoneticEncoding { + // Not specified. + PHONETIC_ENCODING_UNSPECIFIED = 0; + + // IPA. (e.g. apple -> ˈæpəl ) + // https://en.wikipedia.org/wiki/International_Phonetic_Alphabet + PHONETIC_ENCODING_IPA = 1; + + // X-SAMPA (e.g. apple -> "{p@l" ) + // https://en.wikipedia.org/wiki/X-SAMPA + PHONETIC_ENCODING_X_SAMPA = 2; + } + + // The phrase to which the customization will be applied. + // The phrase can be multiple words (in the case of proper nouns etc), but + // should not span to a whole sentence. + optional string phrase = 1; + + // The phonetic encoding of the phrase. + optional PhoneticEncoding phonetic_encoding = 2; + + // The pronunciation of the phrase. This must be in the phonetic encoding + // specified above. + optional string pronunciation = 3; +} + +// A collection of pronunciation customizations. +message CustomPronunciations { + // The pronunciation customizations to be applied. + repeated CustomPronunciationParams pronunciations = 1; +} + +// A collection of turns for multi-speaker synthesis. +message MultiSpeakerMarkup { + // A Multi-speaker turn. + message Turn { + // Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer + // to documentation for available speakers. + string speaker = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The text to speak. + string text = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Speaker turns. + repeated Turn turns = 1 [(google.api.field_behavior) = REQUIRED]; } // Contains text input to be synthesized. Either `text` or `ssml` must be @@ -194,7 +254,26 @@ message SynthesisInput { // more information, see // [SSML](https://cloud.google.com/text-to-speech/docs/ssml). string ssml = 2; + + // The multi-speaker input to be synthesized. Only applicable for + // multi-speaker synthesis. + MultiSpeakerMarkup multi_speaker_markup = 4; } + + // Optional. The pronunciation customizations to be applied to the input. If + // this is set, the input will be synthesized using the given pronunciation + // customizations. + // + // The initial support will be for EFIGS (English, French, + // Italian, German, Spanish) languages, as provided in + // VoiceSelectionParams. Journey and Instant Clone voices are + // not supported yet. + // + // In order to customize the pronunciation of a phrase, there must be an exact + // match of the phrase in the input types. If using SSML, the phrase must not + // be inside a phoneme tag (entirely or partially). + CustomPronunciations custom_pronunciations = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Description of which voice to use for a synthesis request. @@ -228,6 +307,11 @@ message VoiceSelectionParams { // the service will choose the custom voice matching the specified // configuration. CustomVoiceParams custom_voice = 4; + + // Optional. The configuration for a voice clone. If + // [VoiceCloneParams.voice_clone_key] is set, the service will choose the + // voice clone matching the specified configuration. + VoiceCloneParams voice_clone = 5 [(google.api.field_behavior) = OPTIONAL]; } // Description of audio data to be synthesized. @@ -315,6 +399,12 @@ message CustomVoiceParams { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } +// The configuration of Voice Clone feature. +message VoiceCloneParams { + // Required. Created by GenerateVoiceCloningKey. + string voice_cloning_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + // The message returned to the client by the `SynthesizeSpeech` method. message SynthesizeSpeechResponse { // The audio data bytes encoded as specified in the request, including the diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto index 969dfd993967..a3294e9926e0 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto @@ -23,7 +23,6 @@ import "google/cloud/texttospeech/v1beta1/cloud_tts.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1Beta1"; option go_package = "cloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateSetCredentialsProvider1.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d134cbe5ad0f..000000000000 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.texttospeech.v1.samples; - -// [START texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync] -import com.google.cloud.texttospeech.v1.TextToSpeechClient; -import com.google.cloud.texttospeech.v1.TextToSpeechSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build(); - TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings); - } -} -// [END texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateUseHttpJsonTransport.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..056d959c05ca --- /dev/null +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.texttospeech.v1.samples; + +// [START texttospeech_v1_generated_TextToSpeech_Create_UseHttpJsonTransport_sync] +import com.google.cloud.texttospeech.v1.TextToSpeechClient; +import com.google.cloud.texttospeech.v1.TextToSpeechSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build(); + TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings); + } +} +// [END texttospeech_v1_generated_TextToSpeech_Create_UseHttpJsonTransport_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java index b922d5480f20..b8a7d182e432 100644 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java @@ -18,6 +18,7 @@ // [START texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async] import com.google.api.core.ApiFuture; +import com.google.cloud.texttospeech.v1.AdvancedVoiceOptions; import com.google.cloud.texttospeech.v1.AudioConfig; import com.google.cloud.texttospeech.v1.SynthesisInput; import com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest; @@ -43,6 +44,7 @@ public static void asyncSynthesizeSpeech() throws Exception { .setInput(SynthesisInput.newBuilder().build()) .setVoice(VoiceSelectionParams.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) + .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) .build(); ApiFuture future = textToSpeechClient.synthesizeSpeechCallable().futureCall(request); diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java index 78a334060395..0f05aae1802f 100644 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java @@ -17,6 +17,7 @@ package com.google.cloud.texttospeech.v1.samples; // [START texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_sync] +import com.google.cloud.texttospeech.v1.AdvancedVoiceOptions; import com.google.cloud.texttospeech.v1.AudioConfig; import com.google.cloud.texttospeech.v1.SynthesisInput; import com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest; @@ -42,6 +43,7 @@ public static void syncSynthesizeSpeech() throws Exception { .setInput(SynthesisInput.newBuilder().build()) .setVoice(VoiceSelectionParams.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) + .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) .build(); SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(request); } diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7aa953b040dd..000000000000 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.texttospeech.v1.samples; - -// [START texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_Create_SetCredentialsProvider1_sync] -import com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient; -import com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TextToSpeechLongAudioSynthesizeSettings textToSpeechLongAudioSynthesizeSettings = - TextToSpeechLongAudioSynthesizeSettings.newHttpJsonBuilder().build(); - TextToSpeechLongAudioSynthesizeClient textToSpeechLongAudioSynthesizeClient = - TextToSpeechLongAudioSynthesizeClient.create(textToSpeechLongAudioSynthesizeSettings); - } -} -// [END texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_Create_SetCredentialsProvider1_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..18a4280814e8 --- /dev/null +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.texttospeech.v1.samples; + +// [START texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_Create_UseHttpJsonTransport_sync] +import com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient; +import com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TextToSpeechLongAudioSynthesizeSettings textToSpeechLongAudioSynthesizeSettings = + TextToSpeechLongAudioSynthesizeSettings.newHttpJsonBuilder().build(); + TextToSpeechLongAudioSynthesizeClient textToSpeechLongAudioSynthesizeClient = + TextToSpeechLongAudioSynthesizeClient.create(textToSpeechLongAudioSynthesizeSettings); + } +} +// [END texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_Create_UseHttpJsonTransport_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateSetCredentialsProvider1.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 7df41b3f4b6c..000000000000 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.texttospeech.v1beta1.samples; - -// [START texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync] -import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient; -import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build(); - TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings); - } -} -// [END texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateUseHttpJsonTransport.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4e4131397908 --- /dev/null +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.texttospeech.v1beta1.samples; + +// [START texttospeech_v1beta1_generated_TextToSpeech_Create_UseHttpJsonTransport_sync] +import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient; +import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build(); + TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings); + } +} +// [END texttospeech_v1beta1_generated_TextToSpeech_Create_UseHttpJsonTransport_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java index 304736c89484..a9d1bd518ea9 100644 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/AsyncSynthesizeSpeech.java @@ -18,6 +18,7 @@ // [START texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async] import com.google.api.core.ApiFuture; +import com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions; import com.google.cloud.texttospeech.v1beta1.AudioConfig; import com.google.cloud.texttospeech.v1beta1.SynthesisInput; import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest; @@ -45,6 +46,7 @@ public static void asyncSynthesizeSpeech() throws Exception { .setVoice(VoiceSelectionParams.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .addAllEnableTimePointing(new ArrayList()) + .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) .build(); ApiFuture future = textToSpeechClient.synthesizeSpeechCallable().futureCall(request); diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java index 4cdc75c41820..83d83eaa7b87 100644 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeech/synthesizespeech/SyncSynthesizeSpeech.java @@ -17,6 +17,7 @@ package com.google.cloud.texttospeech.v1beta1.samples; // [START texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_sync] +import com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions; import com.google.cloud.texttospeech.v1beta1.AudioConfig; import com.google.cloud.texttospeech.v1beta1.SynthesisInput; import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest; @@ -44,6 +45,7 @@ public static void syncSynthesizeSpeech() throws Exception { .setVoice(VoiceSelectionParams.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .addAllEnableTimePointing(new ArrayList()) + .setAdvancedVoiceOptions(AdvancedVoiceOptions.newBuilder().build()) .build(); SynthesizeSpeechResponse response = textToSpeechClient.synthesizeSpeech(request); } diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 05dac3ccd5d2..000000000000 --- a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.texttospeech.v1beta1.samples; - -// [START texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_Create_SetCredentialsProvider1_sync] -import com.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeClient; -import com.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TextToSpeechLongAudioSynthesizeSettings textToSpeechLongAudioSynthesizeSettings = - TextToSpeechLongAudioSynthesizeSettings.newHttpJsonBuilder().build(); - TextToSpeechLongAudioSynthesizeClient textToSpeechLongAudioSynthesizeClient = - TextToSpeechLongAudioSynthesizeClient.create(textToSpeechLongAudioSynthesizeSettings); - } -} -// [END texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_Create_SetCredentialsProvider1_sync] diff --git a/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..6ddad356fe2a --- /dev/null +++ b/java-texttospeech/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechlongaudiosynthesize/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.texttospeech.v1beta1.samples; + +// [START texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_Create_UseHttpJsonTransport_sync] +import com.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeClient; +import com.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TextToSpeechLongAudioSynthesizeSettings textToSpeechLongAudioSynthesizeSettings = + TextToSpeechLongAudioSynthesizeSettings.newHttpJsonBuilder().build(); + TextToSpeechLongAudioSynthesizeClient textToSpeechLongAudioSynthesizeClient = + TextToSpeechLongAudioSynthesizeClient.create(textToSpeechLongAudioSynthesizeSettings); + } +} +// [END texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_Create_UseHttpJsonTransport_sync] diff --git a/java-tpu/README.md b/java-tpu/README.md index 7bfc81a08918..20ad12a0981e 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v1/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v1/reflect-config.json index 7f1ba8cf69c5..1740398661ce 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v1/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json index d88c680f90a8..636e8b91ed52 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json index a51957e945b5..72fc111577ed 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a9c3897b7ca0..000000000000 --- a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.tpu.v2.samples; - -// [START tpu_v2_generated_Tpu_Create_SetCredentialsProvider1_sync] -import com.google.cloud.tpu.v2.TpuClient; -import com.google.cloud.tpu.v2.TpuSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TpuSettings tpuSettings = TpuSettings.newHttpJsonBuilder().build(); - TpuClient tpuClient = TpuClient.create(tpuSettings); - } -} -// [END tpu_v2_generated_Tpu_Create_SetCredentialsProvider1_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateUseHttpJsonTransport.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..05657c5c86e3 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_Create_UseHttpJsonTransport_sync] +import com.google.cloud.tpu.v2.TpuClient; +import com.google.cloud.tpu.v2.TpuSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TpuSettings tpuSettings = TpuSettings.newHttpJsonBuilder().build(); + TpuClient tpuClient = TpuClient.create(tpuSettings); + } +} +// [END tpu_v2_generated_Tpu_Create_UseHttpJsonTransport_sync] diff --git a/java-trace/README.md b/java-trace/README.md index 9ad87aaaea7c..2d658e438dc6 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v1/reflect-config.json b/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v1/reflect-config.json index 1413ebd76593..4bc80e5937f0 100644 --- a/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v1/reflect-config.json +++ b/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.cloudtrace.v1.GetTraceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v2/reflect-config.json b/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v2/reflect-config.json index 2dd47efcbc52..65d4d3ccf552 100644 --- a/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v2/reflect-config.json +++ b/java-trace/google-cloud-trace/src/main/resources/META-INF/native-image/com.google.cloud.trace.v2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.cloudtrace.v2.AttributeValue", "queryAllDeclaredConstructors": true, diff --git a/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateSetCredentialsProvider1.java b/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 0bc040978974..000000000000 --- a/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.trace.v1.samples; - -// [START cloudtrace_v1_generated_TraceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.trace.v1.TraceServiceClient; -import com.google.cloud.trace.v1.TraceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TraceServiceSettings traceServiceSettings = TraceServiceSettings.newHttpJsonBuilder().build(); - TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings); - } -} -// [END cloudtrace_v1_generated_TraceService_Create_SetCredentialsProvider1_sync] diff --git a/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateUseHttpJsonTransport.java b/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..71e8ae5a554d --- /dev/null +++ b/java-trace/samples/snippets/generated/com/google/cloud/trace/v1/traceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.trace.v1.samples; + +// [START cloudtrace_v1_generated_TraceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.trace.v1.TraceServiceClient; +import com.google.cloud.trace.v1.TraceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TraceServiceSettings traceServiceSettings = TraceServiceSettings.newHttpJsonBuilder().build(); + TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings); + } +} +// [END cloudtrace_v1_generated_TraceService_Create_UseHttpJsonTransport_sync] diff --git a/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateSetCredentialsProvider1.java b/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 092916009eef..000000000000 --- a/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.trace.v2.samples; - -// [START cloudtrace_v2_generated_TraceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.trace.v2.TraceServiceClient; -import com.google.cloud.trace.v2.TraceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TraceServiceSettings traceServiceSettings = TraceServiceSettings.newHttpJsonBuilder().build(); - TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings); - } -} -// [END cloudtrace_v2_generated_TraceService_Create_SetCredentialsProvider1_sync] diff --git a/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateUseHttpJsonTransport.java b/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4a81cb5826d7 --- /dev/null +++ b/java-trace/samples/snippets/generated/com/google/cloud/trace/v2/traceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.trace.v2.samples; + +// [START cloudtrace_v2_generated_TraceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.trace.v2.TraceServiceClient; +import com.google.cloud.trace.v2.TraceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TraceServiceSettings traceServiceSettings = TraceServiceSettings.newHttpJsonBuilder().build(); + TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings); + } +} +// [END cloudtrace_v2_generated_TraceService_Create_UseHttpJsonTransport_sync] diff --git a/java-translate/README.md b/java-translate/README.md index 2d99eb0b6f1e..60a347d17eea 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.52.0" ``` - ## Authentication @@ -273,7 +271,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json index 96750c9cf866..4c59cccb2ada 100644 --- a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json +++ b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.translate.v3.AdaptiveMtDataset", "queryAllDeclaredConstructors": true, diff --git a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json index 3e6a477bf2b8..b7bfc410c13c 100644 --- a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json +++ b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.translate.v3beta1.BatchDocumentInputConfig", "queryAllDeclaredConstructors": true, diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 5627930c0407..000000000000 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3.samples; - -// [START translate_v3_generated_TranslationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.translate.v3.TranslationServiceClient; -import com.google.cloud.translate.v3.TranslationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TranslationServiceSettings translationServiceSettings = - TranslationServiceSettings.newHttpJsonBuilder().build(); - TranslationServiceClient translationServiceClient = - TranslationServiceClient.create(translationServiceSettings); - } -} -// [END translate_v3_generated_TranslationService_Create_SetCredentialsProvider1_sync] diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateUseHttpJsonTransport.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..13785d7b3ab6 --- /dev/null +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3/translationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3.samples; + +// [START translate_v3_generated_TranslationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.translate.v3.TranslationServiceClient; +import com.google.cloud.translate.v3.TranslationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TranslationServiceSettings translationServiceSettings = + TranslationServiceSettings.newHttpJsonBuilder().build(); + TranslationServiceClient translationServiceClient = + TranslationServiceClient.create(translationServiceSettings); + } +} +// [END translate_v3_generated_TranslationService_Create_UseHttpJsonTransport_sync] diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index c9149c919746..000000000000 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.translate.v3beta1.samples; - -// [START translate_v3beta1_generated_TranslationService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.translate.v3beta1.TranslationServiceClient; -import com.google.cloud.translate.v3beta1.TranslationServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TranslationServiceSettings translationServiceSettings = - TranslationServiceSettings.newHttpJsonBuilder().build(); - TranslationServiceClient translationServiceClient = - TranslationServiceClient.create(translationServiceSettings); - } -} -// [END translate_v3beta1_generated_TranslationService_Create_SetCredentialsProvider1_sync] diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateUseHttpJsonTransport.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cf1f9f45b72f --- /dev/null +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.translate.v3beta1.samples; + +// [START translate_v3beta1_generated_TranslationService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.translate.v3beta1.TranslationServiceClient; +import com.google.cloud.translate.v3beta1.TranslationServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TranslationServiceSettings translationServiceSettings = + TranslationServiceSettings.newHttpJsonBuilder().build(); + TranslationServiceClient translationServiceClient = + TranslationServiceClient.create(translationServiceSettings); + } +} +// [END translate_v3beta1_generated_TranslationService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 041e431db97c..75177301a12b 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1/reflect-config.json b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1/reflect-config.json index bc4b72e3463b..19debf89aca0 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1/reflect-config.json +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.videointelligence.v1.AnnotateVideoProgress", "queryAllDeclaredConstructors": true, diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1beta2/reflect-config.json b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1beta2/reflect-config.json index e5be2534f97e..22a7da30f8c3 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1beta2/reflect-config.json +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1beta2/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.videointelligence.v1beta2.AnnotateVideoProgress", "queryAllDeclaredConstructors": true, diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p1beta1/reflect-config.json b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p1beta1/reflect-config.json index dc6dbee2e02d..8c77d73b68df 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p1beta1/reflect-config.json +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress", "queryAllDeclaredConstructors": true, diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p2beta1/reflect-config.json b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p2beta1/reflect-config.json index 444578a3690a..527c645407ed 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p2beta1/reflect-config.json +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p2beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress", "queryAllDeclaredConstructors": true, diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p3beta1/reflect-config.json b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p3beta1/reflect-config.json index 1843ae037f12..295baf53fdb5 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p3beta1/reflect-config.json +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/resources/META-INF/native-image/com.google.cloud.videointelligence.v1p3beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress", "queryAllDeclaredConstructors": true, diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a4bed9296ca0..000000000000 --- a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.videointelligence.v1.samples; - -// [START videointelligence_v1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient; -import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = - VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); - VideoIntelligenceServiceClient videoIntelligenceServiceClient = - VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); - } -} -// [END videointelligence_v1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e2a785240265 --- /dev/null +++ b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.videointelligence.v1.samples; + +// [START videointelligence_v1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = + VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); + VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); + } +} +// [END videointelligence_v1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 39c16e994d67..000000000000 --- a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.videointelligence.v1beta2.samples; - -// [START videointelligence_v1beta2_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient; -import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = - VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); - VideoIntelligenceServiceClient videoIntelligenceServiceClient = - VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); - } -} -// [END videointelligence_v1beta2_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f443421289ec --- /dev/null +++ b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1beta2/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.videointelligence.v1beta2.samples; + +// [START videointelligence_v1beta2_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = + VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); + VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); + } +} +// [END videointelligence_v1beta2_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1dfb6579d362..000000000000 --- a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.videointelligence.v1p1beta1.samples; - -// [START videointelligence_v1p1beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient; -import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = - VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); - VideoIntelligenceServiceClient videoIntelligenceServiceClient = - VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); - } -} -// [END videointelligence_v1p1beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c9f934cca1f0 --- /dev/null +++ b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p1beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.videointelligence.v1p1beta1.samples; + +// [START videointelligence_v1p1beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = + VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); + VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); + } +} +// [END videointelligence_v1p1beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e844f86f6c8b..000000000000 --- a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.videointelligence.v1p2beta1.samples; - -// [START videointelligence_v1p2beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient; -import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = - VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); - VideoIntelligenceServiceClient videoIntelligenceServiceClient = - VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); - } -} -// [END videointelligence_v1p2beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..49a90df39923 --- /dev/null +++ b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p2beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.videointelligence.v1p2beta1.samples; + +// [START videointelligence_v1p2beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = + VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); + VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); + } +} +// [END videointelligence_v1p2beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ed2a32c0d9b6..000000000000 --- a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.videointelligence.v1p3beta1.samples; - -// [START videointelligence_v1p3beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; -import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = - VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); - VideoIntelligenceServiceClient videoIntelligenceServiceClient = - VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); - } -} -// [END videointelligence_v1p3beta1_generated_VideoIntelligenceService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..39a93545ff9a --- /dev/null +++ b/java-video-intelligence/samples/snippets/generated/com/google/cloud/videointelligence/v1p3beta1/videointelligenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.videointelligence.v1p3beta1.samples; + +// [START videointelligence_v1p3beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = + VideoIntelligenceServiceSettings.newHttpJsonBuilder().build(); + VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings); + } +} +// [END videointelligence_v1p3beta1_generated_VideoIntelligenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 80c07dcc9938..066504948de8 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.54.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json b/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json index d42d6de51609..dea24f5aa947 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json +++ b/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e1afeb5448a5..000000000000 --- a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.video.livestream.v1.samples; - -// [START livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.video.livestream.v1.LivestreamServiceClient; -import com.google.cloud.video.livestream.v1.LivestreamServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LivestreamServiceSettings livestreamServiceSettings = - LivestreamServiceSettings.newHttpJsonBuilder().build(); - LivestreamServiceClient livestreamServiceClient = - LivestreamServiceClient.create(livestreamServiceSettings); - } -} -// [END livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..11014d013520 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.cloud.video.livestream.v1.LivestreamServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LivestreamServiceSettings livestreamServiceSettings = + LivestreamServiceSettings.newHttpJsonBuilder().build(); + LivestreamServiceClient livestreamServiceClient = + LivestreamServiceClient.create(livestreamServiceSettings); + } +} +// [END livestream_v1_generated_LivestreamService_Create_UseHttpJsonTransport_sync] diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 0716d1b16944..1a930a20c2bd 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json b/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json index 304835a596a1..baf03bbcf7eb 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.AdRequest", "queryAllDeclaredConstructors": true, diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index f55fea1504db..95c3690ae7cc 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/resources/META-INF/native-image/com.google.cloud.video.transcoder.v1/reflect-config.json b/java-video-transcoder/google-cloud-video-transcoder/src/main/resources/META-INF/native-image/com.google.cloud.video.transcoder.v1/reflect-config.json index 8b9461b4baf8..6470cf95287b 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/resources/META-INF/native-image/com.google.cloud.video.transcoder.v1/reflect-config.json +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/resources/META-INF/native-image/com.google.cloud.video.transcoder.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.transcoder.v1.AdBreak", "queryAllDeclaredConstructors": true, diff --git a/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateSetCredentialsProvider1.java b/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 325c5ae6ea96..000000000000 --- a/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.video.transcoder.v1.samples; - -// [START transcoder_v1_generated_TranscoderService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; -import com.google.cloud.video.transcoder.v1.TranscoderServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - TranscoderServiceSettings transcoderServiceSettings = - TranscoderServiceSettings.newHttpJsonBuilder().build(); - TranscoderServiceClient transcoderServiceClient = - TranscoderServiceClient.create(transcoderServiceSettings); - } -} -// [END transcoder_v1_generated_TranscoderService_Create_SetCredentialsProvider1_sync] diff --git a/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateUseHttpJsonTransport.java b/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..09ca36d1184d --- /dev/null +++ b/java-video-transcoder/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.transcoder.v1.samples; + +// [START transcoder_v1_generated_TranscoderService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.cloud.video.transcoder.v1.TranscoderServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TranscoderServiceSettings transcoderServiceSettings = + TranscoderServiceSettings.newHttpJsonBuilder().build(); + TranscoderServiceClient transcoderServiceClient = + TranscoderServiceClient.create(transcoderServiceSettings); + } +} +// [END transcoder_v1_generated_TranscoderService_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/README.md b/java-vision/README.md index 04a78dbfeb60..ae93547a8996 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.50.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1/reflect-config.json b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1/reflect-config.json index 3d26512d6deb..75f9506796bd 100644 --- a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1/reflect-config.json +++ b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vision.v1.AddProductToProductSetRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p1beta1/reflect-config.json b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p1beta1/reflect-config.json index 3a172f9c091f..41a8199cfe5e 100644 --- a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p1beta1/reflect-config.json +++ b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vision.v1p1beta1.AnnotateImageRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p2beta1/reflect-config.json b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p2beta1/reflect-config.json index 8c75ca50649d..2a2f8d405a13 100644 --- a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p2beta1/reflect-config.json +++ b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p2beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vision.v1p2beta1.AnnotateFileResponse", "queryAllDeclaredConstructors": true, diff --git a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p3beta1/reflect-config.json b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p3beta1/reflect-config.json index 45f745ecf1a2..81e33026805b 100644 --- a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p3beta1/reflect-config.json +++ b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p3beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p4beta1/reflect-config.json b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p4beta1/reflect-config.json index 2518112df0bf..603552c9d85c 100644 --- a/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p4beta1/reflect-config.json +++ b/java-vision/google-cloud-vision/src/main/resources/META-INF/native-image/com.google.cloud.vision.v1p4beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 10b780cc79af..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1.samples; - -// [START vision_v1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1.ImageAnnotatorClient; -import com.google.cloud.vision.v1.ImageAnnotatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageAnnotatorSettings imageAnnotatorSettings = - ImageAnnotatorSettings.newHttpJsonBuilder().build(); - ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); - } -} -// [END vision_v1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..81cb75eb1ad6 --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1.samples; + +// [START vision_v1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1.ImageAnnotatorClient; +import com.google.cloud.vision.v1.ImageAnnotatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageAnnotatorSettings imageAnnotatorSettings = + ImageAnnotatorSettings.newHttpJsonBuilder().build(); + ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); + } +} +// [END vision_v1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2d5cd6eef0fc..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1.samples; - -// [START vision_v1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1.ProductSearchClient; -import com.google.cloud.vision.v1.ProductSearchSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductSearchSettings productSearchSettings = - ProductSearchSettings.newHttpJsonBuilder().build(); - ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); - } -} -// [END vision_v1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b6469b364ffa --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearch/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1.samples; + +// [START vision_v1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1.ProductSearchClient; +import com.google.cloud.vision.v1.ProductSearchSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductSearchSettings productSearchSettings = + ProductSearchSettings.newHttpJsonBuilder().build(); + ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); + } +} +// [END vision_v1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2771fc4dd4dd..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p1beta1.samples; - -// [START vision_v1p1beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient; -import com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageAnnotatorSettings imageAnnotatorSettings = - ImageAnnotatorSettings.newHttpJsonBuilder().build(); - ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); - } -} -// [END vision_v1p1beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3e4dc8bad53b --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p1beta1.samples; + +// [START vision_v1p1beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient; +import com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageAnnotatorSettings imageAnnotatorSettings = + ImageAnnotatorSettings.newHttpJsonBuilder().build(); + ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); + } +} +// [END vision_v1p1beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 772b43943331..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p2beta1.samples; - -// [START vision_v1p2beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient; -import com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageAnnotatorSettings imageAnnotatorSettings = - ImageAnnotatorSettings.newHttpJsonBuilder().build(); - ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); - } -} -// [END vision_v1p2beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0eddcb0b27ef --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p2beta1.samples; + +// [START vision_v1p2beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p2beta1.ImageAnnotatorClient; +import com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageAnnotatorSettings imageAnnotatorSettings = + ImageAnnotatorSettings.newHttpJsonBuilder().build(); + ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); + } +} +// [END vision_v1p2beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 16436fa74df8..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p3beta1.samples; - -// [START vision_v1p3beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient; -import com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageAnnotatorSettings imageAnnotatorSettings = - ImageAnnotatorSettings.newHttpJsonBuilder().build(); - ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); - } -} -// [END vision_v1p3beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5710eb69ef58 --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p3beta1.samples; + +// [START vision_v1p3beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p3beta1.ImageAnnotatorClient; +import com.google.cloud.vision.v1p3beta1.ImageAnnotatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageAnnotatorSettings imageAnnotatorSettings = + ImageAnnotatorSettings.newHttpJsonBuilder().build(); + ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); + } +} +// [END vision_v1p3beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index fd54af8bca3e..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p3beta1.samples; - -// [START vision_v1p3beta1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p3beta1.ProductSearchClient; -import com.google.cloud.vision.v1p3beta1.ProductSearchSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductSearchSettings productSearchSettings = - ProductSearchSettings.newHttpJsonBuilder().build(); - ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); - } -} -// [END vision_v1p3beta1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..43740354b7c1 --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p3beta1.samples; + +// [START vision_v1p3beta1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p3beta1.ProductSearchClient; +import com.google.cloud.vision.v1p3beta1.ProductSearchSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductSearchSettings productSearchSettings = + ProductSearchSettings.newHttpJsonBuilder().build(); + ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); + } +} +// [END vision_v1p3beta1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b36bf9e6ff0f..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p4beta1.samples; - -// [START vision_v1p4beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; -import com.google.cloud.vision.v1p4beta1.ImageAnnotatorSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ImageAnnotatorSettings imageAnnotatorSettings = - ImageAnnotatorSettings.newHttpJsonBuilder().build(); - ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); - } -} -// [END vision_v1p4beta1_generated_ImageAnnotator_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..97062a8fda8a --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotator/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p4beta1.samples; + +// [START vision_v1p4beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient; +import com.google.cloud.vision.v1p4beta1.ImageAnnotatorSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ImageAnnotatorSettings imageAnnotatorSettings = + ImageAnnotatorSettings.newHttpJsonBuilder().build(); + ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); + } +} +// [END vision_v1p4beta1_generated_ImageAnnotator_Create_UseHttpJsonTransport_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1b4bd2a5dc00..000000000000 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vision.v1p4beta1.samples; - -// [START vision_v1p4beta1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vision.v1p4beta1.ProductSearchClient; -import com.google.cloud.vision.v1p4beta1.ProductSearchSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ProductSearchSettings productSearchSettings = - ProductSearchSettings.newHttpJsonBuilder().build(); - ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); - } -} -// [END vision_v1p4beta1_generated_ProductSearch_Create_SetCredentialsProvider1_sync] diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ba443c774d67 --- /dev/null +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearch/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vision.v1p4beta1.samples; + +// [START vision_v1p4beta1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vision.v1p4beta1.ProductSearchClient; +import com.google.cloud.vision.v1p4beta1.ProductSearchSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProductSearchSettings productSearchSettings = + ProductSearchSettings.newHttpJsonBuilder().build(); + ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); + } +} +// [END vision_v1p4beta1_generated_ProductSearch_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/README.md b/java-visionai/README.md index 28710c5dd64b..b8fe51f4bf3e 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.9.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/google-cloud-visionai/src/main/resources/META-INF/native-image/com.google.cloud.visionai.v1/reflect-config.json b/java-visionai/google-cloud-visionai/src/main/resources/META-INF/native-image/com.google.cloud.visionai.v1/reflect-config.json index a2ec410994fa..eb904a4d2824 100644 --- a/java-visionai/google-cloud-visionai/src/main/resources/META-INF/native-image/com.google.cloud.visionai.v1/reflect-config.json +++ b/java-visionai/google-cloud-visionai/src/main/resources/META-INF/native-image/com.google.cloud.visionai.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 312ced7b1533..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_AppPlatform_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.AppPlatformClient; -import com.google.cloud.visionai.v1.AppPlatformSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AppPlatformSettings appPlatformSettings = AppPlatformSettings.newHttpJsonBuilder().build(); - AppPlatformClient appPlatformClient = AppPlatformClient.create(appPlatformSettings); - } -} -// [END visionai_v1_generated_AppPlatform_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d5571185199e --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/appplatform/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_AppPlatform_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.AppPlatformClient; +import com.google.cloud.visionai.v1.AppPlatformSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AppPlatformSettings appPlatformSettings = AppPlatformSettings.newHttpJsonBuilder().build(); + AppPlatformClient appPlatformClient = AppPlatformClient.create(appPlatformSettings); + } +} +// [END visionai_v1_generated_AppPlatform_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6b4b17c2e3e5..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_HealthCheckService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.HealthCheckServiceClient; -import com.google.cloud.visionai.v1.HealthCheckServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - HealthCheckServiceSettings healthCheckServiceSettings = - HealthCheckServiceSettings.newHttpJsonBuilder().build(); - HealthCheckServiceClient healthCheckServiceClient = - HealthCheckServiceClient.create(healthCheckServiceSettings); - } -} -// [END visionai_v1_generated_HealthCheckService_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3c353af61d7c --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/healthcheckservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_HealthCheckService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.HealthCheckServiceClient; +import com.google.cloud.visionai.v1.HealthCheckServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + HealthCheckServiceSettings healthCheckServiceSettings = + HealthCheckServiceSettings.newHttpJsonBuilder().build(); + HealthCheckServiceClient healthCheckServiceClient = + HealthCheckServiceClient.create(healthCheckServiceSettings); + } +} +// [END visionai_v1_generated_HealthCheckService_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8a2517d2ebbd..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_LiveVideoAnalytics_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.LiveVideoAnalyticsClient; -import com.google.cloud.visionai.v1.LiveVideoAnalyticsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - LiveVideoAnalyticsSettings liveVideoAnalyticsSettings = - LiveVideoAnalyticsSettings.newHttpJsonBuilder().build(); - LiveVideoAnalyticsClient liveVideoAnalyticsClient = - LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings); - } -} -// [END visionai_v1_generated_LiveVideoAnalytics_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..58522beacf89 --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/livevideoanalytics/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_LiveVideoAnalytics_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.LiveVideoAnalyticsClient; +import com.google.cloud.visionai.v1.LiveVideoAnalyticsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LiveVideoAnalyticsSettings liveVideoAnalyticsSettings = + LiveVideoAnalyticsSettings.newHttpJsonBuilder().build(); + LiveVideoAnalyticsClient liveVideoAnalyticsClient = + LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings); + } +} +// [END visionai_v1_generated_LiveVideoAnalytics_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2cdfc095259c..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_StreamingService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.StreamingServiceClient; -import com.google.cloud.visionai.v1.StreamingServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - StreamingServiceSettings streamingServiceSettings = - StreamingServiceSettings.newHttpJsonBuilder().build(); - StreamingServiceClient streamingServiceClient = - StreamingServiceClient.create(streamingServiceSettings); - } -} -// [END visionai_v1_generated_StreamingService_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0055198dfa5a --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamingservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_StreamingService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.StreamingServiceClient; +import com.google.cloud.visionai.v1.StreamingServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + StreamingServiceSettings streamingServiceSettings = + StreamingServiceSettings.newHttpJsonBuilder().build(); + StreamingServiceClient streamingServiceClient = + StreamingServiceClient.create(streamingServiceSettings); + } +} +// [END visionai_v1_generated_StreamingService_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index cee6368a4578..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_StreamsService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.StreamsServiceClient; -import com.google.cloud.visionai.v1.StreamsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - StreamsServiceSettings streamsServiceSettings = - StreamsServiceSettings.newHttpJsonBuilder().build(); - StreamsServiceClient streamsServiceClient = StreamsServiceClient.create(streamsServiceSettings); - } -} -// [END visionai_v1_generated_StreamsService_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8b1488dc3e4c --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/streamsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_StreamsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.StreamsServiceClient; +import com.google.cloud.visionai.v1.StreamsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + StreamsServiceSettings streamsServiceSettings = + StreamsServiceSettings.newHttpJsonBuilder().build(); + StreamsServiceClient streamsServiceClient = StreamsServiceClient.create(streamsServiceSettings); + } +} +// [END visionai_v1_generated_StreamsService_Create_UseHttpJsonTransport_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateSetCredentialsProvider1.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d15e46775cc8..000000000000 --- a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.visionai.v1.samples; - -// [START visionai_v1_generated_Warehouse_Create_SetCredentialsProvider1_sync] -import com.google.cloud.visionai.v1.WarehouseClient; -import com.google.cloud.visionai.v1.WarehouseSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WarehouseSettings warehouseSettings = WarehouseSettings.newHttpJsonBuilder().build(); - WarehouseClient warehouseClient = WarehouseClient.create(warehouseSettings); - } -} -// [END visionai_v1_generated_Warehouse_Create_SetCredentialsProvider1_sync] diff --git a/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateUseHttpJsonTransport.java b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..7260f5d4eb1a --- /dev/null +++ b/java-visionai/samples/snippets/generated/com/google/cloud/visionai/v1/warehouse/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.visionai.v1.samples; + +// [START visionai_v1_generated_Warehouse_Create_UseHttpJsonTransport_sync] +import com.google.cloud.visionai.v1.WarehouseClient; +import com.google.cloud.visionai.v1.WarehouseSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WarehouseSettings warehouseSettings = WarehouseSettings.newHttpJsonBuilder().build(); + WarehouseClient warehouseClient = WarehouseClient.create(warehouseSettings); + } +} +// [END visionai_v1_generated_Warehouse_Create_UseHttpJsonTransport_sync] diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index 2227cc6b3235..daf6dc1b0cbd 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json b/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json index c2b7247f95b0..3cddec522407 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json +++ b/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateSetCredentialsProvider1.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 58b7d60705a7..000000000000 --- a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vmmigration.v1.samples; - -// [START vmmigration_v1_generated_VmMigration_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vmmigration.v1.VmMigrationClient; -import com.google.cloud.vmmigration.v1.VmMigrationSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VmMigrationSettings vmMigrationSettings = VmMigrationSettings.newHttpJsonBuilder().build(); - VmMigrationClient vmMigrationClient = VmMigrationClient.create(vmMigrationSettings); - } -} -// [END vmmigration_v1_generated_VmMigration_Create_SetCredentialsProvider1_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateUseHttpJsonTransport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e5cb61a6eb56 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.cloud.vmmigration.v1.VmMigrationSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VmMigrationSettings vmMigrationSettings = VmMigrationSettings.newHttpJsonBuilder().build(); + VmMigrationClient vmMigrationClient = VmMigrationClient.create(vmMigrationSettings); + } +} +// [END vmmigration_v1_generated_VmMigration_Create_UseHttpJsonTransport_sync] diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index ef7db19ce04d..ead2a0aba32f 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.46.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json index 25f6add27b1e..de34180b7dc5 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json @@ -422,6 +422,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.TypeReference", "queryAllDeclaredConstructors": true, diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateSetCredentialsProvider1.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 8f5db960e36d..000000000000 --- a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vmwareengine.v1.samples; - -// [START vmwareengine_v1_generated_VmwareEngine_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vmwareengine.v1.VmwareEngineClient; -import com.google.cloud.vmwareengine.v1.VmwareEngineSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VmwareEngineSettings vmwareEngineSettings = VmwareEngineSettings.newHttpJsonBuilder().build(); - VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings); - } -} -// [END vmwareengine_v1_generated_VmwareEngine_Create_SetCredentialsProvider1_sync] diff --git a/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateUseHttpJsonTransport.java b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..5920ff95014a --- /dev/null +++ b/java-vmwareengine/samples/snippets/generated/com/google/cloud/vmwareengine/v1/vmwareengine/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.samples; + +// [START vmwareengine_v1_generated_VmwareEngine_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vmwareengine.v1.VmwareEngineClient; +import com.google.cloud.vmwareengine.v1.VmwareEngineSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VmwareEngineSettings vmwareEngineSettings = VmwareEngineSettings.newHttpJsonBuilder().build(); + VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings); + } +} +// [END vmwareengine_v1_generated_VmwareEngine_Create_UseHttpJsonTransport_sync] diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 5bf56fb5f752..c30f7b736720 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.53.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/resources/META-INF/native-image/com.google.cloud.vpcaccess.v1/reflect-config.json b/java-vpcaccess/google-cloud-vpcaccess/src/main/resources/META-INF/native-image/com.google.cloud.vpcaccess.v1/reflect-config.json index 019a36f97ec3..edfb46bfb631 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/resources/META-INF/native-image/com.google.cloud.vpcaccess.v1/reflect-config.json +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/resources/META-INF/native-image/com.google.cloud.vpcaccess.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateSetCredentialsProvider1.java b/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index d8b78cef1226..000000000000 --- a/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vpcaccess.v1.samples; - -// [START vpcaccess_v1_generated_VpcAccessService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; -import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - VpcAccessServiceSettings vpcAccessServiceSettings = - VpcAccessServiceSettings.newHttpJsonBuilder().build(); - VpcAccessServiceClient vpcAccessServiceClient = - VpcAccessServiceClient.create(vpcAccessServiceSettings); - } -} -// [END vpcaccess_v1_generated_VpcAccessService_Create_SetCredentialsProvider1_sync] diff --git a/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateUseHttpJsonTransport.java b/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..8e882abe6c23 --- /dev/null +++ b/java-vpcaccess/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vpcaccess.v1.samples; + +// [START vpcaccess_v1_generated_VpcAccessService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcAccessServiceSettings vpcAccessServiceSettings = + VpcAccessServiceSettings.newHttpJsonBuilder().build(); + VpcAccessServiceClient vpcAccessServiceClient = + VpcAccessServiceClient.create(vpcAccessServiceSettings); + } +} +// [END vpcaccess_v1_generated_VpcAccessService_Create_UseHttpJsonTransport_sync] diff --git a/java-webrisk/README.md b/java-webrisk/README.md index a8c5c0a6d61a..60d0acbe4afc 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.51.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1/reflect-config.json b/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1/reflect-config.json index bfa6478d3e28..19a40a35e4cb 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1/reflect-config.json +++ b/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1beta1/reflect-config.json b/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1beta1/reflect-config.json index 40c46ee12005..fd47a98ec74a 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1beta1/reflect-config.json +++ b/java-webrisk/google-cloud-webrisk/src/main/resources/META-INF/native-image/com.google.cloud.webrisk.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateSetCredentialsProvider1.java b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a47e018a026c..000000000000 --- a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.webrisk.v1.samples; - -// [START webrisk_v1_generated_WebRiskService_Create_SetCredentialsProvider1_sync] -import com.google.cloud.webrisk.v1.WebRiskServiceClient; -import com.google.cloud.webrisk.v1.WebRiskServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebRiskServiceSettings webRiskServiceSettings = - WebRiskServiceSettings.newHttpJsonBuilder().build(); - WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create(webRiskServiceSettings); - } -} -// [END webrisk_v1_generated_WebRiskService_Create_SetCredentialsProvider1_sync] diff --git a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateUseHttpJsonTransport.java b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..41733fcaad63 --- /dev/null +++ b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1/webriskservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.webrisk.v1.samples; + +// [START webrisk_v1_generated_WebRiskService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.webrisk.v1.WebRiskServiceClient; +import com.google.cloud.webrisk.v1.WebRiskServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebRiskServiceSettings webRiskServiceSettings = + WebRiskServiceSettings.newHttpJsonBuilder().build(); + WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create(webRiskServiceSettings); + } +} +// [END webrisk_v1_generated_WebRiskService_Create_UseHttpJsonTransport_sync] diff --git a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 76f61cfb6c8a..000000000000 --- a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.webrisk.v1beta1.samples; - -// [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_Create_SetCredentialsProvider1_sync] -import com.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client; -import com.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Settings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebRiskServiceV1Beta1Settings webRiskServiceV1Beta1Settings = - WebRiskServiceV1Beta1Settings.newHttpJsonBuilder().build(); - WebRiskServiceV1Beta1Client webRiskServiceV1Beta1Client = - WebRiskServiceV1Beta1Client.create(webRiskServiceV1Beta1Settings); - } -} -// [END webrisk_v1beta1_generated_WebRiskServiceV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateUseHttpJsonTransport.java b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bee896cdcd96 --- /dev/null +++ b/java-webrisk/samples/snippets/generated/com/google/cloud/webrisk/v1beta1/webriskservicev1beta1/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.webrisk.v1beta1.samples; + +// [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_Create_UseHttpJsonTransport_sync] +import com.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client; +import com.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Settings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebRiskServiceV1Beta1Settings webRiskServiceV1Beta1Settings = + WebRiskServiceV1Beta1Settings.newHttpJsonBuilder().build(); + WebRiskServiceV1Beta1Client webRiskServiceV1Beta1Client = + WebRiskServiceV1Beta1Client.create(webRiskServiceV1Beta1Settings); + } +} +// [END webrisk_v1beta1_generated_WebRiskServiceV1Beta1_Create_UseHttpJsonTransport_sync] diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 515297434bce..2ef604182a2c 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json index 1eebab50b5e0..583bca334212 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.websecurityscanner.v1.CrawledUrl", "queryAllDeclaredConstructors": true, diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json index 075bc57c6ba0..824467815e97 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.websecurityscanner.v1alpha.CrawledUrl", "queryAllDeclaredConstructors": true, diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json index b3413f25f8ba..3ecbb732573f 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.websecurityscanner.v1beta.CrawledUrl", "queryAllDeclaredConstructors": true, diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 82a353bcb5d5..000000000000 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.websecurityscanner.v1.samples; - -// [START websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] -import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient; -import com.google.cloud.websecurityscanner.v1.WebSecurityScannerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebSecurityScannerSettings webSecurityScannerSettings = - WebSecurityScannerSettings.newHttpJsonBuilder().build(); - WebSecurityScannerClient webSecurityScannerClient = - WebSecurityScannerClient.create(webSecurityScannerSettings); - } -} -// [END websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e8ee0f82ba0c --- /dev/null +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.websecurityscanner.v1.samples; + +// [START websecurityscanner_v1_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] +import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient; +import com.google.cloud.websecurityscanner.v1.WebSecurityScannerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebSecurityScannerSettings webSecurityScannerSettings = + WebSecurityScannerSettings.newHttpJsonBuilder().build(); + WebSecurityScannerClient webSecurityScannerClient = + WebSecurityScannerClient.create(webSecurityScannerSettings); + } +} +// [END websecurityscanner_v1_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 58112bdc6d91..000000000000 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.websecurityscanner.v1alpha.samples; - -// [START websecurityscanner_v1alpha_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] -import com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient; -import com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebSecurityScannerSettings webSecurityScannerSettings = - WebSecurityScannerSettings.newHttpJsonBuilder().build(); - WebSecurityScannerClient webSecurityScannerClient = - WebSecurityScannerClient.create(webSecurityScannerSettings); - } -} -// [END websecurityscanner_v1alpha_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f02f257c0813 --- /dev/null +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.websecurityscanner.v1alpha.samples; + +// [START websecurityscanner_v1alpha_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] +import com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient; +import com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebSecurityScannerSettings webSecurityScannerSettings = + WebSecurityScannerSettings.newHttpJsonBuilder().build(); + WebSecurityScannerClient webSecurityScannerClient = + WebSecurityScannerClient.create(webSecurityScannerSettings); + } +} +// [END websecurityscanner_v1alpha_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6d92acfd7427..000000000000 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.websecurityscanner.v1beta.samples; - -// [START websecurityscanner_v1beta_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] -import com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient; -import com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WebSecurityScannerSettings webSecurityScannerSettings = - WebSecurityScannerSettings.newHttpJsonBuilder().build(); - WebSecurityScannerClient webSecurityScannerClient = - WebSecurityScannerClient.create(webSecurityScannerSettings); - } -} -// [END websecurityscanner_v1beta_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync] diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..2f6ca920a4fc --- /dev/null +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.websecurityscanner.v1beta.samples; + +// [START websecurityscanner_v1beta_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] +import com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient; +import com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WebSecurityScannerSettings webSecurityScannerSettings = + WebSecurityScannerSettings.newHttpJsonBuilder().build(); + WebSecurityScannerClient webSecurityScannerClient = + WebSecurityScannerClient.create(webSecurityScannerSettings); + } +} +// [END websecurityscanner_v1beta_generated_WebSecurityScanner_Create_UseHttpJsonTransport_sync] diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 5a229a1c20a9..13c400946d86 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json index 7a65a6c9590b..7066bc0a7cf8 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.workflows.executions.v1.CancelExecutionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json index ac99a135b3da..87612f0065d7 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e3e75c4b6030..000000000000 --- a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workflows.executions.v1.samples; - -// [START workflowexecutions_v1_generated_Executions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workflows.executions.v1.ExecutionsClient; -import com.google.cloud.workflows.executions.v1.ExecutionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); - ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); - } -} -// [END workflowexecutions_v1_generated_Executions_Create_SetCredentialsProvider1_sync] diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateUseHttpJsonTransport.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a5edd4cbdfe7 --- /dev/null +++ b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workflows.executions.v1.samples; + +// [START workflowexecutions_v1_generated_Executions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workflows.executions.v1.ExecutionsClient; +import com.google.cloud.workflows.executions.v1.ExecutionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END workflowexecutions_v1_generated_Executions_Create_UseHttpJsonTransport_sync] diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 4a231cd27c0c..000000000000 --- a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workflows.executions.v1beta.samples; - -// [START workflowexecutions_v1beta_generated_Executions_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workflows.executions.v1beta.ExecutionsClient; -import com.google.cloud.workflows.executions.v1beta.ExecutionsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); - ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); - } -} -// [END workflowexecutions_v1beta_generated_Executions_Create_SetCredentialsProvider1_sync] diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateUseHttpJsonTransport.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a9933ab36ce9 --- /dev/null +++ b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workflows.executions.v1beta.samples; + +// [START workflowexecutions_v1beta_generated_Executions_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workflows.executions.v1beta.ExecutionsClient; +import com.google.cloud.workflows.executions.v1beta.ExecutionsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END workflowexecutions_v1beta_generated_Executions_Create_UseHttpJsonTransport_sync] diff --git a/java-workflows/README.md b/java-workflows/README.md index 3d207c1ee999..8d075bd769e5 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.52.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json index 0d7e8acec4a4..526cf5257924 100644 --- a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json +++ b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json index 727c02eb47db..6ac6f0ce34a7 100644 --- a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json +++ b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.workflows.v1beta.CreateWorkflowRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 6692d3b547be..000000000000 --- a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workflows.v1.samples; - -// [START workflows_v1_generated_Workflows_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workflows.v1.WorkflowsClient; -import com.google.cloud.workflows.v1.WorkflowsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowsSettings workflowsSettings = WorkflowsSettings.newHttpJsonBuilder().build(); - WorkflowsClient workflowsClient = WorkflowsClient.create(workflowsSettings); - } -} -// [END workflows_v1_generated_Workflows_Create_SetCredentialsProvider1_sync] diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateUseHttpJsonTransport.java b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0ea91a3d65fb --- /dev/null +++ b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workflows.v1.samples; + +// [START workflows_v1_generated_Workflows_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workflows.v1.WorkflowsClient; +import com.google.cloud.workflows.v1.WorkflowsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkflowsSettings workflowsSettings = WorkflowsSettings.newHttpJsonBuilder().build(); + WorkflowsClient workflowsClient = WorkflowsClient.create(workflowsSettings); + } +} +// [END workflows_v1_generated_Workflows_Create_UseHttpJsonTransport_sync] diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider1.java b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index b9e6a15c62ab..000000000000 --- a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workflows.v1beta.samples; - -// [START workflows_v1beta_generated_Workflows_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workflows.v1beta.WorkflowsClient; -import com.google.cloud.workflows.v1beta.WorkflowsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowsSettings workflowsSettings = WorkflowsSettings.newHttpJsonBuilder().build(); - WorkflowsClient workflowsClient = WorkflowsClient.create(workflowsSettings); - } -} -// [END workflows_v1beta_generated_Workflows_Create_SetCredentialsProvider1_sync] diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateUseHttpJsonTransport.java b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a7ad9c699146 --- /dev/null +++ b/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workflows.v1beta.samples; + +// [START workflows_v1beta_generated_Workflows_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workflows.v1beta.WorkflowsClient; +import com.google.cloud.workflows.v1beta.WorkflowsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkflowsSettings workflowsSettings = WorkflowsSettings.newHttpJsonBuilder().build(); + WorkflowsClient workflowsClient = WorkflowsClient.create(workflowsSettings); + } +} +// [END workflows_v1beta_generated_Workflows_Create_UseHttpJsonTransport_sync] diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 72e674bcc365..b29952fe630f 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -40,7 +40,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -61,7 +60,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.16.0" ``` - ## Authentication @@ -202,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/resources/META-INF/native-image/com.google.apps.events.subscriptions.v1/reflect-config.json b/java-workspaceevents/google-cloud-workspaceevents/src/main/resources/META-INF/native-image/com.google.apps.events.subscriptions.v1/reflect-config.json index c24fa94c749a..d768fd3fdbef 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/resources/META-INF/native-image/com.google.apps.events.subscriptions.v1/reflect-config.json +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/resources/META-INF/native-image/com.google.apps.events.subscriptions.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.events.subscriptions.v1.CreateSubscriptionMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateSetCredentialsProvider1.java b/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 1f28de0dc991..000000000000 --- a/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.apps.events.subscriptions.v1.samples; - -// [START workspaceevents_v1_generated_SubscriptionsService_Create_SetCredentialsProvider1_sync] -import com.google.apps.events.subscriptions.v1.SubscriptionsServiceClient; -import com.google.apps.events.subscriptions.v1.SubscriptionsServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - SubscriptionsServiceSettings subscriptionsServiceSettings = - SubscriptionsServiceSettings.newHttpJsonBuilder().build(); - SubscriptionsServiceClient subscriptionsServiceClient = - SubscriptionsServiceClient.create(subscriptionsServiceSettings); - } -} -// [END workspaceevents_v1_generated_SubscriptionsService_Create_SetCredentialsProvider1_sync] diff --git a/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateUseHttpJsonTransport.java b/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c1b14a39d730 --- /dev/null +++ b/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.events.subscriptions.v1.samples; + +// [START workspaceevents_v1_generated_SubscriptionsService_Create_UseHttpJsonTransport_sync] +import com.google.apps.events.subscriptions.v1.SubscriptionsServiceClient; +import com.google.apps.events.subscriptions.v1.SubscriptionsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SubscriptionsServiceSettings subscriptionsServiceSettings = + SubscriptionsServiceSettings.newHttpJsonBuilder().build(); + SubscriptionsServiceClient subscriptionsServiceClient = + SubscriptionsServiceClient.create(subscriptionsServiceSettings); + } +} +// [END workspaceevents_v1_generated_SubscriptionsService_Create_UseHttpJsonTransport_sync] diff --git a/java-workstations/README.md b/java-workstations/README.md index 65b7a42a3fa5..3fcbf1ca8c59 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.40.0" ``` - ## Authentication @@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json b/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json index cc9f27199741..245bd9d47292 100644 --- a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json +++ b/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json b/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json index 2f9c37a3a8d6..358e2fd0e18f 100644 --- a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json +++ b/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a106ba28e69b..000000000000 --- a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workstations.v1.samples; - -// [START workstations_v1_generated_Workstations_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workstations.v1.WorkstationsClient; -import com.google.cloud.workstations.v1.WorkstationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build(); - WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); - } -} -// [END workstations_v1_generated_Workstations_Create_SetCredentialsProvider1_sync] diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateUseHttpJsonTransport.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..370e4da7c897 --- /dev/null +++ b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.cloud.workstations.v1.WorkstationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build(); + WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); + } +} +// [END workstations_v1_generated_Workstations_Create_UseHttpJsonTransport_sync] diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 870b1183544f..000000000000 --- a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.workstations.v1beta.samples; - -// [START workstations_v1beta_generated_Workstations_Create_SetCredentialsProvider1_sync] -import com.google.cloud.workstations.v1beta.WorkstationsClient; -import com.google.cloud.workstations.v1beta.WorkstationsSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build(); - WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); - } -} -// [END workstations_v1beta_generated_Workstations_Create_SetCredentialsProvider1_sync] diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateUseHttpJsonTransport.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..659b36dec280 --- /dev/null +++ b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workstations.v1beta.samples; + +// [START workstations_v1beta_generated_Workstations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workstations.v1beta.WorkstationsClient; +import com.google.cloud.workstations.v1beta.WorkstationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build(); + WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); + } +} +// [END workstations_v1beta_generated_Workstations_Create_UseHttpJsonTransport_sync]